Template Kit – Import - Version 1.0.5

Version Description

  • 2020-05-12 =
  • Fix: Better modal previews
  • Fix: Better ZIP handling for a range of hosting accounts
  • Fix: Better display of encoded characters within Template Kits
Download this release

Release Info

Developer Brad Davis
Plugin Icon 128x128 Template Kit – Import
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

assets/main.css CHANGED
@@ -1 +1 @@
1
- @-webkit-keyframes awBQV-fm_slwwetLVPLAJ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes awBQV-fm_slwwetLVPLAJ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._3wneDPyPdcKZxFsyZS1uEb{width:650px;min-height:200px;display:flex;flex-direction:column;color:#7f7f7f}._3wneDPyPdcKZxFsyZS1uEb p{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._3wneDPyPdcKZxFsyZS1uEb p strong{color:#4a4a4a}.VtSuT3wmK4xwwtaJiZXoH{position:absolute;right:10px;top:10px;display:block;padding:0;cursor:pointer;color:#919191;border:0;background:transparent}._2bWF1DgEyIFZDL_rq1B6IZ{font-size:24px;height:24px;width:24px;opacity:.7;transition:opacity .2s ease-in-out}._2bWF1DgEyIFZDL_rq1B6IZ:hover{opacity:1}@-webkit-keyframes _6pqeA098THDiDBxyecgug{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _6pqeA098THDiDBxyecgug{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._13e6P0GohbDRkmHTroG_S7{margin:0 0 20px}._7itzF6XYog1bxkCKdFhMe{color:#565656;font-size:31px;font-weight:200;line-height:36px;margin:0;padding:0}.rGSE9GJtpKE5PnTMDw_Oq{color:#7f7f7f;font-size:14px;line-height:1.8;margin:8px 0 0}.rGSE9GJtpKE5PnTMDw_Oq strong{color:#4a4a4a}@-webkit-keyframes _2SZG3SVrcR_I2zhew5WVhr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _2SZG3SVrcR_I2zhew5WVhr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._1MRHp_f9iNB0Jtz-kf4sqO{margin:20px 0 0;padding:20px 0 0;border-top:1px solid #ddd}.MoygnBjVJavv8uBOGELlf{padding:0 10px 15px}._5M2DaeazCko44PvOq4fkS{white-space:pre-wrap;word-break:break-all;-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all;height:100px;width:100%;overflow:auto}.wlk5Cjgf9mEmY8nX8Otdg{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}.wlk5Cjgf9mEmY8nX8Otdg strong{color:#4a4a4a}._2Hh1HrGBusC0Nmoy5qAW21{font-size:16px;height:16px;transition:none}._3oEmViP6o5wDeSfwFlQbnh{margin-right:4px}@-webkit-keyframes _12_U-KlguERdm4WaWQybRv{to{transform:rotate(1turn)}}@keyframes _12_U-KlguERdm4WaWQybRv{to{transform:rotate(1turn)}}._1RFvnV1ArPcXcuqxqVWYS-{-webkit-animation:_12_U-KlguERdm4WaWQybRv 4s linear infinite;animation:_12_U-KlguERdm4WaWQybRv 4s linear infinite}@-webkit-keyframes _2OzW5Q4M_GlxS0rApsiye2{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _2OzW5Q4M_GlxS0rApsiye2{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._2Be0Bw4xUsveTYiur3RrKz,._2usE8M0Nrup6TXbA9tXIKP,._18ctAe9xome7MXxtRBAQoB,._21iKyeS6-PWKrJ8f_wrLmN,._27o464fKNdOE0zlT86WLYI,.oE7H1W1AK6I1RGMmPCizU{border-radius:4px;padding:0 12px;min-height:36px;font-size:12px;line-height:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-weight:400;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap}._2Be0Bw4xUsveTYiur3RrKz[disabled],._2usE8M0Nrup6TXbA9tXIKP[disabled],._18ctAe9xome7MXxtRBAQoB[disabled],._21iKyeS6-PWKrJ8f_wrLmN[disabled],._27o464fKNdOE0zlT86WLYI[disabled],.oE7H1W1AK6I1RGMmPCizU[disabled]{cursor:not-allowed}@media screen and (min-width:1281px){._2Be0Bw4xUsveTYiur3RrKz,._2usE8M0Nrup6TXbA9tXIKP,._18ctAe9xome7MXxtRBAQoB,._21iKyeS6-PWKrJ8f_wrLmN,._27o464fKNdOE0zlT86WLYI,.oE7H1W1AK6I1RGMmPCizU{font-size:14px;padding:0 16px}}.oE7H1W1AK6I1RGMmPCizU{background:#fff;border:1px solid #81b441;color:#81b441}.oE7H1W1AK6I1RGMmPCizU:active,.oE7H1W1AK6I1RGMmPCizU:focus,.oE7H1W1AK6I1RGMmPCizU:hover{background:#639623;border-color:#639623;color:#fff}._27o464fKNdOE0zlT86WLYI{background:#81b441;border:1px solid #81b441;color:#fff}._27o464fKNdOE0zlT86WLYI:active,._27o464fKNdOE0zlT86WLYI:focus,._27o464fKNdOE0zlT86WLYI:hover{background:#639623;border-color:#639623;color:#fff}._2usE8M0Nrup6TXbA9tXIKP{background:#fff;border:1px solid #979797;color:#979797}._2usE8M0Nrup6TXbA9tXIKP:active,._2usE8M0Nrup6TXbA9tXIKP:focus,._2usE8M0Nrup6TXbA9tXIKP:hover{border-color:#23282d;color:#23282d}._18ctAe9xome7MXxtRBAQoB{background:#fff;border:1px solid #ef3962;color:#ef3962}._18ctAe9xome7MXxtRBAQoB:active,._18ctAe9xome7MXxtRBAQoB:focus,._18ctAe9xome7MXxtRBAQoB:hover{background:#ef3962;color:#fff}._21iKyeS6-PWKrJ8f_wrLmN{background:#fff;border:1px solid #ef8539;color:#ef8539}._21iKyeS6-PWKrJ8f_wrLmN:active,._21iKyeS6-PWKrJ8f_wrLmN:focus,._21iKyeS6-PWKrJ8f_wrLmN:hover{background:#ef8539;color:#fff}._12vOKU0MMbbHG4Y6M5o5Gn{display:flex;flex-wrap:wrap}._12vOKU0MMbbHG4Y6M5o5Gn>*{margin:0 10px 5px 0}._1iip-LV7Xv9ykAosgM5NuM{background-color:#fff;display:flex;border-bottom:1px solid #e0e5e9;z-index:20}._3ATGzAjLOmwSzucmY-YngZ{display:flex;justify-content:center;flex-direction:column;padding:0 10px 0 20px;min-height:54px;max-width:140px}._3ATGzAjLOmwSzucmY-YngZ img{height:22px}._3ATGzAjLOmwSzucmY-YngZ a:active,._3ATGzAjLOmwSzucmY-YngZ a:focus{outline:0;border:0;box-shadow:none}._3f2NedzSbwOx_JjYr8nDQA{background-image:url(img/ab1b153a91691a58ceca55efc120b195.svg);background-repeat:no-repeat;background-position:0;background-size:contain;height:22px;width:130px;overflow:hidden;cursor:pointer;text-indent:-9999px}.g4RTLFxxQQsdiP_q8ZEoR{display:flex;flex-direction:row;justify-content:space-between;border-left:1px solid #f1f1f1;flex:1}._1MEPMh6aEquzp_JZjrouzU{display:flex;flex-direction:row;justify-content:left;margin:0;padding:0}@media screen and (max-width:782px){._1MEPMh6aEquzp_JZjrouzU{flex:1;flex-wrap:wrap}}._1bm12lAbQ8gqKEt4fjLrQn{padding:0;margin:0;border-right:1px solid #f1f1f1;position:relative;display:flex;align-items:center}._1bm12lAbQ8gqKEt4fjLrQn:hover>._2WiEnh-1nVnmA2xejNL-jN:after{transform:rotate(90deg)}._3_Y7KIkNPB0VGaikLZPLXr>._2WiEnh-1nVnmA2xejNL-jN{padding:0 40px 0 30px}._3_Y7KIkNPB0VGaikLZPLXr>._2WiEnh-1nVnmA2xejNL-jN:after{content:"\f345";opacity:.7;top:50%;margin-top:-7px;font-family:dashicons;position:absolute;right:14px;transform:rotate(0deg);transform-origin:50% 50%;transition:transform .1s ease}._3_Y7KIkNPB0VGaikLZPLXr:hover ._1qVTgaPdTH08INPOcXB72z{transform:scale(1);transition-delay:.1s;overflow:visible;opacity:1;max-height:200px}._3_Y7KIkNPB0VGaikLZPLXr:hover ._1zR1wFdZwIcQuLgx4F-tr5{max-height:400px;overflow-y:auto;width:300px;right:0;left:auto}._3_Y7KIkNPB0VGaikLZPLXr:hover ._1zR1wFdZwIcQuLgx4F-tr5::-webkit-scrollbar{-webkit-appearance:none;width:7px}._3_Y7KIkNPB0VGaikLZPLXr:hover ._1zR1wFdZwIcQuLgx4F-tr5::-webkit-scrollbar-thumb{border-radius:4px;background-color:rgba(0,0,0,.5);-webkit-box-shadow:0 0 1px hsla(0,0%,100%,.5)}._2WiEnh-1nVnmA2xejNL-jN{display:flex;align-items:center;font-weight:500;text-align:center;justify-content:center;font-size:13px;text-decoration:none;color:#555d66;height:55px;padding:0 30px;cursor:pointer}._2WiEnh-1nVnmA2xejNL-jN:hover{color:#222;background:#f0f2f4}._2WiEnh-1nVnmA2xejNL-jN:active,._2WiEnh-1nVnmA2xejNL-jN:focus{outline:0;border:0;box-shadow:none}.Qvwt8B1yoF-HW_ej6t8Vh,.Qvwt8B1yoF-HW_ej6t8Vh:active,.Qvwt8B1yoF-HW_ej6t8Vh:focus{background-color:#f0f2f4;box-shadow:inset 0 -1px 0 0 #81b440}._1qVTgaPdTH08INPOcXB72z .Qvwt8B1yoF-HW_ej6t8Vh,._1qVTgaPdTH08INPOcXB72z .Qvwt8B1yoF-HW_ej6t8Vh:active,._1qVTgaPdTH08INPOcXB72z .Qvwt8B1yoF-HW_ej6t8Vh:focus{box-shadow:none}.PcQk9lTsWaOSq1mj45FBN:before{content:"NEW";display:block;position:absolute;right:-14px;top:4px;background:#81b440;font-size:10px;padding:1px 7px 0;text-transform:uppercase;color:#fff;font-weight:400;border-radius:9px;z-index:9;line-height:14px}._1qVTgaPdTH08INPOcXB72z{position:absolute;z-index:999;box-shadow:0 6px 18px 2px rgba(0,0,0,.09);width:200px;top:100%;left:-1px;display:flex;flex-direction:column;justify-content:left;margin:0;padding:0;background:#fff;border-top:1px solid #f1f1f1;border-left:1px solid #f1f1f1;border-right:1px solid #f1f1f1;overflow:hidden;max-height:0;opacity:0;transform:scale(.4);transform-origin:60% top;transition:max-height 0s linear 0s,opacity .2s cubic-bezier(.39,.575,.565,1),transform .15s cubic-bezier(.1,1.26,.83,1)}._1qVTgaPdTH08INPOcXB72z ._2WiEnh-1nVnmA2xejNL-jN{justify-content:left;height:45px}._1x0jWzfZZYwAlYcz98019Z{margin:0;padding:0;border-bottom:1px solid #f1f1f1}._3KaLU08cg_uuF1s32FUby1{display:none}@media (min-width:900px){._3KaLU08cg_uuF1s32FUby1{display:flex}._3KaLU08cg_uuF1s32FUby1 ._1bm12lAbQ8gqKEt4fjLrQn{border-right:0;margin-left:10px;margin-right:20px}}._3eW9zhI2KLBjal6xVn4RRz{position:absolute;display:block;font-size:10px;top:21px;right:13px;border-radius:5px;padding:0 4px;line-height:15px;background-color:#ca4a1f;color:#fff}.YTBkhdOlOh4QuqkDDPCMV{padding:20px}.smcJRtvHEzHA4K9EO3_1I{color:#363b3f;position:relative;padding:5px 0 10px 20px;margin-bottom:0}.LxNzl69Yk4tP4pD1P3Mii{opacity:.5;font-size:9px;text-transform:uppercase;margin-bottom:5px}._3yBF8inPK-HTdDK72RfE3A{font-size:14px;font-weight:700;padding:4px 0 0}.EQB2N9a2IBPzgeDYrPMNb{font-size:12px;word-break:break-word}.EQB2N9a2IBPzgeDYrPMNb p{margin:7px 0}.EQB2N9a2IBPzgeDYrPMNb p a{text-decoration:underline;color:#0073aa}.pk0dHrPKaw-XkGQWVdEpD{display:none}._3UbobJswzAbtGhFNIMGtGb{text-align:center;margin:auto 0 0}@-webkit-keyframes _3cma45jhRlCxKjGn7bRO89{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _3cma45jhRlCxKjGn7bRO89{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.BLa__01xPXIkNtm7_TdSt{align-items:center;background:#ffecdb;box-shadow:0 1px 0 rgba(239,133,57,.4);color:#ef8539;padding:15px 20px;margin:-20px -20px 20px;display:flex;justify-content:space-between}._3ZL3iPUjoRL0ucRtkAs9o3{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._3ZL3iPUjoRL0ucRtkAs9o3 strong{color:#4a4a4a}._1-AMIXQBz-cte-N18jzCRX{margin:0 0 20px}._3vKAgI5R6s3k03eyhym7Df{display:flex;align-items:center}._1b1-yc2PV8H2ahj8c4w44R,._1ooAOmdMWCXdBxsuFmiZTL{margin-right:10px}._1OTzvGGb3zrXM-8YtrNQMC{font-style:italic;font-weight:700}@-webkit-keyframes _2gUkB8zVtB4bYRj2wUnpgl{to{transform:rotate(1turn)}}@keyframes _2gUkB8zVtB4bYRj2wUnpgl{to{transform:rotate(1turn)}}._3P2A6ew1J_hOXLzu_mhhoF{-webkit-animation:_2gUkB8zVtB4bYRj2wUnpgl 4s linear infinite;animation:_2gUkB8zVtB4bYRj2wUnpgl 4s linear infinite}@-webkit-keyframes _34GtVyhroSVFfJGkfXkPBN{0%{transform:translateY(0)}20%{transform:translateY(-100%)}50%{transform:translateY(0)}}@keyframes _34GtVyhroSVFfJGkfXkPBN{0%{transform:translateY(0)}20%{transform:translateY(-100%)}50%{transform:translateY(0)}}@-webkit-keyframes sPBhHQ4ITuT-1MaW9Xi6-{0%{opacity:0}to{opacity:1}}@keyframes sPBhHQ4ITuT-1MaW9Xi6-{0%{opacity:0}to{opacity:1}}.w2RTwQaOLn17YZod46h7u{width:130px;height:50px;position:relative;margin:100px auto;-webkit-animation:sPBhHQ4ITuT-1MaW9Xi6- 1s;animation:sPBhHQ4ITuT-1MaW9Xi6- 1s;padding-top:16px}.w2RTwQaOLn17YZod46h7u:before{background-color:#523ee8;-webkit-animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.6s infinite;animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.6s infinite}.w2RTwQaOLn17YZod46h7u:after,.w2RTwQaOLn17YZod46h7u:before{content:"";display:inline-block;width:16px;height:16px;border-radius:50%;margin:0 7px}.w2RTwQaOLn17YZod46h7u:after{background-color:#f73859;-webkit-animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear 0s infinite;animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear 0s infinite}._2-bzJzXs2sFLdVdJIzVXp9:before{background-color:#6d47d9;-webkit-animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.4s infinite;animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.4s infinite}._2-bzJzXs2sFLdVdJIzVXp9:after,._2-bzJzXs2sFLdVdJIzVXp9:before{content:"";display:inline-block;width:16px;height:16px;border-radius:50%;margin:0 7px}._2-bzJzXs2sFLdVdJIzVXp9:after{background-color:#f7bc28;-webkit-animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.2s infinite;animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.2s infinite}@-webkit-keyframes fgbtaCDtcZwMQ6i8kx_7h{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fgbtaCDtcZwMQ6i8kx_7h{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.YCC_eH-Jpwsb9Q6mO0lTY{height:40px;padding:0 30px 0 0;line-height:40px;color:#767676;border-radius:2px;font-size:13px;cursor:pointer;position:relative}.YCC_eH-Jpwsb9Q6mO0lTY:after{content:"\f345";opacity:.7;margin-top:0;font-family:dashicons;position:absolute;right:7px;transform:rotate(0deg);transform-origin:50% 50%;transition:transform .1s ease;font-size:16px}.YCC_eH-Jpwsb9Q6mO0lTY:hover:after{transform:rotate(90deg)}.YCC_eH-Jpwsb9Q6mO0lTY:hover:before{content:"";position:absolute;display:block;left:0;right:0;bottom:-40px;top:100%;background:transparent}.YCC_eH-Jpwsb9Q6mO0lTY:hover .lIzKBHC22tUIXAarE8pxH{display:block}.lIzKBHC22tUIXAarE8pxH{background:#fff;border:1px solid #e0e5e9;border-radius:4px;box-shadow:0 10px 10px rgba(0,0,0,.1);display:none;line-height:30px;min-width:170px;padding:20px;position:absolute;left:-20px;top:130%;white-space:nowrap;z-index:8}.lIzKBHC22tUIXAarE8pxH:after,.lIzKBHC22tUIXAarE8pxH:before{content:"";display:block;position:absolute;bottom:100%;width:0;height:0;border-style:solid}.lIzKBHC22tUIXAarE8pxH:after{left:23px;border-color:transparent transparent #fff;border-width:10px}.lIzKBHC22tUIXAarE8pxH:before{left:23px;border-color:transparent transparent #e2e2e2;border-width:11px}._2K-Pi1nh0u1ynpVVVUGuEd{padding:0 30px}._2lNE8tECbqfbFxRnokrq14{color:#7f7f7f;text-decoration:none;border:0;background:transparent;padding:5px 0;cursor:pointer}._2lNE8tECbqfbFxRnokrq14:hover{color:#4a4a4a}._32agSzLa-PWm5rUc9iOYrN{text-decoration:underline}@-webkit-keyframes _2J9YN8sybBhsSv3bO6Y0dJ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _2J9YN8sybBhsSv3bO6Y0dJ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.flGvCh2JytH3XHesfMiTn{width:100%;height:100px;padding:20px;border-radius:4px;margin:0 auto 40px;background:#fff;display:flex;justify-content:center;align-items:center;box-shadow:0 2px 2px rgba(0,0,0,.1)}._3g-ohUYxC4304dELpbK6nX{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._3g-ohUYxC4304dELpbK6nX strong{color:#4a4a4a}._3HBo7OiY7oAhkUC0DcalC5{width:100%}._3mcQsRTzcMLIo_3aDXmSTW{display:flex;flex-wrap:wrap;margin:0 -1%;width:102%;padding:0;justify-content:space-between}._35oqEpQsw0Iem8sZOMFdPJ{flex:1}@-webkit-keyframes _1i74u9WkgBk4r-PvirUAjp{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _1i74u9WkgBk4r-PvirUAjp{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._29x1IWY7ih-Z_cuhziTX_h{flex:0 1 100%;padding:0 1% 2%;margin:0;min-width:0}@media (min-width:600px) and (max-width:999px){._29x1IWY7ih-Z_cuhziTX_h{flex:0 1 50%}}@media (min-width:1000px){._29x1IWY7ih-Z_cuhziTX_h._38zLz2nXY2NakXStBq7xZr{flex:0 1 20%}._29x1IWY7ih-Z_cuhziTX_h.ojjeLEVFrktXiNkPmioSa{flex:0 1 25%}._29x1IWY7ih-Z_cuhziTX_h._2iDZ0-OZSyg_cinELwspdB{flex:0 1 33.3333333%}._29x1IWY7ih-Z_cuhziTX_h._3ECSpiJkcXOuffVV4FDX4H{flex:0 1 40%}._29x1IWY7ih-Z_cuhziTX_h._1N209ISbx9eXpsnZ8gf_E8{flex:0 1 50%}._29x1IWY7ih-Z_cuhziTX_h.iL7A82T74DNFqR323gSkk{flex:0 1 60%}._29x1IWY7ih-Z_cuhziTX_h._1Z01QZCFXOC4Iptqxmm-wa{flex:0 1 100%}}@-webkit-keyframes GUvXxfZ5AjgA3maasKfZZ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes GUvXxfZ5AjgA3maasKfZZ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._2a4Y69W6c3mML4frSpYOmg{border-radius:4px;height:100%;overflow:visible;position:relative}._2a4Y69W6c3mML4frSpYOmg:hover:before{opacity:.15}._2a4Y69W6c3mML4frSpYOmg:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;opacity:.07;z-index:-1;box-shadow:0 2px 4px #000;transition:opacity .2s linear}._3M7jqxCB1Fqeew3rsDpX1t{height:100%;background:#fff;background-position:50%;background-size:cover;background-repeat:no-repeat;border-radius:4px;display:flex;flex-direction:column;overflow:hidden}._23eXjuy0IdpvkPq97ycwom{position:relative;display:block;width:100%}._30Q8QKN8kALE447Su96N1M{margin-top:auto;padding:13px 20px 10px}.Y-vzaeXp1NOUveSNYrCK{color:#000;font-size:18px;line-height:22px;margin:10px 0 2px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1lfSIqVF-Gj7sxiaXFa6AD{color:#7f7f7f;font-size:14px;line-height:1.8;margin:0 0 13px}._1lfSIqVF-Gj7sxiaXFa6AD strong{color:#4a4a4a}._2Zt_cNkR6xj4U41EeK54Bt{background:#81b441;border-radius:3px;display:inline-block;padding:6px 7px}.IG22ss47WE-9H86QczzcI{position:relative;top:2px}@-webkit-keyframes _1UD--Zviw9FLEUxQOeDuW{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _1UD--Zviw9FLEUxQOeDuW{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._1hLv3Vplzcafex4sThG6ja{width:800px;min-height:200px;height:80vh;display:flex;flex-direction:column;color:#7f7f7f}._1hLv3Vplzcafex4sThG6ja p{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._1hLv3Vplzcafex4sThG6ja p strong{color:#4a4a4a}._3sz0952abrtBvMlC0tNXWY{align-items:center;background-color:#26292c;display:flex;flex-direction:row;padding:7px 13px}.swbP218Njg0YSBx52xzN-{flex:0 0 240px}._18YAF71-_PGUeWbsNymQjh{color:#fff;font-size:15px;margin:auto;text-align:center;padding:10px}._3lkT9iDnpJz683wkZ438oI{display:flex;justify-content:flex-end;flex-direction:row;flex:0 0 240px}._38J4xJEwecKHqwsqOOSmcP{cursor:pointer;color:#919191;border:0;background:transparent;margin-left:12px;padding-right:6px;display:flex}._38J4xJEwecKHqwsqOOSmcP:before{content:"";display:inline-block;border-left:1px solid #a5afb7;color:#fff;margin-right:10px;height:20px;opacity:.3}._1j9z4gjnHlcXa_Seeb8VNw{font-size:24px;height:24px;width:24px;opacity:.7;transition:opacity .2s ease-in-out}._1j9z4gjnHlcXa_Seeb8VNw:hover{opacity:1}._21gITcQFs6-1eXOnewtJIo{width:100%;height:auto}@-webkit-keyframes rS2x6Luy5j8HL3enXHplD{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes rS2x6Luy5j8HL3enXHplD{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._1syGJ-On-p-JGwC6hnuzCN{height:200px;overflow:hidden;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.1);padding-bottom:66%}._1syGJ-On-p-JGwC6hnuzCN:hover ._3crHCTct5CMw3Zp5ijQNRN{opacity:1}._39DJgZVRV5xAn8z88mA-uG{margin:0;padding:0;line-height:0;font-size:0;display:block;width:100%}._3crHCTct5CMw3Zp5ijQNRN{position:absolute;bottom:10px;right:10px;opacity:0;transition:opacity .2s}._1zHW-Dd_M6fbS6Lk35I40I{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._1zHW-Dd_M6fbS6Lk35I40I strong{color:#4a4a4a}.OJk9AW6HhjoXS4r8kOe6a{align-self:center;display:flex}._2AsRtyYmk4u2ra-d2YsjGE{margin-left:auto}@-webkit-keyframes _9hudWSkYQfD6mHTPcIHOZ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _9hudWSkYQfD6mHTPcIHOZ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._1tM0JQuJNW5GDki987p_ZA:hover ._2KcZsZdCiISn45qXUKMRgV{opacity:1;transition:opacity .4s ease-in-out}._26nQzLECUlZzB9t8hf3ISe{display:block;padding-bottom:66%;overflow:hidden;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.1)}.F1R9OT0JMbCsLNWZkvFh5{position:absolute;width:100%}._2KcZsZdCiISn45qXUKMRgV{opacity:0;margin:0 0 0 auto}@-webkit-keyframes _3dOp6uIisP8nxgn6DNzr7G{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _3dOp6uIisP8nxgn6DNzr7G{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._2vHHKAFgRCtc9rZyL4g6lx{position:relative;padding-bottom:66%;padding-top:136px;height:100%}._8i15mGt9tRuGZfTmoC28_{position:absolute;top:0;left:0;right:0;bottom:0;border:5px dashed rgba(0,0,0,.1);background:transparent;display:flex;align-items:center;flex-direction:column;justify-content:space-evenly}._8i15mGt9tRuGZfTmoC28_:hover{background:#ddd}._1CRwVNeu-DGYq7ZtYnaQQV{display:none}.sDTdiaai1sXMd7gMpzPPx{width:100px;height:100px}.sDTdiaai1sXMd7gMpzPPx:before{background:hsla(0,0%,60%,.1);border-radius:50%;display:inline-block;content:"\f132";-webkit-font-smoothing:antialiased;font:normal 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#999;position:absolute;padding:0;text-shadow:none;z-index:4;text-indent:-4px}._2QEWeBB-Unz4qsVLTW_9g8{font-size:18px}._21RxIKPF66UF3i_0gurks6{margin-left:-20px}._21RxIKPF66UF3i_0gurks6 *{box-sizing:border-box}._21RxIKPF66UF3i_0gurks6 a:active,._21RxIKPF66UF3i_0gurks6 a:focus,._21RxIKPF66UF3i_0gurks6 button:active,._21RxIKPF66UF3i_0gurks6 button:focus,._21RxIKPF66UF3i_0gurks6 form:active,._21RxIKPF66UF3i_0gurks6 form:focus,._21RxIKPF66UF3i_0gurks6 input:active,._21RxIKPF66UF3i_0gurks6 input:focus{box-shadow:none;outline:none}@media screen and (max-width:782px){._21RxIKPF66UF3i_0gurks6{margin-left:-10px}}._1NCoEByT5qnU9-27CT6rhQ{padding:20px}@media screen and (max-width:782px){._1NCoEByT5qnU9-27CT6rhQ{padding:20px}}.toplevel_page_template-kit-import #wpbody-content>*{display:none}.toplevel_page_template-kit-import #wpbody-content>#template-kit-import-app-holder{display:block}@-webkit-keyframes _1kH5mtGfYJQ7INQWvAR_Bg{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _1kH5mtGfYJQ7INQWvAR_Bg{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._2-WTW-ONNDbBCZWx2E-iYf{width:1200px;max-width:90vw;min-height:200px;height:80vh;display:flex;flex-direction:column;color:#7f7f7f}._2-WTW-ONNDbBCZWx2E-iYf p{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._2-WTW-ONNDbBCZWx2E-iYf p strong{color:#4a4a4a}._25Lej_JkIhFX7HlXWkTUWY{align-items:center;background-color:#26292c;display:flex;flex-direction:row;padding:7px 13px}._3tiNOk61Dfy5TC8zxV8FJC{flex:0 0 240px}._1nzno2ylybbG--bLj3_vIA{color:#fff;display:flex;font-size:15px;margin:auto;text-align:center}._7yUfTOIDWGezhu5HtUwvH{display:flex;justify-content:flex-end;flex-direction:row;flex:0 0 240px}._29IB-UjZnCrhG5pH60uAQI{cursor:pointer;color:#919191;border:0;background:transparent;margin-left:12px;padding-right:6px;display:flex}._29IB-UjZnCrhG5pH60uAQI:before{content:"";display:inline-block;border-left:1px solid #a5afb7;color:#fff;margin-right:10px;height:20px;opacity:.3}._2R7nr7DH9EW42LxE_rbVIT{font-size:24px;height:24px;width:24px;opacity:.7;transition:opacity .2s ease-in-out}._2R7nr7DH9EW42LxE_rbVIT:hover{opacity:1}.RvNK3VwNt4oHQU8jY-Mfn{margin:auto 0;height:100%;padding:20px}
1
+ @-webkit-keyframes awBQV-fm_slwwetLVPLAJ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes awBQV-fm_slwwetLVPLAJ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._3wneDPyPdcKZxFsyZS1uEb{width:650px;min-height:200px;display:flex;flex-direction:column;color:#7f7f7f}._3wneDPyPdcKZxFsyZS1uEb p{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._3wneDPyPdcKZxFsyZS1uEb p strong{color:#4a4a4a}.VtSuT3wmK4xwwtaJiZXoH{position:absolute;right:10px;top:10px;display:block;padding:0;cursor:pointer;color:#919191;border:0;background:transparent}._2bWF1DgEyIFZDL_rq1B6IZ{font-size:24px;height:24px;width:24px;opacity:.7;transition:opacity .2s ease-in-out}._2bWF1DgEyIFZDL_rq1B6IZ:hover{opacity:1}@-webkit-keyframes _6pqeA098THDiDBxyecgug{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _6pqeA098THDiDBxyecgug{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._13e6P0GohbDRkmHTroG_S7{margin:0 0 20px}._7itzF6XYog1bxkCKdFhMe{color:#565656;font-size:31px;font-weight:200;line-height:36px;margin:0;padding:0}.rGSE9GJtpKE5PnTMDw_Oq{color:#7f7f7f;font-size:14px;line-height:1.8;margin:8px 0 0}.rGSE9GJtpKE5PnTMDw_Oq strong{color:#4a4a4a}@-webkit-keyframes _2SZG3SVrcR_I2zhew5WVhr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _2SZG3SVrcR_I2zhew5WVhr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._1MRHp_f9iNB0Jtz-kf4sqO{margin:20px 0 0;padding:20px 0 0;border-top:1px solid #ddd}.MoygnBjVJavv8uBOGELlf{padding:0 10px 15px}._5M2DaeazCko44PvOq4fkS{white-space:pre-wrap;word-break:break-all;-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all;height:100px;width:100%;overflow:auto}.wlk5Cjgf9mEmY8nX8Otdg{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}.wlk5Cjgf9mEmY8nX8Otdg strong{color:#4a4a4a}._2Hh1HrGBusC0Nmoy5qAW21{font-size:16px;height:16px;transition:none}._3oEmViP6o5wDeSfwFlQbnh{margin-right:4px}@-webkit-keyframes _12_U-KlguERdm4WaWQybRv{to{transform:rotate(1turn)}}@keyframes _12_U-KlguERdm4WaWQybRv{to{transform:rotate(1turn)}}._1RFvnV1ArPcXcuqxqVWYS-{-webkit-animation:_12_U-KlguERdm4WaWQybRv 4s linear infinite;animation:_12_U-KlguERdm4WaWQybRv 4s linear infinite}@-webkit-keyframes _2OzW5Q4M_GlxS0rApsiye2{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _2OzW5Q4M_GlxS0rApsiye2{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._2Be0Bw4xUsveTYiur3RrKz,._2usE8M0Nrup6TXbA9tXIKP,._18ctAe9xome7MXxtRBAQoB,._21iKyeS6-PWKrJ8f_wrLmN,._27o464fKNdOE0zlT86WLYI,.oE7H1W1AK6I1RGMmPCizU{border-radius:4px;padding:0 12px;min-height:36px;font-size:12px;line-height:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-weight:400;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap}._2Be0Bw4xUsveTYiur3RrKz[disabled],._2usE8M0Nrup6TXbA9tXIKP[disabled],._18ctAe9xome7MXxtRBAQoB[disabled],._21iKyeS6-PWKrJ8f_wrLmN[disabled],._27o464fKNdOE0zlT86WLYI[disabled],.oE7H1W1AK6I1RGMmPCizU[disabled]{cursor:not-allowed}@media screen and (min-width:1281px){._2Be0Bw4xUsveTYiur3RrKz,._2usE8M0Nrup6TXbA9tXIKP,._18ctAe9xome7MXxtRBAQoB,._21iKyeS6-PWKrJ8f_wrLmN,._27o464fKNdOE0zlT86WLYI,.oE7H1W1AK6I1RGMmPCizU{font-size:14px;padding:0 16px}}.oE7H1W1AK6I1RGMmPCizU{background:#fff;border:1px solid #81b441;color:#81b441}.oE7H1W1AK6I1RGMmPCizU:active,.oE7H1W1AK6I1RGMmPCizU:focus,.oE7H1W1AK6I1RGMmPCizU:hover{background:#639623;border-color:#639623;color:#fff}._27o464fKNdOE0zlT86WLYI{background:#81b441;border:1px solid #81b441;color:#fff}._27o464fKNdOE0zlT86WLYI:active,._27o464fKNdOE0zlT86WLYI:focus,._27o464fKNdOE0zlT86WLYI:hover{background:#639623;border-color:#639623;color:#fff}._2usE8M0Nrup6TXbA9tXIKP{background:#fff;border:1px solid #979797;color:#979797}._2usE8M0Nrup6TXbA9tXIKP:active,._2usE8M0Nrup6TXbA9tXIKP:focus,._2usE8M0Nrup6TXbA9tXIKP:hover{border-color:#23282d;color:#23282d}._18ctAe9xome7MXxtRBAQoB{background:#fff;border:1px solid #ef3962;color:#ef3962}._18ctAe9xome7MXxtRBAQoB:active,._18ctAe9xome7MXxtRBAQoB:focus,._18ctAe9xome7MXxtRBAQoB:hover{background:#ef3962;color:#fff}._21iKyeS6-PWKrJ8f_wrLmN{background:#fff;border:1px solid #ef8539;color:#ef8539}._21iKyeS6-PWKrJ8f_wrLmN:active,._21iKyeS6-PWKrJ8f_wrLmN:focus,._21iKyeS6-PWKrJ8f_wrLmN:hover{background:#ef8539;color:#fff}._12vOKU0MMbbHG4Y6M5o5Gn{display:flex;flex-wrap:wrap}._12vOKU0MMbbHG4Y6M5o5Gn>*{margin:0 10px 5px 0}._1iip-LV7Xv9ykAosgM5NuM{background-color:#fff;display:flex;border-bottom:1px solid #e0e5e9;z-index:20}._3ATGzAjLOmwSzucmY-YngZ{display:flex;justify-content:center;flex-direction:column;padding:0 10px 0 20px;min-height:54px;max-width:140px}._3ATGzAjLOmwSzucmY-YngZ img{height:22px}._3ATGzAjLOmwSzucmY-YngZ a:active,._3ATGzAjLOmwSzucmY-YngZ a:focus{outline:0;border:0;box-shadow:none}._3f2NedzSbwOx_JjYr8nDQA{background-image:url(img/ab1b153a91691a58ceca55efc120b195.svg);background-repeat:no-repeat;background-position:0;background-size:contain;height:22px;width:130px;overflow:hidden;cursor:pointer;text-indent:-9999px}.g4RTLFxxQQsdiP_q8ZEoR{display:flex;flex-direction:row;justify-content:space-between;border-left:1px solid #f1f1f1;flex:1}._1MEPMh6aEquzp_JZjrouzU{display:flex;flex-direction:row;justify-content:left;margin:0;padding:0}@media screen and (max-width:782px){._1MEPMh6aEquzp_JZjrouzU{flex:1;flex-wrap:wrap}}._1bm12lAbQ8gqKEt4fjLrQn{padding:0;margin:0;border-right:1px solid #f1f1f1;position:relative;display:flex;align-items:center}._1bm12lAbQ8gqKEt4fjLrQn:hover>._2WiEnh-1nVnmA2xejNL-jN:after{transform:rotate(90deg)}._3_Y7KIkNPB0VGaikLZPLXr>._2WiEnh-1nVnmA2xejNL-jN{padding:0 40px 0 30px}._3_Y7KIkNPB0VGaikLZPLXr>._2WiEnh-1nVnmA2xejNL-jN:after{content:"\f345";opacity:.7;top:50%;margin-top:-7px;font-family:dashicons;position:absolute;right:14px;transform:rotate(0deg);transform-origin:50% 50%;transition:transform .1s ease}._3_Y7KIkNPB0VGaikLZPLXr:hover ._1qVTgaPdTH08INPOcXB72z{transform:scale(1);transition-delay:.1s;overflow:visible;opacity:1;max-height:200px}._3_Y7KIkNPB0VGaikLZPLXr:hover ._1zR1wFdZwIcQuLgx4F-tr5{max-height:400px;overflow-y:auto;width:300px;right:0;left:auto}._3_Y7KIkNPB0VGaikLZPLXr:hover ._1zR1wFdZwIcQuLgx4F-tr5::-webkit-scrollbar{-webkit-appearance:none;width:7px}._3_Y7KIkNPB0VGaikLZPLXr:hover ._1zR1wFdZwIcQuLgx4F-tr5::-webkit-scrollbar-thumb{border-radius:4px;background-color:rgba(0,0,0,.5);-webkit-box-shadow:0 0 1px hsla(0,0%,100%,.5)}._2WiEnh-1nVnmA2xejNL-jN{display:flex;align-items:center;font-weight:500;text-align:center;justify-content:center;font-size:13px;text-decoration:none;color:#555d66;height:55px;padding:0 30px;cursor:pointer}._2WiEnh-1nVnmA2xejNL-jN:hover{color:#222;background:#f0f2f4}._2WiEnh-1nVnmA2xejNL-jN:active,._2WiEnh-1nVnmA2xejNL-jN:focus{outline:0;border:0;box-shadow:none}.Qvwt8B1yoF-HW_ej6t8Vh,.Qvwt8B1yoF-HW_ej6t8Vh:active,.Qvwt8B1yoF-HW_ej6t8Vh:focus{background-color:#f0f2f4;box-shadow:inset 0 -1px 0 0 #81b440}._1qVTgaPdTH08INPOcXB72z .Qvwt8B1yoF-HW_ej6t8Vh,._1qVTgaPdTH08INPOcXB72z .Qvwt8B1yoF-HW_ej6t8Vh:active,._1qVTgaPdTH08INPOcXB72z .Qvwt8B1yoF-HW_ej6t8Vh:focus{box-shadow:none}.PcQk9lTsWaOSq1mj45FBN:before{content:"NEW";display:block;position:absolute;right:-14px;top:4px;background:#81b440;font-size:10px;padding:1px 7px 0;text-transform:uppercase;color:#fff;font-weight:400;border-radius:9px;z-index:9;line-height:14px}._1qVTgaPdTH08INPOcXB72z{position:absolute;z-index:999;box-shadow:0 6px 18px 2px rgba(0,0,0,.09);width:200px;top:100%;left:-1px;display:flex;flex-direction:column;justify-content:left;margin:0;padding:0;background:#fff;border-top:1px solid #f1f1f1;border-left:1px solid #f1f1f1;border-right:1px solid #f1f1f1;overflow:hidden;max-height:0;opacity:0;transform:scale(.4);transform-origin:60% top;transition:max-height 0s linear 0s,opacity .2s cubic-bezier(.39,.575,.565,1),transform .15s cubic-bezier(.1,1.26,.83,1)}._1qVTgaPdTH08INPOcXB72z ._2WiEnh-1nVnmA2xejNL-jN{justify-content:left;height:45px}._1x0jWzfZZYwAlYcz98019Z{margin:0;padding:0;border-bottom:1px solid #f1f1f1}._3KaLU08cg_uuF1s32FUby1{display:none}@media (min-width:900px){._3KaLU08cg_uuF1s32FUby1{display:flex}._3KaLU08cg_uuF1s32FUby1 ._1bm12lAbQ8gqKEt4fjLrQn{border-right:0;margin-left:10px;margin-right:20px}}._3eW9zhI2KLBjal6xVn4RRz{position:absolute;display:block;font-size:10px;top:21px;right:13px;border-radius:5px;padding:0 4px;line-height:15px;background-color:#ca4a1f;color:#fff}.YTBkhdOlOh4QuqkDDPCMV{padding:20px}.smcJRtvHEzHA4K9EO3_1I{color:#363b3f;position:relative;padding:5px 0 10px 20px;margin-bottom:0}.LxNzl69Yk4tP4pD1P3Mii{opacity:.5;font-size:9px;text-transform:uppercase;margin-bottom:5px}._3yBF8inPK-HTdDK72RfE3A{font-size:14px;font-weight:700;padding:4px 0 0}.EQB2N9a2IBPzgeDYrPMNb{font-size:12px;word-break:break-word}.EQB2N9a2IBPzgeDYrPMNb p{margin:7px 0}.EQB2N9a2IBPzgeDYrPMNb p a{text-decoration:underline;color:#0073aa}.pk0dHrPKaw-XkGQWVdEpD{display:none}._3UbobJswzAbtGhFNIMGtGb{text-align:center;margin:auto 0 0}@-webkit-keyframes _3cma45jhRlCxKjGn7bRO89{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _3cma45jhRlCxKjGn7bRO89{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.BLa__01xPXIkNtm7_TdSt{align-items:center;background:#ffecdb;box-shadow:0 1px 0 rgba(239,133,57,.4);color:#ef8539;padding:15px 20px;margin:-20px -20px 20px;display:flex;justify-content:space-between}._3ZL3iPUjoRL0ucRtkAs9o3{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._3ZL3iPUjoRL0ucRtkAs9o3 strong{color:#4a4a4a}._1-AMIXQBz-cte-N18jzCRX{margin:0 0 20px}._3vKAgI5R6s3k03eyhym7Df{display:flex;align-items:center}._1b1-yc2PV8H2ahj8c4w44R,._1ooAOmdMWCXdBxsuFmiZTL{margin-right:10px}._1OTzvGGb3zrXM-8YtrNQMC{font-style:italic;font-weight:700}@-webkit-keyframes _2gUkB8zVtB4bYRj2wUnpgl{to{transform:rotate(1turn)}}@keyframes _2gUkB8zVtB4bYRj2wUnpgl{to{transform:rotate(1turn)}}._3P2A6ew1J_hOXLzu_mhhoF{-webkit-animation:_2gUkB8zVtB4bYRj2wUnpgl 4s linear infinite;animation:_2gUkB8zVtB4bYRj2wUnpgl 4s linear infinite}@-webkit-keyframes _34GtVyhroSVFfJGkfXkPBN{0%{transform:translateY(0)}20%{transform:translateY(-100%)}50%{transform:translateY(0)}}@keyframes _34GtVyhroSVFfJGkfXkPBN{0%{transform:translateY(0)}20%{transform:translateY(-100%)}50%{transform:translateY(0)}}@-webkit-keyframes sPBhHQ4ITuT-1MaW9Xi6-{0%{opacity:0}to{opacity:1}}@keyframes sPBhHQ4ITuT-1MaW9Xi6-{0%{opacity:0}to{opacity:1}}.w2RTwQaOLn17YZod46h7u{width:130px;height:50px;position:relative;margin:100px auto;-webkit-animation:sPBhHQ4ITuT-1MaW9Xi6- 1s;animation:sPBhHQ4ITuT-1MaW9Xi6- 1s;padding-top:16px}.w2RTwQaOLn17YZod46h7u:before{background-color:#523ee8;-webkit-animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.6s infinite;animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.6s infinite}.w2RTwQaOLn17YZod46h7u:after,.w2RTwQaOLn17YZod46h7u:before{content:"";display:inline-block;width:16px;height:16px;border-radius:50%;margin:0 7px}.w2RTwQaOLn17YZod46h7u:after{background-color:#f73859;-webkit-animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear 0s infinite;animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear 0s infinite}._2-bzJzXs2sFLdVdJIzVXp9:before{background-color:#6d47d9;-webkit-animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.4s infinite;animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.4s infinite}._2-bzJzXs2sFLdVdJIzVXp9:after,._2-bzJzXs2sFLdVdJIzVXp9:before{content:"";display:inline-block;width:16px;height:16px;border-radius:50%;margin:0 7px}._2-bzJzXs2sFLdVdJIzVXp9:after{background-color:#f7bc28;-webkit-animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.2s infinite;animation:_34GtVyhroSVFfJGkfXkPBN 1.1s linear -.2s infinite}@-webkit-keyframes fgbtaCDtcZwMQ6i8kx_7h{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fgbtaCDtcZwMQ6i8kx_7h{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.YCC_eH-Jpwsb9Q6mO0lTY{height:40px;padding:0 30px 0 0;line-height:40px;color:#767676;border-radius:2px;font-size:13px;cursor:pointer;position:relative}.YCC_eH-Jpwsb9Q6mO0lTY:after{content:"\f345";opacity:.7;margin-top:0;font-family:dashicons;position:absolute;right:7px;transform:rotate(0deg);transform-origin:50% 50%;transition:transform .1s ease;font-size:16px}.YCC_eH-Jpwsb9Q6mO0lTY:hover:after{transform:rotate(90deg)}.YCC_eH-Jpwsb9Q6mO0lTY:hover:before{content:"";position:absolute;display:block;left:0;right:0;bottom:-40px;top:100%;background:transparent}.YCC_eH-Jpwsb9Q6mO0lTY:hover .lIzKBHC22tUIXAarE8pxH{display:block}.lIzKBHC22tUIXAarE8pxH{background:#fff;border:1px solid #e0e5e9;border-radius:4px;box-shadow:0 10px 10px rgba(0,0,0,.1);display:none;line-height:30px;min-width:170px;padding:20px;position:absolute;left:-20px;top:130%;white-space:nowrap;z-index:8}.lIzKBHC22tUIXAarE8pxH:after,.lIzKBHC22tUIXAarE8pxH:before{content:"";display:block;position:absolute;bottom:100%;width:0;height:0;border-style:solid}.lIzKBHC22tUIXAarE8pxH:after{left:23px;border-color:transparent transparent #fff;border-width:10px}.lIzKBHC22tUIXAarE8pxH:before{left:23px;border-color:transparent transparent #e2e2e2;border-width:11px}._2K-Pi1nh0u1ynpVVVUGuEd{padding:0 30px}._2lNE8tECbqfbFxRnokrq14{color:#7f7f7f;text-decoration:none;border:0;background:transparent;padding:5px 0;cursor:pointer}._2lNE8tECbqfbFxRnokrq14:hover{color:#4a4a4a}._32agSzLa-PWm5rUc9iOYrN{text-decoration:underline}@-webkit-keyframes _2J9YN8sybBhsSv3bO6Y0dJ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _2J9YN8sybBhsSv3bO6Y0dJ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.flGvCh2JytH3XHesfMiTn{width:100%;height:100px;padding:20px;border-radius:4px;margin:0 auto 40px;background:#fff;display:flex;justify-content:center;align-items:center;box-shadow:0 2px 2px rgba(0,0,0,.1)}._3g-ohUYxC4304dELpbK6nX{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._3g-ohUYxC4304dELpbK6nX strong{color:#4a4a4a}._3HBo7OiY7oAhkUC0DcalC5{width:100%}._3mcQsRTzcMLIo_3aDXmSTW{display:flex;flex-wrap:wrap;margin:0 -1%;width:102%;padding:0;justify-content:space-between}._35oqEpQsw0Iem8sZOMFdPJ{flex:1}@-webkit-keyframes _1i74u9WkgBk4r-PvirUAjp{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _1i74u9WkgBk4r-PvirUAjp{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._29x1IWY7ih-Z_cuhziTX_h{flex:0 1 100%;padding:0 1% 2%;margin:0;min-width:0}@media (min-width:600px) and (max-width:999px){._29x1IWY7ih-Z_cuhziTX_h{flex:0 1 50%}}@media (min-width:1000px){._29x1IWY7ih-Z_cuhziTX_h._38zLz2nXY2NakXStBq7xZr{flex:0 1 20%}._29x1IWY7ih-Z_cuhziTX_h.ojjeLEVFrktXiNkPmioSa{flex:0 1 25%}._29x1IWY7ih-Z_cuhziTX_h._2iDZ0-OZSyg_cinELwspdB{flex:0 1 33.3333333%}._29x1IWY7ih-Z_cuhziTX_h._3ECSpiJkcXOuffVV4FDX4H{flex:0 1 40%}._29x1IWY7ih-Z_cuhziTX_h._1N209ISbx9eXpsnZ8gf_E8{flex:0 1 50%}._29x1IWY7ih-Z_cuhziTX_h.iL7A82T74DNFqR323gSkk{flex:0 1 60%}._29x1IWY7ih-Z_cuhziTX_h._1Z01QZCFXOC4Iptqxmm-wa{flex:0 1 100%}}@-webkit-keyframes GUvXxfZ5AjgA3maasKfZZ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes GUvXxfZ5AjgA3maasKfZZ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._2a4Y69W6c3mML4frSpYOmg{border-radius:4px;height:100%;overflow:visible;position:relative}._2a4Y69W6c3mML4frSpYOmg:hover:before{opacity:.15}._2a4Y69W6c3mML4frSpYOmg:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;opacity:.07;z-index:-1;box-shadow:0 2px 4px #000;transition:opacity .2s linear}._3M7jqxCB1Fqeew3rsDpX1t{height:100%;background:#fff;background-position:50%;background-size:cover;background-repeat:no-repeat;border-radius:4px;display:flex;flex-direction:column;overflow:hidden}._23eXjuy0IdpvkPq97ycwom{position:relative;display:block;width:100%}._30Q8QKN8kALE447Su96N1M{margin-top:auto;padding:13px 20px 10px}.Y-vzaeXp1NOUveSNYrCK{color:#000;font-size:18px;line-height:22px;margin:10px 0 2px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1lfSIqVF-Gj7sxiaXFa6AD{color:#7f7f7f;font-size:14px;line-height:1.8;margin:0 0 13px}._1lfSIqVF-Gj7sxiaXFa6AD strong{color:#4a4a4a}._2Zt_cNkR6xj4U41EeK54Bt{background:#81b441;border-radius:3px;display:inline-block;padding:6px 7px}.IG22ss47WE-9H86QczzcI{position:relative;top:2px}@-webkit-keyframes _1UD--Zviw9FLEUxQOeDuW{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _1UD--Zviw9FLEUxQOeDuW{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._1hLv3Vplzcafex4sThG6ja{width:800px;min-height:200px;height:80vh;display:flex;flex-direction:column;color:#7f7f7f}._1hLv3Vplzcafex4sThG6ja p{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._1hLv3Vplzcafex4sThG6ja p strong{color:#4a4a4a}._3sz0952abrtBvMlC0tNXWY{align-items:center;background-color:#26292c;display:flex;flex-direction:row;padding:7px 13px}.swbP218Njg0YSBx52xzN-{flex:0 0 240px}._18YAF71-_PGUeWbsNymQjh{color:#fff;font-size:15px;margin:auto;text-align:center;padding:10px}._3lkT9iDnpJz683wkZ438oI{display:flex;justify-content:flex-end;flex-direction:row;flex:0 0 240px}._38J4xJEwecKHqwsqOOSmcP{cursor:pointer;color:#919191;border:0;background:transparent;margin-left:12px;padding-right:6px;display:flex}._38J4xJEwecKHqwsqOOSmcP:before{content:"";display:inline-block;border-left:1px solid #a5afb7;color:#fff;margin-right:10px;height:20px;opacity:.3}._1j9z4gjnHlcXa_Seeb8VNw{font-size:24px;height:24px;width:24px;opacity:.7;transition:opacity .2s ease-in-out}._1j9z4gjnHlcXa_Seeb8VNw:hover{opacity:1}.hAz9ojCqfzoD6mHjx49my{overflow-y:auto;padding:30px}._21gITcQFs6-1eXOnewtJIo{width:100%;height:auto}@-webkit-keyframes rS2x6Luy5j8HL3enXHplD{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes rS2x6Luy5j8HL3enXHplD{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._1syGJ-On-p-JGwC6hnuzCN{height:200px;overflow:hidden;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.1);padding-bottom:66%}._1syGJ-On-p-JGwC6hnuzCN:hover ._3crHCTct5CMw3Zp5ijQNRN{opacity:1}._39DJgZVRV5xAn8z88mA-uG{margin:0;padding:0;line-height:0;font-size:0;display:block;width:100%}._3crHCTct5CMw3Zp5ijQNRN{position:absolute;bottom:10px;right:10px;opacity:0;transition:opacity .2s}._1zHW-Dd_M6fbS6Lk35I40I{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._1zHW-Dd_M6fbS6Lk35I40I strong{color:#4a4a4a}.OJk9AW6HhjoXS4r8kOe6a{align-self:center;display:flex}._2AsRtyYmk4u2ra-d2YsjGE{margin-left:auto}@-webkit-keyframes _9hudWSkYQfD6mHTPcIHOZ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _9hudWSkYQfD6mHTPcIHOZ{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._1tM0JQuJNW5GDki987p_ZA:hover ._2KcZsZdCiISn45qXUKMRgV{opacity:1;transition:opacity .4s ease-in-out}._26nQzLECUlZzB9t8hf3ISe{display:block;padding-bottom:66%;overflow:hidden;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.1)}.F1R9OT0JMbCsLNWZkvFh5{position:absolute;width:100%}._2KcZsZdCiISn45qXUKMRgV{opacity:0;margin:0 0 0 auto}@-webkit-keyframes _3dOp6uIisP8nxgn6DNzr7G{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _3dOp6uIisP8nxgn6DNzr7G{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._2vHHKAFgRCtc9rZyL4g6lx{position:relative;padding-bottom:66%;padding-top:136px;height:100%}._8i15mGt9tRuGZfTmoC28_{position:absolute;top:0;left:0;right:0;bottom:0;border:5px dashed rgba(0,0,0,.1);background:transparent;display:flex;align-items:center;flex-direction:column;justify-content:space-evenly}._8i15mGt9tRuGZfTmoC28_:hover{background:#ddd}._1CRwVNeu-DGYq7ZtYnaQQV{display:none}.sDTdiaai1sXMd7gMpzPPx{width:100px;height:100px}.sDTdiaai1sXMd7gMpzPPx:before{background:hsla(0,0%,60%,.1);border-radius:50%;display:inline-block;content:"\f132";-webkit-font-smoothing:antialiased;font:normal 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#999;position:absolute;padding:0;text-shadow:none;z-index:4;text-indent:-4px}._2QEWeBB-Unz4qsVLTW_9g8{font-size:18px}._21RxIKPF66UF3i_0gurks6{margin-left:-20px}._21RxIKPF66UF3i_0gurks6 *{box-sizing:border-box}._21RxIKPF66UF3i_0gurks6 a:active,._21RxIKPF66UF3i_0gurks6 a:focus,._21RxIKPF66UF3i_0gurks6 button:active,._21RxIKPF66UF3i_0gurks6 button:focus,._21RxIKPF66UF3i_0gurks6 form:active,._21RxIKPF66UF3i_0gurks6 form:focus,._21RxIKPF66UF3i_0gurks6 input:active,._21RxIKPF66UF3i_0gurks6 input:focus{box-shadow:none;outline:none}@media screen and (max-width:782px){._21RxIKPF66UF3i_0gurks6{margin-left:-10px}}._1NCoEByT5qnU9-27CT6rhQ{padding:20px}@media screen and (max-width:782px){._1NCoEByT5qnU9-27CT6rhQ{padding:20px}}.toplevel_page_template-kit-import #wpbody-content>*{display:none}.toplevel_page_template-kit-import #wpbody-content>#template-kit-import-app-holder{display:block}@-webkit-keyframes _1kH5mtGfYJQ7INQWvAR_Bg{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _1kH5mtGfYJQ7INQWvAR_Bg{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._2-WTW-ONNDbBCZWx2E-iYf{width:1200px;max-width:90vw;min-height:200px;height:80vh;display:flex;flex-direction:column;color:#7f7f7f}._2-WTW-ONNDbBCZWx2E-iYf p{color:#7f7f7f;font-size:14px;line-height:1.8;margin:20px 0}._2-WTW-ONNDbBCZWx2E-iYf p strong{color:#4a4a4a}._25Lej_JkIhFX7HlXWkTUWY{align-items:center;background-color:#26292c;display:flex;flex-direction:row;padding:7px 13px}._3tiNOk61Dfy5TC8zxV8FJC{flex:0 0 240px}._1nzno2ylybbG--bLj3_vIA{color:#fff;display:flex;font-size:15px;margin:auto;text-align:center}._7yUfTOIDWGezhu5HtUwvH{display:flex;justify-content:flex-end;flex-direction:row;flex:0 0 240px}._29IB-UjZnCrhG5pH60uAQI{cursor:pointer;color:#919191;border:0;background:transparent;margin-left:12px;padding-right:6px;display:flex}._29IB-UjZnCrhG5pH60uAQI:before{content:"";display:inline-block;border-left:1px solid #a5afb7;color:#fff;margin-right:10px;height:20px;opacity:.3}._2R7nr7DH9EW42LxE_rbVIT{font-size:24px;height:24px;width:24px;opacity:.7;transition:opacity .2s ease-in-out}._2R7nr7DH9EW42LxE_rbVIT:hover{opacity:1}.RvNK3VwNt4oHQU8jY-Mfn{margin:auto 0;height:100%;padding:20px}
assets/main.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=60)}([function(e,t,n){"use strict";e.exports=n(40)},function(e,t,n){e.exports=n(45)()},function(e,t,n){e.exports={wrapper:"BLa__01xPXIkNtm7_TdSt",notice:"_3ZL3iPUjoRL0ucRtkAs9o3",requirements:"_1-AMIXQBz-cte-N18jzCRX",requirement:"_3vKAgI5R6s3k03eyhym7Df",checkbox:"_1ooAOmdMWCXdBxsuFmiZTL",text:"_1b1-yc2PV8H2ahj8c4w44R",status:"_1OTzvGGb3zrXM-8YtrNQMC",installingIcon:"_3P2A6ew1J_hOXLzu_mhhoF",iconSpin:"_2gUkB8zVtB4bYRj2wUnpgl","icon-spin":"_3cma45jhRlCxKjGn7bRO89"}},function(e,t,n){e.exports={wrapper:"_1iip-LV7Xv9ykAosgM5NuM",logo:"_3ATGzAjLOmwSzucmY-YngZ",logoLink:"_3f2NedzSbwOx_JjYr8nDQA",menu:"g4RTLFxxQQsdiP_q8ZEoR",menuInner:"_1MEPMh6aEquzp_JZjrouzU",menuItem:"_1bm12lAbQ8gqKEt4fjLrQn",menuLink:"_2WiEnh-1nVnmA2xejNL-jN",menuItemHasChild:"_3_Y7KIkNPB0VGaikLZPLXr",subNavWrap:"_1qVTgaPdTH08INPOcXB72z",subNavWrapNotifications:"_1zR1wFdZwIcQuLgx4F-tr5",menuLinkActive:"Qvwt8B1yoF-HW_ej6t8Vh",menuLinkNew:"PcQk9lTsWaOSq1mj45FBN",subNavItem:"_1x0jWzfZZYwAlYcz98019Z",menuRight:"_3KaLU08cg_uuF1s32FUby1",menuCountLabel:"_3eW9zhI2KLBjal6xVn4RRz",dropDownInner:"YTBkhdOlOh4QuqkDDPCMV",notification:"smcJRtvHEzHA4K9EO3_1I",date:"LxNzl69Yk4tP4pD1P3Mii",title:"_3yBF8inPK-HTdDK72RfE3A",content:"EQB2N9a2IBPzgeDYrPMNb"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(44),o=(r=a)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},function(e,t,n){e.exports={currentKit:"YCC_eH-Jpwsb9Q6mO0lTY",optionKitWrapper:"lIzKBHC22tUIXAarE8pxH",optionKit:"_2K-Pi1nh0u1ynpVVVUGuEd",optionKitLink:"_2lNE8tECbqfbFxRnokrq14",optionKitLinkCurrent:"_32agSzLa-PWm5rUc9iOYrN","icon-spin":"fgbtaCDtcZwMQ6i8kx_7h"}},function(e,t,n){e.exports={item:"_29x1IWY7ih-Z_cuhziTX_h",widthTwenty:"_38zLz2nXY2NakXStBq7xZr",widthTwentyFive:"ojjeLEVFrktXiNkPmioSa",widthThirtyThree:"_2iDZ0-OZSyg_cinELwspdB",widthFourty:"_3ECSpiJkcXOuffVV4FDX4H",widthFifty:"_1N209ISbx9eXpsnZ8gf_E8",widthSixty:"iL7A82T74DNFqR323gSkk",widthFull:"_1Z01QZCFXOC4Iptqxmm-wa","icon-spin":"_1i74u9WkgBk4r-PvirUAjp"}},function(e,t,n){e.exports={modalInner:"_2-WTW-ONNDbBCZWx2E-iYf",modalHeader:"_25Lej_JkIhFX7HlXWkTUWY",modalLogo:"_3tiNOk61Dfy5TC8zxV8FJC",headerNav:"_1nzno2ylybbG--bLj3_vIA",headerActions:"_7yUfTOIDWGezhu5HtUwvH",closeButton:"_29IB-UjZnCrhG5pH60uAQI",dismissIcon:"_2R7nr7DH9EW42LxE_rbVIT",magicModalInner:"RvNK3VwNt4oHQU8jY-Mfn","icon-spin":"_1kH5mtGfYJQ7INQWvAR_Bg"}},function(e,t,n){e.exports={debugWrapper:"_1MRHp_f9iNB0Jtz-kf4sqO",debugInformation:"MoygnBjVJavv8uBOGELlf",debugText:"_5M2DaeazCko44PvOq4fkS",copy:"wlk5Cjgf9mEmY8nX8Otdg","icon-spin":"_2SZG3SVrcR_I2zhew5WVhr"}},function(e,t,n){e.exports={modalInner:"_1hLv3Vplzcafex4sThG6ja",modalHeader:"_3sz0952abrtBvMlC0tNXWY",modalLogo:"swbP218Njg0YSBx52xzN-",headerTitle:"_18YAF71-_PGUeWbsNymQjh",headerActions:"_3lkT9iDnpJz683wkZ438oI",closeButton:"_38J4xJEwecKHqwsqOOSmcP",dismissIcon:"_1j9z4gjnHlcXa_Seeb8VNw","icon-spin":"_1UD--Zviw9FLEUxQOeDuW"}},function(e,t,n){e.exports={wrapper:"_2a4Y69W6c3mML4frSpYOmg",inner:"_3M7jqxCB1Fqeew3rsDpX1t",images:"_23eXjuy0IdpvkPq97ycwom",meta:"_30Q8QKN8kALE447Su96N1M",cardTitle:"Y-vzaeXp1NOUveSNYrCK",cardDescription:"_1lfSIqVF-Gj7sxiaXFa6AD","icon-spin":"GUvXxfZ5AjgA3maasKfZZ"}},function(e,t,n){e.exports={uploadCard:"_2vHHKAFgRCtc9rZyL4g6lx",uploadCardButton:"_8i15mGt9tRuGZfTmoC28_",formInput:"_1CRwVNeu-DGYq7ZtYnaQQV",icon:"sDTdiaai1sXMd7gMpzPPx",message:"_2QEWeBB-Unz4qsVLTW_9g8","icon-spin":"_3dOp6uIisP8nxgn6DNzr7G"}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(41)},function(e,t,n){e.exports={button:"_2Be0Bw4xUsveTYiur3RrKz",ghost:"oE7H1W1AK6I1RGMmPCizU",primary:"_27o464fKNdOE0zlT86WLYI",secondary:"_2usE8M0Nrup6TXbA9tXIKP",warning:"_18ctAe9xome7MXxtRBAQoB",attention:"_21iKyeS6-PWKrJ8f_wrLmN","icon-spin":"_2OzW5Q4M_GlxS0rApsiye2"}},function(e,t,n){e.exports={imageWrapper:"_1syGJ-On-p-JGwC6hnuzCN",expandButton:"_3crHCTct5CMw3Zp5ijQNRN",image:"_39DJgZVRV5xAn8z88mA-uG",unmetRequirementsMessage:"_1zHW-Dd_M6fbS6Lk35I40I","icon-spin":"rS2x6Luy5j8HL3enXHplD"}},function(e,t,n){e.exports={itemCard:"_1tM0JQuJNW5GDki987p_ZA",itemDelete:"_2KcZsZdCiISn45qXUKMRgV",itemImageLink:"_26nQzLECUlZzB9t8hf3ISe",itemImage:"F1R9OT0JMbCsLNWZkvFh5","icon-spin":"_9hudWSkYQfD6mHTPcIHOZ"}},function(e,t,n){e.exports={modalInner:"_3wneDPyPdcKZxFsyZS1uEb",closeButton:"VtSuT3wmK4xwwtaJiZXoH",dismissIcon:"_2bWF1DgEyIFZDL_rq1B6IZ","icon-spin":"awBQV-fm_slwwetLVPLAJ"}},function(e,t,n){e.exports={wrapper:"_13e6P0GohbDRkmHTroG_S7",title:"_7itzF6XYog1bxkCKdFhMe",subtitle:"rGSE9GJtpKE5PnTMDw_Oq","icon-spin":"_6pqeA098THDiDBxyecgug"}},function(e,t,n){e.exports={icon:"_2Hh1HrGBusC0Nmoy5qAW21",iconWithLabel:"_3oEmViP6o5wDeSfwFlQbnh",iconSpinning:"_1RFvnV1ArPcXcuqxqVWYS-",iconSpin:"_12_U-KlguERdm4WaWQybRv"}},function(e,t,n){e.exports={wrapper:"_3HBo7OiY7oAhkUC0DcalC5",inner:"_3mcQsRTzcMLIo_3aDXmSTW",cardSpacing:"_35oqEpQsw0Iem8sZOMFdPJ"}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r,a=n(51);var o=((r=a)&&r.__esModule?r:{default:r}).default,i=o.canUseDOM?window.HTMLElement:{};t.canUseDOM=o.canUseDOM;t.default=i},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){var r=n(56);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return l(o(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=d;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,i=0,l="",s=t&&t.delimiter||"/";null!=(n=a.exec(e));){var f=n[0],d=n[1],p=n.index;if(l+=e.slice(i,p),i=p+f.length,d)l+=d[1];else{var m=e[i],h=n[2],y=n[3],v=n[4],g=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var E=null!=h&&null!=m&&m!==h,k="+"===b||"*"===b,x="?"===b||"*"===b,S=n[2]||s,C=v||g;r.push({name:y||o++,prefix:h||"",delimiter:S,optional:x,repeat:k,partial:E,asterisk:!!w,pattern:C?c(C):w?".*":"[^"+u(S)+"]+?"})}}return i<e.length&&(l+=e.substr(i)),l&&r.push(l),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",f(t)));return function(t,a){for(var o="",l=t||{},u=(a||{}).pretty?i:encodeURIComponent,c=0;c<e.length;c++){var s=e[c];if("string"!=typeof s){var f,d=l[s.name];if(null==d){if(s.optional){s.partial&&(o+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(r(d)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[c].test(f))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===p?s.prefix:s.delimiter)+f}}else{if(f=s.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[c].test(f))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+f+'"');o+=s.prefix+f}}else o+=s}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function s(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,i="",l=0;l<e.length;l++){var c=e[l];if("string"==typeof c)i+=u(c);else{var d=u(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+d+p+")*"),i+=p=c.optional?c.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var m=u(n.delimiter||"/"),h=i.slice(-m.length)===m;return a||(i=(h?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=o?"$":a&&h?"":"(?="+m+"|$)",s(new RegExp("^"+i,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return s(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(p(e[a],t,n).source);return s(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(o(e,n),t,n)}(e,t,n)}},function(e,t,n){e.exports={wrap:"w2RTwQaOLn17YZod46h7u",fadein:"sPBhHQ4ITuT-1MaW9Xi6-",bounceDot:"_34GtVyhroSVFfJGkfXkPBN",inner:"_2-bzJzXs2sFLdVdJIzVXp9"}},function(e,t,n){e.exports={message:"flGvCh2JytH3XHesfMiTn",copy:"_3g-ohUYxC4304dELpbK6nX","icon-spin":"_2J9YN8sybBhsSv3bO6Y0dJ"}},function(e,t,n){e.exports={svgWrapper:"_2Zt_cNkR6xj4U41EeK54Bt",svgEnvatoLogo:"IG22ss47WE-9H86QczzcI"}},function(e,t,n){e.exports={headerWrapper:"OJk9AW6HhjoXS4r8kOe6a",deleteKitWrapper:"_2AsRtyYmk4u2ra-d2YsjGE"}},function(e,t,n){e.exports={wrapper:"_21RxIKPF66UF3i_0gurks6",container:"_1NCoEByT5qnU9-27CT6rhQ"}},function(e,t,n){"use strict";
2
  /*
3
  object-assign
4
  (c) Sindre Sorhus
@@ -52,4 +52,4 @@ var r=/input|select|textarea|button|object/;function a(e){var t=e.offsetWidth<=0
52
  *
53
  * This source code is licensed under the MIT license found in the
54
  * LICENSE file in the root directory of this source tree.
55
- */var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case f:case d:case i:case u:case l:case m:return e;default:switch(e=e&&e.$$typeof){case s:case p:case v:case y:case c:return e;default:return t}}case o:return t}}}function x(e){return k(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=c,t.Element=a,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=y,t.Portal=o,t.Profiler=u,t.StrictMode=l,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||k(e)===f},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===s},t.isContextProvider=function(e){return k(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===i},t.isLazy=function(e){return k(e)===v},t.isMemo=function(e){return k(e)===y},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===u},t.isStrictMode=function(e){return k(e)===l},t.isSuspense=function(e){return k(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===u||e===l||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===c||e.$$typeof===s||e.$$typeof===p||e.$$typeof===b||e.$$typeof===w||e.$$typeof===E||e.$$typeof===g)},t.typeOf=k},,,function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),o=n(12),i=n.n(o);function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=n(1),c=n.n(u);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e){return"/"===e.charAt(0)}function d(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}var p=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],o=e&&f(e),i=t&&f(t),l=o||i;if(e&&f(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var c=0,s=a.length;s>=0;s--){var p=a[s];"."===p?d(a,s):".."===p?(d(a,s),c++):c&&(d(a,s),c--)}if(!l)for(;c--;c)a.unshift("..");!l||""===a[0]||a[0]&&f(a[0])||a.unshift("");var m=a.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function m(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var h=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=m(t),a=m(n);return r!==t||a!==n?e(r,a):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var y=function(e,t){if(!e)throw new Error("Invariant failed")};function v(e){return"/"===e.charAt(0)?e:"/"+e}function g(e){return"/"===e.charAt(0)?e.substr(1):e}function b(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function w(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function E(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function k(e,t,n,r){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(a=s({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),r?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=p(a.pathname,r.pathname)):a.pathname=r.pathname:a.pathname||(a.pathname="/"),a}function x(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var S=!("undefined"==typeof window||!window.document||!window.document.createElement);function C(e,t){t(window.confirm(e))}function T(){try{return window.history.state||{}}catch(e){return{}}}function O(e){void 0===e&&(e={}),S||y(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,i=o.forceRefresh,l=void 0!==i&&i,u=o.getUserConfirmation,c=void 0===u?C:u,f=o.keyLength,d=void 0===f?6:f,p=e.basename?w(v(e.basename)):"";function m(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return p&&(o=b(o,p)),k(o,r,n)}function h(){return Math.random().toString(36).substr(2,d)}var g=x();function O(e){s(z,e),z.length=n.length,g.notifyListeners(z.location,z.action)}function _(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(m(e.state))}function P(){I(m(T()))}var N=!1;function I(e){if(N)N=!1,O();else{g.confirmTransitionTo(e,"POP",c,(function(t){t?O({action:"POP",location:e}):function(e){var t=z.location,n=A.indexOf(t.key);-1===n&&(n=0);var r=A.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(N=!0,R(a))}(e)}))}}var j=m(T()),A=[j.key];function M(e){return p+E(e)}function R(e){n.go(e)}var F=0;function D(e){1===(F+=e)&&1===e?(window.addEventListener("popstate",_),a&&window.addEventListener("hashchange",P)):0===F&&(window.removeEventListener("popstate",_),a&&window.removeEventListener("hashchange",P))}var L=!1;var z={length:n.length,action:"POP",location:j,createHref:M,push:function(e,t){var a=k(e,t,h(),z.location);g.confirmTransitionTo(a,"PUSH",c,(function(e){if(e){var t=M(a),o=a.key,i=a.state;if(r)if(n.pushState({key:o,state:i},null,t),l)window.location.href=t;else{var u=A.indexOf(z.location.key),c=A.slice(0,u+1);c.push(a.key),A=c,O({action:"PUSH",location:a})}else window.location.href=t}}))},replace:function(e,t){var a=k(e,t,h(),z.location);g.confirmTransitionTo(a,"REPLACE",c,(function(e){if(e){var t=M(a),o=a.key,i=a.state;if(r)if(n.replaceState({key:o,state:i},null,t),l)window.location.replace(t);else{var u=A.indexOf(z.location.key);-1!==u&&(A[u]=a.key),O({action:"REPLACE",location:a})}else window.location.replace(t)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=g.setPrompt(e);return L||(D(1),L=!0),function(){return L&&(L=!1,D(-1)),t()}},listen:function(e){var t=g.appendListener(e);return D(1),function(){D(-1),t()}}};return z}var _={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+g(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:g,decodePath:v},slash:{encodePath:v,decodePath:v}};function P(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function N(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function I(e){window.location.replace(P(window.location.href)+"#"+e)}function j(e){void 0===e&&(e={}),S||y(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,a=void 0===r?C:r,o=n.hashType,i=void 0===o?"slash":o,l=e.basename?w(v(e.basename)):"",u=_[i],c=u.encodePath,f=u.decodePath;function d(){var e=f(N());return l&&(e=b(e,l)),k(e)}var p=x();function m(e){s(z,e),z.length=t.length,p.notifyListeners(z.location,z.action)}var h=!1,g=null;function T(){var e,t,n=N(),r=c(n);if(n!==r)I(r);else{var o=d(),i=z.location;if(!h&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(g===E(o))return;g=null,function(e){if(h)h=!1,m();else{p.confirmTransitionTo(e,"POP",a,(function(t){t?m({action:"POP",location:e}):function(e){var t=z.location,n=M.lastIndexOf(E(t));-1===n&&(n=0);var r=M.lastIndexOf(E(e));-1===r&&(r=0);var a=n-r;a&&(h=!0,R(a))}(e)}))}}(o)}}var O=N(),j=c(O);O!==j&&I(j);var A=d(),M=[E(A)];function R(e){t.go(e)}var F=0;function D(e){1===(F+=e)&&1===e?window.addEventListener("hashchange",T):0===F&&window.removeEventListener("hashchange",T)}var L=!1;var z={length:t.length,action:"POP",location:A,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=P(window.location.href)),n+"#"+c(l+E(e))},push:function(e,t){var n=k(e,void 0,void 0,z.location);p.confirmTransitionTo(n,"PUSH",a,(function(e){if(e){var t=E(n),r=c(l+t);if(N()!==r){g=t,function(e){window.location.hash=e}(r);var a=M.lastIndexOf(E(z.location)),o=M.slice(0,a+1);o.push(t),M=o,m({action:"PUSH",location:n})}else m()}}))},replace:function(e,t){var n=k(e,void 0,void 0,z.location);p.confirmTransitionTo(n,"REPLACE",a,(function(e){if(e){var t=E(n),r=c(l+t);N()!==r&&(g=t,I(r));var a=M.indexOf(E(z.location));-1!==a&&(M[a]=t),m({action:"REPLACE",location:n})}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return L||(D(1),L=!0),function(){return L&&(L=!1,D(-1)),t()}},listen:function(e){var t=p.appendListener(e);return D(1),function(){D(-1),t()}}};return z}function A(e,t,n){return Math.min(Math.max(e,t),n)}function M(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,a=void 0===r?["/"]:r,o=t.initialIndex,i=void 0===o?0:o,l=t.keyLength,u=void 0===l?6:l,c=x();function f(e){s(v,e),v.length=v.entries.length,c.notifyListeners(v.location,v.action)}function d(){return Math.random().toString(36).substr(2,u)}var p=A(i,0,a.length-1),m=a.map((function(e){return k(e,void 0,"string"==typeof e?d():e.key||d())})),h=E;function y(e){var t=A(v.index+e,0,v.entries.length-1),r=v.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var v={length:m.length,action:"POP",location:m[p],index:p,entries:m,createHref:h,push:function(e,t){var r=k(e,t,d(),v.location);c.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=v.index+1,n=v.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=k(e,t,d(),v.location);c.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(v.entries[v.index]=r,f({action:"REPLACE",location:r}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=v.index+e;return t>=0&&t<v.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return v}var R=n(22),F=n.n(R),D=n(34),L=n.n(D);function z(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var U=a.a.createContext||function(e,t){var n,a,o="__create-react-context-"+L()()+"__",i=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=z(t.props.value),t}F()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(i=a)?0!==o||1/o==1/i:o!=o&&i!=i)?n=0:(n="function"==typeof t?t(r,a):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,i},r.render=function(){return this.props.children},n}(r.Component);i.childContextTypes=((n={})[o]=c.a.object.isRequired,n);var l=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}F()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return l.contextTypes=((a={})[o]=c.a.object,a),{Provider:i,Consumer:l}},B=n(23),W=n.n(B);n(33);function K(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var H=n(35),V=n.n(H),q=function(e){var t=U();return t.displayName=e,t}("Router"),$=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}l(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return a.a.createElement(q.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(a.a.Component);var Q=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=M(t.props),t}return l(t,e),t.prototype.render=function(){return a.a.createElement($,{history:this.history,children:this.props.children})},t}(a.a.Component);var Y=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.a.Component);var X={},Z=0;function G(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(X[e])return X[e];var t=W.a.compile(e);return Z<1e4&&(X[e]=t,Z++),t}(e)(t,{pretty:!0})}function J(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a.a.createElement(q.Consumer,null,(function(e){e||y(!1);var r=e.history,i=e.staticContext,l=o?r.push:r.replace,u=k(t?"string"==typeof n?G(n,t.params):s({},n,{pathname:G(n.pathname,t.params)}):n);return i?(l(u),null):a.a.createElement(Y,{onMount:function(){l(u)},onUpdate:function(e,t){var n,r,a=k(t.to);n=a,r=s({},u,{key:a.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&h(n.state,r.state)||l(u)},to:n})}))}var ee={},te=0;function ne(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,i=n.strict,l=void 0!==i&&i,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=ee[n]||(ee[n]={});if(r[e])return r[e];var a=[],o={regexp:W()(e,a,t),keys:a};return te<1e4&&(r[e]=o,te++),o}(n,{end:o,strict:l,sensitive:c}),a=r.regexp,i=r.keys,u=a.exec(e);if(!u)return null;var s=u[0],f=u.slice(1),d=e===s;return o&&!d?null:{path:n,url:"/"===n&&""===s?"/":s,isExact:d,params:i.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var re=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(q.Consumer,null,(function(t){t||y(!1);var n=e.props.location||t.location,r=s({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?ne(n.pathname,e.props):t.match}),o=e.props,i=o.children,l=o.component,u=o.render;return Array.isArray(i)&&0===i.length&&(i=null),a.a.createElement(q.Provider,{value:r},r.match?i?"function"==typeof i?i(r):i:l?a.a.createElement(l,r):u?u(r):null:"function"==typeof i?i(r):null)}))},t}(a.a.Component);function ae(e){return"/"===e.charAt(0)?e:"/"+e}function oe(e,t){if(!e)return t;var n=ae(e);return 0!==t.pathname.indexOf(n)?t:s({},t,{pathname:t.pathname.substr(n.length)})}function ie(e){return"string"==typeof e?e:E(e)}function le(e){return function(){y(!1)}}function ue(){}a.a.Component;var ce=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(q.Consumer,null,(function(t){t||y(!1);var n,r,o=e.props.location||t.location;return a.a.Children.forEach(e.props.children,(function(e){if(null==r&&a.a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?ne(o.pathname,s({},e.props,{path:i})):t.match}})),r?a.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.a.Component);function se(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=K(t,["wrappedComponentRef"]);return a.a.createElement(q.Consumer,null,(function(t){return t||y(!1),a.a.createElement(e,s({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,V()(n,e)}var fe=a.a.useContext;function de(e){return e?ne(fe(q).location.pathname,e):fe(q).match}a.a.Component;var pe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=j(t.props),t}return l(t,e),t.prototype.render=function(){return a.a.createElement($,{history:this.history,children:this.props.children})},t}(a.a.Component);var me=function(e,t){return"function"==typeof e?e(t):e},he=function(e,t){return"string"==typeof e?k(e,null,null,t):e},ye=function(e){return e},ve=a.a.forwardRef;void 0===ve&&(ve=ye);var ge=ve((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=K(e,["innerRef","navigate","onClick"]),l=i.target,u=s({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=ye!==ve&&t||n,a.a.createElement("a",u)}));var be=ve((function(e,t){var n=e.component,r=void 0===n?ge:n,o=e.replace,i=e.to,l=e.innerRef,u=K(e,["component","replace","to","innerRef"]);return a.a.createElement(q.Consumer,null,(function(e){e||y(!1);var n=e.history,c=he(me(i,e.location),e.location),f=c?n.createHref(c):"",d=s({},u,{href:f,navigate:function(){var t=me(i,e.location);(o?n.replace:n.push)(t)}});return ye!==ve?d.ref=t||l:d.innerRef=l,a.a.createElement(r,d)}))})),we=function(e){return e},Ee=a.a.forwardRef;void 0===Ee&&(Ee=we);Ee((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,i=void 0===o?"active":o,l=e.activeStyle,u=e.className,c=e.exact,f=e.isActive,d=e.location,p=e.strict,m=e.style,h=e.to,v=e.innerRef,g=K(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return a.a.createElement(q.Consumer,null,(function(e){e||y(!1);var n=d||e.location,o=he(me(h,n),n),b=o.pathname,w=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=w?ne(n.pathname,{path:w,exact:c,strict:p}):null,k=!!(f?f(E,n):E),x=k?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(u,i):u,S=k?s({},m,{},l):m,C=s({"aria-current":k&&r||null,className:x,style:S,to:o},g);return we!==Ee?C.ref=t||v:C.innerRef=v,a.a.createElement(be,C)}))}));function ke(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Se(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||Se(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Te=a.a.createContext({errors:[],addError:function(){},removeError:function(){}});function Oe(e){var t=e.children,n=xe(Object(r.useState)([]),2),o=n[0],i=n[1],l={errors:o,addError:Object(r.useCallback)((function(e,t,n){return function(e,t,n){i((function(r){return[].concat(ke(r),[{code:e,message:t,debug:n}])}))}(e,t,n)}),[]),removeError:Object(r.useCallback)((function(e){return t=e,void i((function(e){return e.filter((function(e){return e!==t}))}));var t}),[])};return a.a.createElement(Te.Provider,{value:l},t)}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return je(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ae=a.a.createContext({globalConfig:{},setConfigValue:function(){}});function Me(e){var t=e.children,n=e.config,o=void 0===n?{}:n,i=Ie(Object(r.useState)(Object.keys(o).length>0?o:window.template_kit_import),2),l=i[0],u=i[1],c={globalConfig:l,setConfigValue:Object(r.useCallback)((function(e,t){return function(e,t){u((function(n){return Pe(Pe({},n),{},Ne({},e,t))}))}(e,t)}),[])};return a.a.createElement(Ae.Provider,{value:c},t)}var Re=function(){var e=Object(r.useContext)(Te);return{errors:e.errors,addError:e.addError,removeError:e.removeError}},Fe=n(4),De=n.n(Fe),Le=n(16),ze=n.n(Le);function Ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Be(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var We={overlay:{backgroundColor:"rgba(32, 32, 32, 0.81)",zIndex:199999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",padding:"40px",borderRadius:"10px"}},Ke=function(e){var t=e.isOpen,n=e.onCloseCallback,o=void 0===n?null:n,i=e.children,l=Ue(a.a.useState(!1),2),u=l[0],c=l[1],s=function(){c(!1),o&&o()};return Object(r.useEffect)((function(){t&&c(!0)}),[t]),Object(r.useEffect)((function(){"undefined"!=typeof window&&window.templateKitImport&&window.templateKitImport.modalAppHolder&&De.a.setAppElement(window.templateKitImport.modalAppHolder)})),a.a.createElement(De.a,{isOpen:u,onRequestClose:s,style:We,contentLabel:"Envato Elements","data-testid":"modal-wrapper"},a.a.createElement("div",{className:ze.a.modalInner},a.a.createElement("button",{onClick:s,"data-testid":"modal-close-button",className:ze.a.closeButton},a.a.createElement("span",{className:"dashicons dashicons-no-alt ".concat(ze.a.dismissIcon)})),"function"==typeof i?i({closeModal:s}):i))},He=n(17),Ve=n.n(He),qe=function(e){var t=e.title,n=e.subtitle;return a.a.createElement("div",{className:Ve.a.wrapper},a.a.createElement("h1",{className:Ve.a.title},t),n?a.a.createElement("p",{className:Ve.a.subtitle},n):null)},$e=n(8),Qe=n.n($e),Ye=n(18),Xe=n.n(Ye),Ze=function(e){var t=e.label,n=e.icon,r=["dashicons",Ge[n],Xe.a.icon];return t&&r.push(Xe.a.iconWithLabel),a.a.createElement(a.a.Fragment,null,n?a.a.createElement("span",{className:r.join(" ")}):null,t)},Ge={arrow:"dashicons-arrow-right-alt2",tick:"dashicons-yes",info:"dashicons-info",eye:"dashicons-visibility",cross:"dashicons-dismiss",update:"dashicons-update",updateSpinning:"dashicons-update ".concat(Xe.a.iconSpinning),link:"dashicons-external",plus:"dashicons-plus-alt",trash:"dashicons-trash",download:"dashicons-download",expand:"dashicons-editor-expand"};Ze.propTypes={label:c.a.string,icon:c.a.oneOf(Object.keys(Ge))},Ze.defaultProps={label:null,icon:null};var Je=Ze,et=n(13),tt=n.n(et);function nt(){return(nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function rt(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var at=function(e){var t=e.type,n=e.dataTestId,r=e.element,o=e.children,i=rt(e,["type","dataTestId","element","children"]);return"button"===r?a.a.createElement("button",nt({className:tt.a[t],"data-testid":n},i),o):"Link"===r?a.a.createElement(be,nt({className:tt.a[t],"data-testid":n},i),o):"a"===r?a.a.createElement("a",nt({className:tt.a[t],"data-testid":n},i),o):"label"===r?a.a.createElement("label",nt({className:tt.a[t],"data-testid":n},i),o):void 0};at.propTypes={type:c.a.oneOf(["ghost","primary","secondary","warning","attention"]),dataTestId:c.a.string,element:c.a.oneOf(["button","a","Link","label"]).isRequired,children:c.a.node},at.defaultProps={type:"ghost",dataTestId:null,children:null};var ot=at,it=function(e){var t=e.type,n=e.label,r=e.icon,o=e.onClick,i=e.disabled,l=e.dataTestId;return a.a.createElement(ot,{element:"button",type:t,onClick:o,disabled:i,dataTestId:l},a.a.createElement(Je,{label:n,icon:r}))};it.propTypes={type:c.a.string,label:c.a.string,icon:c.a.string,onClick:c.a.func,disabled:c.a.bool,dataTestId:c.a.string},it.defaultProps={type:"ghost",label:null,icon:null,onClick:null,disabled:!1,dataTestId:null};var lt=it,ut=n(36),ct=n.n(ut),st=function(e){var t=e.children;return a.a.createElement("div",{className:ct.a.wrapper},t)};function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mt=function(e){var t=e.error,n=dt(Object(r.useState)(!1),2),o=n[0],i=n[1];return a.a.createElement("div",{className:Qe.a.debugWrapper},t.debug&&o?a.a.createElement("div",{className:Qe.a.debugInformation},a.a.createElement("textarea",{className:Qe.a.debugText,onClick:function(e){e.target.focus(),e.target.select()},defaultValue:"object"===ft(t.debug)?JSON.stringify(t.debug,null,"\t"):t.debug})):null,a.a.createElement("div",{className:Qe.a.debugActions},a.a.createElement(st,null,a.a.createElement(lt,{icon:"update",label:"Refresh Page",onClick:function(e){return e.preventDefault(),window.location.reload(),!1}}),t.debug?a.a.createElement(lt,{icon:"eye",label:o?"Hide Debug Details":"Show Debug Details",className:Qe.a.buttonDebug,onClick:function(){i(!o)}}):null),"If this error continues please contact ",a.a.createElement("a",{href:"mailto:extensions@envato.com"},"extensions@envato.com"),"."))},ht=function(){var e=Re(),t=e.errors,n=e.removeError;return t.length>0?a.a.createElement(a.a.Fragment,null,t.map((function(e){return"zip_failure"===e.code?a.a.createElement(Ke,{key:e.code,isOpen:!0,onCloseCallback:function(){n(e)}},a.a.createElement(qe,{title:"Template Kit Install Error"}),a.a.createElement("p",{className:Qe.a.copy},"There was an issue installing this template kit. Please try again."),e.message,a.a.createElement(mt,{error:e})):"generic_api_error"===e.code?a.a.createElement(Ke,{key:e.code,isOpen:!0,onCloseCallback:function(){n(e)}},a.a.createElement(qe,{title:"Unexpected Error"}),a.a.createElement("p",{className:Qe.a.copy},"Sorry there was an unexpected error from API call:"),e.message,a.a.createElement(mt,{error:e})):void 0}))):null},yt=n(3),vt=n.n(yt),gt=n(37),bt=n.n(gt);function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt=function(){var e=Object(r.useContext)(Ae),t=e.globalConfig,n=e.setConfigValue,a=function(e,r){var a=t[e]||[];n(e,Et(Et({},a),r))};return{getDownloadedItemId:function(e){return t.downloaded_items?t.downloaded_items[e]:null},addDownloadedItem:function(e){var t=e.humaneId,n=e.importedId;a("downloaded_items",kt({},t,n))},removeDownloadedItem:function(e){var n=e.importedId;Object.keys(t.downloaded_items).map((function(e){t.downloaded_items[e]===n&&delete t.downloaded_items[e]}))},subscriptionStatus:t.subscription_status,setSubscriptionStatus:function(e){n("subscription_status",e)},bannerHasBeenDismissed:function(e){a("dismissed_banners",kt({},e,!0))},isBannerDismissed:function(e){return t.dismissed_banners?t.dismissed_banners[e]:null},getConfigProjectName:function(){return t.project_name},setConfigProjectName:function(e){n("project_name",e)},getMagicButtonMode:function(){return t.magicButtonMode},setMagicButtonMode:function(e){n("magicButtonMode",e)},getElementsTokenUrl:function(){return t.elements_token_url},getApiUrl:function(){return t.api_url},getApiNonce:function(){return t.api_nonce},getReviewMode:function(){return t.review_mode}}};function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){Tt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ot(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}function _t(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Ot(o,r,a,i,l,"next",e)}function l(e){Ot(o,r,a,i,l,"throw",e)}i(void 0)}))}}function Pt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var It=function(e){var t=e.endpoint,n=e.args,a=void 0===n?{}:n,o=e.allowLongRunning,i=void 0!==o&&o,l=xt(),u=l.getApiUrl,c=l.getApiNonce,s=Pt(Object(r.useState)({loading:!0,data:null,error:null}),2),f=s[0],d=s[1],p=Re().addError,m=t+JSON.stringify(a);return Object(r.useEffect)((function(){var e=new AbortController,n=e.signal;function r(){return(r=_t(regeneratorRuntime.mark((function e(){var r,o,i,l,s,f,m,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(l in d((function(e){return{loading:!0,error:null,data:e.data}})),r=u()+t,o=Ct(Ct({},a),{},{_wpnonce:c()}),i=new FormData,o)i.append(l,o[l]);return s=null,e.prev=6,e.next=9,fetch(r,{method:"post",body:i,signal:n});case 9:return f=e.sent,e.next=12,f.clone().text();case 12:return s=e.sent,e.next=15,f.json();case 15:if(m=e.sent,f.ok){e.next=20;break}return m&&m.error&&m.error.code&&p(m.error.code,m.error.message,m),d({loading:!1,error:!0,data:m}),e.abrupt("return");case 20:d({loading:!1,error:null,data:m}),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(6),"AbortError"!==e.t0.name&&(h="".concat(e.t0,". ").concat(s?s.slice(0,200):""),p("generic_api_error",h,s),d({loading:!1,error:!0,data:e.t0.message}));case 26:case"end":return e.stop()}}),e,null,[[6,23]])})))).apply(this,arguments)}return function(){r.apply(this,arguments)}(),function(){i||e.abort()}}),[m]),f},jt=function(e){var t=e.importedTemplateId;return"post.php?post=".concat(t,"&action=elementor")};function At(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rt=function(e){var t=e.chosenFile,n=e.onComplete,r=It({endpoint:"uploadTemplateKitZipFile",args:{file:t}}),a=r.loading,o=r.data,i=r.error;return!a&&!i&&o&&o.templateKitId&&setTimeout((function(){var e,t;n((e={importedTemplateKitId:o.templateKitId},t=e.importedTemplateKitId,"/template-kits/installed-kits/kit/".concat(t)))}),200),null},Ft=se((function(e){var t=e.history,n=At(Object(r.useState)(null),2),o=n[0],i=n[1];return a.a.createElement(a.a.Fragment,null,a.a.createElement(ot,{element:"label",htmlFor:"upload-template-kit-zip-file"},a.a.createElement(Je,{label:o?"Processing...":"Upload Template Kit (Zip File)",icon:"link"}),a.a.createElement("input",{type:"file",name:"upload-template-kit-zip-file",id:"upload-template-kit-zip-file",className:bt.a.formInput,onChange:function(e){i(e.target.files[0])}})),o?a.a.createElement(Rt,{chosenFile:o,onComplete:function(e){i(!1),t.push(e)}}):null)})),Dt=function(){return a.a.createElement("div",{className:vt.a.wrapper},a.a.createElement("div",{className:vt.a.logo},a.a.createElement(be,{to:"/",className:vt.a.logoLink},"Envato")),a.a.createElement("nav",{className:vt.a.menu},a.a.createElement("ul",{className:vt.a.menuInner},a.a.createElement("li",{className:vt.a.menuItem},a.a.createElement(be,{to:"/template-kits/installed-kits",className:"".concat(vt.a.menuLink," ").concat(de({path:"/template-kits"})?vt.a.menuLinkActive:"")},"Template Kits"))),a.a.createElement("ul",{className:"".concat(vt.a.menuInner," ").concat(vt.a.menuRight)},a.a.createElement("li",{className:vt.a.menuItem},a.a.createElement(Ft,null)))))},Lt=function(e){var t=e.href,n=e.text,r=void 0===n?"Link":n;return a.a.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"},r)},zt=n(38),Ut=n.n(zt),Bt=function(){return a.a.createElement("div",{className:Ut.a.footerBar},a.a.createElement("p",null,a.a.createElement("strong",null,"Feedback & Support: ")," If you have any questions or feedback for the team please send an email to"," ",a.a.createElement(Lt,{href:"mailto:extensions@envato.com",text:"extensions@envato.com"})," | ",a.a.createElement(Lt,{href:"https://envato.com/privacy?utm_source=extensions&utm_medium=referral&utm_campaign=template_kit_import_footer",text:"Privacy Policy"})," | ",a.a.createElement(Lt,{href:"https://help.market.envato.com/hc/en-us/sections/360007560992-Template-Kits?utm_source=extensions&utm_medium=referral&utm_campaign=template_kit_import_footer",text:"Help"})))},Wt=n(2),Kt=n.n(Wt);function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yt=function(e){var t=e.requirement,n=e.completeCallback;if(!t)return Object(r.useEffect)((function(){n()}),[]),"Skipped";var o=function(e){var t={requirement:JSON.stringify(e)};return It({endpoint:"installRequirement",args:t})}(t),i=o.loading,l=o.data,u=o.error;return Object(r.useEffect)((function(){i||n(u)}),[i]),a.a.createElement(a.a.Fragment,null,i?a.a.createElement(a.a.Fragment,null,a.a.createElement("span",{className:"dashicons dashicons-update ".concat(Kt.a.installingIcon)}),"Installing..."):null,u?a.a.createElement(a.a.Fragment,null,a.a.createElement("span",{className:"dashicons dashicons-no"}),l&&l.error?a.a.createElement(a.a.Fragment,null,l.error.data&&l.error.data.url?a.a.createElement("a",{href:l.error.data.url,target:"_blank",rel:"noopener noreferrer"},l.error.message):l.error.message):"Error"):null,i||u?null:a.a.createElement(a.a.Fragment,null,a.a.createElement("span",{className:"dashicons dashicons-yes-alt"}),"Success!"))},Xt=function(e){var t=e.plugins,n=e.theme,o=e.settings,i=e.completeCallback,l=$t(Object(r.useState)(!1),2),u=l[0],c=l[1],s=$t(Object(r.useState)(null),2),f=s[0],d=s[1],p=$t(Object(r.useState)({}),2),m=p[0],h=p[1],y=function(){d((function(e){return e+1}))},v=[];t.forEach((function(e){"activated"!==e.status&&v.push({plugin:e})})),o.forEach((function(e){v.push({setting:e})}));var g=v.length;if(0===g)return null;var b=function(e){return void 0===m[e]||m[e]};return a.a.createElement(a.a.Fragment,null,u?a.a.createElement(Ke,{isOpen:!0,onCloseCallback:i},a.a.createElement("div",null,a.a.createElement(qe,{title:"Missing Requirements"}),a.a.createElement("p",{className:Kt.a.notice},"Please install and activate these missing requirements for this Template Kit to work correctly. We recommend checking with your web developer before applying these changes."),a.a.createElement("ul",{className:Kt.a.requirements},v.map((function(e,t){return a.a.createElement("li",{key:"requirement".concat(t),className:Kt.a.requirement},a.a.createElement("div",{className:Kt.a.checkbox},a.a.createElement("input",{type:"checkbox",id:"requirement".concat(t),name:"installRequirement[]",value:"1",disabled:null!==f,checked:b(t),onChange:function(e){var n=!!e.target.checked;h((function(e){return Vt(Vt({},e),{},qt({},t,n))}))}})),a.a.createElement("div",{className:Kt.a.text},a.a.createElement("label",{htmlFor:"requirement".concat(t)},e.theme?"Theme: ".concat(e.theme.name):null,e.plugin?"Plugin: ".concat(e.plugin.name):null,e.setting?"Setting: ".concat(e.setting.name):null)),a.a.createElement("div",{className:Kt.a.status},f===t||f>t?a.a.createElement(Yt,{key:"installRequirement".concat(t),requirement:b(t)?e:null,completeCallback:y}):null))})),n?a.a.createElement("li",{className:Kt.a.requirement},a.a.createElement("div",{className:Kt.a.checkbox},a.a.createElement("span",{className:"dashicons dashicons-warning"})),a.a.createElement("div",{className:Kt.a.text},'FYI: This Template Kit has only been tested with the "',n.name,'" WordPress theme. ',a.a.createElement("br",null),"If the imported templates don’t look correct please read ",a.a.createElement(Lt,{href:"https://help.market.envato.com/hc/en-us/sections/360007560992-Template-Kits",text:"this article"}),".")):null),a.a.createElement("div",{className:Kt.a.footer},null===f?a.a.createElement(lt,{type:"primary",icon:"plus",label:"Install Above Selected Requirements",onClick:function(){d(0)}}):a.a.createElement(a.a.Fragment,null,f>=g?a.a.createElement(a.a.Fragment,null,a.a.createElement("p",{className:Kt.a.notice},"Once the above is completed you can close this window."),a.a.createElement(lt,{type:"primary",icon:"plus",label:"Close",onClick:i})):a.a.createElement("p",{className:Kt.a.notice},"Installing..."))))):null,a.a.createElement("div",{className:Kt.a.wrapper},a.a.createElement("div",{className:Kt.a.textWrapper},a.a.createElement("strong",null,"Attention!")," There are ",g," requirements that need installing for this Template Kit to work correctly."),a.a.createElement("div",{className:Kt.a.buttonWrapper},a.a.createElement(lt,{type:"attention",label:"Install Requirements",icon:"info",onClick:function(){c(!0)}}))))};Xt.propTypes={plugins:c.a.arrayOf(c.a.shape({author:c.a.string,file:c.a.string,name:c.a.string,slug:c.a.string,status:c.a.string,url:c.a.string,version:c.a.string})),settings:c.a.arrayOf(c.a.shape({name:c.a.string,setting_name:c.a.string})),completeCallback:c.a.func.isRequired},Xt.defaultProps={plugins:[],settings:[]};var Zt=Xt,Gt=n(24),Jt=n.n(Gt),en=function(){return a.a.createElement("div",{className:Jt.a.wrap},a.a.createElement("span",{className:Jt.a.inner,"aria-label":"Loading"}))},tn=function(e){return It({endpoint:"fetchInstalledTemplateKits",args:e})},nn=n(5),rn=n.n(nn),an=function(e){var t=e.currentKitId,n=e.handleChangeKitId,r=tn();return a.a.createElement(a.a.Fragment,null,!r.loading&&r.data&&r.data.length>1?a.a.createElement("div",{className:rn.a.currentKit},a.a.createElement("div",{className:rn.a.optionKitWrapper},a.a.createElement("div",{className:rn.a.optionKit},a.a.createElement("button",{className:"".concat(rn.a.optionKitLink," ").concat("all"===t?rn.a.optionKitLinkCurrent:""),onClick:function(){n("all")}},"All Kits")),r.data.map((function(e){return a.a.createElement("div",{className:rn.a.optionKit,key:e.id},a.a.createElement("button",{className:"".concat(rn.a.optionKitLink," ").concat(t===e.id?rn.a.optionKitLinkCurrent:""),onClick:function(){n(e.id)}},e.title))})))):null)};function on(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ln(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var un=function(e){var t=e.actionHook,n=e.LoadingButton,r=e.SuccessButton,a=e.ErrorButton,o=e.errorCallback,i=e.completeCallback,l=t(),u=l.loading,c=l.data,s=l.error;return u||s?s?(setTimeout((function(){o(c)}),100),a):n:(setTimeout((function(){i(c)}),500),r)},cn=function(e){var t=e.DefaultButton,n=e.CompletedButton,o=e.LoadingButton,i=e.ErrorButton,l=e.SuccessButton,u=e.actionHook,c=e.isAlreadyCompleted,s=void 0!==c&&c,f=e.completedCallback,d=void 0===f?null:f,p=e.errorCallback,m=void 0===p?null:p,h=e.actionConfirmationMessage,y=void 0===h?null:h,v=on(Object(r.useState)(!1),2),g=v[0],b=v[1],w=on(Object(r.useState)(s),2),E=w[0],k=w[1],x=on(Object(r.useState)(null),2),S=x[0],C=x[1];return Object(r.useEffect)((function(){E&&d&&!s&&d(E)}),[E]),Object(r.useEffect)((function(){S&&m&&m(S)}),[S]),Object(r.useEffect)((function(){k(s)}),[s]),E?n:g?a.a.createElement(un,{actionHook:u,LoadingButton:o,ErrorButton:i,SuccessButton:l,errorCallback:function(e){setTimeout((function(){b(!1)}),500),C(e)},completeCallback:function(e){b(!1),k(e)}}):a.a.cloneElement(t,{onClick:function(e){if(y&&!confirm(y))return e.preventDefault(),!1;b(!0)}})},sn=function(e){var t=e.templateKitId,n=e.customActionHook,r=void 0===n?null:n,o=e.completeCallback,i=void 0===o?null:o,l=e.errorCallback,u=void 0===l?null:l;return a.a.createElement(cn,{DefaultButton:a.a.createElement(lt,{type:"warning",label:"",icon:"trash"}),actionConfirmationMessage:"Really delete this Template Kit?",LoadingButton:a.a.createElement(lt,{type:"warning",label:"",icon:"trash",disabled:!0}),ErrorButton:a.a.createElement(lt,{type:"warning",label:"",icon:"trash",disabled:!0}),SuccessButton:a.a.createElement(lt,{type:"warning",label:"",icon:"trash",disabled:!0}),CompletedButton:a.a.createElement(lt,{type:"warning",label:"",icon:"trash"}),actionHook:function(){return r?r():It({endpoint:"deleteTemplateKit",args:{templateKitId:t},allowLongRunning:!0})},isAlreadyCompleted:!1,completedCallback:function(){i&&i()},errorCallback:u})},fn=n(25),dn=n.n(fn),pn=function(e){var t=e.message;return a.a.createElement("div",{className:dn.a.message},a.a.createElement("p",{className:dn.a.copy},t))};pn.propTypes={message:c.a.string},pn.defaultProps={message:"Sorry there was an error loading this data. Please try again."};var mn=pn,hn=n(19),yn=n.n(hn),vn=function(e){var t=e.children,n=e.includeLastItemSpacer,r=void 0!==n&&n;return a.a.createElement("div",{className:yn.a.wrapper},a.a.createElement("div",{className:yn.a.inner},t,r?a.a.createElement("div",{className:yn.a.cardSpacing}):null))},gn=n(6),bn=n.n(gn);function wn(){return(wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function En(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var kn=function(e){var t=e.colWidthPercentage,n=void 0===t?20:t,r=e.children,o=e.className,i=En(e,["colWidthPercentage","children","className"]),l=[bn.a.item];return 20===n&&l.push(bn.a.widthTwenty),25===n&&l.push(bn.a.widthTwentyFive),33===n&&l.push(bn.a.widthThirtyThree),40===n&&l.push(bn.a.widthFourty),50===n&&l.push(bn.a.widthFifty),60===n&&l.push(bn.a.widthSixty),100===n&&l.push(bn.a.widthFull),o&&l.push(o),a.a.createElement("div",wn({className:l.join(" ")},i),r)},xn=n(10),Sn=n.n(xn),Cn=function(e){var t=e.Images,n=e.Buttons,r=e.title,o=e.description;return a.a.createElement("div",{className:Sn.a.wrapper},a.a.createElement("div",{className:Sn.a.inner},a.a.createElement("div",{className:Sn.a.images},t),a.a.createElement("div",{className:Sn.a.meta},a.a.createElement("h4",{className:Sn.a.cardTitle},r),a.a.createElement("p",{className:Sn.a.cardDescription},o),n)))},Tn=function(e){return It({endpoint:"importSingleTemplate",args:e,allowLongRunning:!0})};function On(){return(On=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _n(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Pn=function(e){var t=e.type,n=e.label,r=e.icon,o=e.href,i=e.openNewWindow,l=_n(e,["type","label","icon","href","openNewWindow"]),u=i?{target:"_blank",rel:"noopener noreferrer"}:null;return a.a.createElement(ot,On({href:o,type:t,element:"a"},u,l),a.a.createElement(Je,{label:n,icon:r}))};Pn.propTypes={type:c.a.string,label:c.a.string,icon:c.a.string,href:c.a.string.isRequired},Pn.defaultProps={type:"ghost",label:null,icon:null};var Nn=Pn;function In(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var An=function(e){var t=e.templateKitId,n=e.templateId,o=e.existingImports,i=e.customActionHook,l=void 0===i?null:i,u=e.completeCallback,c=void 0===u?null:u,s=e.errorCallback,f=void 0===s?null:s,d=In(Object(r.useState)(o.length?o[0].imported_template_id:null),2),p=d[0],m=d[1],h=In(Object(r.useState)(!1),2),y=h[0],v=h[1];return Object(r.useEffect)((function(){setTimeout((function(){return v(!1)}),300)}),[y]),a.a.createElement(a.a.Fragment,null,p?a.a.createElement(Nn,{href:jt({importedTemplateId:p}),type:"primary",label:"View Template",icon:"eye",openNewWindow:!0}):null,a.a.createElement(cn,{DefaultButton:p?a.a.createElement(lt,{type:"ghost",label:"Import Again",icon:"plus"}):a.a.createElement(lt,{type:"primary",label:"Import Template",icon:"plus"}),LoadingButton:a.a.createElement(lt,{type:"primary",label:"Importing",icon:"updateSpinning",disabled:!0}),ErrorButton:a.a.createElement(lt,{type:"warning",label:"Error",icon:"cross",disabled:!0}),SuccessButton:a.a.createElement(lt,{type:"primary",label:"Success!",icon:"tick",disabled:!0}),CompletedButton:a.a.createElement(lt,{type:"primary",label:"Success!",icon:"tick",disabled:!0}),actionHook:function(){return l?l():Tn({templateKitId:t,templateId:n,importAgain:!!p})},isAlreadyCompleted:y,completedCallback:function(e){e&&e.imported_template_id&&(m(e.imported_template_id),v(!0),c&&c(e))},errorCallback:f}))},Mn=function(e){var t=e.templateKitId,n=e.templateId,r=(e.existingImports,e.customActionHook),o=void 0===r?null:r,i=e.completeCallback,l=void 0===i?null:i,u=e.errorCallback,c=void 0===u?null:u,s=a.a.createElement(lt,{type:"primary",label:"Inserting...",icon:"updateSpinning",disabled:!0});return a.a.createElement(cn,{DefaultButton:a.a.createElement(lt,{type:"primary",label:"Insert Template",icon:"plus"}),LoadingButton:s,ErrorButton:a.a.createElement(lt,{type:"warning",label:"Error",icon:"cross",disabled:!0}),SuccessButton:s,CompletedButton:s,actionHook:function(){return o?o():Tn({templateKitId:t,templateId:n,insertToPage:!0})},isAlreadyCompleted:!1,completedCallback:function(e){e&&e.imported_template_id&&l&&l(e)},errorCallback:c})},Rn=n(26),Fn=n.n(Rn),Dn=function(){return a.a.createElement("div",{className:Fn.a.svgWrapper},a.a.createElement("svg",{className:Fn.a.svgEnvatoLogo,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",fill:"none",viewBox:"0 0 27 31"},a.a.createElement("path",{fill:"#fff",d:"M23.64 1.318C19.45-3.592 5.89 5.918 6 18.178a.58.58 0 01-.57.57.58.58 0 01-.49-.28 13.13 13.13 0 01-.52-9.65.53.53 0 00-.9-.52A13 13 0 000 17.188a13 13 0 0013.15 13.15c18.5-.42 14.23-24.64 10.49-29.02z"})))},Ln=n(9),zn=n.n(Ln);function Un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wn={overlay:{backgroundColor:"rgba(32, 32, 32, 0.81)",zIndex:199999},content:{background:"#f1f1f1",border:"0",top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",padding:"0",transform:"translate(-50%, -50%)",borderRadius:"4px"}},Kn=function(e){var t=e.isOpen,n=e.onCloseCallback,o=void 0===n?null:n,i=e.children,l=e.templatePreviewTitle,u=e.templateId,c=e.templateKitId,s=e.existingImports,f=Un(a.a.useState(!1),2),d=f[0],p=f[1],m=function(){p(!1),o&&o()};Object(r.useEffect)((function(){t&&p(!0)}),[t]),"undefined"!=typeof window&&window.templateKitImport&&window.templateKitImport.modalAppHolder&&De.a.setAppElement(window.templateKitImport.modalAppHolder);var h=(0,xt().getMagicButtonMode)();return a.a.createElement(De.a,{isOpen:d,onRequestClose:m,style:Wn,contentLabel:"Envato Elements","data-testid":"modal-wrapper"},a.a.createElement("div",{className:zn.a.modalInner},a.a.createElement("div",{className:zn.a.modalHeader},a.a.createElement("div",{className:zn.a.modalLogo},a.a.createElement(Dn,null)),a.a.createElement("div",{className:zn.a.headerTitle},l),a.a.createElement("div",{className:zn.a.headerActions},h&&"elementorMagicButton"===h.mode?a.a.createElement(Mn,{templateKitId:c,templateId:u,completeCallback:function(e){h.insertCallback&&"function"==typeof h.insertCallback&&h.insertCallback(e)}}):a.a.createElement(An,{templateKitId:c,templateId:u,existingImports:s}),a.a.createElement("button",{onClick:m,"data-testid":"modal-close-button",className:zn.a.closeButton},a.a.createElement("span",{className:"dashicons dashicons-no-alt ".concat(zn.a.dismissIcon)})))),a.a.createElement("div",null,"function"==typeof i?i({closeModal:m}):i)))},Hn=n(39),Vn=n.n(Hn),qn=function(e){var t=e.onCloseCallback,n=e.templateId,r=e.templateKitId,o=e.existingImports,i=e.templateScreenShotUrl,l=e.templatePreviewTitle;return a.a.createElement(Kn,{templateId:n,templateKitId:r,existingImports:o,templatePreviewTitle:l,isOpen:!0,onCloseCallback:t},a.a.createElement("img",{className:Vn.a.previewTemplate,src:i,alt:l}))},$n=n(14),Qn=n.n($n);function Yn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zn=function(e){var t=e.template,n=Yn(Object(r.useState)(!1),2),o=n[0],i=n[1],l=Object(r.useRef)(null),u=t.id,c=t.template_kit_id,s=t.name,f=t.screenshot_url,d=t.imports,p=Yn(Object(r.useState)(t.unmet_requirements&&t.unmet_requirements.length>0),2),m=p[0],h=p[1],y=t.metadata.additional_template_information?t.metadata.additional_template_information.join(" "):"",v=(0,xt().getMagicButtonMode)();return a.a.createElement(kn,{colWidthPercentage:33,key:u},a.a.createElement(Cn,{Images:a.a.createElement("div",{className:Qn.a.imageWrapper},a.a.createElement("img",{src:f,alt:s,className:Qn.a.image}),a.a.createElement("div",{className:Qn.a.expandButton,ref:l,onClick:function(e){e.target===l.current&&i(!0)}},o?a.a.createElement(qn,{templateScreenShotUrl:f,templatePreviewTitle:s,templateKitId:c,templateId:u,existingImports:d}):null,a.a.createElement(lt,{type:"ghost",icon:"expand",onClick:function(){i(!0)}}))),Buttons:a.a.createElement(a.a.Fragment,null,m?a.a.createElement(a.a.Fragment,null,a.a.createElement("p",{className:Qn.a.unmetRequirementsMessage},t.unmet_requirements.join(" ")),a.a.createElement(lt,{type:"warning",label:"Ignore Requirements",icon:"cross",onClick:function(){return h(!1)}})):a.a.createElement(st,null,v&&"elementorMagicButton"===v.mode?a.a.createElement(Mn,{templateKitId:c,templateId:u,completeCallback:function(e){v.insertCallback&&"function"==typeof v.insertCallback&&v.insertCallback(e)}}):a.a.createElement(An,{templateKitId:c,templateId:u,existingImports:d}))),title:s,description:y}))},Gn=function(e){var t=e.templates;return a.a.createElement(vn,{includeLastItemSpacer:!0},t.map((function(e){return a.a.createElement(Zn,{key:e.id,template:e})})))},Jn=n(27),er=n.n(Jn);function tr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rr=se((function(e){var t,n=e.history,o=((t=fe(q).match)?t.params:{}).id,i=de().path,l=tr(Object(r.useState)(null),2),u=l[0],c=l[1],s=It({endpoint:"fetchIndividualTemplates",args:{id:o,refresh:u}}),f=tr(Object(r.useState)(!1),2),d=f[0],p=f[1];return a.a.createElement(a.a.Fragment,null,s.loading?a.a.createElement(en,null):null,s.error?a.a.createElement(mn,null):null,d?a.a.createElement(J,{to:"/template-kits/installed-kits"}):null,s.loading||s.error||!s.data?null:a.a.createElement("div",null,s.data.requirements?a.a.createElement(Zt,{settings:s.data.requirements.settings,theme:s.data.requirements.theme,plugins:s.data.requirements.plugins,completeCallback:function(){c((new Date).getTime())}}):null,a.a.createElement("div",{className:er.a.headerWrapper},a.a.createElement(qe,{title:s.data.title}),a.a.createElement(an,{currentKitId:s.data.id,handleChangeKitId:function(e){n.push(i.replace(":id",e))}}),a.a.createElement("div",{className:er.a.deleteKitWrapper},a.a.createElement(sn,{templateKitId:s.data.id,completeCallback:function(){p(!0)}}))),a.a.createElement(Gn,{templates:s.data.templates})))})),ar=function(e){var t=e.type,n=e.label,r=e.icon,o=e.href;return a.a.createElement(ot,{element:"Link",to:o,type:t},a.a.createElement(Je,{label:n,icon:r}))};ar.propTypes={type:c.a.string,label:c.a.string,icon:c.a.string,href:c.a.string.isRequired},ar.defaultProps={type:"ghost",label:null,icon:null};var or=ar,ir=n(15),lr=n.n(ir);function ur(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sr=function(e){var t=e.item,n=de().url,o=ur(Object(r.useState)(!1),2),i=o[0],l=o[1],u=xt().getReviewMode;return i?null:a.a.createElement(kn,{colWidthPercentage:33,className:lr.a.itemCard},a.a.createElement(Cn,{Images:a.a.createElement(be,{to:"".concat(n,"/kit/").concat(t.id),className:lr.a.itemImageLink},a.a.createElement("img",{src:t.screenshot_url,alt:t.title,className:lr.a.itemImage})),Buttons:a.a.createElement(st,null,a.a.createElement(or,{type:"primary",label:"View Installed Kit",icon:"plus",href:"".concat(n,"/kit/").concat(t.id)}),u()?a.a.createElement(Nn,{href:"admin.php?page=template-kit-review&template_kit_id=".concat(t.id),type:"primary",openNewWindow:!0,label:"Review",icon:"eye"}):null,a.a.createElement("div",{className:lr.a.itemDelete},a.a.createElement(sn,{templateKitId:t.id,completeCallback:function(){l(!0)}}))),title:t.title,description:"Contains ".concat(t.template_count," templates")}))},fr=n(11),dr=n.n(fr);function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hr=function(e){e.item;var t=pr(Object(r.useState)(null),2),n=t[0],o=t[1];return a.a.createElement(kn,{colWidthPercentage:33},a.a.createElement("div",{className:dr.a.uploadCard},a.a.createElement("label",{htmlFor:"upload-template-kit-zip-file",className:dr.a.uploadCardButton},n?a.a.createElement(en,null):a.a.createElement("span",{className:dr.a.icon}),a.a.createElement("div",{className:dr.a.message},"Upload Template Kit ZIP File"),a.a.createElement("input",{type:"file",name:"upload-template-kit-zip-file",id:"upload-template-kit-zip-file",className:dr.a.formInput,onChange:function(e){o(e.target.files[0])}})),n?a.a.createElement(Rt,{chosenFile:n}):null))},yr=function(){var e=tn(),t=e.loading,n=e.data,r=e.error;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",null,a.a.createElement(qe,{title:"Installed Template Kits",subtitle:"These are the Template Kits installed on this WordPress website."})),t?a.a.createElement(en,null):null,r?a.a.createElement(mn,null):null,t||r||0!==n.length?null:a.a.createElement(mn,{message:a.a.createElement(a.a.Fragment,null,"No installed Template Kits found. Please"," ",a.a.createElement(Lt,{href:"https://themeforest.net/category/template-kits?utm_source=extensions&utm_medium=referral&utm_campaign=template_kit_import_plugin",text:"click here to view available premium Template Kits"})," "," or upload a new Template Kit ZIP file below.")}),t||r?null:a.a.createElement(vn,{includeLastItemSpacer:!0},n.map((function(e){return a.a.createElement(sr,{key:e.id,item:e})})),a.a.createElement(hr,null)))},vr=function(){var e=de().url;return a.a.createElement(ce,null,a.a.createElement(re,{path:"".concat(e,"/kit/:id"),children:a.a.createElement(rr,null)}),a.a.createElement(re,{children:a.a.createElement(yr,null)}))},gr=function(){var e=de().url;return a.a.createElement(a.a.Fragment,null,a.a.createElement(ce,null,a.a.createElement(re,{path:"".concat(e,"/installed-kits"),children:a.a.createElement(vr,null)}),a.a.createElement(re,null,a.a.createElement(J,{to:"/template-kits/installed-kits"}))))},br=n(28),wr=n.n(br),Er=function(){return a.a.createElement("div",{className:wr.a.wrapper},a.a.createElement(Me,null,a.a.createElement(Oe,null,a.a.createElement(pe,null,a.a.createElement(ht,null),a.a.createElement(Dt,null),a.a.createElement("div",{className:wr.a.container},a.a.createElement(ce,null,a.a.createElement(re,{exact:!0,path:"/"},a.a.createElement(J,{to:"/template-kits/installed-kits"})),a.a.createElement(re,{path:"/template-kits",children:a.a.createElement(gr,null)}))),a.a.createElement(Bt,null)))))},kr=n(7),xr=n.n(kr);function Sr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Tr={overlay:{backgroundColor:"rgba(32, 32, 32, 0.81)",zIndex:199999},content:{background:"#f1f1f1",border:"0",top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",padding:"0",transform:"translate(-50%, -50%)",borderRadius:"4px"}},Or=function(e){e.photoId,e.photoTitle;var t=e.onCloseCallback,n=void 0===t?null:t,r=e.children,o=Sr(a.a.useState(!0),2),i=o[0],l=o[1],u=function(){l(!1),n&&n()};return"undefined"!=typeof window&&window.templateKitImport&&window.templateKitImport.modalAppHolder&&De.a.setAppElement(window.templateKitImport.modalAppHolder),a.a.createElement(De.a,{isOpen:i,onRequestClose:u,style:Tr,contentLabel:"Envato Elements","data-testid":"modal-wrapper"},a.a.createElement("div",{className:xr.a.modalInner},a.a.createElement("div",{className:xr.a.modalHeader},a.a.createElement("div",{className:xr.a.modalLogo},a.a.createElement(Dn,null)),a.a.createElement("div",{className:xr.a.headerNav}),a.a.createElement("div",{className:xr.a.headerActions},a.a.createElement("button",{onClick:u,"data-testid":"modal-close-button",className:xr.a.closeButton},a.a.createElement("span",{className:"dashicons dashicons-no-alt ".concat(xr.a.dismissIcon)})))),a.a.createElement("div",{className:xr.a.magicModalInner},"function"==typeof r?r({closeModal:u}):r)))};function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){Nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ir=function(e){var t=e.onClose,n=e.magicButtonMode;return a.a.createElement(Me,{config:Pr(Pr({},window.template_kit_import),{},{magicButtonMode:n})},a.a.createElement(Oe,null,a.a.createElement(Q,null,a.a.createElement(ht,null),a.a.createElement(Or,{onCloseCallback:t},a.a.createElement(ce,null,a.a.createElement(re,{exact:!0,path:"/"},a.a.createElement(J,{to:"/template-kits/installed-kits"})),a.a.createElement(re,{path:"/template-kits",children:a.a.createElement(gr,null)}))))))};window.templateKitImport={modalAppHolder:null},window.templateKitImport.initBackend=function(e){window.templateKitImport.modalAppHolder=e,i.a.render(a.a.createElement(Er,null),e)},window.templateKitImport.initMagicButton=function(e,t){window.templateKitImport.modalAppHolder=e,i.a.render(a.a.createElement(Ir,{magicButtonMode:t,onClose:function(){window.templateKitImport.closeMagicButton(e)}}),e)},window.templateKitImport.closeMagicButton=function(e){i.a.unmountComponentAtNode(e)}}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=60)}([function(e,t,n){"use strict";e.exports=n(40)},function(e,t,n){e.exports=n(45)()},function(e,t,n){e.exports={wrapper:"BLa__01xPXIkNtm7_TdSt",notice:"_3ZL3iPUjoRL0ucRtkAs9o3",requirements:"_1-AMIXQBz-cte-N18jzCRX",requirement:"_3vKAgI5R6s3k03eyhym7Df",checkbox:"_1ooAOmdMWCXdBxsuFmiZTL",text:"_1b1-yc2PV8H2ahj8c4w44R",status:"_1OTzvGGb3zrXM-8YtrNQMC",installingIcon:"_3P2A6ew1J_hOXLzu_mhhoF",iconSpin:"_2gUkB8zVtB4bYRj2wUnpgl","icon-spin":"_3cma45jhRlCxKjGn7bRO89"}},function(e,t,n){e.exports={wrapper:"_1iip-LV7Xv9ykAosgM5NuM",logo:"_3ATGzAjLOmwSzucmY-YngZ",logoLink:"_3f2NedzSbwOx_JjYr8nDQA",menu:"g4RTLFxxQQsdiP_q8ZEoR",menuInner:"_1MEPMh6aEquzp_JZjrouzU",menuItem:"_1bm12lAbQ8gqKEt4fjLrQn",menuLink:"_2WiEnh-1nVnmA2xejNL-jN",menuItemHasChild:"_3_Y7KIkNPB0VGaikLZPLXr",subNavWrap:"_1qVTgaPdTH08INPOcXB72z",subNavWrapNotifications:"_1zR1wFdZwIcQuLgx4F-tr5",menuLinkActive:"Qvwt8B1yoF-HW_ej6t8Vh",menuLinkNew:"PcQk9lTsWaOSq1mj45FBN",subNavItem:"_1x0jWzfZZYwAlYcz98019Z",menuRight:"_3KaLU08cg_uuF1s32FUby1",menuCountLabel:"_3eW9zhI2KLBjal6xVn4RRz",dropDownInner:"YTBkhdOlOh4QuqkDDPCMV",notification:"smcJRtvHEzHA4K9EO3_1I",date:"LxNzl69Yk4tP4pD1P3Mii",title:"_3yBF8inPK-HTdDK72RfE3A",content:"EQB2N9a2IBPzgeDYrPMNb"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(44),o=(r=a)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},function(e,t,n){e.exports={currentKit:"YCC_eH-Jpwsb9Q6mO0lTY",optionKitWrapper:"lIzKBHC22tUIXAarE8pxH",optionKit:"_2K-Pi1nh0u1ynpVVVUGuEd",optionKitLink:"_2lNE8tECbqfbFxRnokrq14",optionKitLinkCurrent:"_32agSzLa-PWm5rUc9iOYrN","icon-spin":"fgbtaCDtcZwMQ6i8kx_7h"}},function(e,t,n){e.exports={item:"_29x1IWY7ih-Z_cuhziTX_h",widthTwenty:"_38zLz2nXY2NakXStBq7xZr",widthTwentyFive:"ojjeLEVFrktXiNkPmioSa",widthThirtyThree:"_2iDZ0-OZSyg_cinELwspdB",widthFourty:"_3ECSpiJkcXOuffVV4FDX4H",widthFifty:"_1N209ISbx9eXpsnZ8gf_E8",widthSixty:"iL7A82T74DNFqR323gSkk",widthFull:"_1Z01QZCFXOC4Iptqxmm-wa","icon-spin":"_1i74u9WkgBk4r-PvirUAjp"}},function(e,t,n){e.exports={modalInner:"_1hLv3Vplzcafex4sThG6ja",modalHeader:"_3sz0952abrtBvMlC0tNXWY",modalLogo:"swbP218Njg0YSBx52xzN-",headerTitle:"_18YAF71-_PGUeWbsNymQjh",headerActions:"_3lkT9iDnpJz683wkZ438oI",closeButton:"_38J4xJEwecKHqwsqOOSmcP",dismissIcon:"_1j9z4gjnHlcXa_Seeb8VNw",kitInner:"hAz9ojCqfzoD6mHjx49my","icon-spin":"_1UD--Zviw9FLEUxQOeDuW"}},function(e,t,n){e.exports={modalInner:"_2-WTW-ONNDbBCZWx2E-iYf",modalHeader:"_25Lej_JkIhFX7HlXWkTUWY",modalLogo:"_3tiNOk61Dfy5TC8zxV8FJC",headerNav:"_1nzno2ylybbG--bLj3_vIA",headerActions:"_7yUfTOIDWGezhu5HtUwvH",closeButton:"_29IB-UjZnCrhG5pH60uAQI",dismissIcon:"_2R7nr7DH9EW42LxE_rbVIT",magicModalInner:"RvNK3VwNt4oHQU8jY-Mfn","icon-spin":"_1kH5mtGfYJQ7INQWvAR_Bg"}},function(e,t,n){e.exports={debugWrapper:"_1MRHp_f9iNB0Jtz-kf4sqO",debugInformation:"MoygnBjVJavv8uBOGELlf",debugText:"_5M2DaeazCko44PvOq4fkS",copy:"wlk5Cjgf9mEmY8nX8Otdg","icon-spin":"_2SZG3SVrcR_I2zhew5WVhr"}},function(e,t,n){e.exports={wrapper:"_2a4Y69W6c3mML4frSpYOmg",inner:"_3M7jqxCB1Fqeew3rsDpX1t",images:"_23eXjuy0IdpvkPq97ycwom",meta:"_30Q8QKN8kALE447Su96N1M",cardTitle:"Y-vzaeXp1NOUveSNYrCK",cardDescription:"_1lfSIqVF-Gj7sxiaXFa6AD","icon-spin":"GUvXxfZ5AjgA3maasKfZZ"}},function(e,t,n){e.exports={uploadCard:"_2vHHKAFgRCtc9rZyL4g6lx",uploadCardButton:"_8i15mGt9tRuGZfTmoC28_",formInput:"_1CRwVNeu-DGYq7ZtYnaQQV",icon:"sDTdiaai1sXMd7gMpzPPx",message:"_2QEWeBB-Unz4qsVLTW_9g8","icon-spin":"_3dOp6uIisP8nxgn6DNzr7G"}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(41)},function(e,t,n){e.exports={button:"_2Be0Bw4xUsveTYiur3RrKz",ghost:"oE7H1W1AK6I1RGMmPCizU",primary:"_27o464fKNdOE0zlT86WLYI",secondary:"_2usE8M0Nrup6TXbA9tXIKP",warning:"_18ctAe9xome7MXxtRBAQoB",attention:"_21iKyeS6-PWKrJ8f_wrLmN","icon-spin":"_2OzW5Q4M_GlxS0rApsiye2"}},function(e,t,n){e.exports={imageWrapper:"_1syGJ-On-p-JGwC6hnuzCN",expandButton:"_3crHCTct5CMw3Zp5ijQNRN",image:"_39DJgZVRV5xAn8z88mA-uG",unmetRequirementsMessage:"_1zHW-Dd_M6fbS6Lk35I40I","icon-spin":"rS2x6Luy5j8HL3enXHplD"}},function(e,t,n){e.exports={itemCard:"_1tM0JQuJNW5GDki987p_ZA",itemDelete:"_2KcZsZdCiISn45qXUKMRgV",itemImageLink:"_26nQzLECUlZzB9t8hf3ISe",itemImage:"F1R9OT0JMbCsLNWZkvFh5","icon-spin":"_9hudWSkYQfD6mHTPcIHOZ"}},function(e,t,n){e.exports={modalInner:"_3wneDPyPdcKZxFsyZS1uEb",closeButton:"VtSuT3wmK4xwwtaJiZXoH",dismissIcon:"_2bWF1DgEyIFZDL_rq1B6IZ","icon-spin":"awBQV-fm_slwwetLVPLAJ"}},function(e,t,n){e.exports={wrapper:"_13e6P0GohbDRkmHTroG_S7",title:"_7itzF6XYog1bxkCKdFhMe",subtitle:"rGSE9GJtpKE5PnTMDw_Oq","icon-spin":"_6pqeA098THDiDBxyecgug"}},function(e,t,n){e.exports={icon:"_2Hh1HrGBusC0Nmoy5qAW21",iconWithLabel:"_3oEmViP6o5wDeSfwFlQbnh",iconSpinning:"_1RFvnV1ArPcXcuqxqVWYS-",iconSpin:"_12_U-KlguERdm4WaWQybRv"}},function(e,t,n){e.exports={wrapper:"_3HBo7OiY7oAhkUC0DcalC5",inner:"_3mcQsRTzcMLIo_3aDXmSTW",cardSpacing:"_35oqEpQsw0Iem8sZOMFdPJ"}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r,a=n(51);var o=((r=a)&&r.__esModule?r:{default:r}).default,i=o.canUseDOM?window.HTMLElement:{};t.canUseDOM=o.canUseDOM;t.default=i},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){var r=n(56);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return l(o(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=d;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,i=0,l="",s=t&&t.delimiter||"/";null!=(n=a.exec(e));){var f=n[0],d=n[1],p=n.index;if(l+=e.slice(i,p),i=p+f.length,d)l+=d[1];else{var m=e[i],h=n[2],y=n[3],v=n[4],g=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var E=null!=h&&null!=m&&m!==h,k="+"===b||"*"===b,x="?"===b||"*"===b,S=n[2]||s,C=v||g;r.push({name:y||o++,prefix:h||"",delimiter:S,optional:x,repeat:k,partial:E,asterisk:!!w,pattern:C?c(C):w?".*":"[^"+u(S)+"]+?"})}}return i<e.length&&(l+=e.substr(i)),l&&r.push(l),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",f(t)));return function(t,a){for(var o="",l=t||{},u=(a||{}).pretty?i:encodeURIComponent,c=0;c<e.length;c++){var s=e[c];if("string"!=typeof s){var f,d=l[s.name];if(null==d){if(s.optional){s.partial&&(o+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(r(d)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[c].test(f))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===p?s.prefix:s.delimiter)+f}}else{if(f=s.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[c].test(f))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+f+'"');o+=s.prefix+f}}else o+=s}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function s(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,i="",l=0;l<e.length;l++){var c=e[l];if("string"==typeof c)i+=u(c);else{var d=u(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+d+p+")*"),i+=p=c.optional?c.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var m=u(n.delimiter||"/"),h=i.slice(-m.length)===m;return a||(i=(h?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=o?"$":a&&h?"":"(?="+m+"|$)",s(new RegExp("^"+i,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return s(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(p(e[a],t,n).source);return s(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(o(e,n),t,n)}(e,t,n)}},function(e,t,n){e.exports={wrap:"w2RTwQaOLn17YZod46h7u",fadein:"sPBhHQ4ITuT-1MaW9Xi6-",bounceDot:"_34GtVyhroSVFfJGkfXkPBN",inner:"_2-bzJzXs2sFLdVdJIzVXp9"}},function(e,t,n){e.exports={message:"flGvCh2JytH3XHesfMiTn",copy:"_3g-ohUYxC4304dELpbK6nX","icon-spin":"_2J9YN8sybBhsSv3bO6Y0dJ"}},function(e,t,n){e.exports={svgWrapper:"_2Zt_cNkR6xj4U41EeK54Bt",svgEnvatoLogo:"IG22ss47WE-9H86QczzcI"}},function(e,t,n){e.exports={headerWrapper:"OJk9AW6HhjoXS4r8kOe6a",deleteKitWrapper:"_2AsRtyYmk4u2ra-d2YsjGE"}},function(e,t,n){e.exports={wrapper:"_21RxIKPF66UF3i_0gurks6",container:"_1NCoEByT5qnU9-27CT6rhQ"}},function(e,t,n){"use strict";
2
  /*
3
  object-assign
4
  (c) Sindre Sorhus
52
  *
53
  * This source code is licensed under the MIT license found in the
54
  * LICENSE file in the root directory of this source tree.
55
+ */var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case f:case d:case i:case u:case l:case m:return e;default:switch(e=e&&e.$$typeof){case s:case p:case v:case y:case c:return e;default:return t}}case o:return t}}}function x(e){return k(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=c,t.Element=a,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=y,t.Portal=o,t.Profiler=u,t.StrictMode=l,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||k(e)===f},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===s},t.isContextProvider=function(e){return k(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===i},t.isLazy=function(e){return k(e)===v},t.isMemo=function(e){return k(e)===y},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===u},t.isStrictMode=function(e){return k(e)===l},t.isSuspense=function(e){return k(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===u||e===l||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===c||e.$$typeof===s||e.$$typeof===p||e.$$typeof===b||e.$$typeof===w||e.$$typeof===E||e.$$typeof===g)},t.typeOf=k},,,function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),o=n(12),i=n.n(o);function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=n(1),c=n.n(u);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e){return"/"===e.charAt(0)}function d(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}var p=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],o=e&&f(e),i=t&&f(t),l=o||i;if(e&&f(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var c=0,s=a.length;s>=0;s--){var p=a[s];"."===p?d(a,s):".."===p?(d(a,s),c++):c&&(d(a,s),c--)}if(!l)for(;c--;c)a.unshift("..");!l||""===a[0]||a[0]&&f(a[0])||a.unshift("");var m=a.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function m(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var h=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=m(t),a=m(n);return r!==t||a!==n?e(r,a):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var y=function(e,t){if(!e)throw new Error("Invariant failed")};function v(e){return"/"===e.charAt(0)?e:"/"+e}function g(e){return"/"===e.charAt(0)?e.substr(1):e}function b(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function w(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function E(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function k(e,t,n,r){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(a=s({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),r?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=p(a.pathname,r.pathname)):a.pathname=r.pathname:a.pathname||(a.pathname="/"),a}function x(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var S=!("undefined"==typeof window||!window.document||!window.document.createElement);function C(e,t){t(window.confirm(e))}function T(){try{return window.history.state||{}}catch(e){return{}}}function O(e){void 0===e&&(e={}),S||y(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,i=o.forceRefresh,l=void 0!==i&&i,u=o.getUserConfirmation,c=void 0===u?C:u,f=o.keyLength,d=void 0===f?6:f,p=e.basename?w(v(e.basename)):"";function m(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return p&&(o=b(o,p)),k(o,r,n)}function h(){return Math.random().toString(36).substr(2,d)}var g=x();function O(e){s(z,e),z.length=n.length,g.notifyListeners(z.location,z.action)}function _(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(m(e.state))}function P(){I(m(T()))}var N=!1;function I(e){if(N)N=!1,O();else{g.confirmTransitionTo(e,"POP",c,(function(t){t?O({action:"POP",location:e}):function(e){var t=z.location,n=A.indexOf(t.key);-1===n&&(n=0);var r=A.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(N=!0,R(a))}(e)}))}}var j=m(T()),A=[j.key];function M(e){return p+E(e)}function R(e){n.go(e)}var F=0;function D(e){1===(F+=e)&&1===e?(window.addEventListener("popstate",_),a&&window.addEventListener("hashchange",P)):0===F&&(window.removeEventListener("popstate",_),a&&window.removeEventListener("hashchange",P))}var L=!1;var z={length:n.length,action:"POP",location:j,createHref:M,push:function(e,t){var a=k(e,t,h(),z.location);g.confirmTransitionTo(a,"PUSH",c,(function(e){if(e){var t=M(a),o=a.key,i=a.state;if(r)if(n.pushState({key:o,state:i},null,t),l)window.location.href=t;else{var u=A.indexOf(z.location.key),c=A.slice(0,u+1);c.push(a.key),A=c,O({action:"PUSH",location:a})}else window.location.href=t}}))},replace:function(e,t){var a=k(e,t,h(),z.location);g.confirmTransitionTo(a,"REPLACE",c,(function(e){if(e){var t=M(a),o=a.key,i=a.state;if(r)if(n.replaceState({key:o,state:i},null,t),l)window.location.replace(t);else{var u=A.indexOf(z.location.key);-1!==u&&(A[u]=a.key),O({action:"REPLACE",location:a})}else window.location.replace(t)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=g.setPrompt(e);return L||(D(1),L=!0),function(){return L&&(L=!1,D(-1)),t()}},listen:function(e){var t=g.appendListener(e);return D(1),function(){D(-1),t()}}};return z}var _={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+g(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:g,decodePath:v},slash:{encodePath:v,decodePath:v}};function P(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function N(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function I(e){window.location.replace(P(window.location.href)+"#"+e)}function j(e){void 0===e&&(e={}),S||y(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,a=void 0===r?C:r,o=n.hashType,i=void 0===o?"slash":o,l=e.basename?w(v(e.basename)):"",u=_[i],c=u.encodePath,f=u.decodePath;function d(){var e=f(N());return l&&(e=b(e,l)),k(e)}var p=x();function m(e){s(z,e),z.length=t.length,p.notifyListeners(z.location,z.action)}var h=!1,g=null;function T(){var e,t,n=N(),r=c(n);if(n!==r)I(r);else{var o=d(),i=z.location;if(!h&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(g===E(o))return;g=null,function(e){if(h)h=!1,m();else{p.confirmTransitionTo(e,"POP",a,(function(t){t?m({action:"POP",location:e}):function(e){var t=z.location,n=M.lastIndexOf(E(t));-1===n&&(n=0);var r=M.lastIndexOf(E(e));-1===r&&(r=0);var a=n-r;a&&(h=!0,R(a))}(e)}))}}(o)}}var O=N(),j=c(O);O!==j&&I(j);var A=d(),M=[E(A)];function R(e){t.go(e)}var F=0;function D(e){1===(F+=e)&&1===e?window.addEventListener("hashchange",T):0===F&&window.removeEventListener("hashchange",T)}var L=!1;var z={length:t.length,action:"POP",location:A,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=P(window.location.href)),n+"#"+c(l+E(e))},push:function(e,t){var n=k(e,void 0,void 0,z.location);p.confirmTransitionTo(n,"PUSH",a,(function(e){if(e){var t=E(n),r=c(l+t);if(N()!==r){g=t,function(e){window.location.hash=e}(r);var a=M.lastIndexOf(E(z.location)),o=M.slice(0,a+1);o.push(t),M=o,m({action:"PUSH",location:n})}else m()}}))},replace:function(e,t){var n=k(e,void 0,void 0,z.location);p.confirmTransitionTo(n,"REPLACE",a,(function(e){if(e){var t=E(n),r=c(l+t);N()!==r&&(g=t,I(r));var a=M.indexOf(E(z.location));-1!==a&&(M[a]=t),m({action:"REPLACE",location:n})}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return L||(D(1),L=!0),function(){return L&&(L=!1,D(-1)),t()}},listen:function(e){var t=p.appendListener(e);return D(1),function(){D(-1),t()}}};return z}function A(e,t,n){return Math.min(Math.max(e,t),n)}function M(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,a=void 0===r?["/"]:r,o=t.initialIndex,i=void 0===o?0:o,l=t.keyLength,u=void 0===l?6:l,c=x();function f(e){s(v,e),v.length=v.entries.length,c.notifyListeners(v.location,v.action)}function d(){return Math.random().toString(36).substr(2,u)}var p=A(i,0,a.length-1),m=a.map((function(e){return k(e,void 0,"string"==typeof e?d():e.key||d())})),h=E;function y(e){var t=A(v.index+e,0,v.entries.length-1),r=v.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var v={length:m.length,action:"POP",location:m[p],index:p,entries:m,createHref:h,push:function(e,t){var r=k(e,t,d(),v.location);c.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=v.index+1,n=v.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=k(e,t,d(),v.location);c.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(v.entries[v.index]=r,f({action:"REPLACE",location:r}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=v.index+e;return t>=0&&t<v.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return v}var R=n(22),F=n.n(R),D=n(34),L=n.n(D);function z(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var U=a.a.createContext||function(e,t){var n,a,o="__create-react-context-"+L()()+"__",i=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=z(t.props.value),t}F()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(i=a)?0!==o||1/o==1/i:o!=o&&i!=i)?n=0:(n="function"==typeof t?t(r,a):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,i},r.render=function(){return this.props.children},n}(r.Component);i.childContextTypes=((n={})[o]=c.a.object.isRequired,n);var l=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}F()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return l.contextTypes=((a={})[o]=c.a.object,a),{Provider:i,Consumer:l}},B=n(23),W=n.n(B);n(33);function K(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var H=n(35),V=n.n(H),q=function(e){var t=U();return t.displayName=e,t}("Router"),$=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}l(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return a.a.createElement(q.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(a.a.Component);var Q=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=M(t.props),t}return l(t,e),t.prototype.render=function(){return a.a.createElement($,{history:this.history,children:this.props.children})},t}(a.a.Component);var Y=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.a.Component);var X={},Z=0;function G(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(X[e])return X[e];var t=W.a.compile(e);return Z<1e4&&(X[e]=t,Z++),t}(e)(t,{pretty:!0})}function J(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a.a.createElement(q.Consumer,null,(function(e){e||y(!1);var r=e.history,i=e.staticContext,l=o?r.push:r.replace,u=k(t?"string"==typeof n?G(n,t.params):s({},n,{pathname:G(n.pathname,t.params)}):n);return i?(l(u),null):a.a.createElement(Y,{onMount:function(){l(u)},onUpdate:function(e,t){var n,r,a=k(t.to);n=a,r=s({},u,{key:a.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&h(n.state,r.state)||l(u)},to:n})}))}var ee={},te=0;function ne(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,i=n.strict,l=void 0!==i&&i,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=ee[n]||(ee[n]={});if(r[e])return r[e];var a=[],o={regexp:W()(e,a,t),keys:a};return te<1e4&&(r[e]=o,te++),o}(n,{end:o,strict:l,sensitive:c}),a=r.regexp,i=r.keys,u=a.exec(e);if(!u)return null;var s=u[0],f=u.slice(1),d=e===s;return o&&!d?null:{path:n,url:"/"===n&&""===s?"/":s,isExact:d,params:i.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var re=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(q.Consumer,null,(function(t){t||y(!1);var n=e.props.location||t.location,r=s({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?ne(n.pathname,e.props):t.match}),o=e.props,i=o.children,l=o.component,u=o.render;return Array.isArray(i)&&0===i.length&&(i=null),a.a.createElement(q.Provider,{value:r},r.match?i?"function"==typeof i?i(r):i:l?a.a.createElement(l,r):u?u(r):null:"function"==typeof i?i(r):null)}))},t}(a.a.Component);function ae(e){return"/"===e.charAt(0)?e:"/"+e}function oe(e,t){if(!e)return t;var n=ae(e);return 0!==t.pathname.indexOf(n)?t:s({},t,{pathname:t.pathname.substr(n.length)})}function ie(e){return"string"==typeof e?e:E(e)}function le(e){return function(){y(!1)}}function ue(){}a.a.Component;var ce=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(q.Consumer,null,(function(t){t||y(!1);var n,r,o=e.props.location||t.location;return a.a.Children.forEach(e.props.children,(function(e){if(null==r&&a.a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?ne(o.pathname,s({},e.props,{path:i})):t.match}})),r?a.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.a.Component);function se(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=K(t,["wrappedComponentRef"]);return a.a.createElement(q.Consumer,null,(function(t){return t||y(!1),a.a.createElement(e,s({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,V()(n,e)}var fe=a.a.useContext;function de(e){return e?ne(fe(q).location.pathname,e):fe(q).match}a.a.Component;var pe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=j(t.props),t}return l(t,e),t.prototype.render=function(){return a.a.createElement($,{history:this.history,children:this.props.children})},t}(a.a.Component);var me=function(e,t){return"function"==typeof e?e(t):e},he=function(e,t){return"string"==typeof e?k(e,null,null,t):e},ye=function(e){return e},ve=a.a.forwardRef;void 0===ve&&(ve=ye);var ge=ve((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=K(e,["innerRef","navigate","onClick"]),l=i.target,u=s({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=ye!==ve&&t||n,a.a.createElement("a",u)}));var be=ve((function(e,t){var n=e.component,r=void 0===n?ge:n,o=e.replace,i=e.to,l=e.innerRef,u=K(e,["component","replace","to","innerRef"]);return a.a.createElement(q.Consumer,null,(function(e){e||y(!1);var n=e.history,c=he(me(i,e.location),e.location),f=c?n.createHref(c):"",d=s({},u,{href:f,navigate:function(){var t=me(i,e.location);(o?n.replace:n.push)(t)}});return ye!==ve?d.ref=t||l:d.innerRef=l,a.a.createElement(r,d)}))})),we=function(e){return e},Ee=a.a.forwardRef;void 0===Ee&&(Ee=we);Ee((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,i=void 0===o?"active":o,l=e.activeStyle,u=e.className,c=e.exact,f=e.isActive,d=e.location,p=e.strict,m=e.style,h=e.to,v=e.innerRef,g=K(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return a.a.createElement(q.Consumer,null,(function(e){e||y(!1);var n=d||e.location,o=he(me(h,n),n),b=o.pathname,w=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=w?ne(n.pathname,{path:w,exact:c,strict:p}):null,k=!!(f?f(E,n):E),x=k?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(u,i):u,S=k?s({},m,{},l):m,C=s({"aria-current":k&&r||null,className:x,style:S,to:o},g);return we!==Ee?C.ref=t||v:C.innerRef=v,a.a.createElement(be,C)}))}));function ke(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Se(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||Se(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Te=a.a.createContext({errors:[],addError:function(){},removeError:function(){}});function Oe(e){var t=e.children,n=xe(Object(r.useState)([]),2),o=n[0],i=n[1],l={errors:o,addError:Object(r.useCallback)((function(e,t,n){return function(e,t,n){i((function(r){return[].concat(ke(r),[{code:e,message:t,debug:n}])}))}(e,t,n)}),[]),removeError:Object(r.useCallback)((function(e){return t=e,void i((function(e){return e.filter((function(e){return e!==t}))}));var t}),[])};return a.a.createElement(Te.Provider,{value:l},t)}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return je(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ae=a.a.createContext({globalConfig:{},setConfigValue:function(){}});function Me(e){var t=e.children,n=e.config,o=void 0===n?{}:n,i=Ie(Object(r.useState)(Object.keys(o).length>0?o:window.template_kit_import),2),l=i[0],u=i[1],c={globalConfig:l,setConfigValue:Object(r.useCallback)((function(e,t){return function(e,t){u((function(n){return Pe(Pe({},n),{},Ne({},e,t))}))}(e,t)}),[])};return a.a.createElement(Ae.Provider,{value:c},t)}var Re=function(){var e=Object(r.useContext)(Te);return{errors:e.errors,addError:e.addError,removeError:e.removeError}},Fe=n(4),De=n.n(Fe),Le=n(16),ze=n.n(Le);function Ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Be(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var We={overlay:{backgroundColor:"rgba(32, 32, 32, 0.81)",zIndex:199999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",padding:"40px",borderRadius:"10px"}},Ke=function(e){var t=e.isOpen,n=e.onCloseCallback,o=void 0===n?null:n,i=e.children,l=Ue(a.a.useState(!1),2),u=l[0],c=l[1],s=function(){c(!1),o&&o()};return Object(r.useEffect)((function(){t&&c(!0)}),[t]),Object(r.useEffect)((function(){"undefined"!=typeof window&&window.templateKitImport&&window.templateKitImport.modalAppHolder&&De.a.setAppElement(window.templateKitImport.modalAppHolder)})),a.a.createElement(De.a,{isOpen:u,onRequestClose:s,style:We,contentLabel:"Envato Elements","data-testid":"modal-wrapper"},a.a.createElement("div",{className:ze.a.modalInner},a.a.createElement("button",{onClick:s,"data-testid":"modal-close-button",className:ze.a.closeButton},a.a.createElement("span",{className:"dashicons dashicons-no-alt ".concat(ze.a.dismissIcon)})),"function"==typeof i?i({closeModal:s}):i))},He=n(17),Ve=n.n(He),qe=function(e){var t=e.title,n=e.subtitle;return a.a.createElement("div",{className:Ve.a.wrapper},a.a.createElement("h1",{className:Ve.a.title},t),n?a.a.createElement("p",{className:Ve.a.subtitle},n):null)},$e=n(9),Qe=n.n($e),Ye=n(18),Xe=n.n(Ye),Ze=function(e){var t=e.label,n=e.icon,r=["dashicons",Ge[n],Xe.a.icon];return t&&r.push(Xe.a.iconWithLabel),a.a.createElement(a.a.Fragment,null,n?a.a.createElement("span",{className:r.join(" ")}):null,t)},Ge={arrow:"dashicons-arrow-right-alt2",tick:"dashicons-yes",info:"dashicons-info",eye:"dashicons-visibility",cross:"dashicons-dismiss",update:"dashicons-update",updateSpinning:"dashicons-update ".concat(Xe.a.iconSpinning),link:"dashicons-external",plus:"dashicons-plus-alt",trash:"dashicons-trash",download:"dashicons-download",expand:"dashicons-editor-expand"};Ze.propTypes={label:c.a.string,icon:c.a.oneOf(Object.keys(Ge))},Ze.defaultProps={label:null,icon:null};var Je=Ze,et=n(13),tt=n.n(et);function nt(){return(nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function rt(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var at=function(e){var t=e.type,n=e.dataTestId,r=e.element,o=e.children,i=rt(e,["type","dataTestId","element","children"]);return"button"===r?a.a.createElement("button",nt({className:tt.a[t],"data-testid":n},i),o):"Link"===r?a.a.createElement(be,nt({className:tt.a[t],"data-testid":n},i),o):"a"===r?a.a.createElement("a",nt({className:tt.a[t],"data-testid":n},i),o):"label"===r?a.a.createElement("label",nt({className:tt.a[t],"data-testid":n},i),o):void 0};at.propTypes={type:c.a.oneOf(["ghost","primary","secondary","warning","attention"]),dataTestId:c.a.string,element:c.a.oneOf(["button","a","Link","label"]).isRequired,children:c.a.node},at.defaultProps={type:"ghost",dataTestId:null,children:null};var ot=at,it=function(e){var t=e.type,n=e.label,r=e.icon,o=e.onClick,i=e.disabled,l=e.dataTestId;return a.a.createElement(ot,{element:"button",type:t,onClick:o,disabled:i,dataTestId:l},a.a.createElement(Je,{label:n,icon:r}))};it.propTypes={type:c.a.string,label:c.a.string,icon:c.a.string,onClick:c.a.func,disabled:c.a.bool,dataTestId:c.a.string},it.defaultProps={type:"ghost",label:null,icon:null,onClick:null,disabled:!1,dataTestId:null};var lt=it,ut=n(36),ct=n.n(ut),st=function(e){var t=e.children;return a.a.createElement("div",{className:ct.a.wrapper},t)};function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mt=function(e){var t=e.error,n=dt(Object(r.useState)(!1),2),o=n[0],i=n[1];return a.a.createElement("div",{className:Qe.a.debugWrapper},t.debug&&o?a.a.createElement("div",{className:Qe.a.debugInformation},a.a.createElement("textarea",{className:Qe.a.debugText,onClick:function(e){e.target.focus(),e.target.select()},defaultValue:"object"===ft(t.debug)?JSON.stringify(t.debug,null,"\t"):t.debug})):null,a.a.createElement("div",{className:Qe.a.debugActions},a.a.createElement(st,null,a.a.createElement(lt,{icon:"update",label:"Refresh Page",onClick:function(e){return e.preventDefault(),window.location.reload(),!1}}),t.debug?a.a.createElement(lt,{icon:"eye",label:o?"Hide Debug Details":"Show Debug Details",className:Qe.a.buttonDebug,onClick:function(){i(!o)}}):null),"If this error continues please contact ",a.a.createElement("a",{href:"mailto:extensions@envato.com"},"extensions@envato.com"),"."))},ht=function(){var e=Re(),t=e.errors,n=e.removeError;return t.length>0?a.a.createElement(a.a.Fragment,null,t.map((function(e){return"zip_failure"===e.code?a.a.createElement(Ke,{key:e.code,isOpen:!0,onCloseCallback:function(){n(e)}},a.a.createElement(qe,{title:"Template Kit Install Error"}),a.a.createElement("p",{className:Qe.a.copy},"There was an issue installing this template kit. Please try again."),e.message,a.a.createElement(mt,{error:e})):"generic_api_error"===e.code?a.a.createElement(Ke,{key:e.code,isOpen:!0,onCloseCallback:function(){n(e)}},a.a.createElement(qe,{title:"Unexpected Error"}),a.a.createElement("p",{className:Qe.a.copy},"Sorry there was an unexpected error from API call:"),e.message,a.a.createElement(mt,{error:e})):void 0}))):null},yt=n(3),vt=n.n(yt),gt=n(37),bt=n.n(gt);function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt=function(){var e=Object(r.useContext)(Ae),t=e.globalConfig,n=e.setConfigValue,a=function(e,r){var a=t[e]||[];n(e,Et(Et({},a),r))};return{getDownloadedItemId:function(e){return t.downloaded_items?t.downloaded_items[e]:null},addDownloadedItem:function(e){var t=e.humaneId,n=e.importedId;a("downloaded_items",kt({},t,n))},removeDownloadedItem:function(e){var n=e.importedId;Object.keys(t.downloaded_items).map((function(e){t.downloaded_items[e]===n&&delete t.downloaded_items[e]}))},subscriptionStatus:t.subscription_status,setSubscriptionStatus:function(e){n("subscription_status",e)},bannerHasBeenDismissed:function(e){a("dismissed_banners",kt({},e,!0))},isBannerDismissed:function(e){return t.dismissed_banners?t.dismissed_banners[e]:null},getConfigProjectName:function(){return t.project_name},setConfigProjectName:function(e){n("project_name",e)},getMagicButtonMode:function(){return t.magicButtonMode},setMagicButtonMode:function(e){n("magicButtonMode",e)},getElementsTokenUrl:function(){return t.elements_token_url},getApiUrl:function(){return t.api_url},getApiNonce:function(){return t.api_nonce},getReviewMode:function(){return t.review_mode}}};function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){Tt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ot(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}function _t(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Ot(o,r,a,i,l,"next",e)}function l(e){Ot(o,r,a,i,l,"throw",e)}i(void 0)}))}}function Pt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var It=function(e){var t=e.endpoint,n=e.args,a=void 0===n?{}:n,o=e.allowLongRunning,i=void 0!==o&&o,l=xt(),u=l.getApiUrl,c=l.getApiNonce,s=Pt(Object(r.useState)({loading:!0,data:null,error:null}),2),f=s[0],d=s[1],p=Re().addError,m=t+JSON.stringify(a);return Object(r.useEffect)((function(){var e=new AbortController,n=e.signal;function r(){return(r=_t(regeneratorRuntime.mark((function e(){var r,o,i,l,s,f,m,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(l in d((function(e){return{loading:!0,error:null,data:e.data}})),r=u()+t,o=Ct(Ct({},a),{},{_wpnonce:c()}),i=new FormData,o)i.append(l,o[l]);return s=null,e.prev=6,e.next=9,fetch(r,{method:"post",body:i,signal:n});case 9:return f=e.sent,e.next=12,f.clone().text();case 12:return s=e.sent,e.next=15,f.json();case 15:if(m=e.sent,f.ok){e.next=20;break}return m&&m.error&&m.error.code&&p(m.error.code,m.error.message,m),d({loading:!1,error:!0,data:m}),e.abrupt("return");case 20:d({loading:!1,error:null,data:m}),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(6),"AbortError"!==e.t0.name&&(h="".concat(e.t0,". ").concat(s?s.slice(0,200):""),p("generic_api_error",h,s),d({loading:!1,error:!0,data:e.t0.message}));case 26:case"end":return e.stop()}}),e,null,[[6,23]])})))).apply(this,arguments)}return function(){r.apply(this,arguments)}(),function(){i||e.abort()}}),[m]),f},jt=function(e){var t=e.importedTemplateId;return"post.php?post=".concat(t,"&action=elementor")};function At(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rt=function(e){var t=e.chosenFile,n=e.onComplete,r=It({endpoint:"uploadTemplateKitZipFile",args:{file:t}}),a=r.loading,o=r.data,i=r.error;return!a&&!i&&o&&o.templateKitId&&setTimeout((function(){var e,t;n((e={importedTemplateKitId:o.templateKitId},t=e.importedTemplateKitId,"/template-kits/installed-kits/kit/".concat(t)))}),200),null},Ft=se((function(e){var t=e.history,n=At(Object(r.useState)(null),2),o=n[0],i=n[1];return a.a.createElement(a.a.Fragment,null,a.a.createElement(ot,{element:"label",htmlFor:"upload-template-kit-zip-file"},a.a.createElement(Je,{label:o?"Processing...":"Upload Template Kit (Zip File)",icon:"link"}),a.a.createElement("input",{type:"file",name:"upload-template-kit-zip-file",id:"upload-template-kit-zip-file",className:bt.a.formInput,onChange:function(e){i(e.target.files[0])}})),o?a.a.createElement(Rt,{chosenFile:o,onComplete:function(e){i(!1),t.push(e)}}):null)})),Dt=function(){return a.a.createElement("div",{className:vt.a.wrapper},a.a.createElement("div",{className:vt.a.logo},a.a.createElement(be,{to:"/",className:vt.a.logoLink},"Envato")),a.a.createElement("nav",{className:vt.a.menu},a.a.createElement("ul",{className:vt.a.menuInner},a.a.createElement("li",{className:vt.a.menuItem},a.a.createElement(be,{to:"/template-kits/installed-kits",className:"".concat(vt.a.menuLink," ").concat(de({path:"/template-kits"})?vt.a.menuLinkActive:"")},"Template Kits"))),a.a.createElement("ul",{className:"".concat(vt.a.menuInner," ").concat(vt.a.menuRight)},a.a.createElement("li",{className:vt.a.menuItem},a.a.createElement(Ft,null)))))},Lt=function(e){var t=e.href,n=e.text,r=void 0===n?"Link":n;return a.a.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"},r)},zt=n(38),Ut=n.n(zt),Bt=function(){return a.a.createElement("div",{className:Ut.a.footerBar},a.a.createElement("p",null,a.a.createElement("strong",null,"Feedback & Support: ")," If you have any questions or feedback for the team please send an email to"," ",a.a.createElement(Lt,{href:"mailto:extensions@envato.com",text:"extensions@envato.com"})," | ",a.a.createElement(Lt,{href:"https://envato.com/privacy?utm_source=extensions&utm_medium=referral&utm_campaign=template_kit_import_footer",text:"Privacy Policy"})," | ",a.a.createElement(Lt,{href:"https://help.market.envato.com/hc/en-us/sections/360007560992-Template-Kits?utm_source=extensions&utm_medium=referral&utm_campaign=template_kit_import_footer",text:"Help"})))},Wt=n(2),Kt=n.n(Wt);function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yt=function(e){var t=e.requirement,n=e.completeCallback;if(!t)return Object(r.useEffect)((function(){n()}),[]),"Skipped";var o=function(e){var t={requirement:JSON.stringify(e)};return It({endpoint:"installRequirement",args:t})}(t),i=o.loading,l=o.data,u=o.error;return Object(r.useEffect)((function(){i||n(u)}),[i]),a.a.createElement(a.a.Fragment,null,i?a.a.createElement(a.a.Fragment,null,a.a.createElement("span",{className:"dashicons dashicons-update ".concat(Kt.a.installingIcon)}),"Installing..."):null,u?a.a.createElement(a.a.Fragment,null,a.a.createElement("span",{className:"dashicons dashicons-no"}),l&&l.error?a.a.createElement(a.a.Fragment,null,l.error.data&&l.error.data.url?a.a.createElement("a",{href:l.error.data.url,target:"_blank",rel:"noopener noreferrer"},l.error.message):l.error.message):"Error"):null,i||u?null:a.a.createElement(a.a.Fragment,null,a.a.createElement("span",{className:"dashicons dashicons-yes-alt"}),"Success!"))},Xt=function(e){var t=e.plugins,n=e.theme,o=e.settings,i=e.completeCallback,l=$t(Object(r.useState)(!1),2),u=l[0],c=l[1],s=$t(Object(r.useState)(null),2),f=s[0],d=s[1],p=$t(Object(r.useState)({}),2),m=p[0],h=p[1],y=function(){d((function(e){return e+1}))},v=[];t.forEach((function(e){"activated"!==e.status&&v.push({plugin:e})})),o.forEach((function(e){v.push({setting:e})}));var g=v.length;if(0===g)return null;var b=function(e){return void 0===m[e]||m[e]};return a.a.createElement(a.a.Fragment,null,u?a.a.createElement(Ke,{isOpen:!0,onCloseCallback:i},a.a.createElement("div",null,a.a.createElement(qe,{title:"Missing Requirements"}),a.a.createElement("p",{className:Kt.a.notice},"Please install and activate these missing requirements for this Template Kit to work correctly. We recommend checking with your web developer before applying these changes."),a.a.createElement("ul",{className:Kt.a.requirements},v.map((function(e,t){return a.a.createElement("li",{key:"requirement".concat(t),className:Kt.a.requirement},a.a.createElement("div",{className:Kt.a.checkbox},a.a.createElement("input",{type:"checkbox",id:"requirement".concat(t),name:"installRequirement[]",value:"1",disabled:null!==f,checked:b(t),onChange:function(e){var n=!!e.target.checked;h((function(e){return Vt(Vt({},e),{},qt({},t,n))}))}})),a.a.createElement("div",{className:Kt.a.text},a.a.createElement("label",{htmlFor:"requirement".concat(t)},e.theme?"Theme: ".concat(e.theme.name):null,e.plugin?"Plugin: ".concat(e.plugin.name):null,e.setting?"Setting: ".concat(e.setting.name):null)),a.a.createElement("div",{className:Kt.a.status},f===t||f>t?a.a.createElement(Yt,{key:"installRequirement".concat(t),requirement:b(t)?e:null,completeCallback:y}):null))})),n?a.a.createElement("li",{className:Kt.a.requirement},a.a.createElement("div",{className:Kt.a.checkbox},a.a.createElement("span",{className:"dashicons dashicons-warning"})),a.a.createElement("div",{className:Kt.a.text},'FYI: This Template Kit has only been tested with the "',n.name,'" WordPress theme. ',a.a.createElement("br",null),"If the imported templates don’t look correct please read ",a.a.createElement(Lt,{href:"https://help.market.envato.com/hc/en-us/sections/360007560992-Template-Kits",text:"this article"}),".")):null),a.a.createElement("div",{className:Kt.a.footer},null===f?a.a.createElement(lt,{type:"primary",icon:"plus",label:"Install Above Selected Requirements",onClick:function(){d(0)}}):a.a.createElement(a.a.Fragment,null,f>=g?a.a.createElement(a.a.Fragment,null,a.a.createElement("p",{className:Kt.a.notice},"Once the above is completed you can close this window."),a.a.createElement(lt,{type:"primary",icon:"plus",label:"Close",onClick:i})):a.a.createElement("p",{className:Kt.a.notice},"Installing..."))))):null,a.a.createElement("div",{className:Kt.a.wrapper},a.a.createElement("div",{className:Kt.a.textWrapper},a.a.createElement("strong",null,"Attention!")," There are ",g," requirements that need installing for this Template Kit to work correctly."),a.a.createElement("div",{className:Kt.a.buttonWrapper},a.a.createElement(lt,{type:"attention",label:"Install Requirements",icon:"info",onClick:function(){c(!0)}}))))};Xt.propTypes={plugins:c.a.arrayOf(c.a.shape({author:c.a.string,file:c.a.string,name:c.a.string,slug:c.a.string,status:c.a.string,url:c.a.string,version:c.a.string})),settings:c.a.arrayOf(c.a.shape({name:c.a.string,setting_name:c.a.string})),completeCallback:c.a.func.isRequired},Xt.defaultProps={plugins:[],settings:[]};var Zt=Xt,Gt=n(24),Jt=n.n(Gt),en=function(){return a.a.createElement("div",{className:Jt.a.wrap},a.a.createElement("span",{className:Jt.a.inner,"aria-label":"Loading"}))},tn=function(e){return It({endpoint:"fetchInstalledTemplateKits",args:e})},nn=n(5),rn=n.n(nn),an=function(e){var t=e.currentKitId,n=e.handleChangeKitId,r=tn();return a.a.createElement(a.a.Fragment,null,!r.loading&&r.data&&r.data.length>1?a.a.createElement("div",{className:rn.a.currentKit},a.a.createElement("div",{className:rn.a.optionKitWrapper},a.a.createElement("div",{className:rn.a.optionKit},a.a.createElement("button",{className:"".concat(rn.a.optionKitLink," ").concat("all"===t?rn.a.optionKitLinkCurrent:""),onClick:function(){n("all")}},"All Kits")),r.data.map((function(e){return a.a.createElement("div",{className:rn.a.optionKit,key:e.id},a.a.createElement("button",{className:"".concat(rn.a.optionKitLink," ").concat(t===e.id?rn.a.optionKitLinkCurrent:""),onClick:function(){n(e.id)}},e.title))})))):null)};function on(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ln(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var un=function(e){var t=e.actionHook,n=e.LoadingButton,r=e.SuccessButton,a=e.ErrorButton,o=e.errorCallback,i=e.completeCallback,l=t(),u=l.loading,c=l.data,s=l.error;return u||s?s?(setTimeout((function(){o(c)}),100),a):n:(setTimeout((function(){i(c)}),500),r)},cn=function(e){var t=e.DefaultButton,n=e.CompletedButton,o=e.LoadingButton,i=e.ErrorButton,l=e.SuccessButton,u=e.actionHook,c=e.isAlreadyCompleted,s=void 0!==c&&c,f=e.completedCallback,d=void 0===f?null:f,p=e.errorCallback,m=void 0===p?null:p,h=e.actionConfirmationMessage,y=void 0===h?null:h,v=on(Object(r.useState)(!1),2),g=v[0],b=v[1],w=on(Object(r.useState)(s),2),E=w[0],k=w[1],x=on(Object(r.useState)(null),2),S=x[0],C=x[1];return Object(r.useEffect)((function(){E&&d&&!s&&d(E)}),[E]),Object(r.useEffect)((function(){S&&m&&m(S)}),[S]),Object(r.useEffect)((function(){k(s)}),[s]),E?n:g?a.a.createElement(un,{actionHook:u,LoadingButton:o,ErrorButton:i,SuccessButton:l,errorCallback:function(e){setTimeout((function(){b(!1)}),500),C(e)},completeCallback:function(e){b(!1),k(e)}}):a.a.cloneElement(t,{onClick:function(e){if(y&&!confirm(y))return e.preventDefault(),!1;b(!0)}})},sn=function(e){var t=e.templateKitId,n=e.customActionHook,r=void 0===n?null:n,o=e.completeCallback,i=void 0===o?null:o,l=e.errorCallback,u=void 0===l?null:l;return a.a.createElement(cn,{DefaultButton:a.a.createElement(lt,{type:"warning",label:"",icon:"trash"}),actionConfirmationMessage:"Really delete this Template Kit?",LoadingButton:a.a.createElement(lt,{type:"warning",label:"",icon:"trash",disabled:!0}),ErrorButton:a.a.createElement(lt,{type:"warning",label:"",icon:"trash",disabled:!0}),SuccessButton:a.a.createElement(lt,{type:"warning",label:"",icon:"trash",disabled:!0}),CompletedButton:a.a.createElement(lt,{type:"warning",label:"",icon:"trash"}),actionHook:function(){return r?r():It({endpoint:"deleteTemplateKit",args:{templateKitId:t},allowLongRunning:!0})},isAlreadyCompleted:!1,completedCallback:function(){i&&i()},errorCallback:u})},fn=n(25),dn=n.n(fn),pn=function(e){var t=e.message;return a.a.createElement("div",{className:dn.a.message},a.a.createElement("p",{className:dn.a.copy},t))};pn.propTypes={message:c.a.string},pn.defaultProps={message:"Sorry there was an error loading this data. Please try again."};var mn=pn,hn=n(19),yn=n.n(hn),vn=function(e){var t=e.children,n=e.includeLastItemSpacer,r=void 0!==n&&n;return a.a.createElement("div",{className:yn.a.wrapper},a.a.createElement("div",{className:yn.a.inner},t,r?a.a.createElement("div",{className:yn.a.cardSpacing}):null))},gn=n(6),bn=n.n(gn);function wn(){return(wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function En(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var kn=function(e){var t=e.colWidthPercentage,n=void 0===t?20:t,r=e.children,o=e.className,i=En(e,["colWidthPercentage","children","className"]),l=[bn.a.item];return 20===n&&l.push(bn.a.widthTwenty),25===n&&l.push(bn.a.widthTwentyFive),33===n&&l.push(bn.a.widthThirtyThree),40===n&&l.push(bn.a.widthFourty),50===n&&l.push(bn.a.widthFifty),60===n&&l.push(bn.a.widthSixty),100===n&&l.push(bn.a.widthFull),o&&l.push(o),a.a.createElement("div",wn({className:l.join(" ")},i),r)},xn=n(10),Sn=n.n(xn),Cn=function(e){var t=e.Images,n=e.Buttons,r=e.title,o=e.description;return a.a.createElement("div",{className:Sn.a.wrapper},a.a.createElement("div",{className:Sn.a.inner},a.a.createElement("div",{className:Sn.a.images},t),a.a.createElement("div",{className:Sn.a.meta},a.a.createElement("h4",{className:Sn.a.cardTitle},r),a.a.createElement("p",{className:Sn.a.cardDescription},o),n)))},Tn=function(e){return It({endpoint:"importSingleTemplate",args:e,allowLongRunning:!0})};function On(){return(On=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _n(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Pn=function(e){var t=e.type,n=e.label,r=e.icon,o=e.href,i=e.openNewWindow,l=_n(e,["type","label","icon","href","openNewWindow"]),u=i?{target:"_blank",rel:"noopener noreferrer"}:null;return a.a.createElement(ot,On({href:o,type:t,element:"a"},u,l),a.a.createElement(Je,{label:n,icon:r}))};Pn.propTypes={type:c.a.string,label:c.a.string,icon:c.a.string,href:c.a.string.isRequired},Pn.defaultProps={type:"ghost",label:null,icon:null};var Nn=Pn;function In(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var An=function(e){var t=e.templateKitId,n=e.templateId,o=e.existingImports,i=e.customActionHook,l=void 0===i?null:i,u=e.completeCallback,c=void 0===u?null:u,s=e.errorCallback,f=void 0===s?null:s,d=In(Object(r.useState)(o.length?o[0].imported_template_id:null),2),p=d[0],m=d[1],h=In(Object(r.useState)(!1),2),y=h[0],v=h[1];return Object(r.useEffect)((function(){setTimeout((function(){return v(!1)}),300)}),[y]),a.a.createElement(a.a.Fragment,null,p?a.a.createElement(Nn,{href:jt({importedTemplateId:p}),type:"primary",label:"View Template",icon:"eye",openNewWindow:!0}):null,a.a.createElement(cn,{DefaultButton:p?a.a.createElement(lt,{type:"ghost",label:"Import Again",icon:"plus"}):a.a.createElement(lt,{type:"primary",label:"Import Template",icon:"plus"}),LoadingButton:a.a.createElement(lt,{type:"primary",label:"Importing",icon:"updateSpinning",disabled:!0}),ErrorButton:a.a.createElement(lt,{type:"warning",label:"Error",icon:"cross",disabled:!0}),SuccessButton:a.a.createElement(lt,{type:"primary",label:"Success!",icon:"tick",disabled:!0}),CompletedButton:a.a.createElement(lt,{type:"primary",label:"Success!",icon:"tick",disabled:!0}),actionHook:function(){return l?l():Tn({templateKitId:t,templateId:n,importAgain:!!p})},isAlreadyCompleted:y,completedCallback:function(e){e&&e.imported_template_id&&(m(e.imported_template_id),v(!0),c&&c(e))},errorCallback:f}))},Mn=function(e){var t=e.templateKitId,n=e.templateId,r=(e.existingImports,e.customActionHook),o=void 0===r?null:r,i=e.completeCallback,l=void 0===i?null:i,u=e.errorCallback,c=void 0===u?null:u,s=a.a.createElement(lt,{type:"primary",label:"Inserting...",icon:"updateSpinning",disabled:!0});return a.a.createElement(cn,{DefaultButton:a.a.createElement(lt,{type:"primary",label:"Insert Template",icon:"plus"}),LoadingButton:s,ErrorButton:a.a.createElement(lt,{type:"warning",label:"Error",icon:"cross",disabled:!0}),SuccessButton:s,CompletedButton:s,actionHook:function(){return o?o():Tn({templateKitId:t,templateId:n,insertToPage:!0})},isAlreadyCompleted:!1,completedCallback:function(e){e&&e.imported_template_id&&l&&l(e)},errorCallback:c})},Rn=n(26),Fn=n.n(Rn),Dn=function(){return a.a.createElement("div",{className:Fn.a.svgWrapper},a.a.createElement("svg",{className:Fn.a.svgEnvatoLogo,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",fill:"none",viewBox:"0 0 27 31"},a.a.createElement("path",{fill:"#fff",d:"M23.64 1.318C19.45-3.592 5.89 5.918 6 18.178a.58.58 0 01-.57.57.58.58 0 01-.49-.28 13.13 13.13 0 01-.52-9.65.53.53 0 00-.9-.52A13 13 0 000 17.188a13 13 0 0013.15 13.15c18.5-.42 14.23-24.64 10.49-29.02z"})))},Ln=n(7),zn=n.n(Ln);function Un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wn={overlay:{backgroundColor:"rgba(32, 32, 32, 0.81)",zIndex:199999},content:{background:"#f1f1f1",border:"0",top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",padding:"0",transform:"translate(-50%, -50%)",borderRadius:"4px"}},Kn=function(e){var t=e.isOpen,n=e.onCloseCallback,o=void 0===n?null:n,i=e.children,l=e.templatePreviewTitle,u=e.templateId,c=e.templateKitId,s=e.existingImports,f=Un(a.a.useState(!1),2),d=f[0],p=f[1],m=function(){p(!1),o&&o()};Object(r.useEffect)((function(){t&&p(!0)}),[t]),"undefined"!=typeof window&&window.templateKitImport&&window.templateKitImport.modalAppHolder&&De.a.setAppElement(window.templateKitImport.modalAppHolder);var h=(0,xt().getMagicButtonMode)();return a.a.createElement(De.a,{isOpen:d,onRequestClose:m,style:Wn,contentLabel:"Envato Elements","data-testid":"modal-wrapper"},a.a.createElement("div",{className:zn.a.modalInner},a.a.createElement("div",{className:zn.a.modalHeader},a.a.createElement("div",{className:zn.a.modalLogo},a.a.createElement(Dn,null)),a.a.createElement("div",{className:zn.a.headerTitle},l),a.a.createElement("div",{className:zn.a.headerActions},h&&"elementorMagicButton"===h.mode?a.a.createElement(Mn,{templateKitId:c,templateId:u,completeCallback:function(e){h.insertCallback&&"function"==typeof h.insertCallback&&h.insertCallback(e)}}):a.a.createElement(An,{templateKitId:c,templateId:u,existingImports:s}),a.a.createElement("button",{onClick:m,"data-testid":"modal-close-button",className:zn.a.closeButton},a.a.createElement("span",{className:"dashicons dashicons-no-alt ".concat(zn.a.dismissIcon)})))),a.a.createElement("div",{className:zn.a.kitInner},"function"==typeof i?i({closeModal:m}):i)))},Hn=n(39),Vn=n.n(Hn),qn=function(e){var t=e.onCloseCallback,n=e.templateId,r=e.templateKitId,o=e.existingImports,i=e.templateScreenShotUrl,l=e.templatePreviewTitle;return a.a.createElement(Kn,{templateId:n,templateKitId:r,existingImports:o,templatePreviewTitle:l,isOpen:!0,onCloseCallback:t},a.a.createElement("img",{className:Vn.a.previewTemplate,src:i,alt:l}))},$n=n(14),Qn=n.n($n);function Yn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zn=function(e){var t=e.template,n=Yn(Object(r.useState)(!1),2),o=n[0],i=n[1],l=Object(r.useRef)(null),u=t.id,c=t.template_kit_id,s=t.name,f=t.screenshot_url,d=t.imports,p=Yn(Object(r.useState)(t.unmet_requirements&&t.unmet_requirements.length>0),2),m=p[0],h=p[1],y=t.metadata.additional_template_information?t.metadata.additional_template_information.join(" "):"",v=(0,xt().getMagicButtonMode)();return a.a.createElement(kn,{colWidthPercentage:33,key:u},a.a.createElement(Cn,{Images:a.a.createElement("div",{className:Qn.a.imageWrapper},a.a.createElement("img",{src:f,alt:s,className:Qn.a.image}),a.a.createElement("div",{className:Qn.a.expandButton,ref:l,onClick:function(e){e.target===l.current&&i(!0)}},o?a.a.createElement(qn,{templateScreenShotUrl:f,templatePreviewTitle:s,templateKitId:c,templateId:u,existingImports:d}):null,a.a.createElement(lt,{type:"ghost",icon:"expand",onClick:function(){i(!0)}}))),Buttons:a.a.createElement(a.a.Fragment,null,m?a.a.createElement(a.a.Fragment,null,a.a.createElement("p",{className:Qn.a.unmetRequirementsMessage},t.unmet_requirements.join(" ")),a.a.createElement(lt,{type:"warning",label:"Ignore Requirements",icon:"cross",onClick:function(){return h(!1)}})):a.a.createElement(st,null,v&&"elementorMagicButton"===v.mode?a.a.createElement(Mn,{templateKitId:c,templateId:u,completeCallback:function(e){v.insertCallback&&"function"==typeof v.insertCallback&&v.insertCallback(e)}}):a.a.createElement(An,{templateKitId:c,templateId:u,existingImports:d}))),title:s,description:y}))},Gn=function(e){var t=e.templates;return a.a.createElement(vn,{includeLastItemSpacer:!0},t.map((function(e){return a.a.createElement(Zn,{key:e.id,template:e})})))},Jn=n(27),er=n.n(Jn);function tr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rr=se((function(e){var t,n=e.history,o=((t=fe(q).match)?t.params:{}).id,i=de().path,l=tr(Object(r.useState)(null),2),u=l[0],c=l[1],s=It({endpoint:"fetchIndividualTemplates",args:{id:o,refresh:u}}),f=tr(Object(r.useState)(!1),2),d=f[0],p=f[1];return a.a.createElement(a.a.Fragment,null,s.loading?a.a.createElement(en,null):null,s.error?a.a.createElement(mn,null):null,d?a.a.createElement(J,{to:"/template-kits/installed-kits"}):null,s.loading||s.error||!s.data?null:a.a.createElement("div",null,s.data.requirements?a.a.createElement(Zt,{settings:s.data.requirements.settings,theme:s.data.requirements.theme,plugins:s.data.requirements.plugins,completeCallback:function(){c((new Date).getTime())}}):null,a.a.createElement("div",{className:er.a.headerWrapper},a.a.createElement(qe,{title:s.data.title}),a.a.createElement(an,{currentKitId:s.data.id,handleChangeKitId:function(e){n.push(i.replace(":id",e))}}),a.a.createElement("div",{className:er.a.deleteKitWrapper},a.a.createElement(sn,{templateKitId:s.data.id,completeCallback:function(){p(!0)}}))),a.a.createElement(Gn,{templates:s.data.templates})))})),ar=function(e){var t=e.type,n=e.label,r=e.icon,o=e.href;return a.a.createElement(ot,{element:"Link",to:o,type:t},a.a.createElement(Je,{label:n,icon:r}))};ar.propTypes={type:c.a.string,label:c.a.string,icon:c.a.string,href:c.a.string.isRequired},ar.defaultProps={type:"ghost",label:null,icon:null};var or=ar,ir=n(15),lr=n.n(ir);function ur(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sr=function(e){var t=e.item,n=de().url,o=ur(Object(r.useState)(!1),2),i=o[0],l=o[1],u=xt().getReviewMode;return i?null:a.a.createElement(kn,{colWidthPercentage:33,className:lr.a.itemCard},a.a.createElement(Cn,{Images:a.a.createElement(be,{to:"".concat(n,"/kit/").concat(t.id),className:lr.a.itemImageLink},a.a.createElement("img",{src:t.screenshot_url,alt:t.title,className:lr.a.itemImage})),Buttons:a.a.createElement(st,null,a.a.createElement(or,{type:"primary",label:"View Installed Kit",icon:"plus",href:"".concat(n,"/kit/").concat(t.id)}),u()?a.a.createElement(Nn,{href:"admin.php?page=template-kit-review&template_kit_id=".concat(t.id),type:"primary",openNewWindow:!0,label:"Review",icon:"eye"}):null,a.a.createElement("div",{className:lr.a.itemDelete},a.a.createElement(sn,{templateKitId:t.id,completeCallback:function(){l(!0)}}))),title:t.title,description:"Contains ".concat(t.template_count," templates")}))},fr=n(11),dr=n.n(fr);function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hr=function(e){e.item;var t=pr(Object(r.useState)(null),2),n=t[0],o=t[1];return a.a.createElement(kn,{colWidthPercentage:33},a.a.createElement("div",{className:dr.a.uploadCard},a.a.createElement("label",{htmlFor:"upload-template-kit-zip-file",className:dr.a.uploadCardButton},n?a.a.createElement(en,null):a.a.createElement("span",{className:dr.a.icon}),a.a.createElement("div",{className:dr.a.message},"Upload Template Kit ZIP File"),a.a.createElement("input",{type:"file",name:"upload-template-kit-zip-file",id:"upload-template-kit-zip-file",className:dr.a.formInput,onChange:function(e){o(e.target.files[0])}})),n?a.a.createElement(Rt,{chosenFile:n}):null))},yr=function(){var e=tn(),t=e.loading,n=e.data,r=e.error;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",null,a.a.createElement(qe,{title:"Installed Template Kits",subtitle:"These are the Template Kits installed on this WordPress website."})),t?a.a.createElement(en,null):null,r?a.a.createElement(mn,null):null,t||r||0!==n.length?null:a.a.createElement(mn,{message:a.a.createElement(a.a.Fragment,null,"No installed Template Kits found. Please"," ",a.a.createElement(Lt,{href:"https://themeforest.net/category/template-kits?utm_source=extensions&utm_medium=referral&utm_campaign=template_kit_import_plugin",text:"click here to view available premium Template Kits"})," "," or upload a new Template Kit ZIP file below.")}),t||r?null:a.a.createElement(vn,{includeLastItemSpacer:!0},n.map((function(e){return a.a.createElement(sr,{key:e.id,item:e})})),a.a.createElement(hr,null)))},vr=function(){var e=de().url;return a.a.createElement(ce,null,a.a.createElement(re,{path:"".concat(e,"/kit/:id"),children:a.a.createElement(rr,null)}),a.a.createElement(re,{children:a.a.createElement(yr,null)}))},gr=function(){var e=de().url;return a.a.createElement(a.a.Fragment,null,a.a.createElement(ce,null,a.a.createElement(re,{path:"".concat(e,"/installed-kits"),children:a.a.createElement(vr,null)}),a.a.createElement(re,null,a.a.createElement(J,{to:"/template-kits/installed-kits"}))))},br=n(28),wr=n.n(br),Er=function(){return a.a.createElement("div",{className:wr.a.wrapper},a.a.createElement(Me,null,a.a.createElement(Oe,null,a.a.createElement(pe,null,a.a.createElement(ht,null),a.a.createElement(Dt,null),a.a.createElement("div",{className:wr.a.container},a.a.createElement(ce,null,a.a.createElement(re,{exact:!0,path:"/"},a.a.createElement(J,{to:"/template-kits/installed-kits"})),a.a.createElement(re,{path:"/template-kits",children:a.a.createElement(gr,null)}))),a.a.createElement(Bt,null)))))},kr=n(8),xr=n.n(kr);function Sr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Tr={overlay:{backgroundColor:"rgba(32, 32, 32, 0.81)",zIndex:199999},content:{background:"#f1f1f1",border:"0",top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",padding:"0",transform:"translate(-50%, -50%)",borderRadius:"4px"}},Or=function(e){e.photoId,e.photoTitle;var t=e.onCloseCallback,n=void 0===t?null:t,r=e.children,o=Sr(a.a.useState(!0),2),i=o[0],l=o[1],u=function(){l(!1),n&&n()};return"undefined"!=typeof window&&window.templateKitImport&&window.templateKitImport.modalAppHolder&&De.a.setAppElement(window.templateKitImport.modalAppHolder),a.a.createElement(De.a,{isOpen:i,onRequestClose:u,style:Tr,contentLabel:"Envato Elements","data-testid":"modal-wrapper"},a.a.createElement("div",{className:xr.a.modalInner},a.a.createElement("div",{className:xr.a.modalHeader},a.a.createElement("div",{className:xr.a.modalLogo},a.a.createElement(Dn,null)),a.a.createElement("div",{className:xr.a.headerNav}),a.a.createElement("div",{className:xr.a.headerActions},a.a.createElement("button",{onClick:u,"data-testid":"modal-close-button",className:xr.a.closeButton},a.a.createElement("span",{className:"dashicons dashicons-no-alt ".concat(xr.a.dismissIcon)})))),a.a.createElement("div",{className:xr.a.magicModalInner},"function"==typeof r?r({closeModal:u}):r)))};function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){Nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ir=function(e){var t=e.onClose,n=e.magicButtonMode;return a.a.createElement(Me,{config:Pr(Pr({},window.template_kit_import),{},{magicButtonMode:n})},a.a.createElement(Oe,null,a.a.createElement(Q,null,a.a.createElement(ht,null),a.a.createElement(Or,{onCloseCallback:t},a.a.createElement(ce,null,a.a.createElement(re,{exact:!0,path:"/"},a.a.createElement(J,{to:"/template-kits/installed-kits"})),a.a.createElement(re,{path:"/template-kits",children:a.a.createElement(gr,null)}))))))};window.templateKitImport={modalAppHolder:null},window.templateKitImport.initBackend=function(e){window.templateKitImport.modalAppHolder=e,i.a.render(a.a.createElement(Er,null),e)},window.templateKitImport.initMagicButton=function(e,t){window.templateKitImport.modalAppHolder=e,i.a.render(a.a.createElement(Ir,{magicButtonMode:t,onClose:function(){window.templateKitImport.closeMagicButton(e)}}),e)},window.templateKitImport.closeMagicButton=function(e){i.a.unmountComponentAtNode(e)}}]);
languages/template-kit-import.pot CHANGED
@@ -46,6 +46,6 @@ msgstr ""
46
  msgid "Import into Elementor Library"
47
  msgstr ""
48
 
49
- #: vendor/template-kit-import/inc/class-builder.php:207
50
  msgid "Import Template"
51
  msgstr ""
46
  msgid "Import into Elementor Library"
47
  msgstr ""
48
 
49
+ #: vendor/template-kit-import/inc/class-builder.php:213
50
  msgid "Import Template"
51
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, template, templates
4
  Requires at least: 5.3
5
  Tested up to: 5.4
6
  Requires PHP: 5.6
7
- Stable tag: 1.0.4
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -36,6 +36,11 @@ Create your own "Template Kit" for others with the "[Template Kit Export](https:
36
 
37
  == Changelog ==
38
 
 
 
 
 
 
39
  = 1.0.4 - 2020-05-08 =
40
  * Feature: Easier access to upload button
41
  * Feature: New button to import template again
4
  Requires at least: 5.3
5
  Tested up to: 5.4
6
  Requires PHP: 5.6
7
+ Stable tag: 1.0.5
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
36
 
37
  == Changelog ==
38
 
39
+ = 1.0.5 - 2020-05-12 =
40
+ * Fix: Better modal previews
41
+ * Fix: Better ZIP handling for a range of hosting accounts
42
+ * Fix: Better display of encoded characters within Template Kits
43
+
44
  = 1.0.4 - 2020-05-08 =
45
  * Feature: Easier access to upload button
46
  * Feature: New button to import template again
src/js/react/components/Modal/TemplateModalWrapper.jsx CHANGED
@@ -90,7 +90,7 @@ const TemplateModalWrapper = ({ isOpen, onCloseCallback = null, children, templa
90
  </button>
91
  </div>
92
  </div>
93
- <div>
94
  {typeof children === 'function' ? children({ closeModal }) : children}
95
  </div>
96
  </div>
90
  </button>
91
  </div>
92
  </div>
93
+ <div className={styles.kitInner}>
94
  {typeof children === 'function' ? children({ closeModal }) : children}
95
  </div>
96
  </div>
src/js/react/components/Modal/TemplateModalWrapper.module.scss CHANGED
@@ -65,3 +65,8 @@ $leftRightGutter: 240px;
65
  .dismissIcon {
66
  @include dismiss;
67
  }
 
 
 
 
 
65
  .dismissIcon {
66
  @include dismiss;
67
  }
68
+
69
+ .kitInner {
70
+ overflow-y: auto;
71
+ padding: 30px;
72
+ }
template-kit-import.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: Import Template Kits to WordPress
5
  * Author: Envato
6
  * Author URI: https://envato.com
7
- * Version: 1.0.4
8
  * License: GPLv3 or later
9
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
  *
@@ -28,7 +28,7 @@ if ( ! defined( 'ABSPATH' ) ) {
28
  }
29
 
30
  define( 'ENVATO_TEMPLATE_KIT_IMPORT_SLUG', 'template-kit-import' );
31
- define( 'ENVATO_TEMPLATE_KIT_IMPORT_VER', '1.0.4' );
32
  define( 'ENVATO_TEMPLATE_KIT_IMPORT_FILE', __FILE__ );
33
  define( 'ENVATO_TEMPLATE_KIT_IMPORT_DIR', plugin_dir_path( ENVATO_TEMPLATE_KIT_IMPORT_FILE ) );
34
  define( 'ENVATO_TEMPLATE_KIT_IMPORT_URI', plugins_url( '/', ENVATO_TEMPLATE_KIT_IMPORT_FILE ) );
4
  * Description: Import Template Kits to WordPress
5
  * Author: Envato
6
  * Author URI: https://envato.com
7
+ * Version: 1.0.5
8
  * License: GPLv3 or later
9
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
  *
28
  }
29
 
30
  define( 'ENVATO_TEMPLATE_KIT_IMPORT_SLUG', 'template-kit-import' );
31
+ define( 'ENVATO_TEMPLATE_KIT_IMPORT_VER', '1.0.5' );
32
  define( 'ENVATO_TEMPLATE_KIT_IMPORT_FILE', __FILE__ );
33
  define( 'ENVATO_TEMPLATE_KIT_IMPORT_DIR', plugin_dir_path( ENVATO_TEMPLATE_KIT_IMPORT_FILE ) );
34
  define( 'ENVATO_TEMPLATE_KIT_IMPORT_URI', plugins_url( '/', ENVATO_TEMPLATE_KIT_IMPORT_FILE ) );
vendor/template-kit-import/inc/class-builder.php CHANGED
@@ -106,6 +106,12 @@ abstract class Builder extends Base {
106
  $screenshot_base_url = $this->get_template_kit_temporary_url();
107
  foreach ( $templates as $template_index => $template ) {
108
  $templates[ $template_index ]['screenshot_url'] = $screenshot_base_url . $template['screenshot'];
 
 
 
 
 
 
109
  // todo: this will be an array of imports into the page builder library
110
  // So we can show if the template has been imported already etc.
111
  if ( ! isset( $templates[ $template_index ]['imports'] ) ) {
106
  $screenshot_base_url = $this->get_template_kit_temporary_url();
107
  foreach ( $templates as $template_index => $template ) {
108
  $templates[ $template_index ]['screenshot_url'] = $screenshot_base_url . $template['screenshot'];
109
+ // Checking the additional template informatino strings for &amp; and converting to & so they display.
110
+ if( ! empty( $template['metadata']['additional_template_information'] ) ) {
111
+ $templates[ $template_index ]['metadata']['additional_template_information'] = array_map( 'htmlspecialchars_decode', $template['metadata']['additional_template_information'] );
112
+ }
113
+ // Check if the name of the template has any characters that need decoding and convert them.
114
+ $templates[ $template_index ]['name'] = html_entity_decode($templates[ $template_index ]['name']);
115
  // todo: this will be an array of imports into the page builder library
116
  // So we can show if the template has been imported already etc.
117
  if ( ! isset( $templates[ $template_index ]['imports'] ) ) {
vendor/template-kit-import/inc/class-importer.php CHANGED
@@ -50,57 +50,62 @@ class Importer extends Base {
50
  * @return int|\WP_Error
51
  */
52
  public function unpack_zip_file( $temporary_zip_file ) {
53
- if ( class_exists( '\ZipArchive' ) ) {
54
- $wp_upload_dir = wp_upload_dir();
55
- $template_kit_base_path = $wp_upload_dir['basedir'] . '/template-kits/';
56
- $template_kit_random_folder = md5( time() . NONCE_SALT );
57
- $template_kit_extract_directory = $template_kit_base_path . $template_kit_random_folder;
58
- wp_mkdir_p( $template_kit_extract_directory );
59
- // Prevent directory indexing so people cannot find the random template kit ID folders:
60
- touch( $template_kit_base_path . 'index.php' );
61
-
62
- $zip = new \ZipArchive();
63
- $open_result = $zip->open( $temporary_zip_file );
64
- if ( $open_result !== true ) {
65
- return new \WP_Error( 'zip_error', 'Failed to open zip file' );
66
- }
67
- $zip->extractTo( $template_kit_extract_directory );
68
- $zip->close();
69
-
70
- $extracted_zip_files = scandir( $template_kit_extract_directory );
71
- if ( $extracted_zip_files && is_array( $extracted_zip_files ) ) {
72
- $file_names = array_diff( $extracted_zip_files, array( '.', '..' ) );
73
- } else {
74
- $file_names = array();
75
- }
76
- if ( ! $file_names || ! in_array( 'manifest.json', $file_names, true ) ) {
77
- return new \WP_Error( 'zip_error', 'Please upload a valid Template Kit zip file' );
78
- }
79
-
80
- // Here we assume we've got a valid template kit extracted to the users hosting account.
81
- // Time to throw it into the Custom Post Type so that we can proceed to the import step or do other fancy things.
82
 
83
- $manifest_data = json_decode( file_get_contents( $template_kit_extract_directory . '/manifest.json' ), true );
84
- // todo: validate manifest data structure.
85
 
86
- $post_data = array(
87
- 'post_title' => $manifest_data['title'],
88
- 'post_type' => CPT_Kits::get_instance()->cpt_slug,
89
- 'post_status' => 'publish',
90
- );
91
- $post_id = wp_insert_post( $post_data, true );
92
 
93
- if ( $post_id && ! is_wp_error( $post_id ) ) {
94
- // successfully stored this post. Add some metadata
95
- update_post_meta( $post_id, 'envato_tk_manifest', $manifest_data );
96
- update_post_meta( $post_id, 'envato_tk_folder_name', $template_kit_random_folder );
97
- update_post_meta( $post_id, 'envato_tk_builder', $manifest_data['page_builder'] );
98
 
99
- return $post_id;
 
 
 
100
  }
 
 
 
 
 
 
 
101
  } else {
102
- // no zip source
103
- return new \WP_Error( 'zip_error', 'Please enable ZIP extension on this hosting account.' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  }
105
  return new \WP_Error( 'zip_error', 'Failed to extract ZIP file' );
106
  }
50
  * @return int|\WP_Error
51
  */
52
  public function unpack_zip_file( $temporary_zip_file ) {
53
+ $wp_upload_dir = wp_upload_dir();
54
+ $template_kit_base_path = $wp_upload_dir['basedir'] . '/template-kits/';
55
+ $template_kit_random_folder = md5( time() . NONCE_SALT );
56
+ $template_kit_extract_directory = $template_kit_base_path . $template_kit_random_folder;
57
+ wp_mkdir_p( $template_kit_extract_directory );
58
+ // Prevent directory indexing so people cannot find the random template kit ID folders:
59
+ touch( $template_kit_base_path . 'index.php' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
+ global $wp_filesystem;
 
62
 
63
+ require_once( ABSPATH . '/wp-admin/includes/file.php' );
64
+ \WP_Filesystem();
 
 
 
 
65
 
66
+ if ( ! $wp_filesystem instanceof \WP_Filesystem_Base ) {
67
+ return new \WP_Error( 'zip_error', 'Failed to initialize WP Filesystem' );
68
+ }
 
 
69
 
70
+ $unzip_result = unzip_file( $temporary_zip_file, $template_kit_extract_directory );
71
+ if ( $unzip_result !== true ) {
72
+ if ( is_wp_error( $unzip_result ) ) {
73
+ return $unzip_result;
74
  }
75
+
76
+ return new \WP_Error( 'zip_error', 'Failed to unzip zip file' );
77
+ }
78
+
79
+ $extracted_zip_files = scandir( $template_kit_extract_directory );
80
+ if ( $extracted_zip_files && is_array( $extracted_zip_files ) ) {
81
+ $file_names = array_diff( $extracted_zip_files, array( '.', '..' ) );
82
  } else {
83
+ $file_names = array();
84
+ }
85
+ if ( ! $file_names || ! in_array( 'manifest.json', $file_names, true ) ) {
86
+ return new \WP_Error( 'zip_error', 'Please upload a valid Template Kit zip file' );
87
+ }
88
+
89
+ // Here we assume we've got a valid template kit extracted to the users hosting account.
90
+ // Time to throw it into the Custom Post Type so that we can proceed to the import step or do other fancy things.
91
+
92
+ $manifest_data = json_decode( file_get_contents( $template_kit_extract_directory . '/manifest.json' ), true );
93
+ // todo: validate manifest data structure.
94
+
95
+ $post_data = array(
96
+ 'post_title' => $manifest_data['title'],
97
+ 'post_type' => CPT_Kits::get_instance()->cpt_slug,
98
+ 'post_status' => 'publish',
99
+ );
100
+ $post_id = wp_insert_post( $post_data, true );
101
+
102
+ if ( $post_id && ! is_wp_error( $post_id ) ) {
103
+ // successfully stored this post. Add some metadata
104
+ update_post_meta( $post_id, 'envato_tk_manifest', $manifest_data );
105
+ update_post_meta( $post_id, 'envato_tk_folder_name', $template_kit_random_folder );
106
+ update_post_meta( $post_id, 'envato_tk_builder', $manifest_data['page_builder'] );
107
+
108
+ return $post_id;
109
  }
110
  return new \WP_Error( 'zip_error', 'Failed to extract ZIP file' );
111
  }