From 17dae54849839a9770320c7aee0034742457a024 Mon Sep 17 00:00:00 2001 From: Ritee Lama <89212873+riteelama@users.noreply.github.com> Date: Mon, 1 Jul 2024 10:55:33 +0545 Subject: [PATCH] Enhance - Dashboard page (#1271) * Added - Input field to enter the activation license key * Added - Validation for license field input * Added - License and plugin version validation * Added - Loaading on button while retrieving license activation response * Added - Page reload after the license activation * Added -Toggle to activate/deactivate the module * Fix - plugin activation/deactivation toggle and upgrade plan * Added - Settings URL for global settings * Fix - Settings URL and button style * Added - Play button for demo vido on module hover * Fix - Video URL * Added - Video Player for modules * Fix - Video play option while license deactivated * Fix - Searching module * Added - copy button to copy shortcode * Added - Shortcode copied to clipboard * Tweak - Shortcode copy style * Fix - Settings icon size, search module and settings link * Add - open global settings on new tab * Add - Shortcode copy icon for shortcode example * Add - video url for ai contact and frontend listing * Remove - Pop up for plan update in free version * Fix - Searching of module * Fix - Video loading and bulk plugin activation or deactivation * Fix - No item found text * Fix - Addon activation issues * Fix - Upgrade plan UTM * Fix - License Activation * Add - id to some shortcode * Fix - Search issue * Tweak - Width of notice drawer * Fix - Sorting of modules by descending order * Fix - Sorting of modules on popular basis * Update - Changelog --------- Co-authored-by: Deependra Chaudhary --- .../sections/all_extensions.json | 218 +- changelog.txt | 1 + dist/blocks.min.js | 4 +- dist/dashboard.min.js | 6 +- dist/dashboard.min.js.LICENSE.txt | 9 + dist/reactPlayerPreview.min.js | 1 + .../version1/class-evf-modules.php | 47 +- package-lock.json | 30504 +++++++++++++--- package.json | 7 +- src/dashboard/components/Header/Header.js | 1 + .../Lists/ShortcodesLists/ShortcodesLists.js | 118 +- src/dashboard/screens/Modules/Modules.js | 444 +- .../screens/Modules/components/ModuleBody.js | 102 +- .../screens/Modules/components/ModuleItem.js | 162 +- .../screens/Modules/components/modules-api.js | 14 + 15 files changed, 25743 insertions(+), 5895 deletions(-) create mode 100644 dist/reactPlayerPreview.min.js diff --git a/assets/extensions-json/sections/all_extensions.json b/assets/extensions-json/sections/all_extensions.json index b364c0c7c..48faceb34 100644 --- a/assets/extensions-json/sections/all_extensions.json +++ b/assets/extensions-json/sections/all_extensions.json @@ -12,7 +12,9 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=ai", + "demo_video_url": "2Hs_dwpyJ54" }, { "title": "Style Customizer", @@ -26,7 +28,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "PEK-FBU8gP0", + "popular_rank": 1 }, { "title": "Custom Captcha", @@ -40,7 +45,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "obScswjZ24Q", + "popular_rank": 2 }, { "title": "Multi Part Forms", @@ -54,7 +62,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "qVpDzAx-_4A", + "popular_rank": 3 }, { "title": "PDF Form Submission", @@ -68,7 +79,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url" : "admin.php?page=evf-settings&tab=pdf-submission", + "demo_video_url": "37CtaxJzYis", + "popular_rank": 4 }, { "title": "Email Templates", @@ -82,7 +96,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "Cp2aL7IkAXc", + "popular_rank": 5 }, { "title": "Survey Polls and Quiz", @@ -96,7 +113,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "i1vR-YmaBOg", + "popular_rank": 7 }, { "title": "PayPal Standard", @@ -110,7 +130,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "pcwPjCt7N2I", + "popular_rank": 8 }, { "title": "Mailchimp", @@ -124,7 +147,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=mailchimp", + "demo_video_url": "FhFsHdAIXwE", + "popular_rank": 6 }, { "title": "User Registration", @@ -138,7 +164,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "MEyuznG2Tok", + "popular_rank": 12 }, { "title": "Google Sheets", @@ -152,7 +181,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=google_sheets", + "demo_video_url": "tvS6Y_rNBfs", + "popular_rank": 9 }, { "title": "Save And Continue", @@ -166,7 +198,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "4xxEi0rSB20", + "popular_rank": 11 }, { "title": "Stripe", @@ -180,7 +215,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=payment", + "demo_video_url": "wZXnaxLxdz4", + "popular_rank": 14 }, { "title": "Repeater Fields", @@ -194,7 +232,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "W2lc02Ge-FU", + "popular_rank": 10 }, { "title": "Geolocation", @@ -208,7 +249,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=geolocation", + "demo_video_url": "j02yG57GA20", + "popular_rank": 13 }, { "title": "Form Restriction", @@ -222,7 +266,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "Q1-dja7m3Sc", + "popular_rank": 15 }, { "title": "Calculations", @@ -236,7 +283,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "WCsHC7NQ2QQ", + "popular_rank": 16 }, { "title": "ConvertKit", @@ -250,7 +300,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=convertkit", + "demo_video_url": "GvqPVCK7Ws8", + "popular_rank": 17 }, { "title": "Post Submissions", @@ -264,7 +317,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "gTtewu4DpCo", + "popular_rank": 18 }, { "title": "Conversational Forms", @@ -278,7 +334,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "XO38b8Lp19s", + "popular_rank": 21 }, { "title": "Frontend Listing", @@ -292,7 +351,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "LBNuyo4lpTY", + "popular_rank": 20 }, { "title": "Zapier", @@ -306,7 +368,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "t7NRAPZCbYg", + "popular_rank": 19 }, { "title": "SMS Notifications", @@ -320,7 +385,11 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=sms_notifications", + "demo_video_url": "tz4UKBX9WxM", + "popular_rank": 22 + }, { "title": "Cloud Storage", @@ -334,7 +403,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "yXE4ydYfkic", + "popular_rank": 23 }, { "title": "Coupons", @@ -348,7 +420,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "GSYQIiyntW0", + "popular_rank": 24 }, { "title": "Sendinblue", @@ -362,7 +437,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=sendinblue", + "demo_video_url": "NRRDY1ag6Sk", + "popular_rank": 26 }, { "title": "ActiveCampaign", @@ -376,7 +454,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=activecampaign", + "demo_video_url": "6b9q89cUMzE", + "popular_rank": 25 }, { "title": "MailerLite", @@ -390,7 +471,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=mailerlite", + "demo_video_url": "CpqVgycDx_8", + "popular_rank": 27 }, { "title": "Advanced Form Analytics", @@ -404,7 +488,9 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=analytics", + "demo_video_url": "BCT7c8EmQfg" }, { "title": "Campaign Monitor", @@ -418,7 +504,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=campaign_monitor", + "demo_video_url": "GBJMxmCurzw", + "popular_rank": 29 }, { "title": "Hubspot", @@ -432,7 +521,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=hubspot", + "demo_video_url": "mOhJkZpBMPY", + "popular_rank": 28 }, { "title": "Salesforce", @@ -446,7 +538,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=salesforce", + "demo_video_url": "1VsyUu4NAhk", + "popular_rank": 30 }, { "title": "Pipedrive", @@ -460,7 +555,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=pipedrive", + "demo_video_url": "wJPX0EJ2OiI", + "popular_rank": 32 }, { "title": "Authorize.Net", @@ -474,7 +572,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=payment", + "demo_video_url": "a5EcKjwWD1A", + "popular_rank": 31 }, { "title": "Constant Contact", @@ -488,7 +589,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=constant_contact", + "demo_video_url": "dCeW1GW6-YI", + "popular_rank": 33 }, { "title": "Drip", @@ -502,7 +606,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=drip", + "demo_video_url": "ODRxkfX6y9Q", + "popular_rank": 35 }, { "title": "Razorpay", @@ -516,7 +623,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=payment", + "demo_video_url": "2Og6b1JXDWs", + "popular_rank": 36 }, { "title": "Zoho", @@ -530,7 +640,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=zoho", + "demo_video_url": "sfHFiUIHpg0", + "popular_rank": 34 }, { "title": "GetResponse", @@ -544,7 +657,10 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=getresponse", + "demo_video_url": "Jhq1dOFXV-I", + "popular_rank": 37 } ], "features": [ @@ -560,7 +676,9 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=trello", + "demo_video_url": "9ouI1v9KScY" }, { "title": "iContact", @@ -574,7 +692,9 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=icontact", + "demo_video_url": "Lqdh-LujsUA" }, { "title": "Woocommerce", @@ -588,7 +708,9 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "", + "demo_video_url": "TeZK82kxiLk" }, { "title": "Moosend", @@ -602,7 +724,9 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=moosend", + "demo_video_url": "xeTf9YP9cpM" }, { "title": "Mailpoet", @@ -616,7 +740,9 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=mailpoet", + "demo_video_url": "yFf3loV_azY" }, { "title": "OnePageCRM", @@ -630,7 +756,9 @@ "personal", "agency", "themegrill agency" - ] + ], + "setting_url": "admin.php?page=evf-settings&tab=integration§ion=onepagecrm", + "demo_video_url": "42EUj-Dlnr0" } ] } diff --git a/changelog.txt b/changelog.txt index a62b36d7b..462340ed1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ = 3.0.1 - xx-xx-2024 Feature - Import entries in our form using csv file. * Enhancement - Global Setting Premium Sidebar. +* Enhancement - Dashboard page * Fix - Block design all messed up when viewed in block editor. * Fix - Wrong instruction on captcha. * Fix - Email template on email clone, save and continue forms. diff --git a/dist/blocks.min.js b/dist/blocks.min.js index c82900d1e..7ccca01e7 100644 --- a/dist/blocks.min.js +++ b/dist/blocks.min.js @@ -1,5 +1,5 @@ /*! For license information please see blocks.min.js.LICENSE.txt */ -(()=>{var e={679:(e,t,r)=>{"use strict";var n=r(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),g=0;g{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},296:(e,t,r)=>{"use strict";e.exports=r(103)},554:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",u="[object Null]",c="[object Object]",d="[object Proxy]",f="[object Undefined]",p=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[i]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[c]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var g,v,y,b="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,x="object"==typeof self&&self&&self.Object===Object&&self,w=b||x||Function("return this")(),k=t&&!t.nodeType&&t,S=k&&e&&!e.nodeType&&e,_=S&&S.exports===k,C=_&&b.process,E=function(){try{return S&&S.require&&S.require("util").types||C&&C.binding&&C.binding("util")}catch(e){}}(),P=E&&E.isTypedArray,T=Array.prototype,z=Function.prototype,A=Object.prototype,R=w["__core-js_shared__"],M=z.toString,F=A.hasOwnProperty,j=(g=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",B=A.toString,L=M.call(Object),D=RegExp("^"+M.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=_?w.Buffer:void 0,I=w.Symbol,O=w.Uint8Array,N=($&&$.allocUnsafe,v=Object.getPrototypeOf,y=Object,function(e){return v(y(e))}),V=Object.create,W=A.propertyIsEnumerable,U=T.splice,H=I?I.toStringTag:void 0,q=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=$?$.isBuffer:void 0,X=Math.max,K=Date.now,G=fe(w,"Map"),Q=fe(Object,"create"),Z=function(){function e(){}return function(t){if(!_e(t))return{};if(V)return V(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function J(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(G||ee),string:new J}},te.prototype.delete=function(e){var t=de(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return de(this,e).get(e)},te.prototype.has=function(e){return de(this,e).has(e)},te.prototype.set=function(e,t){var r=de(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!G||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};function se(e){return null==e?void 0===e?f:u:H&&H in Object(e)?function(e){var t=F.call(e,H),r=e[H];try{e[H]=void 0;var n=!0}catch(e){}var o=B.call(e);return n&&(t?e[H]=r:delete e[H]),o}(e):function(e){return B.call(e)}(e)}function le(e){return Ce(e)&&se(e)==i}function ue(e,t,r,n,o){e!==t&&function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[++n];if(!1===t(o[s],s,o))break}}(t,(function(i,a){if(o||(o=new re),_e(i))!function(e,t,r,n,o,i,a){var s=me(e,r),l=me(t,r),u=a.get(l);if(u)ne(e,r,u);else{var d,f,p,h,m,g=i?i(s,l,r+"",e,t,a):void 0,v=void 0===g;if(v){var y=be(l),b=!y&&we(l),x=!y&&!b&&Ee(l);g=l,y||b||x?be(s)?g=s:Ce(m=s)&&xe(m)?g=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ce);function ve(e,t){return e===t||e!=e&&t!=t}var ye=le(function(){return arguments}())?le:function(e){return Ce(e)&&F.call(e,"callee")&&!W.call(e,"callee")},be=Array.isArray;function xe(e){return null!=e&&Se(e.length)&&!ke(e)}var we=Y||function(){return!1};function ke(e){if(!_e(e))return!1;var t=se(e);return t==s||t==l||t==a||t==d}function Se(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function _e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ce(e){return null!=e&&"object"==typeof e}var Ee=P?function(e){return function(t){return e(t)}}(P):function(e){return Ce(e)&&Se(e.length)&&!!m[se(e)]};function Pe(e){return xe(e)?function(e,t){var r=be(e),n=!r&&ye(e),o=!r&&!n&&we(e),i=!r&&!n&&!o&&Ee(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Te.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!_e(r))return!1;var n=typeof t;return!!("number"==n?xe(r)&&pe(t,r.length):"string"==n&&t in r)&&ve(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r{"use strict";var n=r(159),o=r(840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r