PageSourceSearch

https://www.mountainreporters.com/wp-content/plugins/wp-voting-contest/wpvc_views/build/front.js?ver=6.3.9

js mountainreporters.com collected 2026-10-02 04:31:07 UTC 397,045 bytes, 1 lines download raw bytes

1(globalThis.webpackChunkwpvc_plugin=globalThis.webpackChunkwpvc_plugin||[]).push([[440],{8770:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxMDAwIiB3aWR0aD0iMTAwMCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgo8bWV0YWRhdGE+SWNvRm9udCBJY29uczwvbWV0YWRhdGE+Cjx0aXRsZT51aS16b29tLW91dDwvdGl0bGU+CjxnbHlwaCBnbHlwaC1uYW1lPSJ1aS16b29tLW91dCIgdW5pY29kZT0iJiN4ZWM5ODsiIGhvcml6LWFkdi14PSIxMDAwIiAvPgo8cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNOTgyLjIgNzg4LjZsLTIzNC45MDAwMDAwMDAwMDAxLTIxNmMyNy01My41IDQyLjYwMDAwMDAwMDAwMDAyLTExMy43MDAwMDAwMDAwMDAwNSA0Mi42MDAwMDAwMDAwMDAwMi0xNzcuNzAwMDAwMDAwMDAwMDUgMC0yMTguMDk5OTk5OTk5OTk5OTctMTc2Ljg5OTk5OTk5OTk5OTk4LTM5NC45LTM5NC45LTM5NC45LTIxOC4yIDAtMzk1IDE3Ni44LTM5NSAzOTQuOSAwIDIxOC4xMDAwMDAwMDAwMDAwMiAxNzYuOCAzOTUgMzk1IDM5NSA2My44OTk5OTk5OTk5OTk5OCAwIDEyNC4xMDAwMDAwMDAwMDAwMi0xNS41IDE3Ny42MDAwMDAwMDAwMDAwMi00Mi41bDIxNS44OTk5OTk5OTk5OTk5OCAyMzQuODk5OTk5OTk5OTk5OThjMjEgMjIuOTAwMDAwMDAwMDAwMDkgNTYuMjAwMDAwMDAwMDAwMDQ1IDIzLjYwMDAwMDAwMDAwMDAyMyA3OC4yMDAwMDAwMDAwMDAwNSAxLjYwMDAwMDAwMDAwMDAyMjdsMTE3LjI5OTk5OTk5OTk5OTk1LTExNy4yOTk5OTk5OTk5OTk5NWMyMS43OTk5OTk5OTk5OTk5NTUtMjEuODAwMDAwMDAwMDAwMDY4IDIxLjEwMDAwMDAwMDAwMDAyMy01Ny0xLjc5OTk5OTk5OTk5OTk1NDUtNzh6IG0tNTg3LjItMTUyLjcwMDAwMDAwMDAwMDA1Yy0xMzMgMC0yNDAuOS0xMDcuODk5OTk5OTk5OTk5OTgtMjQwLjktMjQwLjg5OTk5OTk5OTk5OTk4czEwNy45LTI0MSAyNDAuOS0yNDFjMTMzLjEwMDAwMDAwMDAwMDAyIDAgMjQwLjg5OTk5OTk5OTk5OTk4IDEwNy44OTk5OTk5OTk5OTk5OCAyNDAuODk5OTk5OTk5OTk5OTggMjQwLjg5OTk5OTk5OTk5OTk4cy0xMDcuODk5OTk5OTk5OTk5OTggMjQxLTI0MC44OTk5OTk5OTk5OTk5OCAyNDF6IG0xMjUuMjk5OTk5OTk5OTk5OTUtMjgyLjVoLTI1My41OTk5OTk5OTk5OTk5N2MtMTIuMzk5OTk5OTk5OTk5OTc3IDAtMjIuNSAxMC4xMDAwMDAwMDAwMDAwMjMtMjIuNSAyMi42MDAwMDAwMDAwMDAwMjN2MjkuNWMwIDEyLjM5OTk5OTk5OTk5OTk3NyAxMC4xMDAwMDAwMDAwMDAwMjMgMjIuNjAwMDAwMDAwMDAwMDIzIDIyLjUgMjIuNjAwMDAwMDAwMDAwMDIzaDI1My41OTk5OTk5OTk5OTk5N2MxMi40MDAwMDAwMDAwMDAwOTEgMCAyMi41LTEwLjEwMDAwMDAwMDAwMDAyMyAyMi41LTIyLjYwMDAwMDAwMDAwMDAyM3YtMjkuNWMwLTEyLjM5OTk5OTk5OTk5OTk3Ny0xMC4wOTk5OTk5OTk5OTk5MDktMjIuNjAwMDAwMDAwMDAwMDIzLTIyLjUtMjIuNjAwMDAwMDAwMDAwMDIzeiIvPgo8L3N2Zz4="},10326:(e,t,o)=>{"use strict";var n=o(80296),a=o(5338),s=o(41594),r=o.n(s),i=o(71468),l=o(14644),c=o(27346),p=o(64467),u=o(1932);function _(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?_(Object(o),!0).forEach((function(t){(0,p.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const m=(0,l.HY)({wpvcfrontdata:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"GET_POST_LOAD":var o=e.posts.concat(t.payload.value);return d(d({},e),{},(0,p.A)({loading:!1},t.payload.id,o));case"SET_SINGLE_LOAD":case"UPDATE_FRONT_SETTING":return d(d({},e),{},(0,p.A)({loading:!1},t.payload.id,t.payload.value));case"GET_FRONT_SETTING":return d(d({},e),{},{loading:!1},t.payload);case"GET_FRONT_ERRORS":return d(d({},e),{},{loading:!1,criticalError:t.errorMsg},t.payload);case"UPDATE_FRONT_DRAFT":return(0,u.jM)(e,(function(e){e["".concat(t.payload.id)]["".concat(t.payload.externalId)]["".concat(t.payload.internalId)]=t.payload.value}));case"UPDATE_SINGLE_DRAFT":return(0,u.jM)(e,(function(e){e["".concat(t.payload.externalId)]["".concat(t.payload.internalId)]=t.payload.value}));case"UPDATE_DRAFT":return(0,u.jM)(e,(function(e){e["".concat(t.payload.internalId)]=t.payload.value}));case"GET_JUDGE_DATA":return d(d({},e),{},{loading:!1,judging_data:t.payload});default:return e}}});var h=o(32389),v=o(64697),g=o(77675),f=o(18987),w=o(58168),A=o(23029),y=o(92901),b=o(56822),E=o(53954),T=o(85501),k=o(80045),M=o(25584),S=o(68480),
1C=o(33551),O=o(49176),N=o(9828),D=["timer"];function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}var x=wp.element,L=(x.render,x.useState,function(e){var t=e.timer,o=(0,k.A)(e,D),n=(0,M.uh)(t).value,a=o.t,s=o.label_timer,i=o.votes_timertextcolor,l=o.votes_counter_font_size;return r().createElement(S.A,{container:!0},r().createElement(C.A,{variant:"body1",className:"timer_typography",style:{color:i,fontSize:l+"px"}},a(s)),r().createElement(C.A,{variant:"body1",className:"timer_typography",style:{color:i,fontSize:l+"px"}},n.d," ",a("days")),r().createElement(C.A,{variant:"body1",className:"timer_typography",style:{color:i,fontSize:l+"px"}},n.h," ",a("hours")),r().createElement(C.A,{variant:"body1",className:"timer_typography",style:{color:i,fontSize:l+"px"}},n.m," ",a("minutes")),r().createElement(C.A,{variant:"body1",className:"timer_typography",style:{color:i,fontSize:l+"px"}},n.s," ",a("seconds")))}),z=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),(o=(0,b.A)(n,I()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s))).state={anchorEl:"",open:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"calculateVoteTimeLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.props.currentdate;if(o||(o=new Date),e){e=e.replace(/ /g,"T");var n=(0,N.Ay)(e);return(0,O.L)(new Date(n),t)-o}return-1}},{key:"render",value:function(){var e=this.props.t,t=this.props,o=t.votes_timerbgcolor,n=t.votes_timertextcolor,a=t.votes_counter_font_size,s=this.props.short.end_time,i=this.props.short.start_time,l=this.calculateVoteTimeLeft(i,this.props.short.pause_voting),c="vote_starts_in";l<0&&(s?(l=this.calculateVoteTimeLeft(s),c="vote_ends_in"):l=0);var p=void 0!==this.props.pagin_val?this.props.pagin_val:null,u=null!=p?p.total_posts:0,_=this.props.short.allcatoption.tax_activationcount;if(null!==_&&0!==_&&void 0!==_&&""!==_&&parseInt(_)<=parseInt(u)&&s&&(c="vote_ends_in",l=this.calculateVoteTimeLeft(s)),l>0){var d=(0,M.FQ)({initialTime:l,direction:"backward"});return r().createElement(S.A,{className:"wpvc_counter_timer",style:{backgroundColor:o}},r().createElement("div",{key:l},r().createElement(L,(0,w.A)({},this.props,{timer:d,label_timer:c}))))}return l<0?r().createElement(C.A,{variant:"body1",className:"timer_typography",style:{color:n,fontSize:a+"px"}},e("vote_ended")):""}}])}(s.Component);const R=(0,i.Ng)()((0,h.CI)("translations")(z));function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(j=function(){return!!e})()}var P=wp.element,U=(P.render,P.useState,function(e){function t(e){return(0,A.A)(this,t),o=this,n=t,a=[e],n=(0,E.A)(n),(0,b.A)(o,j()?Reflect.construct(n,a||[],(0,E.A)(o).constructor):n.apply(o,a));var o,n,a}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e,t,o=this.props.t,n=null==(null===(e=this.props.values)||void 0===e?void 0:e.total_vote_count)?this.props.values.selcategoryoptions.total_vote:null===(t=this.props.values)||void 0===t?void 0:t.total_vote_count,a=this.props.values.selcategoryoptions.term_name;return r().createElement(S.A,{className:"wpvc_total_term_vote_count"},r().createElement(C.A,{variant:"body1",className:"timer_typography"},o("show_total_votes")," ",' "'+a+'" : '," ",n||0))}}])}(s.Component));const V=(0,h.CI)("translations")(U);var B=o(56655),q=o(84798),G=o(30781),F=o(69554),W=o(45995),Y=o(17681),Z=o(89828),H=o(3711),J=o(77406),X=o(95618),Q=o(77037),K=o(22477),$=o(1043),ee=o(58763),te=o(16740),oe=o(86703),ne=o(49037),ae=o(56718),se=o(87980),re=o(68125),ie=o(70695),le=o(97417),ce=o(46831),pe=o(45250),ue=o(10423),_e=o(19455),de=o(17809),me=o(45458),he=o(62750);function ve(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ve=function(){return!!e})()}const ge=function(e){function t(){var e,o,n,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,A.A)(this,t),o=this,n=t,a=[s],n=(0,E.A)(n),(e=(0,b.A)(o,ve()?Reflect.construct(n,a||[],(0,E.A)(o).constructor):n.apply(o,a))).helpers.message=function(t,o,n,a){var s,r,i,l,c;return"required"==t?o:((null==n||null===(s=n.messages)||void 0===s?void 0:s[t])||(null==n||null===(r=n.messages)||void 0===r?void 0:r.default)||(null===(i=e.messages)||void 0===i?void 0:i[t])||(null===(l=e.messages)||void 0===l?void 0:l.default)||(null===(c=a[t])||void 0===c?void 0:c.message)).replace(":attribute",e.helpers.humanizeFieldName(o))},e}return(0,T.A)(t,e),(0,y.A)(t)}(o.n(he)());var fe=o(72306),we=o(48287),Ae=o(45359),ye=o(1775),be=o(71238),Ee=o(15001),Te=function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvcgetshowcontestant";return function(e){var a={method:"POST",headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"},body:JSON.stringify({id:t})},s="";return fetch(n,a).then((function(e){return s=e.headers.get("Date"),e.json()})).then((function(t){return t.current_date=s,e(We(t)),t}))}},ke=function(e){var t,o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=f.A.get("wpvc_voting_authorize"),l="";""!=a.search_text&&(l="&search="+a.search_text),t=null==s?l+"&per_page="+a.postperpage+"&page="+a.paged+"&orderby="+a.orderby+"&order="+a.order:l+"&per_page="+a.postperpage+"&page="+s+"&orderby="+a.orderby+"&order="+a.order,o=null==n?e+"wp/v2/contestants?status=publish"+t:e+"wp/v2/contestants?contest_category="+n+"&status=publish"+t;var c=a.postperpage;return 0==c?function(e){e(We({posts:"perpage",pagin_val:""}))}:c<0?function(e){e(Ye({posts:"perpage",pagin_val:""},"Please do not use a negative number for the <strong>postperpage</strong> shortcode attribute."))}:c>500?function(e){e(Ye({posts:"perpage",pagin_val:""},"Maximum allowed for <strong>postperpage</strong> shortcode attribute is 500."))}:function(e){var t="",n="",a="";return fetch(o,{method:"GET",headers:{"Content-Type":"application/json","Authorize-wpvc":i,"Authorize-wpvc-request":"xmlhttprequest","Authorize-wpvc-requestmethod":"authorprofile"}}).then((function(e){return t=e.headers.get("X-WP-Total"),n=e.headers.get("X-WP-TotalPages"),a=e.headers.get("Date"),e.json()})).then((function(o){var s={posts:o,pagin_val:{total_posts:t,page_nums:n},current_date:a};return o.current_date=a,e("load"==r?Fe("posts",o):We(s)),o}))}},Me=function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",i=f.A.get("wpvc_voting_authorize"),l="";""!=s&&(l="&search="+s);var c="";""!=r&&(c="&author="+r);var p="";void 0!==o.exclude&&(p="&exclude="+o.exclude);var u="";void 0!==o.include&&(u="&include="+o.include);var _=o.postperpage,d=e+"wp/v2/contestants?contest_category="+t+"&status=publish"+(null==n?l+c+p+u+"&per_page="+o.postperpage+"&page="+o.paged+"&orderby="+o.orderby+"&order="+o.order:l+c+p+u+"&per_page="+o.postperpage+"&page="+n+"&orderby="+o.orderby+"&order="+o.order);return 0==_?function(e){e(We({posts:"perpage",pagin_val:""}))}:_<0?function(e){e(Ye({posts:"perpage",pagin_val:""},"Please do not use a negative number for the <strong>postperpage</strong> shortcode attribute."))}:_>500?function(e){e(Ye({posts:"perpage",pagin_val:""},"Maximum allowed for <strong>postperpage</strong> shortcode attribute is 500."))}:function(e){var t="",o="";return fetch(d,{method:"GET",headers:{"Content-Type":"application/json","Authorize-wpvc":i,"Authorize-wpvc-request":"xmlhttprequest"}}).then((function(e){return t=e.headers.get("X-WP-Total"),o=e.headers.get("X-WP-TotalPages"),e.json()})).then((function(n){var s={posts:n,pagin_val:{total_posts:t,page_nums:o}};return e("load"==a?Fe("posts",n):We(s)),n}))}},Se=function(e,t,o){var n=f.A.get("wpvc_voting_authorize"),a=e+"wp/v2/contestants?contest_category="+t+"&status=publish&per_page="+(o.showcount?o.showcount:o.allcatoption.topten_custom_count||10)+"&page=1&orderby=votes_count&order=desc";return function(e){return fetch(a,{method:"GET",headers:{"Content-Type":"application/json","Authorize-wpvc":n,"Authorize-wpvc-request":"xmlhttprequest"}}).then((function(e){return e.json()})).then((function(t){return e(We({top_contestans:t})),t}))}},Ce=function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvcdeletecontestant";return function(e){var a={method:"POST",headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"},body:JSON.stringify({id:t})};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},Oe=function(e,t,o){var n=f.A.get("wpvc_voting_authorize"),a=e+"wpvc-voting/v1/wpvceditcontestant";return function(e){var s={method:"POST",headers:{"Content-Type":"application/json","Authorize-wpvc":n,"Authorize-wpvc-request":"xmlhttprequest"},body:JSON.stringify({termid:t,postid:o})};return fetch(a,s).then((function(e){return e.json()})).then((function(t){return e(Ge("contestant_form",t)),t}))}},Ne=function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wp/v2/contestants/"+t;return function(e){var t="";return fetch(n,{method:"GET",headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}}).then((function(e){return t=e.headers.get("Date"),e.json()})).then((function(o){return e(We({post_single:o,current_date:t})),o}))}},De=function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvcuploadfiles";return function(e){return fetch(n,{method:"POST",body:t,headers:{"Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}}).then((function(e){return e.json()})).then((function(e){return e}))}},Ie=function(e,t,o,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=f.A.get("wpvc_voting_authorize"),r=e+"wpvc-voting/v1/wpvcsavepayment";return function(e){var i={method:"POST",body:JSON.stringify({gateway:t,insertData:o,amount:n,currency:a}),headers:{"Content-Type":"application/json","Authorize-wpvc":s,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(r,i).then((function(e){return e.json()})).then((function(t){return e(Ze("payment_entry_open",!1)),e(Ze("payment_entry_success","success")),e(Ze("wpvc_current_gateway",t.gateway)),t}))}},xe=function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/stripePayment";return function(e){var a={method:"POST",body:JSON.stringify({amount:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(Ze("stripe_ClientSecret",t.clientSecret)),t}))}},Le=function(e,t,o,n){var a=f.A.get("wpvc_voting_authorize"),s=e+"wpvc-voting/v1/couponApply";return function(e){var r={method:"POST",body:JSON.stringify({coupon:o,gateway:t,term_id:n}),headers:{"Content-Type":"application/json","Authorize-wpvc":a,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(s,r).then((function(e){return e.json()})).then((function(t){return e(Ze("wpvc_coupon",t)),t}))}},ze=function(e){var t=f.A.get("wpvc_voting_authorize"),o=e+"wpvc-voting/v1/wpvclogout";return function(e){var n={method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json","Authorize-wpvc":t,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(o,n).then((function(e){return e.json()})).then((function(t){return location.reload(),e(We(t)),t}))}},Re=function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvcresetpassword";return function(e){var a={method:"POST",body:JSON.stringify({login:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},je=function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvcverificationemail";return function(e){var a={method:"POST",body:JSON.stringify({login:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},Pe=function(e,t,o){var n=f.A.get("wpvc_voting_authorize"),a=e+"wpvc-voting/v1/wpvcbuyvotesentry";return function(e){var s={method:"POST",body:JSON.stringify({insertData:o,category_id:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":n,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(a,s).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},Ue=function(e,t,o,n){var a=f.A.get("wpvc_voting_authorize"),s=e+"wpvc-voting/v2/frontend_judging";return function(e){var r={method:"POST",body:JSON.stringify({termid:t,judge_id:o,post_id:n}),headers:{"Content-Type":"application/json","Authorize-wpvc":a,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(s,r).then((function(e){return e.json()})).then((function(t){return e(qe(t)),t}))}},Ve=function(e,t,o,n,a){var s=f.A.get("wpvc_voting_authorize"),r=e+"wpvc-voting/v2/frontend_judging_Insert";return function(e){var i={method:"POST",headers:{"Content-Type":"application/json","Authorize-wpvc":s,"Authorize-wpvc-request":"xmlhttprequest"},body:JSON.stringify({insertData:t,postId:o,judge_id:n,term_id:a})};return fetch(r,i).then((function(e){return e.json()})).then((function(t){return e(qe(t)),t}))}},Be=function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v2/dashboardChartdata";return function(e){var a={method:"POST",headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"},body:JSON.stringify({term:t})};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(We({posts:t})),t}))}},qe=function(e){return{type:"GET_JUDGE_DATA",payload:e}},Ge=function(e,t){return{type:"SET_SINGLE_LOAD",payload:{id:e,value:t}}}
1,Fe=function(e,t){return{type:"GET_POST_LOAD",payload:{id:e,value:t}}},We=function(e){return{type:"GET_FRONT_SETTING",payload:e}},Ye=function(e,t){return{type:"GET_FRONT_ERRORS",payload:e,errorMsg:t}},Ze=function(e,t){return{type:"UPDATE_FRONT_SETTING",payload:{id:e,value:t}}},He=function(e,t,o,n){return{type:"UPDATE_FRONT_DRAFT",payload:{id:e,externalId:t,internalId:o,value:n}}},Je=function(e,t,o){return{type:"UPDATE_SINGLE_DRAFT",payload:{externalId:e,internalId:t,value:o}}},Xe=function(e,t){return{type:"UPDATE_DRAFT",payload:{internalId:e,value:t}}},Qe=o(40334),Ke=o(73413),$e=o(34571),et=o.n($e);function tt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tt=function(){return!!e})()}var ot=wp.element,nt=(ot.render,ot.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,tt()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"submitForm",(function(){if(o.validator.allValid()){var e=o.state;o.props.Userlogin(o.props.SITE_URL,e)}else o.validator.showMessages(),o.forceUpdate()})),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:0}),o.props.GetRegister(o.props.SITE_URL),o.setState({wait:1})})),(0,p.A)(o,"handleValueChange",(function(e){return function(e){o.setState((0,p.A)({},e.target.name,e.target.value))}})),(0,p.A)(o,"handleResponse",(function(e){void 0!==e&&e.email&&o.props.FacebookRegister(o.props.SITE_URL,e)})),(0,p.A)(o,"handleError",(function(e){console.log(e)})),(0,p.A)(o,"openWindow",(function(){var e=(window.innerHeight-400)/2+window.screenY,t=(window.innerWidth-400)/2+window.screenX,n=(window.open(o.props.short.twitter_auth.twitter_url,o.props.t("twitter_signin"),"dialog=yes,top="+e+"px,left="+t+",width=400px,height=500px"),o.authHandler);window.addEventListener("message",(function(e){n("",{oauth_token:e.data.data.oauthToken,oauth_verifier:e.data.data.oauthVerifier})}),!1)})),(0,p.A)(o,"authHandler",(function(e,t){void 0!==t&&o.props.TwitterRegister(o.props.SITE_URL,{oauth_token:t.oauth_token,oauth_verifier:t.oauth_verifier,token_secret:o.props.short.twitter_auth.token_secret})})),(0,p.A)(o,"responseGoogle",(function(e){if(e.error)o.setState({error_login:e.error.details});else{var t=e.credential.split(".")[1],n=we.Buffer.from(t,"base64"),a=JSON.parse(n);o.props.GoogleRegister(o.props.SITE_URL,a)}})),(0,p.A)(o,"onCaptchaClick",(function(e){o.setState({recaptcha:e})})),o.state={recaptcha:null,twitter_window:null,error_login:null},o.validator=new ge,o}
1return(0,T.A)(t,e),(0,y.A)(t,[{key:"componentWillReceiveProps",value:function(e){void 0!==e.user_login&&void 0!==e.user_login.ID&&window.location.reload()}},{key:"render",value:function(){var e,t,o,n,a=this,s=this.props.t,i=this.props.settings.share,l=i.facebook_login,c=i.google_login,p=i.twitter_login,u=i.vote_fb_appid,_=i.vote_tw_appid,d=(i.vote_tw_secret,i.vote_gg_clientid),m=this.props.settings.common,h=m.vote_enable_recaptcha,v=m.vote_recapatcha_key,g="";void 0!==this.props.user_login&&(void 0!==this.props.user_login.errors&&(g=(n="").concat.apply(n,(0,me.A)(Object.values(this.props.user_login.errors)))),void 0!==this.props.user_login.error&&(g=this.props.user_login.error));var f="";void 0!==this.props.short&&null!==(e=this.props.short.twitter_auth)&&void 0!==e&&e.error&&(f+=this.props.short.twitter_auth.error);var w=this.props.SITE_URL.replace("/wp-json/","")+this.props.constant.PLUGIN_URL+"assets/images/";return r().createElement(S.A,{container:!0,className:"wpvc_login_page",rowSpacing:2},r().createElement(C.A,{variant:"h2"},s("you_must_logged")),r().createElement(S.A,{size:12},r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control"},r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"username",label:s("login_username"),onChange:this.handleValueChange(),autoComplete:"username",variant:"standard"})),this.validator.message(s("username_required"),this.state.username,"required")),r().createElement(S.A,{size:12},r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control"},r().createElement($.A,{className:"wpvc_text_field",type:"password",name:"password",label:s("login_password"),onChange:this.handleValueChange(),autoComplete:"current-password",variant:"standard"}),this.validator.message(s("password_required"),this.state.password,"required"))),r().createElement(S.A,{size:12},r().createElement(ye.A,{className:"wpvc_form_control wpvc_login_checkbox",value:"on",control:r().createElement(be.A,{color:"primary",name:"remember_me"}),label:s("remember_me"),onChange:this.handleValueChange(),labelPlacement:"end"})),"on"==h&&""!=v&&r().createElement(Ke.A,{sitekey:v,onChange:this.onCaptchaClick}),"on"==h&&this.validator.message(s("verify_captcha"),this.state.recaptcha,"required"),r().createElement(S.A,{container:!0,size:12,justifyContent:"flex-start"},r().createElement(C.A,{className:"wpvc_error_login"},null!==(t=this.state.error_login)&&void 0!==t?t:(0,Qe.Ay)(g)),f&&r().createElement(C.A,{className:"wpvc_error_login"},f),r().createElement(q.A,{variant:"contained",className:"wpvc_login_btns",color:"secondary",onClick:this.submitForm},s("login_btn"))),r().createElement(S.A,{container:!0,size:12,justifyContent:"flex-start"},r().createElement(q.A,{className:"wpvc_forgot_link",color:"primary",component:"a",onClick:function(){a.props.handleforgot()}},s("forgot_password")),r().createElement(q.A,{className:"wpvc_forgot_link",color:"primary",component:"a",onClick:function(){a.props.handleVerificationEmail(!0)}},s("resend_verification_email"))),("on"==l&&""!=u||"on"==c&&""!=d||"on"==p&&""!=_)&&r().createElement(S.A,{size:12},r().createElement(C.A,{variant:"button"},s("login_with"))),r().createElement(S.A,{container:!0,size:12,justifyContent:"flex-start",className:"wpvc_login_social_container"},"on"==l&&""!=u&&r().createElement(S.A,null,r().createElement(et(),{appId:u,fields:"email,first_name,last_name,name",className:"wpvc_social_login_btn",onFail:this.handleError,onProfileSuccess:this.handleResponse,children:r().createElement("img",{className:"wpvc_login_social",src:w+"fb_sign_in.png",alt:s("facebook_signin"),title:s("facebook_signin")})})),void 0!==this.props.short&&"on"==p&&""!=(null===(o=this.props.short.twitter_auth)||void 0===o?void 0:o.twitter_url)&&r().createElement(S.A,{className:"wpvc_twitter_signin_btn"},r().createElement(Ee.A,{onClick:this.openWindow},r().createElement("img",{className:"wpvc_login_social",src:w+"twitter_sign_in.png",alt:s("twitter_signin"),title:s("twitter_signin")}))),"on"==c&&""!=d&&r().createElement(S.A,{className:"wpvc_google_login_btn"},r().createElement(fe.G_,{clientId:d},r().createElement(fe.j,{onSuccess:this.responseGoogle,onFailure:this.responseGoogle,type:"icon",theme:"outline",width:"80",useOneTap:!0})))))}}])}(s.Component));const at=(0,i.Ng)((function(e){return{login:e.wpvcfrontdata}}),{GetRegister:function(e){var t=f.A.get("wpvc_voting_authorize"),o=e+"wpvc-voting/v1/wpvcgetregister";return function(e){return fetch(o,{method:"POST",headers:{"Content-Type":"application/json","Authorize-wpvc":t,"Authorize-wpvc-request":"xmlhttprequest"}}).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},Userlogin:function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvclogon";return function(e){var a={method:"POST",body:JSON.stringify({login:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},FacebookRegister:function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvcfacebooklogin";return function(e){var a={method:"POST",body:JSON.stringify({register:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},TwitterRegister:function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvctwitterlogin";return function(e){var a={method:"POST",body:JSON.stringify({register:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},GoogleRegister:function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvcgooglelogin";return function(e){var a={method:"POST",body:JSON.stringify({register:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}}})((0,h.CI)("translations")(nt));
1var st=o(60096),rt=o(23411),it=o(75737),lt=o(3561),ct=o(41340),pt=o(53215),ut=o(26887);function _t(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_t=function(){return!!e})()}var dt=wp.element,mt=(dt.render,dt.useState,function(e){function t(e){var o;(0,A.A)(this,t),o=function(e,t,o){return t=(0,E.A)(t),(0,b.A)(e,_t()?Reflect.construct(t,o||[],(0,E.A)(e).constructor):t.apply(e,o))}(this,t,[e]),(0,p.A)(o,"submitForm",(function(){if(o.validator.allValid()){var e=o.state;o.props.UserRegister(o.props.SITE_URL,e)}else o.validator.showMessages(),o.forceUpdate()})),(0,p.A)(o,"handleValueChange",(function(e){return function(e){o.setState((0,p.A)({},e.target.name,e.target.value))}})),(0,p.A)(o,"handleValueDate",(function(e){return function(t){var n=t;o.setState((0,p.A)({},e,n))}})),(0,p.A)(o,"handleValuecheckbox",(function(e){return function(e,t){var n=e.target.name,a=void 0!==o.state[n]?o.state[n]:"";if(t)if(""==a)o.setState((0,p.A)({},e.target.name,e.target.value));else{var s=a+","+e.target.value;o.setState((0,p.A)({},e.target.name,s))}else if(""!=a){var r=a.replace(","+e.target.value,"").replace(e.target.value+",","").replace(e.target.value,"");o.setState((0,p.A)({},e.target.name,r))}}})),(0,p.A)(o,"onCaptchaClick",(function(e){o.setState({recaptcha:e})})),o.state={wait:0,recaptcha:null,login_error:!1};var n=o.props.t;return o.validator=new ge({messages:{in:n("password_match_validation"),email:n("email_validation"),alpha_num_dash_space:n("alpha_num_dash_space_validation")}}),o}
1return(0,T.A)(t,e),(0,y.A)(t,[{key:"componentWillReceiveProps",value:function(e){if(void 0!==e.user_registration)if(void 0!==e.user_registration.error)this.setState({login_error:!0});else if(e.auto_login)void 0!==e.user_registration.ID&&window.location.reload();else{var t=this.props.t;alert(t("registration_successfull")),window.location.reload()}}},{key:"render",value:function(){var e=this,t=this.props,o=t.t,n=(t.i18n,this.props.settings.common),a=n.vote_enable_recaptcha,s=n.vote_recapatcha_key,i=(n.vote_auto_login,void 0!==this.props.register_form?this.props.register_form:[]),l=null;void 0!==this.props.user_registration&&void 0!==this.props.user_registration.error&&(l=this.props.user_registration.error);var c=this.props.shortcode,p=12;return"login"==c&&(p=6),r().createElement(S.A,{container:!0,className:"wpvc_register_page",direction:"row",columnSpacing:2,rowSpacing:2},r().createElement(S.A,{className:"wpvc_register_page_item",size:{xs:12,sm:p}},r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control"},r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"username",label:o("login_username"),onChange:this.handleValueChange(),autoComplete:"username",variant:"standard"})),this.validator.message(o("username_required"),this.state.username,"required")),r().createElement(S.A,{className:"wpvc_register_page_item",size:{xs:12,sm:p}},r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control"},r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"email",label:o("login_email"),onChange:this.handleValueChange(),autoComplete:"username",variant:"standard"})),this.validator.message(o("voter_email_required"),this.state.email,"required|email")),r().createElement(S.A,{className:"wpvc_register_page_item",size:{xs:12,sm:p}},r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control"},r().createElement($.A,{className:"wpvc_text_field",type:"password",name:"password",label:o("login_password"),onChange:this.handleValueChange(),autoComplete:"new-password",variant:"standard"}),this.validator.message(o("password_required"),this.state.password,"required"))),r().createElement(S.A,{className:"wpvc_register_page_item",size:{xs:12,sm:p}},r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control"},r().createElement($.A,{className:"wpvc_text_field",type:"password",name:"confirmpassword",label:o("login_cpassword"),onChange:this.handleValueChange(),autoComplete:"new-password",variant:"standard"}),this.validator.message(o("confirm_password_required"),this.state.confirmpassword,"required|in:"+this.state.password))),i.map((function(t,n){return r().createElement(S.A,{key:n,className:"wpvc_register_page_item",size:{xs:12,sm:p}},("SINGLE"==t.question_type||"DATE"==t.question_type||"DROPDOWN"==t.question_type||"MULTIPLE"==t.question_type||"TEXTAREA"==t.question_type)&&r().createElement(S.A,{className:"wpvc_form_control_label",size:12},r().createElement(C.A,null,t.question)),"TEXT"==t.question_type&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control"},r().createElement($.A,{className:"wpvc_text_field",type:t.react_values.text_field_type,name:t.system_name,label:t.question,value:e.state[t.system_name]||"",onChange:e.handleValueChange(),variant:"standard"}),"Y"==t.required&&e.validator.message(null!=t.required_text&&""!=t.required_text?t.required_text:o("enter_the")+t.question,e.state[t.system_name],"required")),"TEXTAREA"==t.question_type&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control"},r().createElement(lt.A,{name:t.system_name,minRows:t.react_values.text_area_row||2,placeholder:t.question,value:e.state[t.system_name]||"",onChange:e.handleValueChange(),style:{maxWidth:"100%",width:"100%"}}),"Y"==t.required&&e.validator.message(null!=t.required_text&&""!=t.required_text?t.required_text:o("enter_the")+t.question,e.state[t.system_name],"required|alpha_num_dash_space")),"SINGLE"==t.question_type&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_single",component:"fieldset"},r().createElement(ct.A,{row:!0,"aria-label":"vote_votingtype",name:t.system_name,onChange:e.handleValueChange()},Object.keys(t.drop_values).map((function(e){var o;return r().createElement(ye.A,{key:e,className:"wpvc_submit_label",control:r().createElement(pt.A,{color:"primary"}),value:t.drop_values[e],label:t.drop_values[e],labelPlacement:null===(o=t.react_values.value_placement)||void 0===o?void 0:o.toLowerCase()})}))),"Y"==t.required&&e.validator.message(null!=t.required_text&&""!=t.required_text?t.required_text:o("enter_the")+t.question,e.state[t.system_name],"required")),"DROPDOWN"==t.question_type&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_single"},r().createElement(ut.A,{variant:"standard",name:t.system_name,defaultValue:"",className:"wpvc_submit_select",onChange:e.handleValueChange()},Object.keys(t.drop_values).map((function(e){return r().createElement(Y.A,{key:e,value:t.drop_values[e]},t.drop_values[e])}))),"Y"==t.required&&e.validator.message(null!=t.required_text&&""!=t.required_text?t.required_text:o("enter_the")+t.question,e.state[t.system_name],"required")),"MULTIPLE"==t.question_type&&r().createElement(Ae.A,{component:"fieldset",fullWidth:!0,className:"wpvc_form_control_single"},r().createElement(ct.A,{row:!0,"aria-label":"vote_votingtype"},Object.keys(t.drop_values).map((function(o){var n;return r().createElement(ye.A,{key:o,className:"wpvc_submit_label",control:r().createElement(be.A,{color:"primary",name:t.system_name,onChange:e.handleValuecheckbox()}),value:t.drop_values[o],label:t.drop_values[o],labelPlacement:null===(n=t.react_values.value_placement)||void 0===n?void 0:n.toLowerCase()})}))),"Y"==t.required&&e.validator.message(null!=t.required_text&&""!=t.required_text?t.required_text:o("enter_the")+t.question,e.state[t.system_name],"required")),"DATE"==t.question_type&&r().createElement(Ae.A,{component:"fieldset",fullWidth:!0,className:"wpvc_form_datepicker"},r().createElement(it.$,{dateAdapter:st.h},r().createElement(rt.l,{className:"wpvc_datepicker",value:e.state[t.system_name]?e.state[t.system_name]:new Date,onChange:e.handleValueDate(t.system_name),format:t.react_values.datepicker_only})),"Y"==t.required&&e.validator.message(null!=t.required_text&&""!=t.required_text?t.required_text:o("enter_the")+t.question,e.state[t.system_name],"required")))})),"on"==a&&""!=s&&r().createElement(Ke.A,{sitekey:s,onChange:this.onCaptchaClick}),"on"==a&&this.validator.message(o("verify_captcha"),this.state.recaptcha,"required"),r().createElement(S.A,{container:!0,size:12,justifyContent:"flex-start"},r().createElement(C.A,{className:"wpvc_error_login"},(0,Qe.Ay)(l)),r().createElement(q.A,{variant:"contained",className:"wpvc_login_btns",color:"secondary",onClick:this.submitForm},o("create_myaccount"))),r().createElement(S.A,{container:!0,size:12,justifyContent:"flex-start"},r().createElement(q.A,{className:"wpvc_forgot_link",color:"primary",component:"a",onClick:function(){e.props.handleaccount()}},o("already_have_account"))))}}])}(s.Component));const ht=(0,i.Ng)((function(e){return{login:e.wpvcfrontdata}}),{UserRegister:function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvcregister";return function(e){var a={method:"POST",body:JSON.stringify({register:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}}})((0,h.CI)("translations")(mt));function vt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vt=function(){return!!e})()}var gt=wp.element,ft=(gt.render,gt.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,vt()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"handleForgetEvent",(function(){if(o.validator.allValid()){var e=o.state.username;o.props.handleForgetEvent(e)}else o.validator.showMessages(),o.forceUpdate()})),o.state={anchorEl:"",open:"",value:0,forgot_panel:0},o.validator=new ge,o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e,t,o,n,a=this,s=this.props.t,i=this.props.forgot_error?this.props.forgot_error:null!==(e=this.props.model)&&void 0!==e&&e.forgot_error?null===(t=this.props.model)||void 0===t?void 0:t.forgot_error:"",l=this.props.forgot_success?this.props.forgot_success:null!==(o=this.props.model)&&void 0!==o&&o.forgot_success?null===(n=this.props.model)||void 0===n?void 0:n.forgot_success:"";return r().createElement(S.A,{container:!0,size:12,className:"wpvc_login_page",rowSpacing:2},r().createElement(S.A,{container:!0,size:12},r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control"},r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"username",label:s("login_username"),onChange:function(e){return a.setState({username:e.target.value})},autoComplete:"username",variant:"standard"}),this.validator.message(s("username_required"),this.state.username,"required"),""!=i&&r().createElement(C.A,{className:"wpvc_error_login"},i),""!=l&&r().createElement(C.A,{className:"wpvc_success_pass"},l))),r().createElement(S.A,{container:!0,size:12,justifyContent:"flex-start"},r().createElement(q.A,{variant:"contained",className:"wpvc_login_btns",color:"secondary",onClick:this.handleForgetEvent},s("send_my_details"))),r().createElement(S.A,{container:!0,size:12,justifyContent:"flex-start"},r().createElement(q.A,{className:"wpvc_forgot_link",color:"primary",component:"a",onClick:function(){a.props.closeforgot()}},s("remember_now"))))}}])}(s.Component));const wt=(0,i.Ng)()((0,h.CI)("translations")(ft));function At(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(At=function(){return!!e})()}var yt=wp.element,bt=(yt.render,yt.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,At()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"handleSend",(function(){if(o.validator.allValid()){var e=o.state.username;o.props.sendEmail(e)}else o.validator.showMessages(),o.forceUpdate()})),o.state={username:""},o.validator=new ge,o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e,t,o,n,a=this,s=this.props.t,i=this.props.error?this.props.error:null!==(e=this.props.model)&&void 0!==e&&e.error?null===(t=this.props.model)||void 0===t?void 0:t.error:"",l=this.props.success?this.props.success:null!==(o=this.props.model)&&void 0!==o&&o.success?null===(n=this.props.model)||void 0===n?void 0:n.success:"";return r().createElement(S.A,{container:!0,size:12,className:"wpvc_login_page",rowSpacing:2},r().createElement(S.A,{container:!0,size:12},r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control"},r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"username",label:s("login_username"),onChange:function(e){return a.setState({username:e.target.value})},autoComplete:"username",variant:"standard"}),this.validator.message(s("username_required"),this.state.username,"required"),""!=i&&r().createElement(C.A,{className:"wpvc_error_login"},i),""!=l&&r().createElement(C.A,{className:"wpvc_success_pass"},l))),r().createElement(S.A,{container:!0,size:12,justifyContent:"flex-start"},r().createElement(q.A,{variant:"contained",className:"wpvc_login_btns",color:"secondary",onClick:this.handleSend},s("send_email"))),r().createElement(S.A,{container:!0,size:12,justifyContent:"flex-start"},r().createElement(q.A,{className:"wpvc_forgot_link",color:"primary",component:"a",onClick:function(){a.props.toggleVerificationEmail(!1)}},s("back_to_login"))))}}])}(s.Component));const Et=(0,i.Ng)()((0,h.CI)("translations")(bt));function Tt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tt=function(){return!!e})()}var kt=wp.element,Mt=(kt.render,kt.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Tt()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"handleextClose",(function(e){o.closeForget()})),(0,p.A)(o,"handleChange",(function(e,t){var n=e.target.id;""==n&&(n=e.target.parentNode.id);var a=n.replace(/\D/g,"");o.setState({value:t,tabindex:parseInt(a)})})),(0,p.A)(o,"handleAccount",(function(){o.setState({value:0})})),(0,p.A)(o,"handleForget",(function(){o.setState({forget_panel:1})})),(0,p.A)(o,"closeForget",(function(){o.setState({forget_panel:0}
1)})),(0,p.A)(o,"handleForgetEvent",(function(e){o.props.ForgotPassword(o.props.SITE_URL,e)})),(0,p.A)(o,"toggleVerificationEmail",(function(e){o.setState({verification_panel:e})})),(0,p.A)(o,"handleVerificationEmail",(function(e){o.props.ResendVerificationEmail(o.props.SITE_URL,e)})),o.state={anchorEl:"",open:"",value:0,forget_panel:0,verification_panel:!1},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"tabProps",value:function(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tab-".concat(e)}}},{key:"render",value:function(){var e=this,t=this.props.t,o=this.props.short.user_can_register,n=this.props,a=n.settings.common.vote_hide_account;return r().createElement(r().Fragment,null,0==this.state.forget_panel&&0==this.state.verification_panel&&r().createElement(Q.A,{onClose:function(){e.props.handclose()},"aria-labelledby":"customized-dialog-title",open:this.props.showlog},r().createElement(ce.A,{component:"div",className:"wpvc_login_popup_title",onClose:function(){e.props.handclose()}},r().createElement(S.A,{className:"wpvc_login_panel",size:12},r().createElement(pe.A,{className:"wpvc_login_panel_tabs",value:this.state.value,onChange:this.handleChange},r().createElement(ue.A,(0,w.A)({className:"wpvc_login_panel_tab",label:t("login")},this.tabProps(0))),1==o&&"off"==a&&r().createElement(ue.A,(0,w.A)({className:"wpvc_login_panel_tab",label:t("create_account")},this.tabProps(1)))),r().createElement(_e.A,{className:"wpvc_login_icon_button","aria-label":"close",onClick:function(){e.props.handclose()}},r().createElement(de.A,null)))),r().createElement(K.A,{dividers:!0,className:"wpvc_login_popup_content"},r().createElement(S.A,{container:!0},r().createElement(S.A,{size:12},r().createElement("form",null,0==this.state.value&&r().createElement(at,(0,w.A)({constant:g},n,{handleforgot:this.handleForget,handleVerificationEmail:this.toggleVerificationEmail}))),r().createElement("form",null,1==this.state.value&&r().createElement(ht,(0,w.A)({},n,{handleaccount:this.handleAccount}))))))),1==this.state.forget_panel&&r().createElement(Q.A,{onClose:function(){e.handleextClose()},"aria-labelledby":"customized-dialog-title",open:this.props.showlog},r().createElement(ce.A,{component:"div",className:"wpvc_login_popup_title",onClose:function(){e.handleextClose()}},r().createElement(S.A,{className:"wpvc_login_panel",size:12},r().createElement(C.A,{className:"wpvc_forget_title",variant:"h6"},t("forgot_details")),r().createElement(_e.A,{className:"wpvc_login_icon_button","aria-label":"close",onClick:function(){e.handleextClose()}},r().createElement(de.A,null)))),r().createElement(K.A,{dividers:!0,className:"wpvc_login_popup_content"},r().createElement(S.A,{container:!0},r().createElement(S.A,{size:12},r().createElement("form",null,r().createElement(wt,(0,w.A)({},n,{handleForgetEvent:this.handleForgetEvent,closeforgot:this.closeForget}))))))),this.state.verification_panel&&r().createElement(Q.A,{onClose:function(){return e.toggleVerificationEmail(!1)},"aria-labelledby":"customized-dialog-title",open:this.props.showlog},r().createElement(ce.A,{component:"div",className:"wpvc_login_popup_title",onClose:function(){e.toggleVerificationEmail(!1)}},r().createElement(S.A,{className:"wpvc_login_panel",size:12},r().createElement(C.A,{className:"wpvc_forget_title",variant:"h6"},t("resend_verification_email")),r().createElement(_e.A,{className:"wpvc_login_icon_button","aria-label":"close",onClick:function(){e.toggleVerificationEmail(!1)}},r().createElement(de.A,null)))),r().createElement(K.A,{dividers:!0,className:"wpvc_login_popup_content"},r().createElement(S.A,{container:!0},r().createElement(S.A,{size:12},r().createElement("form",null,r().createElement(Et,(0,w.A)({},n,{sendEmail:this.handleVerificationEmail,toggleVerificationEmail:this.toggleVerificationEmail}))))))))}}])}(s.Component));const St=(0,i.Ng)((function(e){return{model:e.wpvcfrontdata}}),{ForgotPassword:Re,ResendVerificationEmail:je})((0,h.CI)("translations")(Mt));var Ct=o(26422),Ot=o(94654),Nt=o(85213),Dt=o(34339),It=o(11848),xt=o(22079);function Lt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lt=function(){return!!e})()}var zt=(0,It.Ay)(Dt.A)({width:"100%",padding:"16px"}),Rt=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Lt()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"handleEmailValChange",(function(e){o.setState({email_address:e.target.value})})),(0,p.A)(o,"handleCheckbox",(function(e){var t=e.target.checked?1:0;o.setState({newsletter:t})})),(0,p.A)(o,"submitForm",(function(){o.validator.allValid()?o.props.Savenewsletter(o.props.SITE_URL,o.state.newsletter,o.state.email_address,o.props.short.user_id_profile).then((function(e){o.setState({newsletter:"",email_address:"",thanks_msg:!0===e.subscribed,error_msg:!1===e.subscribed})})):(o.validator.showMessages(),o.forceUpdate())})),o.validator=new ge({messages:{email:o.props.t("email_validation")}}),o.state={newsletter:"",email_address:"",thanks_msg:"",error_msg:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props,o=t.t,n=(t.i18n,this.props.settings.contest),a=(n.onlyloggedinuser,n.vote_grab_news_email),s=n.vote_tracking_method,i=n.vote_grab_email_address,l=void 0!==this.props.email_field?1:0,c=void 0!==this.props.short.user_logged&&!1!==this.props.short.user_logged?1:0,p=this.props.short.check_newsletter;return r().createElement(r().Fragment,null,"on"==a&&0==p&&0==l&&(1==c||"off"==i&&("ip_traced"==s||"cookie_traced"==s||"user_traced"==s))&&r().createElement(zt,{elevation:3},r().createElement(S.A,{container:!0,direction:"row",spacing:3,sx:{justifyContent:"center",alignItems:"center"}},0==c&&r().createElement(S.A,{size:6},r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"email_address",value:this.state.email_address,label:o("enter_email_address"),onChange:function(t){return e.handleEmailValChange(t)}
1,fullWidth:!0}),this.validator.message(o("voter_email_required"),this.state.email_address,"required|email")),r().createElement(S.A,{size:4},r().createElement(xt.A,null,r().createElement(ye.A,{control:r().createElement(be.A,{name:"newsletter",value:!0,checked:1===this.state.newsletter,onChange:function(t){return e.handleCheckbox(t)}}),label:o("check_email_newsletter")})),this.validator.message(o("enable_checkbox"),this.state.newsletter,"required")),r().createElement(S.A,{size:2},r().createElement(q.A,{variant:"contained",className:"wpvc_login_btns",color:"secondary",onClick:this.submitForm},o("subscribe_news")))),1==this.state.thanks_msg&&r().createElement(C.A,{variant:"body2",align:"center",style:{color:"green"},className:"wpvc_span_to_p"},o("newsletter_thanks")),1==this.state.error_msg&&r().createElement(C.A,{variant:"body2",align:"center",style:{color:"green"},className:"wpvc_span_to_p"},o("newsletter_error"))),"on"==a&&1==l&&r().createElement(xt.A,null,r().createElement(ye.A,{control:r().createElement(be.A,{name:"vote_newsletter",value:!0,onChange:function(t){return e.props.handleVoterDetails(t)}}),label:o("check_email_newsletter")})))}}])}(s.Component);const jt=(0,i.Ng)("",{Savenewsletter:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=f.A.get("wpvc_voting_authorize"),s=e+"wpvc-voting/v1/wpvcsavenewsletter";return function(e){var r={method:"POST",body:JSON.stringify({newsletter:t,email:o,user_id:n}),headers:{"Content-Type":"application/json","Authorize-wpvc":a,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(s,r).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}}})((0,h.CI)("translations")(Rt));function Pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pt=function(){return!!e})()}var Ut=wp.element,Vt=(Ut.render,Ut.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Pt()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"toggleHover",(function(e,t){return function(){switch(t){case"submit_form":o.setState({formfontcolor:e,formhover_back:o.props.vote_navbar_active_button_background});break;case"gallery":o.setState({galleryfontcolor:e,galleryhover_back:o.props.vote_navbar_active_button_background});break;case"topten":o.setState({tenfontcolor:e,tenhover_back:o.props.vote_navbar_active_button_background});break;case"rules":o.setState({rulesfontcolor:e,ruleshover_back:o.props.vote_navbar_active_button_background});break;case"profile":o.setState({profilefontcolor:e,profilehover_back:o.props.vote_navbar_active_button_background});break;case"search":o.setState({searchfontcolor:e,searchhover_back:o.props.vote_navbar_active_button_background});break;case"sort":o.setState({sortfontcolor:e,sorthover_back:o.props.vote_navbar_active_button_background})}}})),(0,p.A)(o,"toggleleave",(function(e,t){return function(){switch(t){case"submit_form":o.setState({formfontcolor:e,formhover_back:null});break;case"gallery":o.setState({galleryfontcolor:e,galleryhover_back:null});break;case"topten":o.setState({tenfontcolor:e,tenhover_back:null});break;case"rules":o.setState({rulesfontcolor:e,ruleshover_back:null});break;case"profile":o.setState({profilefontcolor:e,profilehover_back:null});break;case"search":o.setState({searchfontcolor:e,searchhover_back:null});break;case"sort":o.setState({sortfontcolor:e,sorthover_back:null})}}})),(0,p.A)(o,"togglelistHover",(function(e,t){return function(){"list"==t?o.setState({listcolor:e}):o.setState({gridcolor:e})}})),(0,p.A)(o,"togglelistleave",(function(e,t){return function(){"list"==t?o.setState({listcolor:e}):o.setState({gridcolor:e})}})),(0,p.A)(o,"componentDidMount",(function(){switch(o.setState({galleryfontcolor:o.props.votes_navigation_text_color,tenfontcolor:o.props.votes_navigation_text_color,formfontcolor:o.props.votes_navigation_text_color,rulesfontcolor:o.props.votes_navigation_text_color,profilefontcolor:o.props.votes_navigation_text_color,searchfontcolor:o.props.votes_navigation_text_color,sortfontcolor:o.props.votes_navigation_text_color,listcolor:o.props.votes_list_inactive,gridcolor:o.props.votes_grid_inactive}),void 0!==o.props.short?o.props.short.override_view:null){case"contest-gallery":o.props.handlegallery("gallery");break;case"contest-topten":o.props.handletopten("topten");break;case"contest-rules":o.props.handlerules("rules")}})),(0,p.A)(o,"handlelogin",(function(){o.setState({show_login:!0})})),(0,p.A)(o,"handleClose",(function(e){o.setState({show_login:!1})})),(0,p.A)(o,"handleSearchClose",(function(){o.setState({sopen:!1}),o.setState({search_error:!1})}
1)),(0,p.A)(o,"handleSearchtext",(function(){var e=o.props.wpvc_search;o.props.searchclick(e),o.handleSearchClose(),o.props.handleDrawer(!1)})),(0,p.A)(o,"handleClearSearch",(function(){o.handleSearchClose(),o.props.handleDrawer(!1),o.props.searchclick("")})),(0,p.A)(o,"handleSearchOpen",(function(){o.setState({sopen:!0})})),(0,p.A)(o,"handleSortOpen",(function(e){o.setState({sortopen:!0}),o.setState({sortanchor:e.currentTarget})})),(0,p.A)(o,"handleSortClose",(function(){o.setState({sortopen:!1}),o.setState({sortanchor:null})})),(0,p.A)(o,"handleSorting",(function(e){o.props.handleDrawer(!1),o.props.sortchange(e),o.handleSortClose()})),o.state={fontcolor:"",hover_back:"",listcolor:"",gridcolor:"",btn_number:"",show_login:!1,galleryfontcolor:null,galleryhover_back:null,tenfontcolor:null,tenhover_back:null,formfontcolor:null,formhover_back:null,rulesfontcolor:null,ruleshover_back:null,profilefontcolor:null,profilehover_back:null,searchfontcolor:null,searchhover_back:null,sortfontcolor:null,sorthover_back:null,sopen:!1,sortopen:!1,sortanchor:null},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"calculateVoteTimeLeft",value:function(e){var t=this.props.currentdate;if(t||(t=new Date),null!=e){e=e.replace(/ /g,"T");var o=(0,N.Ay)(e);return new Date(o)-t}return-1}},{key:"render",value:function(){var e=this,t=this.props,o=t.t,n=(t.i18n,this.props),a=n.votes_navigation_font_size,s=n.votes_navigation_text_color,i=n.votes_navigation_text_color_hover,l=n.votes_navigationbgcolor,c=n.votes_list_active,p=n.votes_list_inactive,u=n.votes_grid_active,_=n.votes_grid_inactive,d=n.vote_navbar_active_button_background,m=n.vote_navbar_mobile_font,h=this.props,v=this.props.short.end_time,g=this.props.short.start_time,f="",A=null,y=0,b=void 0!==h.pagin_val?h.pagin_val:null,E=null!=b?b.total_posts:0,T=h.short.allcatoption.tax_activationcount||0;1==this.props.short.showform||1==this.props.short.displayform?y=1:g?g?(y=this.calculateVoteTimeLeft(g),0!==T&&parseInt(T)<=parseInt(E)&&(y=0)):v&&(y=this.calculateVoteTimeLeft(v)):(y=1,0!==T&&parseInt(T)<=parseInt(E)&&(y=0)),v&&(A=this.calculateVoteTimeLeft(v)),(1!=this.props.short.showform||1!=this.props.short.displayform)&&0!==T&&parseInt(T)<=parseInt(E)&&(A=-1);var k=this.props.short.onlyloggedsubmit,M=this.props.short.user_logged,C=this.props.view,O=null,N=null;void 0!==this.props.short.allcatoption&&(O=void 0!==this.props.short.allcatoption.style?this.props.short.allcatoption.style.vote_count_showhide:"",N=this.props.short.allcatoption.middle_custom_navigation?this.props.short.allcatoption.middle_custom_navigation:null),void 0!==this.props.short.allcatoption&&(f=this.props.short.allcatoption.contest_rules);var D={};if(D="on"===O?{newest:o("newest"),oldest:o("oldest"),mostvoted:o("mostvoted"),leastvoted:o("leastvoted")}:{newest:o("newest"),oldest:o("oldest")},D=wp.hooks.applyFilters("wpvc_judge_send_sorting",D,this.props),"profile_screen"!=C&&"topcontest"!=C){var I,x,L=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n="top_bar_";return null!=t&&(n="mobile_"),r().createElement(S.A,{container:!0,className:"wpvc_voting_nav_grid",justifyContent:"flex-start"},"0"!==e.props.short.showform&&"0"!==e.props.short.displayform&&y>0&&r().createElement(S.A,null,(0==k||1==M)&&("1"===e.props.short.showform||"1"===e.props.short.displayform||A>0||null==A)&&r().createElement(B.A,{title:o("submit_entry"),placement:"top-start",key:"".concat(n,"submit_entry")},r().createElement(q.A,{className:"wpvc_navigation",onMouseOver:e.toggleHover(i,"submit_form"),onMouseLeave:e.toggleleave(s,"submit_form"),onClickCapture:e.toggleleave(null,"submit_form"),startIcon:r().createElement(te.A,null),size:"small",style:{fontSize:a+"px",color:1==t?m:"submit_form"==e.props.view?i:e.state.formfontcolor,backgroundColor:"submit_form"==e.props.view?d:e.state.formhover_back},component:"a",href:wp.hooks.applyFilters("wpvc_submit_entry_url","#wpvc_navigation_bar_"+e.props.short.id),onClick:function(){wp.hooks.applyFilters("wpvc_open_submit_form",!0)&&(e.props.handleDrawer(!1),e.props.handleform("submit_form"))}},r().createElement("span",{className:"wpvc_nav_text"},o("submit_entry")))),1==k&&0==M&&("1"===e.props.short.showform||"1"===e.props.short.dis
1playform||A>0||null==A)&&r().createElement("div",null,r().createElement(B.A,{title:o("submit_entry"),placement:"top-start",key:"".concat(n,"submit_entry")},r().createElement(q.A,{className:"wpvc_navigation",onMouseOver:e.toggleHover(i,"submit_form"),onMouseLeave:e.toggleleave(s,"submit_form"),onClickCapture:e.toggleleave(null,"submit_form"),startIcon:r().createElement(te.A,null),size:"small",style:{fontSize:a+"px",color:1==t?m:"submit_form"==e.props.view?i:e.state.formfontcolor,backgroundColor:"submit_form"==e.props.view?d:e.state.formhover_back},component:"a",onClick:function(){e.props.handleDrawer(!1),e.handlelogin()}},r().createElement("span",{className:"wpvc_nav_text"},o("submit_entry")))),r().createElement(St,(0,w.A)({},h,{showlog:e.state.show_login,handclose:e.handleClose,handlog:e.handlelogin})))),(1==e.props.short.showgallery||null==e.props.short.showgallery)&&"upcoming"!=e.props.view&&r().createElement(S.A,null,r().createElement(B.A,{title:o("gallery"),placement:"top-start",key:"".concat(n,"gallery")},r().createElement(q.A,{className:"wpvc_navigation",onMouseOver:e.toggleHover(i,"gallery"),onMouseLeave:e.toggleleave(s,"gallery"),onClickCapture:e.toggleleave(null,"gallery"),startIcon:r().createElement(oe.A,null),size:"small",style:{fontSize:a+"px",color:1==t?m:"gallery"==e.props.view?i:e.state.galleryfontcolor,backgroundColor:"gallery"==e.props.view?d:e.state.galleryhover_back},href:null!=N?N:"#wpvc_navigation_bar_"+e.props.short.id,component:"a",onClick:function(){e.props.handleDrawer(!1),e.props.handlegallery("gallery")}},r().createElement("span",{className:"wpvc_nav_text"},o("gallery"))))),1==e.props.short.showtop||"on"==e.props.short.showtop&&r().createElement(S.A,null,r().createElement(B.A,{title:o("top_ten"),placement:"top-start",key:"".concat(n,"top_ten")},r().createElement(q.A,{className:"wpvc_navigation",onMouseOver:e.toggleHover(i,"topten"),onMouseLeave:e.toggleleave(s,"topten"),onClickCapture:e.toggleleave(null,"topten"),startIcon:r().createElement(ne.A,null),size:"small",style:{fontSize:a+"px",color:1==t?m:"topten"==e.props.view?i:e.state.tenfontcolor,backgroundColor:"topten"==e.props.view?d:e.state.tenhover_back},component:"a",onClick:function(){e.props.handleDrawer(!1),e.props.handletopten("topten")}},r().createElement("span",{className:"wpvc_nav_text"},o("top_ten"))))),wp.hooks.applyFilters("wpvc_judge_topbar_navigation","",e.props),(1==e.props.short.showrules||""!=f)&&0!=e.props.show_all_rules&&"0"!==e.props.short.showrules&&r().createElement(S.A,null,r().createElement(B.A,{title:o("rules"),placement:"top-start",key:"".concat(n,"rules")},r().createElement(q.A,{className:"wpvc_navigation",onMouseOver:e.toggleHover(i,"rules"),onMouseLeave:e.toggleleave(s,"rules"),onClickCapture:e.toggleleave(null,"rules"),startIcon:r().createElement(ae.A,null),size:"small",style:{fontSize:a+"px",color:1==t?m:"rules"==e.props.view?i:e.state.rulesfontcolor,backgroundColor:"rules"==e.props.view?d:e.state.ruleshover_back},component:"a",onClick:function(){e.props.handleDrawer(!1),e.props.handlerules("rules")}},r().createElement("span",{className:"wpvc_nav_text"},o("rules"))))),"on"!=e.props.short.hideyourprofile&&1==e.props.short.showprofile&&1==e.props.short.user_logged&&r().createElement(S.A,null,r().createElement(B.A,{title:o("profile"),placement:"top-start",key:"".concat(n,"profile")},r().createElement(q.A,{className:"wpvc_navigation",onMouseOver:e.toggleHover(i,"profile"),onMouseLeave:e.toggleleave(s,"profile"),onClickCapture:e.toggleleave(null,"profile"),startIcon:r().createElement(se.A,null),size:"small",style:{fontSize:a+"px",color:1==t?m:"profile"==e.props.view?i:e.state.profilefontcolor,backgroundColor:"profile"==e.props.view?d:e.state.profilehover_back},component:"a",onClick:function(){e.props.handleDrawer(!1),e.props.handleurprofile("profile")}},r().createElement("span",{className:"wpvc_nav_text"},o("profile"))))),r().createElement(S.A,{className:"wpvc_search_sort"},1==e.props.short.search&&r().createElement(S.A,null,r().createElement(B.A,{title:o("Search"),placement:"top-start",key:"".concat(n,"search")},r().createElement(q.A,{className:"wpvc_search",size:"small","aria-label":"Search",component:"span",onClick:e.handleSearchOpen,onMouseOver:e.toggleHover(i,"search"),onMouseLeave:e.toggleleave(s,"search"),onClickCapture:e.toggleleave(null,"search"),style:{fontSize:a+"px",color:1==t?m:"search"==e.props.view?i:e.state.searchfontcolor,backgroundColor:"search"==e.props.view?d:e.state.searchhover_back},startIcon:r().createElement(G.A,{color:"secondary",variant:"dot",invisible:void 0===e.props.wpvc_search||""===e.props.wpvc_search||1!==e.props.wpvc_search_active},r().createElement(re.A,{style:{fontSize:"20px"}}))},r().createElement("span",{className:"wpvc_nav_text wpvc_search_text"},o("Search")))),void 0!==e.props.wpvc_search&&""!==e.props.wpvc_search&&1===e.props.wpvc_search_active&&r().createElement(F.A,{className:"wpvc_search_chip",size:"small",onDelete:e.handleClearSearch,label:e.props.wpvc_search,variant:"outlined",color:"secondary",style:{maxWidth:"150px"}})),1==e.props.short.sort_by&&1==e.props.sortshow&&r().createElement(S.A,null,r().createElement(B.A,{title:o("sort"),placement:"top-start",key:"".concat(n,"sort")},r().createElement(q.A,{className:"wpvc_sorting",size:"small","aria-label":"Sort",component:"span",onClick:e.handleSortOpen,onMouseOver:e.toggleHover(i,"sort"),onMouseLeave:e.toggleleave(s,"sort"),onClickCapture:e.toggleleave(null,"sort"),style:{fontSize:a+"px",color:1==t?m:"sort"==e.props.view?i:e.state.sortfontcolor,backgroundColor:"sort"==e.props.view?d:e.state.sorthover_back},startIcon:r().createElement(Ct.A,{style:{fontSize:"20px"}})},r().createElement("span",{className:"wpvc_nav_text wpvc_search_text"},o("sort")))),r().createElement(W.A,{open:e.state.sortopen,anchorEl:e.state.sortanchor,onClose:e.handleSortClose},Object.keys(D).map((function(t,a){return r().createElement(Y.A,{key:"".concat(n).concat(a),"data-value":t,selected:t===e.props.sortselect(),onClick:e.handleSorting},o(t))}))))))};return r().createElement(S.A,{container:!0,size:12,className:"wpvc_voting_navigation"},r().createElement(S.A,{container:!0,size:12,className:"wpvc_navigation_bar",id:"wpvc_navigation_bar_"+this.props.short.id},r().createElement(Z.A,{position:"static",className:"wpvc_app_bar",style:{backgroundColor:l},enableColorOnDark:!0},r().createElement(H.A,{disableGutters:!1},r().createElement(S.A,{container:!0,size:12,justifyContent:"space-between"},1===(null===(I=this.props)||void 0===I||null===(I=I.short)||void 0===I?void 0:I.addcontestshortcode)?r().createElement(J.A,null,L()):r().createElement(J.A,{sx:{display:{xs:"none",md:"block"}}},L()),void 0===(null===(x=this.props)||void 0===x||null===(x=x.short)||void 0===x?void 0:x.addcontestshortcode)&&r().createElement(J.A,{sx:{display:{md:"none",xs:"block"}}},r().createElement(S.A,{container:!0,className:"wpvc_voting_nav_grid",justifyContent:"flex-start"},r().createElement(q.A,{className:"wpvc_navi_grid_list",startIcon:r().createElement(Ot.A,null),size:"large",component:"a",style:{fontSize:a+"px",color:s},onClick:function(){return e.props.handleDrawer(!0)}},o("Menu")),r().createElement(X.A,{anchor:"left",open:h.drawer||!1,onClose:function(){return e.props.handleDrawer(!1)},onOpen:function(){return e.props.handleDrawer(!0)}},L(1)))),r().createElement(S.A,{container:!0,direction:"row",className:"wpvc_grid_list",justifyContent:"flex-end",style:{flexWrap:"nowrap"}},M&&r().createElement(S.A,null,r().createElement(B.A,{title:o("Logout"),placement:"top-start",key:"logout"},r().createElement(q.A,{className:"wpvc_navi_grid_list",startIcon:r().createElement(Nt.A,null),size:"large",component:"a",style:{fontSize:a+"px",color:"#FEFEFE"},onClick:this.props.handlelogout},r().createElement("span",{className:"wpvc_nav_text wpvc_search_text",style:{marginRight:"8px",marginLeft:"-8px"}},o("Logout"))))),"on"!=this.props.short.allcatoption.list_grid_hide&&1==this.props.hide_grid&&"upcoming"!=this.props.view&&r().createElement(r().Fragment,null,r().createElement(S.A,null,r().createElement(q.A,{className:"wpvc_navi_grid_list",startIcon:r().createElement(ie.A,null),size:"large",component:"a",onMouseOver:this.togglelistHover(c,"list"),onMouseLeave:this.togglelistleave(p,"list"),style:{fontSize:a+"px",color:"list"==this.props.view?c:this.state.listcolor},onClick:function(){e.props.handleview("list")}})),r().createElement(S.A,null,r().createElement(q.A,{className:"wpvc_navi_grid_list",startIcon:r().createElement(le.A,null),size:"large",component:"a",onMouseOver:this.togglelistHover(u,"grid"),onMouseLeave:this.togglelistleave(_,"grid"),style:{fontSize:a+"px",color:"grid"==this.props.view?u:this.state.gridcolor},onClick:function(){e.props.handleview("grid")}}))))))),r().createElement(jt,this.props),1==this.props.short.search&&r().createElement(Q.A,{fullWidth:!0,maxWidth:"sm",open:this.state.sopen,onClose:this.handleSearchClose,"aria-labelledby":"Search Dialog"},r().createElement(K.A,null,r().createElement($.A,{autoFocus:!0,margin:"dense",name:"wpvc_search",label:o("Search"),fullWidth:!0,onChange:this.props.searchchange(),value:this.props.wpvc_search||"",variant:"standard"})),r().createElement(ee.A,null,r().createElement(q.A,{onClick:this.handleClearSearch,color:"secondary"},o("Reset")),r().createElement(q.A,{onClick:this.handleSearchtext,color:"primary"},o("Search"))))))}return""}}])}(s.Component));const Bt=(0,i.Ng)()((0,h.CI)("translations")(Vt));var qt=o(82284),Gt=o(14977),Ft=o(37636),Wt=o(56826),Yt=o(71543),Zt=o(47419),Ht=o(73357),Jt=o(53650);function Xt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xt=function(){return!!e})()}var Qt=wp.element,Kt=(Qt.render,Qt.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Xt()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){var e="grid"==o.props.view?o.props.settings.color.votes_cont_title_color_grid:o.props.settings.color.votes_cont_title_color,t="grid"==o.props.view?"transparent":o.props.settings.color.votes_cont_title_bgcolor;o.setState({gtitle_color:e,title_bck:t})})),(0,p.A)(o,"toggleHover",(function(e){return function(){o.setState({gtitle_color:e})}})),(0,p.A)(o,"toggleleave",(function(e){return function(){o.setState({gtitle_color:e})}}
1)),o.state={anchorEl:"",open:"",gtitle_color:"",title_bck:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props.t,t=this.props.settings.color,o=t.votes_cont_title_font_size,n=t.votes_cont_title_color_grid,a=t.votes_cont_title_color_hover_grid,s=t.votes_cont_title_color,i=t.votes_cont_title_color_hover,l="grid"==this.props.view?n:s,c="grid"==this.props.view?a:i,p="grid"==this.props.view?"row":"column",u=void 0!==this.props.title_alocation?this.props.title_alocation:null,_=this.props.settings.common,d=this.props.hideCategory?1:0;return this.props.singlepost?r().createElement("div",{className:"wpvc_card_conthead_"+p,style:{backgroundColor:this.state.title_bck}},"on_grid"==u&&r().createElement(Jt.A,{className:"wpvc_card_header_"+p,title:r().createElement(C.A,{style:{fontSize:o+"px",color:this.state.gtitle_color},onMouseOver:this.toggleHover(c,"title"),onMouseLeave:this.toggleleave(l,"title"),variant:"h5",className:"wpvc_grid_header"},"on"!=_.vote_disable_single&&r().createElement(Ee.A,{style:{fontSize:o+"px",color:this.state.gtitle_color},href:this.props.singlepost.wpvc_custom_link||this.props.singlepost.link,target:"on"==_.vote_newlink_tab?"_blank":"_self"},this.props.singlepost.post_title),"on"==_.vote_disable_single&&this.props.singlepost.post_title),subheader:1==this.props.short.termdisplay?r().createElement(C.A,{className:"wpvc_card_sub_header"},e("fr_category"),this.props.singlepost.term_name):""}),null==u&&r().createElement("div",null,r().createElement(C.A,{variant:"h5",className:"wpvc_grid_header",style:{fontSize:o+"px",color:this.state.gtitle_color},onMouseOver:this.toggleHover(c,"title"),onMouseLeave:this.toggleleave(l,"title")},"on"!=_.vote_disable_single&&r().createElement(Ee.A,{href:this.props.singlepost.wpvc_custom_link||this.props.singlepost.link,target:"on"==_.vote_newlink_tab?"_blank":"_self"},this.props.singlepost.post_title),"on"==_.vote_disable_single&&this.props.singlepost.post_title),0===d&&r().createElement(r().Fragment,null,1==this.props.short.termdisplay&&r().createElement(C.A,{className:"wpvc_card_sub_header"},e("fr_category"),this.props.singlepost.term_name)))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const $t=(0,i.Ng)()((0,h.CI)("translations")(Kt));function eo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eo=function(){return!!e})()}var to=wp.element,oo=(to.render,to.useState,function(e){function t(e){return(0,A.A)(this,t),o=this,n=t,a=[e],n=(0,E.A)(n),(0,b.A)(o,eo()?Reflect.construct(n,a||[],(0,E.A)(o).constructor):n.apply(o,a));var o,n,a}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props,o=t.t,n=(t.i18n,this.props),a=null,s=null;return void 0!==n.short.allcatoption&&(a=n.short.allcatoption.authordisplay,s=n.short.allcatoption.authornamedisplay),this.props.singlepost?r().createElement("div",{className:"wpvc_card_conthead_author"},"on"==a&&""!=this.props.singlepost.author_name&&r().createElement(Ee.A,{href:void 0,onClick:function(){return e.props.changeauthor(e.props.singlepost.author)}},r().createElement(C.A,{className:"wpvc_card_sub_header"},o("fr_author_name"),this.props.singlepost.author_name)),"on"==s&&""!=this.props.singlepost.author_email&&r().createElement(Ee.A,{href:void 0,onClick:function(){return e.props.changeauthor(e.props.singlepost.author)}},r().createElement(C.A,{className:"wpvc_card_sub_header"},o("fr_author_email"),this.props.singlepost.author_email))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const no=(0,h.CI)("translations")(oo);function ao(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ao=function(){return!!e})()}var so=wp.element,ro=(so.render,so.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,ao()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({read_more:o.props.settings.color.votes_readmore_fontcolor})})),(0,p.A)(o,"toggleHover",(function(e,t){return function(){o.setState({read_more:e})}})),(0,p.A)(o,"toggleleave",(function(e,t){return function(){o.setState({read_more:e})}})),o.state={read_more:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props.t,t=this.props.settings.color,o=t.votes_cont_desc_font_size,n=t.votes_cont_dese_color,a=t.votes_readmore_fontcolor,s=t.votes_readmore_fontcolor_hover,i=t.votes_readmore_font_size,l=this.props.settings.excerpt.read_more,c=this.props.view;return this.props.singlepost?r().createElement("div",{className:"wpvc_contestant_description"},r().createElement(C.A,{variant:"body2",style:{fontSize:o+"px",color:n},component:"div",className:"wpvc_content_description"},(0,Qe.Ay)("single"==c?this.props.singlepost.full_content:this.props.singlepost.post_excerpt)),"off"==this.props.settings.style.vote_readmore&&"single"!=c&&r().createElement(Ee.A,{className:"wpvc_read_mores",style:{fontSize:i+"px",color:this.state.read_more},onMouseOver:this.toggleHover(s),onMouseLeave:this.toggleleave(a),href:this.props.singlepost.wpvc_custom_link||this.props.singlepost.link},""!=l?l:e("fr_read_more"))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const io=(0,i.Ng)()((0,h.CI)("translations")(ro));var lo=o(87393),co=o(49394),po=o(29093),uo=o(65875);function _o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_o=function(){return!!e})()}var mo=wp.element,ho=(mo.render,mo.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,_o()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({vote_font:o.props.settings.color.votes_button_font_color,vote_btn:o.props.settings.color.votes_button_bgcolor})})),o.state={vote_font:"",vote_btn:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props.t,t=this.props.settings.color,o=t.votes_count_font_size,n=t.votes_count_font_color,a=t.votes_count_bgcolor;return this.props.singlepost?r().createElement(S.A,null,r().createElement(q.A,{variant:"contained",className:"wpvc_vote_counts",style:{fontSize:o+"px",color:n,background:a}},this.props.singlepost.votes_count+" ",e("fr_votes"))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const vo=(0,i.Ng)()((0,h.CI)("translations")(ho));var go=o(25239),fo=o(48857),wo=o(13945);function Ao(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ao=function(){return!!e})()}var yo=function(e){function t(e){return(0,A.A)(this,t),o=this,n=t,a=[e],n=(0,E.A)(n),(0,b.A)(o,Ao()?Reflect.construct(n,a||[],(0,E.A)(o).constructor):n.apply(o,a));var o,n,a}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props,o=t.t,n=(t.i18n,this.props.settings.contest),a=n.vote_grab_name,s=n.vote_grab_country,i=n.vote_grab_zipcode,l=n.vote_grab_consent,c=n.consent_text,p=this.props.countries,u=this.props.voter_state,_=u.voter_name,d=u.voter_country,m=u.voter_zipcode,h=u.voter_terms;return r().createElement(r().Fragment,null,"on"==a&&r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"voter_name",label:o("enter_voter_name"),onChange:function(t){return e.props.handleVoterDetails(t)},fullWidth:!0}),"on"==a&&this.props.validator.message(o("voter_name_required"),_,"required"),"on"==s&&r().createElement(Ae.A,{className:"wpvc_select_country"}
1,r().createElement(wo.A,null,o("select_voter_country")," "),r().createElement(ut.A,{variant:"standard",name:"voter_country",className:"wpvc_text_field",autoWidth:!0,onChange:this.props.handleVoterDetails,fullWidth:!0,defaultValue:""},Object.keys(p).map((function(e){return r().createElement(Y.A,{key:e,value:e},p[e])})))),"on"==s&&this.props.validator.message(o("voter_country_required"),d,"required"),"on"==i&&r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"voter_zipcode",label:o("enter_voter_zipcode"),onChange:function(t){return e.props.handleVoterDetails(t)},fullWidth:!0}),"on"==i&&this.props.validator.message(o("voter_zipcode_required"),m,"required"),"on"==l&&r().createElement(Ae.A,{component:"fieldset"},r().createElement(ct.A,{row:!0},r().createElement(ye.A,{control:r().createElement(be.A,{color:"primary",name:"voter_terms",onChange:function(t){return e.props.handleVoterDetails(t)},style:{marginRight:10}}),label:r().createElement("p",{dangerouslySetInnerHTML:{__html:c}})}))),"on"==l&&this.props.validator.message(o("consent_validation_text"),h,"consent"))}}])}(s.Component);const bo=(0,h.CI)("translations")(yo);function Eo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Eo=function(){return!!e})()}var To=wp.element,ko=(To.render,To.useState,function(e){function t(e){var o;(0,A.A)(this,t),o=function(e,t,o){return t=(0,E.A)(t),(0,b.A)(e,Eo()?Reflect.construct(t,o||[],(0,E.A)(e).constructor):t.apply(e,o))}(this,t,[e]),(0,p.A)(o,"submitForm",(function(){if(o.validator.allValid()&&o.state.captcha_verfied){var e=o.props.indexpost,t=o.props.settings.contest,n={};n.user_logged=o.props.short.user_logged,n.user_id_profile=o.props.short.user_id_profile,n.captcha_verfied=o.state.captcha_verfied,n=Object.assign(n,t),o.props.handleSaveVotes(o.props.singlepost.id,o.props.singlepost.term_id,n,e,o.props.email_address)}else o.validator.showMessages(),o.forceUpdate()})),(0,p.A)(o,"onCaptchaClick",(function(e){o.props.handleCaptchaChange(e),e&&o.props.verifyCaptcha(o.props.SITE_URL,e).then((function(e){o.setState({captcha_verfied:e.verified})}))}));var n=o.props.t;o.validator=new ge({validators:{consent:{message:n("consent_validation_text"),rule:function(e,t,o){return e||!1},messageReplace:function(e,t){return e.replace(":values",t)},required:!0}},messages:{email:o.props.t("email_validation")}});var a=o.props.settings.common.vote_enable_recaptcha_voting;return o.state={recaptcha:null,captcha_verfied:"on"!=a},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props.t,o=this.props.settings.common,n=o.vote_enable_recaptcha_voting,a=o.vote_recapatcha_key;return r().createElement(Q.A,{open:this.props.showlog,maxWidth:"sm",fullWidth:!0,onClose:function(){return e.props.handclose()}},r().createElement(K.A,{className:"wpvc_voterdetails_content"},r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"email_address",label:t("enter_email_address"),onChange:function(){return e.props.handleValueChange(event)},fullWidth:!0}),this.validator.message(t("voter_email_required"),this.props.email_address,"required|email"),r().createElement(jt,(0,w.A)({},this.props,{email_field:!0}
1)),r().createElement(bo,(0,w.A)({},this.props,{validator:this.validator})),"on"==n&&""!=a&&r().createElement(S.A,{container:!0,justifyContent:"center",style:{marginTop:20}},r().createElement(S.A,{size:12},r().createElement(Ke.A,{sitekey:a,onChange:this.onCaptchaClick})),r().createElement(S.A,{size:12},this.validator.message(t("verify_captcha"),this.props.recaptcha,"required"))),r().createElement(S.A,{container:!0,justifyContent:"flex-start"},r().createElement(C.A,{className:"wpvc_error_login"},(0,Qe.Ay)(null)),r().createElement(q.A,{variant:"contained",className:"wpvc_login_btns",color:"secondary",onClick:this.submitForm},t("fr_vote_now")))))}}])}(s.Component));const Mo=(0,h.CI)("translations")(ko);var So=o(52751),Co=o(44014);function Oo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oo=function(){return!!e})()}var No=wp.element,Do=(No.render,No.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Oo()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"handleEmailverify",(function(){o.validator.allValid()?o.props.handleEmailverify():(o.validator.showMessages(),o.forceUpdate())})),(0,p.A)(o,"handleEmailCodeChange",(function(e){o.setState({enter_email_code:e.target.value})})),(0,p.A)(o,"handleVerificationCode",(function(){parseInt(o.state.enter_email_code)===parseInt(o.props.email_code)?o.submitForm():(console.log("Error"),o.validator.showMessages(),o.forceUpdate())})),(0,p.A)(o,"submitForm",(function(){var e=o.props.indexpost,t=o.props.settings.contest,n={};n.user_logged=o.props.short.user_logged,n.user_id_profile=o.props.short.user_id_profile,n=Object.assign(n,t),o.props.handleSaveVotes(o.props.singlepost.id,o.props.singlepost.term_id,n,e,o.props.email_address)})),o.state={enter_email_code:""},o.validator=new ge({validators:{verifycode:{message:o.props.t("verification_code_not_matching"),rule:function(e,t,n){return parseInt(e)===parseInt(o.props.email_code)},messageReplace:function(e,t){return e.replace(":values",o.helpers.toSentence(t))},required:!0},consent:{message:o.props.t("consent_validation_text"),rule:function(e,t,o){return e||!1},messageReplace:function(e,t){return e.replace(":values",t)},required:!0}},messages:{email:o.props.t("email_validation")}}),o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props.t,o=this.props.show_verifycode;return r().createElement(Q.A,{open:this.props.showlog,maxWidth:"sm",fullWidth:!0,onClose:function(){return e.props.handclose()}},r().createElement(K.A,{className:"wpvc_voterdetails_content"},r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"email_address",label:t("enter_email_to_verify"),onChange:function(t){return e.props.handleValueChange(t)},fullWidth:!0,value:this.props.email_address}),this.validator.message(t("voter_email_required"),this.props.email_address,"required|email"),r().createElement(jt,(0,w.A)({},this.props,{email_field:!0}
1)),r().createElement(bo,(0,w.A)({},this.props,{validator:this.validator})),r().createElement(S.A,{container:!0,justifyContent:"flex-start"},r().createElement(C.A,{className:"wpvc_error_login"},(0,Qe.Ay)(null)),r().createElement(q.A,{variant:"contained",className:"wpvc_login_btns",color:"secondary",onClick:this.handleEmailverify,endIcon:r().createElement(So.A,null),disabled:this.props.disabled},t("send_email_code"))),1===o&&r().createElement(S.A,{container:!0,justifyContent:"flex-start"},r().createElement($.A,{className:"wpvc_text_field",type:"text",name:"enter_email_code",label:t("enter_email_code"),onChange:this.handleEmailCodeChange,fullWidth:!0}),this.validator.message(t("verification_code_required"),this.state.enter_email_code,"required|verifycode"),r().createElement(q.A,{variant:"contained",className:"wpvc_login_btns",color:"secondary",onClick:this.handleVerificationCode,endIcon:r().createElement(Co.A,null)},t("verifiy_code")))))}}])}(s.Component));const Io=(0,h.CI)("translations")(Do);var xo=o(97449),Lo=o(8047);function zo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zo=function(){return!!e})()}var Ro=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,zo()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){var e,t=!(null===(e=o.props.singlepost.is_current_user_voted)||void 0===e||!e.length);o.setState({status:t}),o.setState({cancel_font:o.props.settings.color.cancel_button_color,cancel_btn:o.props.settings.color.cancel_button_bgcolor})})),(0,p.A)(o,"componentWillReceiveProps",(function(e){if(void 0!==e.update_vote_count){var t,n,a,s,r,i,l=!1,c=void 0!==e.update_vote_count.cat_select?e.update_vote_count.cat_select:"",p=void 0!==e.update_vote_count.resp_val?e.update_vote_count.resp_val:"",u=void 0!==e.singlepost?e.singlepost.id:"",_=e.update_vote_count.post_index,d=e.indexpost;0==(l=void 0!==(null===(t=e.singlepost)||void 0===t?void 0:t.is_current_user_voted)&&(null===(n=e.singlepost)||void 0===n?void 0:n.is_current_user_voted))&&(l=void 0!==(null===(s=e.update_vote_count)||void 0===s||null===(s=s.is_votable)||void 0===s?void 0:s.update_vote_count)&&(null===(r=e.update_vote_count.is_votable.update_vote_count)||void 0===r?void 0:r.is_current_user_voted)),0==l&&(l=void 0!==(null===(i=e.update_vote_count)||void 0===i?void 0:i.voted_post_ids)?e.update_vote_count.voted_post_ids:[]);var m=void 0!==l&&0!=l&&o.isContains(l,"post_id",u),h=(void 0!==e.is_cancel_vote&&e.is_cancel_vote,void 0!==e.update_vote_count?null===(a=e.update_vote_count)||void 0===a?void 0:a.user_count:0);if("no_limit"==c&&("single"==p?_==d&&h>0?o.setState({status:!0}):o.setState({status:!1}):o.setState({status:m})),"per_calendar"==c||"per_hour"==c||"per_category"==c)if("single"==p){var v=e.vote_btn_msg;_==d&&h>0&&("voteagain"==v||"voted"==v)?o.setState({status:!0}):o.setState({status:!1})}else{var g,f=e.vote_btn_msg,w=void 0!==(null===(g=e.update_vote_count)||void 0===g?void 0:g.voted_post_ids)?e.update_vote_count.voted_post_ids:[];m=void 0!==w&&0!=w&&o.isContains(w,"post_id",u),"voted"==f||"voteagain"==f?o.setState({status:!0}):o.setState({status:!1})}}})),(0,p.A)(o,"toggleHovertwo",(function(e,t){return function(){o.setState({cancel_font:e,cancel_btn:t})}})),(0,p.A)(o,"toggleleavetwo",(function(e,t){return function(){o.setState({cancel_font:e,cancel_btn:t})}})),o.state={status:!1,cancel_font:"",cancel_btn:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"isContains",value:function(e,t,o){var n=!1;return e.filter((function(e){e[t]==o&&(n=!0)})),n}},{key:"render",value:function(){var e=this,t=this.props,o=t.t,n=(t.i18n,this.props.short.enablecancelvote),a=this.props.allcontest;if((1==a?"on"==this.props.singlepost.allcatoption.wpvc_category_buyvotes_settings:"on"==this.props.short.allcatoption.wpvc_category_buyvotes_settings)||1!=n||!0!==this.state.status)return"";var s=this.props.settings.color,i=s.cancel_button_font,l=s.cancel_button_color,c=s.cancel_button_color_hover,p=s.cancel_button_bgcolor,u=s.cancel_button_bgcolor_hover;return 1==a?r().createElement(S.A,{size:4},r().createElement(_e.A,{color:"secondary",style:{fontSize:i+"px",color:this.state.cancel_font,background:this.state.cancel_bt
1n},onClick:function(){return e.props.handlevote(e.props.singlepost.id,e.props.singlepost.term_id,e.props.settings.contest,e.props.indexpost,1)},onMouseOver:this.toggleHovertwo(c,u),onMouseLeave:this.toggleleavetwo(l,p)},r().createElement(Lo.A,null))):r().createElement(q.A,{className:"wpvc_cancel_btn "+this.props.view,onClick:function(){return e.props.handlevote(e.props.singlepost.id,e.props.singlepost.term_id,e.props.settings.contest,e.props.indexpost,1)},style:{fontSize:i+"px",color:this.state.cancel_font,background:this.state.cancel_btn},onMouseOver:this.toggleHovertwo(c,u),onMouseLeave:this.toggleleavetwo(l,p),startIcon:r().createElement(Lo.A,null),variant:"contained"},o("cancel_vote"))}}])}(s.Component);const jo=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{})((0,h.CI)("translations")(Ro));function Po(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Po=function(){return!!e})()}var Uo=wp.element,Vo=(Uo.render,Uo.useState,function(e){function t(e){var o;(0,A.A)(this,t),o=function(e,t,o){return t=(0,E.A)(t),(0,b.A)(e,Po()?Reflect.construct(t,o||[],(0,E.A)(e).constructor):t.apply(e,o))}(this,t,[e]),(0,p.A)(o,"submitForm",(function(){o.setState({disableSubmit:!0});var e=o.props.settings.common.vote_enable_recaptcha_voting,t=o.state.captcha_verfied;if("on"!=e&&(o.setState({captcha_verfied:!0}),t=!0),o.validator.allValid()&&t){var n=o.props.indexpost,a=o.props.settings.contest,s={};s.user_logged=o.props.short.user_logged,s.user_id_profile=o.props.short.user_id_profile,s.captcha_verfied=t,s=Object.assign(s,a),o.props.handleSaveVotes(o.props.singlepost.id,o.props.singlepost.term_id,s,n,o.props.email_address),o.setState({disableSubmit:!1})}else o.validator.showMessages(),o.forceUpdate(),o.setState({disableSubmit:!1})})),(0,p.A)(o,"onCaptchaClick",(function(e){o.setState({disableSubmit:!0}),o.props.handleCaptchaChange(e),e&&o.props.verifyCaptcha(o.props.SITE_URL,e).then((function(e){o.setState({captcha_verfied:e.verified,disableSubmit:!e.verified})}))}));var n=o.props.t;return o.validator=new ge({validators:{consent:{message:n("consent_validation_text"),rule:function(e,t,o){return e||!1},messageReplace:function(e,t){return e.replace(":values",t)},required:!0}}}),o.state={recaptcha:null,captcha_verfied:!1,disableSubmit:!1},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props,o=t.t,n=(t.i18n,this.props.settings.common),a=n.vote_enable_recaptcha_voting,s=n.vote_recapatcha_key;return r().createElement(Q.A,{open:this.props.showlog,maxWidth:"sm",fullWidth:!0,onClose:function(){return e.props.handclose()}},r().createElement(K.A,{className:"wpvc_voterdetails_content"},r().createElement(bo,(0,w.A)({},this.props,{validator:this.validator})),"on"==a&&""!=s&&r().createElement(S.A,{container:!0,justifyContent:"center",style:{marginTop:20}},r().createElement(S.A,{size:12},r().createElement(Ke.A,{sitekey:s,onChange:this.onCaptchaClick})),r().createElement(S.A,{size:12},this.validator.message(o("verify_captcha"),this.props.recaptcha,"required"))),r().createElement(S.A,{container:!0,justifyContent:"flex-start"},r().createElement(C.A,{className:"wpvc_error_login"},(0,Qe.Ay)(null)),r().createElement(q.A,{variant:"contained",className:"wpvc_login_btns",color:"secondary",onClick:this.submitForm,disabled:this.state.disableSubmit},o("fr_vote_now")))))}}])}(s.Component));const Bo=(0,h.CI)("translations")(Vo);var qo=o(69149),Go=o(75765),Fo=o(52376),Wo=o(87321),Yo=o(56627),Zo=o(42605),Ho=o(26999),Jo=o(3115),Xo=o(65865);function Qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qo=function(){return!!e})()}var Ko=wp.element,$o=(Ko.render,Ko.useState,function(e){return r().createElement(Go.A,(0,w.A)({viewBox:"0 0 448 512"},e),r().createElement("path",{d:"M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM294.2 244.3c19.5 9.3 33.7 23.5 41.2 40.9c10.4 24.3 11.4 63.9-20.2 95.4c-24.2 24.1-53.5 35-95.1 35.3h-.2c-46.8-.3-82.8-16.1-106.9-46.8C91.5 341.8 80.4 303.7 80 256v-.1-.1c.4-47.7 11.5-85.7 33-113.1c24.2-30.7 60.2-46.5 106.9-46.8h.2c46.9 .3 83.3 16 108.2 46.6c12.3 15.1 21.3 33.3 27 54.4l-26.9 7.2c-4.7-17.2-11.9-31.9-21.4-43.6c-19.4-23.9-48.7-36.1-87-36.4c-38 .3-66.8 12.5-85.5 36.2c-17.5 22.3-26.6 54.4-26.9 95.5c.3 41.1 9.4 73.3 26.9 95.5c18.7 23.8 47.4 36 85.5 36.2c34.3-.3 56.9-8.4 75.8-27.3c2
11.5-21.5 21.1-47.9 14.2-64c-4-9.4-11.4-17.3-21.3-23.3c-2.4 18-7.9 32.2-16.5 43.2c-11.4 14.5-27.7 22.4-48.4 23.5c-15.7 .9-30.8-2.9-42.6-10.7c-13.9-9.2-22-23.2-22.9-39.5c-1.7-32.2 23.8-55.3 63.5-57.6c14.1-.8 27.3-.2 39.5 1.9c-1.6-9.9-4.9-17.7-9.8-23.4c-6.7-7.8-17.1-11.8-30.8-11.9h-.4c-11 0-26 3.1-35.6 17.6l-23-15.8c12.8-19.4 33.6-30.1 58.5-30.1h.6c41.8 .3 66.6 26.3 69.1 71.8c1.4 .6 2.8 1.2 4.2 1.9l.1 .5zm-71.8 67.5c17-.9 36.4-7.6 39.7-48.8c-8.8-1.9-18.6-2.9-29-2.9c-3.2 0-6.4 .1-9.6 .3c-28.6 1.6-38.1 15.5-37.4 27.9c.9 16.7 19 24.5 36.4 23.6l-.1-.1z"}))}),en=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Qo()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({fb_icon:o.props.settings.color.votes_social_icon_color,threads_icon:o.props.settings.color.votes_social_icon_color,tw_icon:o.props.settings.color.votes_social_icon_color,pin_icon:o.props.settings.color.votes_social_icon_color,redit_icon:o.props.settings.color.votes_social_icon_color,linked_icon:o.props.settings.color.votes_social_icon_color,tum_icon:o.props.settings.color.votes_social_icon_color})})),(0,p.A)(o,"toggleHover",(function(e,t){return function(){switch(t){case"fb_icon":o.setState({fb_icon:e});break;case"threads_icon":o.setState({threads_icon:e});break;case"tw_icon":o.setState({tw_icon:e});break;case"pin_icon":o.setState({pin_icon:e});break;case"redit_icon":o.setState({redit_icon:e});break;case"linked_icon":o.setState({linked_icon:e});break;case"tum_icon":o.setState({tum_icon:e})}}})),(0,p.A)(o,"toggleleave",(function(e,t){return function(){switch(t){case"fb_icon":o.setState({fb_icon:e});break;case"threads_icon":o.setState({threads_icon:e});break;case"tw_icon":o.setState({tw_icon:e});break;case"pin_icon":o.setState({pin_icon:e});break;case"redit_icon":o.setState({redit_icon:e});break;case"linked_icon":o.setState({linked_icon:e});break;case"tum_icon":o.setState({tum_icon:e})}}})),o.state={fb_icon:"",threads_icon:"",tw_icon:"",pin_icon:"",redit_icon:"",linked_icon:"",tum_icon:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props.settings.color,t=e.votes_social_font_size,o=e.votes_social_icon_color,n=e.votes_social_icon_color_hover,a=this.props.settings.share,s=a.facebook,i=a.threads,l=a.linkedin,c=a.pinterest,p=a.tumblr,u=a.reddit,_=a.twitter;return this.props.singlepost?r().createElement(C.A,{component:"p",className:"wpvc_social_icon"},"on"==s&&r().createElement(Ee.A,{href:"https://www.facebook.com/sharer.php?u="+encodeURI(this.props.singlepost.link)+"&t="+(0,Fo.encode)(this.props.singlepost.post_title),target:"_blank"},r().createElement(Wo.A,{style:{fontSize:t+"px",color:this.state.fb_icon},onMouseOver:this.toggleHover(n,"fb_icon"),onMouseLeave:this.toggleleave(o,"fb_icon")})),"on"==i&&r().createElement(Ee.A,{href:"https://www.threads.net/intent/post?text="+(0,Fo.encode)(this.props.singlepost.post_title)+"%20"+encodeURI(this.props.singlepost.link),target:"_blank"},r().createElement($o,{style:{fontSize:t+"px",color:this.state.threads_icon},onMouseOver:this.toggleHover(n,"threads_icon"),onMouseLeave:this.toggleleave(o,"threads_icon")})),"on"==_&&r().createElement(Ee.A,{href:"https://twitter.com/share?text="+(0,Fo.encode)(this.props.singlepost.post_title)+"%20"+encodeURI(this.props.singlepost.link),target:"_blank"},r().createElement(Xo.A,{style:{fontSize:t+"px",color:this.state.tw_icon},onMouseOver:this.toggleHover(n,"tw_icon"),onMouseLeave:this.toggleleave(o,"tw_icon")})),"on"==c&&r().createElement(Ee.A,{href:"https://www.pinterest.com/pin/create/button/?url="+(0,Fo.encode)(this.props.singlepost.link)+"&description="+(0,Fo.encode)(this.props.singlepost.post_title)+"&media="+(0,Fo.encode)(this.props.singlepost.featured_image_url),target:"_blank"},r().createElement(Yo.A,{style:{fontSize:t+"px",color:this.state.pin_icon},onMouseOver:this.toggleHover(n,"pin_icon"),onMouseLeave:this.toggleleave(o,"pin_icon")})),"on"==u&&r().createElement(Ee.A,{href:"https://reddit.com/submit?url="+(0,Fo.encode)(this.props.singlepost.link)+"&title="+(0,Fo.encode)(this.props.singlepost.post_title),target:"_blank"},r().createElement(Zo.A,{style:{fontSize:t+"px",color:this.state.redit_icon},onMouseOver:this.toggleHover(n,"redit_icon"),onMouseLeave:this.toggleleave(o,"redit_icon")})),"on"==l&&r().createElement(Ee.A,{href:"https://www.linkedin.com/shareArticle?mini=true&url="+(0,Fo.encode)(this.props.singlepost.link)+"&title="+(0,Fo.encode)(this.props.singlepost.post_title),target:"_blank"},r().createElement(Ho.A,{style:{fontSize:t+"px",color:this.state.linked_icon},onMouseOver:this.toggleHover(n,"linked_icon"),onMouseLeave:this.toggleleave(o,"linked_icon")})),"on"==p&&r().createElement(Ee.A,{href:"https://www.tumblr.com/share/photo?source="+(0,Fo.encode)(this.props.singlepost.featured_image_url)+"&caption='"+(0,Fo.encode)(this.props.singlepost.post_title)+"&clickthru="+(0,Fo.encode)(this.props.singlepost.link),target:"_blank"},r().createElement(Jo.A,{style:{fontSize:t+"px",color:this.state.tum_icon},onMouseOver:this.toggleHover(n,"tum_icon"),onMouseLeave:this.toggleleave(o,"tum_icon")}))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component);const tn=(0,i.Ng)()((0,h.CI)("translations")(en));function on(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(on=function(){return!!e})()}var nn=wp.element,an=(nn.render,nn.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,on()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){var e,t,n=void 0!==o.props.singlepost.vote_button_status?o.props.singlepost.vote_button_status:null,a="object"!==(0,qt.A)(n)||null==n||n.update_vote_count.msg,s=!(null===(e=o.props.singlepost.is_current_user_voted)||void 0===e||!e.length),r=null,i=!1;"on"==(null===(t=o.props.settings.wpvc_buyvotes_settings)||void 0===t?void 0:t.ow_buyvotes_split_votes)&&(i=1==o.props.allcontest?"on"==o.props.singlepost.allcatoption.wpvc_category_buyvotes_settings:"on"==o.props.short.allcatoption.wpvc_category_buyvotes_settings),o.setState({buyvotes_split_votes:i}),1==a||i&&o.props.buy_votes_count>0?(o.setState({vote_font:o.props.settings.color.votes_button_font_color,vote_btn:o.props.settings.color.votes_button_bgcolor,butn_mesg:s?"voteagain":a}),r=s?"voteagain":a):(o.setState({vote_font:o.props.settings.color.votes_button_font_color_hover,vote_btn:o.props.settings.color.votes_button_bgcolor_hover,butn_mesg:s?"voted":"voterestricted"}),r=s?"voted":"voterestricted"),null!=o.props.butn_msg&&o.setState({butn_mesg:o.props.butn_msg}),o.props.setButtonText&&o.props.setButtonText(r,o.props.indexpost),i&&o.props.buy_votes_count>0||"off"==o.props.settings.contest.vote_own_entry&&o.props.short.user_logged&&o.props.singlepost.author==o.props.short.user_id_profile&&o.setState({butn_mesg:"voterestricted",vote_font:o.props.settings.color.votes_button_font_color_hover,vote_btn:o.props.settings.color.votes_button_bgcolor_hover})})),(0,p.A)(o,"handlemodalclose",(function(e){o.setState({show_not_vote:0,show_popup:0,popup_title:null,popup_content:null,popbg_color:null,popbg_icon:null,show_index:null,vote_val:null})})),(0,p.A)(o,"handlevotesmodalclose",(function(e){o.setState({show_vote_count:0,no_of_votes:0})})),(0,p.A)(o,"handleEmailverify",(function(){o.props.SendEmailVerify(o.props.SITE_URL,o.state.email_address,o.state.voter_name).then((function(e){o.setState({disabled:!0,show_verifycode:1,email_code:e.code/999})}))})),(0,p.A)(o,"get_cookieName",(function(e,t,o){var n="",a=e.frequency,s=e.vote_votingtype;return 0==a&&0==s&&(n="wpvc_"+o+"_frequency_"+a),0==a&&1==s&&(n="wpvc_"+o+"_frequency_"+a+"_"+t),0==a&&2==s&&(n="wpvc_"+o+"_frequency_"+a+"_"+t),1==a&&0==s&&(n="wpvc_"+o+"_frequency_"+a),1==a&&1==s&&(n="wpvc_"+o+"_frequency_"+a+"_"+t),1==a&&2==s&&(n="wpvc_"+o+"_frequency_"+a+"_"+t),2==a&&0==s&&(n="wpvc_"+o+"_frequency_"+a),2==a&&1==s&&(n="wpvc_"+o+"_frequency_"+a+"_"+t),2==a&&2==s&&(n="wpvc_"+o+"_frequency_"+a+"_"+t),11==a&&0==s&&(n="wpvc_"+o+"_frequency_"+a),11==a&&1==s&&(n="wpvc_"+o+"_frequency_"+a+"_"+t),11==a&&2==s&&(n="wpvc_"+o+"_frequency_"+a+"_"+t),n})),(0,p.A)(o,"handlevote",(function(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(1!==s&&o.state.buyvotes_split_votes&&o.props.buy_votes_count>0&&o.state.no_of_votes<=0)o.setState({show_vote_count:1});else{o.setState({vote_btn_loading:1,vote_val:null,show_vote_count:0});var i=o.props.short.user_logged,l=o.props.settings.common,c=l.vote_enable_recaptcha_voting,p=l.vote_recapatcha_key,u=n.vote_tracking_method,_=n.vote_own_entry,d={};if(d.user_logged=i,d.user_id_profile=o.props.short.user_id_profile,d=Object.assign(d,n),1!==s){
1if(o.state.no_of_votes<=0&&(!0!==o.props.singlepost.vote_button_status||1!=r&&"voteagain"!=r)){var m,h,v=null!=(null===(m=o.props.singlepost.vote_button_status.update_vote_count)||void 0===m?void 0:m.poptitle)?o.props.singlepost.vote_button_status.update_vote_count.poptitle:"voted_already",g=null!=(null===(h=o.props.singlepost.vote_button_status.update_vote_count)||void 0===h?void 0:h.popcontent)?o.props.singlepost.vote_button_status.update_vote_count.popcontent:"already_content";return"off"==_&&i&&o.props.singlepost.author==o.props.short.user_id_profile&&(v="voterestricted",g="cannot_vote_own_post"),o.setState({show_popup:1,popup_title:v,popup_content:g,popbg_color:"#e67e22",popbg_icon:"already",show_index:a,showhtml:!1}),void o.setState({vote_btn_loading:0})}var f=n.vote_grab_email_address,w=n.vote_grab_name,A=n.vote_grab_country,y=n.vote_grab_zipcode,b=n.vote_grab_consent,E=n.onlyloggedinuser;"cookie_traced"!=u&&"ip_traced"!=u||!1!==i||"on"!==f||"off"!==E?"email_verify"==u&&!1===i||"ip_email"==u&&!1===i?o.setState({show_emailverify:!0}):0!=o.state.show_emailgrab||0!=o.state.show_emailverify||"on"!=w&&"on"!=A&&"on"!=y&&"on"!=b?"on"==c&&0==o.state.captcha_verfied&&""!=p?o.setState({show_recaptcha:1,recaptcha_submit:{post_id:e,term_id:t,contest_settings:d,post_index:a}}):o.handleSaveVotes(e,t,d,a):o.setState({show_voterdetails:!0}):o.setState({show_emailgrab:!0})}else o.handleCancelVotes(e,t,d,a)}})),(0,p.A)(o,"handleSaveVotes",(function(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r={voter_name:o.state.voter_name,voter_country:o.state.voter_country,voter_zipcode:o.state.voter_zipcode},i=!0===o.state.vote_newsletter?1:0;o.props.Savevotes(o.props.SITE_URL,e,t,n,a,s,r,o.state.no_of_votes,i).then((function(e){o.setState({vote_val:e,show_emailgrab:!1,email_address:"",show_voterdetails:!1,show_verifycode:0,email_code:"",show_emailverify:!1,disabled:!1,captcha_verfied:!1,recaptcha:null,vote_btn_loading:0,voter_name:"",voter_country:"",voter_zipcode:"",no_of_votes:0,show_vote_count:0}),o.onvotedfunction(o.props.indexpost,e)}))})),(0,p.A)(o,"handleCancelVotes",(function(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;o.props.Cancel_votes(o.props.SITE_URL,e,t,n,a,s).then((function(e){o.setState({vote_val:e,show_emailgrab:!1,email_address:"",show_voterdetails:!1,show_verifycode:0,email_code:"",show_emailverify:!1,disabled:!1,captcha_verfied:!1,recaptcha:null,vote_btn_loading:0,voter_name:"",voter_country:"",voter_zipcode:""}),o.onvotedfunction(o.props.indexpost,e)}))})),(0,p.A)(o,"handlelogin",(function(){o.setState({show_login:!0})})),(0,p.A)(o,"handleClose",(function(e){o.setState({show_login:!1})})),(0,p.A)(o,"email_handleClose",(function(e){o.setState({show_emailgrab:!1,show_voterdetails:!1,email_address:"",show_verifycode:0,email_code:"",show_emailverify:!1,disabled:!1,recaptcha:null,vote_btn_loading:0})})),(0,p.A)(o,"handleEmailValueChange",(function(e){o.setState({email_address:e.target.value})})),(0,p.A)(o,"handleVoterDetails",(function(e){var t="checkbox"==e.target.type?e.target.checked:e.target.value;o.setState((0,p.A)({},e.target.name,t))})),(0,p.A)(o,"handleVoteCount",(function(e){var t=parseInt(e.target.value)>parseInt(o.props.buy_votes_count)?o.props.buy_votes_count:e.target.value;o.setState({no_of_votes:t<1?0:t})})),(0,p.A)(o,"handleCaptchaValueChange",(function(e){o.setState({recaptcha:e})})),(0,p.A)(o,"toggleHovertwo",(function(e,t,n,a){return function(){1==a&&o.setState({vote_font:e,vote_btn:t})}})),(0,p.A)(o,"toggleleavetwo",(function(e,t,n,a){return function(){1==a&&o.setState({vote_font:e,vote_btn:t})}})),(0,p.A)(o,"onvotedfunction",(function(e,t){var n=o.state.show_popup;if(null!=t&&0==n){var a=t.update_vote_count.post_index;if(e==a){var s=t.update_vote_count.msg,r=null!=t.update_vote_count.poptitle?t.update_vote_count.poptitle:"voted_already",i=null!=t.update_vote_count.popcontent?t.update_vote_count.popcontent:"already_content";if(void 0!==t.update_vote_count.voting_count){var l=t.update_vote_count.voting_count,c=void 0===o.props.post.posts?"post_single":"posts";"null"==a?(o.props.frontsingleimmute(c,"votes_count",l),o.props.frontsingleimmute(c,"vote_button_status",t.update_vote_count.is_votable)):(o.props.frontimmutable(c,a,"votes_count",l),o.props.frontimmutable(c,a,"vote_button_status",t.update_vote_count.is_votable))}1==t.is_cancel_vote?o.setState({show_popup:1,popup_title:"votes_cancelled",popup_content:"votes_cancelled_content",popbg_color:"#ff000c",popbg_icon:"already",show_index:a,showhtml:!1}):("voted"==s&&o.setState({show_popup:1,popup_title:"voted_sucess",popup_content:o.props.settings.contest.voted_message||"you_voted",showhtml:!!o.props.settings.contest.voted_message,popbg_color:"#29b664",popbg_icon:"sucess",show_index:a}),"already"==s&&o.setState({show_popup:1,popup_title:r,popup_content:i,popbg_
1color:"#e67e22",popbg_icon:"already",show_index:a,showhtml:!1}))}}})),(0,p.A)(o,"componentWillReceiveProps",(function(e){var t=o.props.settings.color,n=t.votes_button_font_color_hover,a=t.votes_button_bgcolor_hover,s=t.votes_button_font_color,r=t.votes_button_bgcolor;if(void 0!==e.update_vote_count){var i,l,c;if(e.voted_category_id!=e.singlepost.term_id)return;var p=o.props.settings.contest,u=p.vote_tracking_method,_=p.vote_frequency_count,d=p.vote_votingtype,m=p.frequency,h=void 0!==e.update_vote_count.cat_select?e.update_vote_count.cat_select:"",v=void 0!==e.update_vote_count.resp_val?e.update_vote_count.resp_val:"",g=e.update_vote_count.post_index,w=e.indexpost,A=void 0!==e.singlepost?e.singlepost.id:"",y=void 0!==e.update_vote_count.is_votable?e.update_vote_count.is_votable:"",b=void 0!==(null===(i=e.update_vote_count)||void 0===i||null===(i=i.is_votable)||void 0===i?void 0:i.update_vote_count)&&(null===(l=e.update_vote_count.is_votable.update_vote_count)||void 0===l?void 0:l.is_current_user_voted),E=void 0!==e.update_vote_count?null===(c=e.update_vote_count)||void 0===c?void 0:c.user_count:0,T=void 0!==e.is_cancel_vote&&e.is_cancel_vote;if(e.bonus_vote_count<=0&&(!o.state.buyvotes_split_votes||o.state.buyvotes_split_votes&&e.buy_votes_count<=0)&&("no_limit"==h&&"single"==v&&(g==w?o.setState({butn_mesg:E<=0||"voteagain",vote_btn:r,vote_font:s}):o.setState({butn_mesg:E<=0,vote_btn:E<=0?r:a,vote_font:E<=0?s:n})),"per_calendar"==h||"per_hour"==h||"per_category"==h))if("single"==v){var k,M;if("cookie_traced"==u)if(1==_&&0==d){var S;1==T&&(null===(S=e.update_vote_count)||void 0===S?void 0:S.user_count)<=0?o.setState({butn_mesg:!0,vote_btn:r,vote_font:s}):1==y&&g==w?o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n}):o.setState({butn_mesg:!1,vote_btn:a,vote_font:n})}else{var C,O=o.get_cookieName(o.props.settings.contest,A,o.props.short.id),N="".concat(O)+"_count";1==T&&(null===(C=e.update_vote_count)||void 0===C?void 0:C.user_count)<=0?o.setState({butn_mesg:!0,vote_btn:r,vote_font:s}):f.A.get("".concat(N))==_?1==y&&g==w?o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n}):o.setState({butn_mesg:!1,vote_btn:a,vote_font:n}):f.A.get("".concat(O))==A?o.setState({butn_mesg:"voteagain",vote_btn:r,vote_font:s}):o.setState({butn_mesg:!1,vote_btn:a,vote_font:n})}else 1==y&&g==w?1==T&&(null===(k=e.update_vote_count)||void 0===k?void 0:k.user_count)<=0?o.setState({butn_mesg:!0,vote_btn:r,vote_font:s}):o.setState({butn_mesg:"voteagain",vote_btn:r,vote_font:s}):1==(void 0!==b&&0!=b&&o.isContains(b,"post_id",A))?o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n}):1!=T||null!==(M=e.update_vote_count)&&void 0!==M&&M.user_count?o.setState({butn_mesg:!1,vote_btn:a,vote_font:n}):o.setState({butn_mesg:!0,vote_btn:r,vote_font:s})}else{var D=e.update_vote_count.voted_post_ids,I=o.isContains(D,"post_id",A),x=void 0!==b&&0!=b&&o.isContains(b,"post_id",A);if(void 0!==y.update_vote_count&&"cookie_traced"!==u){var L=void 0!==y.update_vote_count.post_count?y.update_vote_count.post_count:"",z=void 0!==y.update_vote_count.freq_count?y.update_vote_count.freq_count:"";1==z?1==x?o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n}):o.setState({butn_mesg:!0,vote_btn:r,vote_font:s}):1==y?o.setState({butn_mesg:!0,vote_btn:r,vote_font:s}):1==x?o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n}):L>=z?o.setState({butn_mesg:!1,vote_btn:a,vote_font:n}):o.setState({butn_mesg:!0,vote_btn:r,vote_font:s})}else if("cookie_traced"==u)if(1==_){var R=o.isContains(D,"post_id",A),j=o.get_cookieName(o.props.settings.contest,A,o.props.short.id);void 0===f.A.get("".concat(j))&&1==T?o.setState({butn_mesg:!0,vote_btn:r,vote_font:s}):1==R&&f.A.get("".concat(j))&&o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n})}else{var P=o.isContains(D,"post_id",A),U=o.get_cookieName(o.props.settings.contest,A,o.props.short.id),V="wpvc_"+o.props.short.id+"_frequency_"+m+"_counter";1==d?f.A.get("".concat(V))==_?1==P&&f.A.get("".concat(U))?o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n}):o.setState({butn_mesg:!1,vote_btn:a,vote_font:n}):1==P&&f.A.get("".concat(U))?o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n}):o.setState({butn_mesg:!0,vote_btn:r,vote_font:s}):1==P&&f.A.get("".concat(U))&&f.A.get("".concat(V))<_?o.setState({butn_mesg:"voteagain",vote_btn:r,vote_font:s}):f.A.get("".concat(V))==_?1==P&&f.A.get("".concat(U))?o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n}):o.setState({butn_mesg:!1,vote_btn:a,vote_font:n}):1==P&&f.A.get("".concat(U)&&f.A.get("".concat(V))==_)?o.setState({butn_mesg:!1,vote_btn:a,vote_font:n}):o.setState({butn_mesg:!0,vote_btn:r,vote_font:s})}else 1==y?1==T&&E<=0?!0===I?o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n}):o.setState({butn_mesg:!0,vote_btn:r,vote_font:s}):E>0&&!0===I?1==d?o.setState({butn_mesg:"voted",vote_btn:a,vote_font:n}):o.setState({butn_mesg:"voteagain",vote_btn:r,vote_font:s}):o.setState({butn_mesg:!0,vote_btn:r,vote_font:s}):o.setState({butn_mesg:!1,vote_btn:a,vote_font:n})}}if(o.state.buyvotes_split_votes&&e.buy_votes_count>0)o.setState({butn_mesg:!0,vote_font:s,vote_btn:r});else{var B=e.short.user_logged;if("off"==o.props.settings.contest.vote_own_entry&&B&&e.singlepost.author==e.short.user_id_profile)o.setState({butn_mesg:"voterestricted",vote_font:n,vote_btn:a});else if(o.props.setButtonText&&e.button_msg!=o.props.button_msg){var q,G=!(null===(q=e.singlepost.is_current_user_voted)||void 0===q||!q.length);1==e.button_msg?o.setState({vote_font:s,vote_btn:r,butn_mesg:G?"voteagain":e.button_msg}):o.setState({vote_font:n,vote_btn:a,butn_mesg:G?"voted":"voterestricted"})}}})),(0,p.A)(o,"onCaptchaClick",(function(e){e&&o.props.verifyCaptcha(o.props.SITE_URL,e).then((function(e){o.setState({captcha_verfied:e.verified,show_recaptcha:e.verified?0:1}
1),e.verified&&o.handleSaveVotes(o.state.recaptcha_submit.post_id,o.state.recaptcha_submit.term_id,o.state.recaptcha_submit.contest_settings,o.state.recaptcha_submit.post_index)}))})),(0,p.A)(o,"handleCaptchaClose",(function(e){o.setState({show_recaptcha:0,vote_btn_loading:0})})),o.state={vote_font:"",vote_btn:"",show_login:!1,show_emailgrab:!1,show_voterdetails:!1,email_address:"",voter_name:"",show_emailverify:!1,show_verifycode:0,email_code:"",disabled:!1,show_not_vote:0,show_popup:0,popup_title:null,popup_content:null,popup_extra:null,popbg_color:null,popbg_icon:null,show_index:null,vote_val:null,butn_mesg:null,show_recaptcha:0,captcha_verfied:!1,recaptcha:null,recaptcha_submit:null,vote_btn_loading:0,HASH:f.A.get("wpvc_voting_authorize"),buyvotes_split_votes:!1,show_vote_count:0,no_of_votes:0},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"componentDidUpdate",value:function(e){null!=e&&("null"==this.props.indexpost&&null==this.props.butn_msg||this.props.setButtonText&&e.butn_msg!=this.state.butn_mesg&&this.props.setButtonText(this.state.butn_mesg,this.props.indexpost))}},{key:"calculateVoteTimeLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.props.currentdate;if(o||(o=new Date),null!=e){e=e.replace(/ /g,"T");var n=(0,N.Ay)(e);return(0,O.L)(new Date(n),t)-o}return-1}},{key:"isContains",value:function(e,t,o){var n=!1;return e.filter((function(e){e[t]==o&&(n=!0)})),n}},{key:"render",value:function(){var e=this;if(1!=this.props.wait){var t=this.props.t,o=this.props.settings.color,n=o.votes_button_font_size,a=o.votes_button_font_color,s=o.votes_button_font_color_hover,i=o.votes_button_bgcolor,l=o.votes_button_bgcolor_hover,c=this.props.settings.share,p=c.facebook,u=c.threads,_=c.linkedin,d=c.pinterest,m=c.tumblr,h=c.reddit,v=c.twitter,g=void 0===this.props.post.posts?this.props.post_single:this.props.post.posts,f=this.props.indexpost,A=this.props,y=A.short.onlyloggedinuser,b=A.short.user_logged,E=void 0!==this.props.single_page?this.props.single_page:null,T=void 0!==this.props.short?this.props.short.allcatoption:null;1==this.props.allcontest&&(T=this.props.post.taxonomy.filter((function(t){return t.term_id===e.props.termid}))[0]);var k=this.props.settings.common.vote_recapatcha_key,M=this.props.settings.contest.vote_tracking_method,O=this.state.butn_mesg,N=null,D=null;if(null!=T){var I=this.props.view;if(D=void 0!==A.post.pagin_val?A.post.pagin_val:null,"single"===I&&(D=A.post_single.contestant_count),null!=D){var x="single"===I?D:D.total_posts,L=T.tax_activationcount||0;0!==L&&parseInt(L)<=parseInt(x)?N=null:null!=T.votes_starttime&&""!=T.votes_starttime&&this.calculateVoteTimeLeft(T.votes_starttime,T.pause_voting)>0&&(N="not_started"),null!=T.votes_expiration&&""!=T.votes_expiration&&this.calculateVoteTimeLeft(T.votes_expiration)<0&&(N="ended")}}var z="auto",R=this.props.short.id,j=this.props.allcontest;if(1==j){if(null!=N)return"";z=4,R=this.props.termid}return g?r().createElement(r().Fragment,null,r().createElement(S.A,{className:null==E?"wpvc_vote_cast_btn":"wpvc_vote_cast_single_btn",size:null!=E?12:z},null!=E&&null==N&&r().createElement(Ee.A,{href:null!=g.previous_link?g.previous_link:void 0,className:"wpvc_single_next_button",style:{color:a,background:i,opacity:null!=g.previous_link?1:.6},title:null!=g.previous_title?g.previous_title:""},r().createElement(po.A,{className:"wpvc_prev_post"})),1==j&&r().createElement("div",null,(0==y||1==b)&&null==N&&wp.hooks.applyFilters("wpvc_buyvotes_btn",r().createElement(_e.A,{color:"primary",style:{fontSize:n+"px",color:this.state.vote_font,background:this.state.vote_btn},onMouseOver:this.toggleHovertwo(s,l,"vote_btn",O),onMouseLeave:this.toggleleavetwo(a,i,"vote_btn",O),onClick:function(){return e.handlevote(e.props.singlepost.id,R,e.props.settings.contest,f,null,O)}},r().createElement(fo.A,null)),this.props,O,this.state.HASH),1==y&&0==b&&null==N&&wp.hooks.applyFilters("wpvc_buyvotes_btn",r().createElement(_e.A,{color:"primary",style:{fontSize:n+"px",color:this.state.vote_font,background:this.state.vote_btn},onMouseOver:this.toggleHovertwo(s,l,"vote_btn",O),onMouseLeave:this.toggleleavetwo(a,i,"vote_btn",O),onClick:function(){return e.handlelogin()}},r().createElement(fo.A,null)),this.props,O,this.state.HASH,this.handlelogin)),(0==y||1==b)&&null==N&&void 0===j&&wp.hooks.applyFilters("wpvc_buyvotes_btn",r().createElement(q.A,{variant:"contained",className:null!=E&&null==N?"wpvc_voting_btns wpvc_next_vote_btn":"wpvc_voting_btns",color:"primary",startIcon:r().createElement(fo.A,null),style:{fontSize:n+"px",color:this.state.vote_font,background:this.state.vote_btn},onMouseOver:this.toggleHovertwo(s,l,"vote_btn",O),onMouseLeave:this.toggleleavetwo(a,i,"vote_btn",O),disabled:1==this.state.vote_btn_loading,onClick:function(){return e.handlevote(e.props.singlepost.id,R,e.props.settings.contest,f,null,O)}},0===this.state.vote_btn_loading&&r().createElement(r().Fragment,null,1==O&&t("fr_vote_now"),"voterestricted"==O&&t("voterestricted"),0==O&&t("voterestricted"),"voted"==O&&t("voted"),"voteagain"==O&&t("voteagain")),1===this.state.vote_btn_loading&&r().createElement(r().Fragment,null,t("Processing"),r().createElement(Ht.A,{className:"wpvc_vote_btn_loading",color:"secondary",size:16}))),this.props,O,this.state.HASH),1==y&&0==b&&null==N&&void 0===j&&wp.hooks.applyFilters("wpvc_buyvotes_btn",r().createElement(q.A,{variant:"contained",className:null!=E&&null==N?"wpvc_voting_btns wpvc_next_vote_btn":"wpvc_voting_btns",color:"primary",startIcon:r().createElement(fo.A,null),style:{fontSize:n+"px",color:this.state.vote_font,background:this.state.vote_btn},onMouseOver:this.toggleHovertwo(s,l,"vote_btn",O),onMouseLeave:this.toggleleavetwo(a,i,"vote_btn",O),onClick:function(){return e.handlelogin()}},0===this.state.vote_btn_loading&&r().createElement(r().Fragment,null,1==O&&t("fr_vote_now"),"voterestricted"==O&&t("voterestricted"),0==O&&t("voterestricted"),"voted"==O&&t("voted"),"voteagain"==O&&t("voteagain")),1===this.state.vote_btn_loading&&r().createElement(r().Fragment,null,t("Processing"),r().createElement(Ht.A,{className:"wpvc_vote_btn_loading",color:"secondary",size:16}))),this.props,O,this.state.HASH,this.handlelogin),null!=E&&null==N&&r().createElement(Ee.A,{className:"wpvc_single_prev_button",style:{color:a,background:i,op
1acity:null!=g.next_link?1:.6},href:null!=g.next_link?g.next_link:void 0,title:null!=g.next_title?g.next_title:""},r().createElement(uo.A,{className:"wpvc_prev_post"}))),r().createElement(Mo,(0,w.A)({},A,{showlog:this.state.show_emailgrab,handleSaveVotes:this.handleSaveVotes,handclose:this.email_handleClose,email_address:this.state.email_address,recaptcha:this.state.recaptcha,handleVoterDetails:this.handleVoterDetails,handleValueChange:this.handleEmailValueChange,handleCaptchaChange:this.handleCaptchaValueChange,voter_state:this.state})),r().createElement(Bo,(0,w.A)({},A,{showlog:this.state.show_voterdetails,handleSaveVotes:this.handleSaveVotes,handclose:this.email_handleClose,email_address:this.state.email_address,recaptcha:this.state.recaptcha,handleVoterDetails:this.handleVoterDetails,handleValueChange:this.handleEmailValueChange,handleCaptchaChange:this.handleCaptchaValueChange,voter_state:this.state})),r().createElement(Io,(0,w.A)({},A,{showlog:this.state.show_emailverify,email_code:this.state.email_code,show_verifycode:this.state.show_verifycode,disabled:this.state.disabled,handleSaveVotes:this.handleSaveVotes,handclose:this.email_handleClose,email_address:this.state.email_address,handleVoterDetails:this.handleVoterDetails,handleValueChange:this.handleEmailValueChange,handleEmailverify:this.handleEmailverify,voter_state:this.state})),r().createElement(St,(0,w.A)({},A,{showlog:this.state.show_login,handclose:this.handleClose,handlog:this.handlelogin})),1==this.state.show_not_vote&&r().createElement(Q.A,{maxWidth:"xs",fullWidth:!0,onClose:this.handlemodalclose,"aria-labelledby":"customized-dialog-title",open:1==this.state.show_not_vote},r().createElement(ce.A,{component:"div",className:"wpvc_restriction_popup_title",onClose:this.handlemodalclose},r().createElement(C.A,{variant:"h6"},t("restricted")),r().createElement(_e.A,{"aria-label":"close",onClick:this.handlemodalclose},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_restriction_popup_content"},r().createElement(C.A,null,r().createElement(xo.A,null),A.settings.contest.vote_tobestarteddesc)),r().createElement(ee.A,{className:"wpvc_restriction_popup_actions"},r().createElement(S.A,{container:!0,size:12,direction:"row",justifyContent:"center",alignItems:"center"},r().createElement(C.A,null,t("share_with_friends"))),r().createElement(S.A,{container:!0,size:12,direction:"row",justifyContent:"center",alignItems:"center"},r().createElement(tn,(0,w.A)({},A,{singlepost:this.props.singlepost,view:"grid"}))))),1==this.state.show_popup&&this.state.show_index==f&&r().createElement(Q.A,{maxWidth:"sm",fullWidth:!0,onClose:this.handlemodalclose,"aria-labelledby":"customized-dialog-title",open:1==this.state.show_popup},this.state.showhtml?r().createElement("div",null,r().createElement(ce.A,{component:"div",className:"wpvc_sucess_popup_title",onClose:this.handlemodalclose},r().createElement(C.A,{variant:"h6"},t(this.state.popup_title)),r().createElement(_e.A,{"aria-label":"close",onClick:this.handlemodalclose},r().createElement(de.A,null))),r().createElement("div",{style:{padding:"10px"},dangerouslySetInnerHTML:{__html:this.state.popup_content}})):r().createElement("div",null,r().createElement(ce.A,{component:"div",className:"wpvc_sucess_popup_title",onClose:this.handlemodalclose},r().createElement(C.A,{variant:"h6"},t(this.state.popup_title)),r().createElement(_e.A,{"aria-label":"close",onClick:this.handlemodalclose},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_sucess_popup_content",style:{background:this.state.popbg_color}},r().createElement(C.A,null,"sucess"==this.state.popbg_icon&&r().createElement(qo.A,null),"already"==this.state.popbg_icon&&r().createElement(xo.A,null),t(this.state.popup_content))),r().createElement(ee.A,{className:"wpvc_restriction_popup_actions"},r().createElement(S.A,{container:!0,size:12,direction:"row",justifyContent:"center",alignItems:"center"},("on"==p||"on"==u||"on"==v||"on"==d||"on"==h||"on"==_||"on"==m)&&r().createElement(C.A,null,t("share_with_friends"))),r().createElement(S.A,{container:!0,size:12,direction:"row",justifyContent:"center",alignItems:"center"},r().createElement(tn,(0,w.A)({},A,{singlepost:this.props.singlepost,view:"grid"})))))),1==this.state.show_recaptcha&&r().createElement(Q.A,{maxWidth:"xs",fullWidth:!0,onClose:this.handleCaptchaClose,"aria-labelledby":"
1customized-dialog-title",open:1==this.state.show_recaptcha},r().createElement(ce.A,{component:"div",className:"wpvc_sucess_popup_title",onClose:this.handleCaptchaClose},r().createElement(C.A,{variant:"h6"},t("captcha_title")),r().createElement(_e.A,{"aria-label":"close",onClick:this.handleCaptchaClose},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_captcha_popup_content",style:{background:this.props.settings.color.votes_button_bgcolor_hover}},r().createElement(Ke.A,{sitekey:k,onChange:this.onCaptchaClick}))),null==N&&("cookie_traced"==M||"ip_traced"==M||"user_traced"==M)&&r().createElement(jo,(0,w.A)({},this.props,{handlevote:this.handlevote,vote_btn_msg:O})),1==this.state.show_vote_count?r().createElement(Q.A,{maxWidth:"sm",fullWidth:!0,onClose:this.handlevotesmodalclose,"aria-labelledby":"customized-dialog-title",open:!0},r().createElement(ce.A,{component:"div",className:"wpvc_sucess_popup_title",onClose:this.handlevotesmodalclose},r().createElement(C.A,{variant:"h6"},t("Enter number of votes")),r().createElement(_e.A,{"aria-label":"close",onClick:this.handlevotesmodalclose},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_captcha_popup_content"},r().createElement(S.A,{container:!0,className:"wpvc_form_grid"},r().createElement(S.A,{className:"wpvc_label",style:{padding:"20px"},size:4},r().createElement(C.A,{variant:"button"},t("buyvotes_category_votes"))),r().createElement(S.A,{size:8},r().createElement(Ae.A,{className:"wpvc_form_control",fullWidth:!0},r().createElement($.A,{name:"no_of_votes",type:"number",value:this.state.no_of_votes,fullWidth:!0,onChange:function(t){return e.handleVoteCount(t)},slotProps:{input:{endAdornment:r().createElement(go.A,{position:"end"},t("votes"))},htmlInput:{step:1,min:1,max:this.props.buy_votes_count,pattern:"[0-9]*",inputMode:"numeric"}}}))),r().createElement(S.A,{size:4}),r().createElement(S.A,{className:"wpvc_label",size:8},r().createElement(C.A,{variant:"body2"},t("remaining_buy_votes")," ",this.props.buy_votes_count)))),r().createElement(ee.A,{className:"wpvc_restriction_popup_actions"},r().createElement(S.A,{container:!0,justifyContent:"flex-start"},r().createElement(q.A,{variant:"contained",className:"wpvc_login_btns",color:"secondary",onClick:function(){return e.handlevote(e.props.singlepost.id,R,e.props.settings.contest,f,null,O)}},t("fr_vote_now"))))):null):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}}])}(s.Component));const sn=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{frontsingleimmute:Je,frontimmutable:He,Savevotes:function(e,t,o,n,a){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",i=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=f.A.get("wpvc_voting_authorize"),p=e+"wpvc-voting/v1/wpvcsavevotes";return function(e){var u={method:"POST",body:JSON.stringify({votesetting:n,category_id:o,postid:t,postind:a,email:s,voter_details:r,no_of_votes:i,newsletter:l}),headers:{"Content-Type":"application/json","Authorize-wpvc":c,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(p,u).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},SendEmailVerify:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=f.A.get("wpvc_voting_authorize"),a=e+"wpvc-voting/v1/wpvcsendemailverify";return function(e){var s={method:"POST",body:JSON.stringify({email:t,voter_name:o}),headers:{"Content-Type":"application/json","Authorize-wpvc":n,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(a,s).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},verifyCaptcha:function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wpvc-voting/v1/wpvcverifycaptcha";return function(e){var a={method:"POST",body:JSON.stringify({captcha:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(n,a).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}},Cancel_votes:function(e,t,o,n,a){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=f.A.get("wpvc_voting_authorize"),i=e+"wpvc-voting/v1/wpvccancelvotes";return function(e){var l={method:"POST",body:JSON.stringify({votesetting:n,category_id:o,postid:t,postind:a,email:s}),headers:{"Content-Type":"application/json","Authorize-wpvc":r,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(i,l).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}}})((0,h.CI)("translations")(an));
1var rn=o(47081),ln=o(19716),cn=o(12695),pn=o.n(cn),un=(o(74413),o(50869));function _n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_n=function(){return!!e})()}wp.element.render;var dn=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t||(t=new Date),null!=e){e=e.replace(/ /g,"T");var n=(0,N.Ay)(e);return(0,O.L)(new Date(n),o)-t}return-1},mn=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,_n()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"handleimagepopup",(function(e,t){t.find((function(t,n){if(t.system_name===e)return o.setState({photoindex:n}),n})),o.setState({galleryOpened:!0})})),(0,p.A)(o,"toggleGallery",(function(){o.setState({galleryOpened:!1})})),(0,p.A)(o,"onDocumentLoadSuccess",(function(e){var t=e.numPages;o.setState({numPages:t})})),(0,p.A)(o,"wpvcpdf_click",(function(e,t){o.setState({pdf_popup:1,pdf_url:e,pdf_question:t})})),(0,p.A)(o,"handleClose",(function(e){o.setState({pdf_popup:0})})),(0,p.A)(o,"changePage",(function(e){o.setState((function(t){return{pageNumber:t.pageNumber+e}}))})),(0,p.A)(o,"previousPage",(function(){o.changePage(-1)})),(0,p.A)(o,"nextPage",(function(){o.changePage(1)})),o.state={galleryOpened:!1,photoindex:-1,numPages:null,pageNumber:1,pdf_popup:0,pdf_url:null,pdf_question:null},o.onDocumentLoadSuccess=o.onDocumentLoadSuccess.bind(o),o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"getformatteddate",value:function(e){if(null!=e)return(0,N.Ay)(e)}},{key:"validURL",value:function(e){return null!=e&&"object"!==(0,qt.A)(e)&&null!==e.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)&&e}},{key:"isValidHTML",value:function(e){return/<[a-z]+\d?(\s+[\w-]+=("[^"]*"|'[^']*'))*\s*\/?>|&#?\w+;/i.test(e)}},{key:"render",value:function(){var e=this,t=this.props.t,o=this.props.custom_field,n=this.props.view,a=null,s=null,i=6;switch(n){case"grid":a="show_labels",s="grid_only",i=6;break;case"list":a="show_labels",s="list_only",i=2;break;case"single":a="show_labels_single",s="admin_view",i=1;break;case"popup":a="pretty_view",s="pretty_view",i=6}if(o){var l=this.props.singlepost.custom_fields_value,c=function(e,t,o,n,a,s){var r=null,i=null;switch(n){case"grid":r="show_labels",i="grid_only";break;case"list":r="show_labels",i="list_only";break;case"single":r="show_labels_single",i="admin_view";break;case"popup":r="pretty_view",i="pretty_view"}var l,c,p=[],u=null!=o.page_cont_image?o.page_cont_image:o.featured_image_url,_=null,d=null,m=null,h=0,v=null,g=void 0!==a.short?a.short.allcatoption:null;if(void 0!==a.short.allcatoption&&(_=a.short.allcatoption.tax_hide_photos_live,null!=a&&null!==(l=a.short)&&void 0!==l&&null!==(l=l.allcatoption)&&void 0!==l&&l.votes_starttime&&(d=dn(a.short.allcatoption.votes_starttime,s,a.short.allcatoption.pause_voting)),null!=a&&null!==(c=a.short)&&void 0!==c&&null!==(c=c.allcatoption)&&void 0!==c&&c.votes_expiration&&(m=dn(a.short.allcatoption.votes_expiration,s)),"on"!=_&&(h="1"),"0"==a.short.thumb&&(h="0"),d<0&&(h="1"),"on"===_)){if(null==d&&null==m&&(h="1"),null==d&&m>0&&(h="1"),v=void 0!==a.post.pagin_val?a.post.pagin_val:null,"single"===n&&(v=a.post_single.contestant_count),null!=v){var f="single"===n?v:v.total_posts,w=a.short.allcatoption.tax_activationcount;null!==w&&0!==w&&void 0!==w&&""!==w&&(parseInt(w)<=parseInt(f)?h="1":(h="0",null==d&&m>0&&(h="1")),null==d&&null==m&&(h="1"))}d<0&&m>0&&(h="1")}if(null!=g&&(null!=g.votes_starttime&&""!=g.votes_starttime&&dn(g.votes_starttime,g.pause_voting),null!=g.votes_expiration&&""!=g.votes_expiration&&dn(g.votes_expiration)<0&&(h="1")),1==a.all_contest&&(h="1",popup_enabled="on"),"1"==a.short.thumb&&(h="1"),u&&0!=h){var A={url:u,alt:o.post_title,thumbnail:u,system_name:"featured_image"};p.push(A)}return e.map((function(e,n){if(1!=e.system_name.includes("contestant")&&null!=t[e.system_name]&&""!=t[e.system_name]&&"FILE"==e.question_type&&("Y"==e[r]||"Y"==e[i])){var a={url:t[e.system_name],alt:o.post_title,thumbnail:t[e.system_name],system_name:e.system_name};p.push(a)}})),p}(o,l,this.props.singlepost,n,this.props,this.props.currentdate),p=function(e,t,o,n){var a=!1;return e.map((function(e,s){if(1!=e.system_name.includes("contestant")&&("Y"==e[o]||"Y"==e[n])&&null!=t[e.system_name]&&""!=t[e.system_name])return a=!0})),a}(o,l,a,s);return r().createElement(S.A,{container:!0,className:"wpvc_custom_fields_view"},r().createElement(S.A,{size:12},1==this.props.header&&1==p&&r().createElement(C.A,{variant:"h5",className:"wpvc_grid_header"},t("additional_infor"))),o.map((function(t,o){return 1!=t.system_name.includes("contestant")&&("Y"==t[a]||"Y"==t[s])&&null!=l[t.system_name]&&""!=l[t.system_name]&&r().createElement(S.A,{key:o,container:!0,justifyContent:"flex-start",direction:"row",alignItems:"flex-start",className:"wpvc_custom_fields_contain",size:"FILE"==t.question_type?i:12},"TEXT"==t.question_type&&r().createElement(S.A,{className:"wpvc_custom_field_label",size:12},("Y"==t[a]||"Y"==t[s])&&r().createElement(C.A,null,r().createElement("span",null,"Y"==t[a]?t.question+" : ":""),"Y"==t[s]&&!e.validURL(l[t.system_name])&&l[t.system_name],"Y"==t[s]&&e.validURL(l[t.system_name])&&!e.isValidHTML(l[t.system_name])&&r().createElement(Ee.A,{href:null==l[t.system_name].match(/(http(s)?:\/\/.)/g)?"https://"+l[t.system_name]:l[t.system_name],target:"_blank",className:"wpvc_link_custom_value"},l[t.system_name]),"Y"==t[s]&&e.validURL(l[t.system_name])&&e.isValidHTML(l[t.system_name])&&r().createElement("div",{style:{display:"inline-block"},dangerouslySetInnerHTML:{__html:l[t.system_name]}}))),"TEXTAREA"==t.question_type&&r().createElement(S.A,{className:"wpvc_custom_field_label",size:12},("Y"==t[a]||"Y"==t[s])&&r().createElement(C.A,null,r().createElement("span",null,"Y"==t[a]?t.question+" : ":""),"Y"==t[s]?l[t.system_name]:"")),"
1SINGLE"==t.question_type&&r().createElement(S.A,{className:"wpvc_custom_field_label",size:12},("Y"==t[a]||"Y"==t[s])&&r().createElement(C.A,null,r().createElement("span",null,"Y"==t[a]?t.question+" : ":""),"Y"==t[s]?l[t.system_name]:"")),"MULTIPLE"==t.question_type&&r().createElement(S.A,{className:"wpvc_custom_field_label",size:12},("Y"==t[a]||"Y"==t[s])&&r().createElement(C.A,null,r().createElement("span",null,"Y"==t[a]?t.question+" : ":""),"Y"==t[s]?l[t.system_name]:"")),"DROPDOWN"==t.question_type&&r().createElement(S.A,{className:"wpvc_custom_field_label",size:12},("Y"==t[a]||"Y"==t[s])&&r().createElement(C.A,null,r().createElement("span",null,"Y"==t[a]?t.question+" : ":""),"Y"==t[s]?l[t.system_name]:"")),"DATE"==t.question_type&&r().createElement(S.A,{className:"wpvc_custom_field_label",size:12},("Y"==t[a]||"Y"==t[s])&&r().createElement(C.A,null,r().createElement("span",null,"Y"==t[a]?t.question+" : ":""),"Y"==t[s]?e.getformatteddate(l[t.system_name]):"")),"FILE"==t.question_type&&r().createElement(S.A,{className:"wpvc_custom_field_label",size:12},("Y"==t[a]||"Y"==t[s])&&r().createElement("div",{className:"wpvc_custom_field_files"},r().createElement(C.A,null,r().createElement("span",null,"Y"==t[a]?t.question+" : ":"")),"Y"==t.is_music_upload?r().createElement("div",{className:"wpvc_audio_upload"},r().createElement(un.A,{src:(0,Fo.encode)(l[t.system_name]),customAdditionalControls:[],defaultCurrentTime:"Loading",defaultDuration:"Loading",showJumpControls:!1})):r().createElement(r().Fragment,null,""!=l[t.system_name]&&l[t.system_name].match(/\.(jpg|jpeg|png|gif)$/)&&r().createElement(Ee.A,{href:void 0,onClick:function(){return e.handleimagepopup(t.system_name,c)},className:"wpvc_modal_image_custom"},r().createElement(lo.A,{className:"wpvc_modal_custom_image wpvc_modal_image"+e.props.singlepost.id,image:l[t.system_name],title:e.props.singlepost.post_title})),""!=l[t.system_name]&&l[t.system_name].match(/\.(pdf)$/)&&r().createElement(rn.A,{className:"wpvc_pdf_renderer",file:l[t.system_name],onLoadSuccess:e.onDocumentLoadSuccess,onClick:function(){return e.wpvcpdf_click(l[t.system_name],t.question)}},r().createElement(ln.A,{pageNumber:1,width:100})),""!=l[t.system_name]&&!l[t.system_name].match(/\.(jpg|jpeg|png|gif|pdf)$/)&&r().createElement(Ee.A,{href:l[t.system_name],target:"_blank",className:"wpvc_modal_file_custom"},l[t.system_name].substring(l[t.system_name].lastIndexOf("/")+1))))))})),this.state.galleryOpened?r().createElement(pn(),{images:c,startIndex:this.state.photoindex,onClose:function(){return e.toggleGallery()},allowZoom:!1,allowRotate:!1,doubleClickZoom:0}):null,1==this.state.pdf_popup&&r().createElement(Q.A,{maxWidth:"xl",onClose:this.handleClose,open:!0},r().createElement(ce.A,{component:"div",className:"wpvc_submission_popup_title",onClose:this.handleClose},r().createElement(C.A,{variant:"h6"},this.state.pdf_question),r().createElement(_e.A,{"aria-label":"close",onClick:this.handleClose},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_pdf_popup_content"},r().createElement(rn.A,{className:"wpvc_pdf_renderer_popup",file:this.state.pdf_url,onLoadSuccess:this.onDocumentLoadSuccess},r().createElement(ln.A,{pageNumber:this.state.pageNumber,renderMode:"svg",width:1e3}))),r().createElement(ee.A,null,r().createElement(C.A,{variant:"h6"},"Page"," ",this.state.pageNumber||(this.state.numPages?1:"--")," ","of ",this.state.numPages||"--"),r().createElement(q.A,{onClick:this.previousPage,color:"primary",disabled:this.state.pageNumber<=1},"Previous"),r().createElement(q.A,{onClick:this.nextPage,color:"primary",disabled:this.state.pageNumber>=this.state.numPages},"Next"),r().createElement(q.A,{onClick:this.handleClose,color:"primary",autoFocus:!0},"Close"))))}return""}}])}(s.Component);const hn=(0,i.Ng)()((0,h.CI)("translations")(mn));function vn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vn=function(){return!!e})()}var gn=wp.element,fn=(gn.render,gn.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,vn()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"toggleHover",(function(e){return function(){o.setState({gtitle_color:e})}})),(0,p.A)(o,"toggleleave",(function(e){return function(){o.setState({gtitle_color:e})}})),(0,p.A)(o,"handleNext",(function(e,t){return function(){o.setState({new_post:e,post_index:t,nppost_id:e.id})}})),(0,p.A)(o,"handlePrev",(function(e,t){return function(){o.setState({new_post:e,post_index:t,nppost_id:e.id})}})),o.state={gtitle_color:null,title_bck:"",new_post:null,post_index:null,nppost_id:null},o}
1return(0,T.A)(t,e),(0,y.A)(t,[{key:"componentWillReceiveProps",value:function(e){var t=this;if(void 0!==e.update_vote_count){var o=this.state.nppost_id;null!=o&&e.posts.find((function(e,n){if(e.id===o)return t.setState({new_post:e}),n}))}this.setState({new_post:null,post_index:null,nppost_id:null})}},{key:"render",value:function(){var e=this.props,t=null;void 0!==e.custom_field&&(e.custom_field.map((function(e,o){"contestant-desc"===e.system_name&&(t=e)})),t&&(t=t.pretty_view));var o=null==this.state.new_post?this.props.post:this.state.new_post,n=this.props.settings.color,a=n.votes_cont_title_font_size,s=n.votes_cont_title_color_grid,i=n.votes_cont_title_color_hover_grid,l=this.props.short.contest_type,c=null;void 0!==this.props.short.allcatoption&&(c=this.props.short.allcatoption.style?this.props.short.allcatoption.style.vote_count_showhide:void 0!==this.props.settings.style?this.props.settings.style.vote_count_showhide:"on");var p=null==this.state.post_index?this.props.post_index_val:this.state.post_index,u=void 0===this.props.posts?this.props.post_single:this.props.posts,_=p+1,d=p-1,m=0,h=0;if(null!=u&&(void 0!==u[_]&&(m=1),void 0!==u[d]&&(h=1)),o){var v=null!=o.popup_image?o.popup_image:o.featured_image_url,g=void 0!==o.vote_button_status?o.vote_button_status:null,f="object"!==(0,qt.A)(g)||null==g||g.update_vote_count.msg;return r().createElement(Q.A,{onClose:this.props.handlemodal,className:"wpvc_contestant_popup_container","aria-labelledby":"customized-dialog-title",open:1==this.props.open_val},r().createElement(ce.A,{component:"div",className:"wpvc_contestant_popup_title",onClose:this.props.handlemodal},r().createElement(C.A,{variant:"h5",className:"wpvc_grid_header",style:{fontSize:a+"px",color:this.state.gtitle_color},onMouseOver:this.toggleHover(i,"title"),onMouseLeave:this.toggleleave(s,"title")},o.post_title),1==h&&r().createElement(_e.A,{component:"a",onClick:this.handlePrev(u[d],d)},r().createElement(po.A,{className:"wpvc_prev_post"})),1==m&&r().createElement(_e.A,{component:"a",onClick:this.handleNext(u[_],_)},r().createElement(uo.A,{className:"wpvc_next_post"})),r().createElement(_e.A,{"aria-label":"close",onClick:this.props.handlemodal},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_contestant_popup_content"},r().createElement(S.A,{container:!0,className:"wpvc_showcontestant_popup_container"},r().createElement(S.A,{container:!0,size:12,className:"wpvc_contestant_btn_container",columnSpacing:2},"on"===c&&r().createElement(vo,(0,w.A)({},e,{singlepost:o,view:"grid"})),null==this.props.vote_time&&r().createElement(sn,(0,w.A)({},e,{singlepost:o,indexpost:p,view:"grid",currentdate:this.props.currentdate,setButtonText:this.props.setButtonText,button_msg:f,wait:0}))),r().createElement(S.A,{container:!0,size:12,className:"wpvc_popup_item_socbtns",direction:"row",justifyContent:"center",alignItems:"center"},r().createElement(tn,(0,w.A)({},e,{singlepost:o,view:"grid"}))),r().createElement(S.A,{className:"wpvc_popup_grid_item",size:12},("photo"==l||"essay"==l)&&r().createElement("img",{className:"wpvc_contestant_popup_image",src:v,title:o.post_title}),"N"!=t&&""!=t&&r().createElement(io,(0,w.A)({},e,{singlepost:o,view:"single"}))),r().createElement(S.A,{className:"wpvc_popup_grid_custom",size:12},r().createElement(hn,(0,w.A)({},e,{singlepost:o,header:"1",view:"popup",currentdate:this.props.currentdate}))))))}return""}}])}(s.Component));const wn=(0,i.Ng)()((0,h.CI)("translations")(fn));function An(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(An=function(){return!!e})()}var yn=wp.element,bn=(yn.render,yn.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,An()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentWillUnmount",(function(){o._isMounted=!1})),(0,p.A)(o,"componentDidMount",(function(){var e;o._isMounted=!0;var t=o.props.view;if("on"===(null!==(e=o.props.short)&&void 0!==e&&null!==(e=e.allcatoption)&&void 0!==e&&e.style?o.props.short.allcatoption.style:"off").imageProportion&&"topten"!==t&&"single"!==t){var n,a="";a="null"==o.props.indexpost?null!=o.props.singlepost.page_cont_image?o.props.singlepost.page_cont_image:o.props.singlepost.featured_image_url:o.mobileCheck()?null!=o.props.singlepost.short_cont_image_mobile?o.props.singlepost.short_cont_image_mobile:o.props.singlepost.featured_image_large_url:null!=o.props.singlepost.short_cont_image?o.props.singlepost.short_cont_image:o.props.singlepost.featured_image_url;var s=null!==(n=o.props)&&void 0!==n&&n.showallpage?1:0;o.getImageDimensions(a,s)}})),(0,p.A)(o,"handlepopup",(function(){o.setState({modalopen:1})})),(0,p.A)(o,"handleClose",(function(e){o.setState({modalopen:0})})),(0,p.A)(o,"getImageDimensions",(function(e,t){var n=new Image;n.src=e,n.onload=function(){o._isMounted&&o.setState({imgWidth:1!==t?n.width:"100%",imgHeight:n.height,imgPadding:0})}})),(0,p.A)(o,"mobileCheck",(function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t})),o._isMounted=!1,o.state={modalopen:null},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"calculateVoteTimeLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.props.currentdate;if(o||(o=new Date),null!=e){e=e.replace(/ /g,"T");var n=(0,N.Ay)(e);return(0,O.L)(new Date(n),t)-o}return-1}},{key:"render",value:function(){var e=this,t="grid"==this.props.view?"row":"column",o=this.props.indexpost,n=this.props,a=null,s=null,i=null,l=0,c=this.props.view,p=null,u=null,_=null,d=void 0!==this.props.short?this.props.short.allcatoption:null;switch(c){case"grid":p=n.settings.common.vote_prettyphoto_disable,u=n.settings.common.vote_disable_single,t="row";break;case"list":p=n.settings.common.vote_prettyphoto_disable,u=n.settings.common.vote_disable_single,t="column";break;case"single":p=n.settings.common.vote_prettyphoto_disable_single,t="row";break;case"topten":p="on",u=n.settings.common.vote_disable_single,t="row"}null==u&&(u="off");var m,h,v=this.props.settings.color,g=v.votes_cont_title_color_grid,f=v.votes_cont_title_color,A="grid"==this.props.view?g:f;if(void 0!==n.short.allcatoption&&(a=n.short.allcatoption.tax_hide_photos_live,null!=n&&null!==(m=n.short)&&void 0!==m&&null!==(m=m.allcatoption)&&void 0!==m&&m.votes_starttime&&(s=this.calculateVoteTimeLeft(n.short.allcatoption.votes_starttime,n.short.allcatoption.pause_voting)),null!=n&&null!==(h=n.short)&&void 0!==h&&null!==(h=h.allcatoption)&&void 0!==h&&h.votes_expiration&&(i=this.calculateVoteTimeLeft(n.short.allcatoption.votes_expiration)),"on"!=a&&(l="1"),"0"==n.short.thumb&&(l="0"),s<0&&(l="1"),_=void 0!==n.post.pagin_val?n.post.pagin_val:null,"single"===c&&(_=n.post_single.contestant_count),"on"===a)){if(null==s&&null==i&&(l="1"),null==s&&i>0&&(l="1"),null!=_){var y="single"===c?_:_.total_posts,b=n.short.allcatoption.tax_activationcount;null!==b&&0!==b&&void 0!==b&&""!==b&&(parseInt(b)<=parseInt(y)?l="1":(l="0",null==s&&i>0&&(l="1")),null==s&&null==i&&(l="1"))}s<0&&i>0&&(l="1")}var E=null;if(null!=d){if(null!=d.votes_starttime&&""!=d.votes_starttime&&this.calculateVoteTimeLeft(d.votes_starttime,d.pause_voting)>0&&(E="not_started"),null!=_){var T="single"===c?_:_.total_posts,k=n.short.allcatoption.tax_activationcount||0;0!==k&&parseInt(k)<=parseInt(T)&&(E=null)}null!=d.votes_expiration&&""!=d.votes_expiration&&this.calculateVoteTimeLeft(d.votes_expiration)<0&&(E="ended",l="1")}if(1==this.props.all_contest&&(l="1",p="on"),"1"==n.short.thumb&&(l="1"),this.props.singlepost){var M="",C="",O="";return"null"==o?(M=null!=this.props.singlepost.page_cont_image?this.props.singlepost.page_cont_image:this.props.singlepost.featured_image_url,C=null!=n.settings.common.single_page_cont_image?n.settings.common.single_page_cont_image:"100",O=null!=n.settings.common.single_page_cont_image_px?n.settings.common.single_page_cont_image_px:"%"):M=this.mobileCheck()?null!=this.props.singlepost.short_cont_image_mobile?this.props.singlepost.short_cont_image_mobile:this.props.singlepost.featured_image_large_url:null!=this.props.singlepost.short_cont_image?this.props.singlepost.short_cont_image:this.props.singlepost.featured_image_url,r().createElement("div",{className:"wpvc_contestantimage"},0!=l&&r().createElement(S.A,null,"off"==p&&r().createElement(Ee.A,{href:void 0,onClick:function(){return e.handlepopup()},className:"wpvc_image_popup_modal"},"null"==o&&r().createElement("img",{className:"wpvc_image_popup_hover",style:{width:C+O},src:M,title:this.props.singlepost.post_title}),"null"!=o&&r().createElement(lo.A,{style:{width:this.state.imgWidth,height:this.state.imgHeight,padding:this.state.imgPadding},className:"wpvc_image_popup_hover wpvc_card_media_"+t,image:M,title:this.props.singlepost.post_title}),r().createElement(co.A,{className:"wpvc_icon_image_popup",style:{color:A}})),"on"==p&&"off"==u&&r().createElement(Ee.A,{href:this.props.singlepost.link},"null"==o&&r().createElement("img",{style:{width:C+O},src:M,title:this.props.singlepost.post_title}),"null"!=o&&r().createElement(lo.A,{style:{width:this.state.imgWidth,height:this.state.imgHeight,padding:this.state.imgPadding},className:"wpvc_card_media_"+t,image:M,title:this.props.singlepost.post_title})),"on"==p&&"on"==u&&"null"!=o&&r().createElement(lo.A,{style:{width:this.state.imgWidth,height:this.state.imgHeight,padding:this.state.imgPadding},className:"wpvc_card_media_"+t,image:M,title:this.props.singlepost.post_title}),"on"==p&&"on"==u&&"null"==o&&r().createElement("img",{className:"wpvc_image_popup_hover",style:{width:C+O},src:M,title:this.props.singlepost.post_title}
1)),r().createElement(wn,(0,w.A)({},n,{post:this.props.singlepost,open_val:1==this.state.modalopen,handlemodal:this.handleClose,post_index_val:o,currentdate:this.props.currentdate,vote_time:E,setButtonText:this.props.setButtonText,butn_msg:this.props.butn_msg})))}return r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const En=(0,i.Ng)()((0,h.CI)("translations")(bn));var Tn=o(98957),kn=o.n(Tn);function Mn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mn=function(){return!!e})()}var Sn=wp.element,Cn=(Sn.render,Sn.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),(o=(0,b.A)(n,Mn()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s))).state={modalopen:null,playing:!1,played:0,duration:0,volume:8},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"calculateVoteTimeLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.props.currentdate;if(o||(o=new Date),null!=e){e=e.replace(/ /g,"T");var n=(0,N.Ay)(e);return(0,O.L)(new Date(n),t)-o}return-1}},{key:"render",value:function(){void 0===this.props.post.posts?this.props.post_single:this.props.post.posts;var e="grid"==this.props.view?"row":"column",t=(this.props.indexpost,this.props),o=null,n=null,a=null,s=0,i=this.props.view,l=null,c=void 0!==this.props.short?this.props.short.allcatoption:null;switch(i){case"grid":t.settings.common.vote_prettyphoto_disable,e="row";break;case"list":t.settings.common.vote_prettyphoto_disable,e="column";break;case"single":t.settings.common.vote_prettyphoto_disable_single,e="row";break;case"topten":e="row"}var p,u,_=this.props.settings.color,d=(_.votes_cont_title_color_grid,_.votes_cont_title_color,this.props.settings.style),m=d.video_height,h=d.music_height;if(this.props.view,void 0!==t.short.allcatoption&&(o=t.short.allcatoption.tax_hide_photos_live,null!=t&&null!==(p=t.short)&&void 0!==p&&null!==(p=p.allcatoption)&&void 0!==p&&p.votes_starttime&&(n=this.calculateVoteTimeLeft(t.short.allcatoption.votes_starttime,t.short.allcatoption.pause_voting)),null!=t&&null!==(u=t.short)&&void 0!==u&&null!==(u=u.allcatoption)&&void 0!==u&&u.votes_expiration&&(a=this.calculateVoteTimeLeft(t.short.allcatoption.votes_expiration)),"on"!=o&&(s="1"),"0"==t.short.thumb&&(s="0"),n<0&&(s="1"),"on"===o)){if(null==n&&null==a&&(s="1"),null==n&&a>0&&(s="1"),l=void 0!==t.post.pagin_val?t.post.pagin_val:null,"single"===i&&(l=t.post_single.contestant_count),null!=l){var v="single"===i?l:l.total_posts,g=t.short.allcatoption.tax_activationcount;null!==g&&0!==g&&void 0!==g&&""!==g&&(parseInt(g)<=parseInt(v)?s="1":(s="0",null==n&&a>0&&(s="1")),null==n&&null==a&&(s="1"))}n<0&&a>0&&(s="1")}null!=c&&null!=c.votes_expiration&&""!=c.votes_expiration&&this.calculateVoteTimeLeft(c.votes_expiration)<0&&(s="1");var f=void 0!==t.short.allcatoption?t.short.contest_type:null,w=null,A=null;1==this.props.all_contest&&(s="1",f=this.props.singlepost.img_contest,null==m&&(m="250"),null==h&&(h="250")),"single"==this.props.view&&(m="",h="250");var y=void 0!==t.short.allcatoption?t.short.allcatoption.musicfileenable:null,b=void 0!==this.props.singlepost?this.props.singlepost.term_id:null;A=null!=this.props.singlepost.page_cont_image?this.props.singlepost.page_cont_image:this.props.singlepost.featured_image_url,null!=f&&"video"==f?void 0!==(w=this.props.singlepost.custom_fields_value["contestant-ow_video_url"])&&""!=w||(w=this.props.singlepost.custom_fields_value._ow_video_upload_url):null!=f&&"music"==f&&(void 0!==t.taxonomy&&(y=t.taxonomy.find((function(e){return e.term_id===b})).musicfileenable),"on"!=y?void 0!==(w=this.props.singlepost.custom_fields_value["contestant-ow_music_url_link"])&&""!=w||(w=this.props.singlepost.custom_fields_value["contestant-ow_music_url"]):void 0!==(w=this.props.singlepost.custom_fields_value["contestant-ow_music_url"])&&""!=w||(w=this.props.singlepost.custom_fields_value["contestant-ow_music_url_link"]));var E="",T=!1,k=!1,M=!1,C="",O="100%",N="500";if(void 0!==w&&null!=w&&(T=w.includes("www.instagram.com"),(k=w.includes("www.bitchute.com"))&&(E=w.replace("video","embed")),M=w.includes("www.tiktok.com"))){var D=new URL(w);C="https://www.tiktok.com/embed/"+D.pathname.substring(D.pathname.lastIndexOf("/")+1),"list"==this.props.view&&(O="100%",N="750"),"single"==this.props.view&&(O="100%",N="750")}var I=A.includes("img_not_available")?{}:{file:{attributes:{poster:A}}};return this.props.singlepost?r().createElement("div",null,0!=s&&null!=w&&r().createElement(S.A,{className:"wpvc_video_audio_div"},"on"!=y&&r().createElement(lo.A,{className:"wpvc_card_video_media_"+e},"video"==f&&r().createElement(r().Fragment,null,0==T&&0==k&&0==M&&r().createElement(kn(),{url:(0,Fo.encode)(w),playing:!1,width:"100%",height:"video"==f?m+"px":h+"px",controls:!0,className:"music"==f?"wpvc_music_contest_player":"wpvc_video_contest_player",config:{youtube:{playerVars:{origin:window.location.origin}},cover:I}}),1==T&&r().createElement("div",{className:"wpvc_instagram_parent_div"},r().createElement("iframe",{className:"wpvc_instagram-media instagram-media-rendered",id:"instagram-embed-"+this.props.singlepost.id,src:(0,Fo.encode)(w)+"embed/captioned",height:m,frameBorder:"0",scrolling:"no",allowtransparency:"true",allowFullScreen:!0})),1==k&&r().createElement("iframe",{width:"100%",className:"bitchute_video",scrolling:"no",allowFullScreen:!0,height:m,frameBorder:"0",src:(0,Fo.encode)(E)}),1==M&&r().createElement("div",{className:"wpvc_tiktok_parent_div"},r().createElement("iframe",{className:"tiktok_video",scrolling:"no",allowFullScreen:!0,width:O,height:N,frameBorder:"0",src:C}))),"music"==f&&r().createElement("div",{className:"wpvc_audio_upl_image"},"on"!=y&&!(0,Fo.encode)(w).toString().includes("soundcloud")&&r().createElement(lo.A,{className:"wpvc_card_media_audio_upl_"+e+" wpvc_card_media_"+e,image:null!=A?A:""}),(0,Fo.encode)(w).toString().includes("soundcloud")?r().createElement(kn(),{url:(0,Fo.encode)(w),playing:!1,width:"100%",height:"video"==f?m+"px":h+"px",controls:!0,className:"music"==f?"wpvc_music_contest_player":"wpvc_video_contest_player"}):r().createElement(un.A,{src:(0,Fo.encode)(w),customAdditionalControls:[],defaultCurrentTime:"Loading",defaultDuration:"Loading",showJumpControls:!1,autoPlayAfterSrcChange:!1}))),"on"==y&&r().createElement("div",{className:"wpvc_audio_upl_image"},!(0,Fo.encode)(w).toString().includes("soundcloud")&&r().createElement(lo.A,{className:"wpvc_card_media_audio_upl_"+e+" wpvc_card_media_"+e,image:null!=A?A:""}),(0,Fo.encode)(w).toString().includes("soundcloud")?r().createElement(kn(),{url:(0,Fo.encode)(w),playing:!1,width:"100%",height:"video"==f?m+"px":h+"px",controls:!0,className:"music"==f?"wpvc_music_contest_player":"wpvc_video_contest_player"}):r().createElement(un.A,{src:(0,Fo.encode)(w),customAdditionalControls:[],defaultCurrentTime:"Loading",defaultDuration:"Loading",showJumpControls:!1,autoPlayAfterSrcChange:!1})))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const On=(0,i.Ng)()((0,h.CI)("translations")(Cn));var Nn=o(41737),Dn=o(67310),In=o(69279),xn=o(47994),Ln=o(14365);function zn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zn=function(){return!!e})()}var Rn=wp.element,jn=(Rn.render,Rn.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),(o=(0,b.A)(n,zn()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s))).state={anchorEl:"",open:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props,o="#303f9f",n="#ffffff",a="#303f9f80",s="#ffffff",i="#303f9f";if(void 0!==this.props.short.allcatoption&&void 0!==this.props.short.allcatoption.color){var l=this.props.short.allcatoption.color;o=l.votes_pagination_default_bg,n=l.votes_pagination_active_bg,a=l.votes_pagination_disabled_bg,s=l.votes_pagination_default_font,i=l.votes_pagination_active_font}else{var c=this.props.settings.color;o=c.votes_pagination_default_bg,n=c.votes_pagination_active_bg,a=c.votes_pagination_disabled_bg,s=c.votes_pagination_default_font,i=c.votes_pagination_active_font}var p=void 0===this.props.post.posts?this.props.post_single:this.props.post.posts,u=t.short.pagination,_=null,d=void 0!==t.short.pagin_response?t.short.pagin_response:null,m=void 0!==t.post.pagin_val?t.post.pagin_val:null,h=!1,v=1;null!=m&&(d.total_posts=m.total_posts,d.page_nums=m.page_nums,h=m.total_posts>p.length,v=p.length/t.short.postperpage);var g=null,f=null,w=this.props.select_value,A=[];if(void 0!==this.props.settings.pagination&&(g=(_=this.props.settings.pagination).num_pages,""!=_.pages_text&&null!=_.pages_text)){var y=(f=_.pages_text).replace("%CURRENT_PAGE%",this.props.pagenumber);f=y=y.replace("%TOTAL_PAGES%",d.page_nums)}if(null!=_&&_.style<=2&&null!=d&&(g=d.page_nums,d.page_nums>0))for(var b=d.page_nums,E=1;E<=b;E++)A.push({value:E,label:E});var T=(0,xn.A)({components:{MuiPagination:{styleOverrides:{root:{"& .Mui-selected":{backgroundColor:n||"#FFF",borderColor:o||"#303f9f",color:i||"#303f9f"},"& .Mui-disabled":{backgroundColor:a||"#303f9f80"}}}},MuiPaginationItem:{styleOverrides:{root:{backgroundColor:o||"#303f9f",color:s||"#FFF","&:hover, &:focus":{backgroundColor:o||"#303f9f",opacity:.7},"&.Mui-selected:hover, &.Mui-selected:focus":{backgroundColor:n||"#FFF",borderColor:o||"#303f9f",color:i||"#303f9f",opacity:.7}},page:{backgroundColor:o||"#303f9f",color:s||"#FFF","&:hover, &:focus":{backgroundColor:o||"#303f9f",opacity:.7},"&.Mui-selected:hover, &.Mui-selected:focus":{backgroundColor:n||"#FFF",borderColor:o||"#303f9f",color:i||"#303f9f",opacity:.7}},ellipsis:{padding:"5px",marginTop:"4px"}}}}});return 1==u?r().createElement(S.A,{container:!0,size:12},1==_.style&&void 0!==g&&g>1&&r().createElement(S.A,{container:!0,size:12,direction:"row",justifyContent:"center",alignItems:"center",className:"wpvc_pagination_container"},r().createElement(S.A,{className:"wpvc_pagination_item",size:10},r().createElement(Ln.A,{theme:T},r().createElement(In.A,{count:parseInt(g),page:""==this.props.select_value?1:this.props.select_value,onChange:this.props.changepagin}))),r().createElement(S.A,{className:"wpvc_pagination_text",size:2},f)),2==_.style&&void 0!==g&&r().createElement(S.A,{container:!0,size:12,direction:"row",justifyContent:"center",alignItems:"center",className:"wpvc_pagination_container"},r().createElement(S.A,{className:"wpvc_pagination_item",size:11},r().createElement(ut.A,{className:"wpvc_pagination_select",name:"pagination_number",value:""!=w?w:this.props.pagenumber,onChange:this.props.changepagin},A.map((function(e,t){var o=e.value,n=e.label;return r().createElement(Y.A,{key:t,className:"wpvc_pagination_select_options",value:o},n)})))),r().createElement(S.A,{className:"wpvc_pagination_text",size:1},f)),3==_.style&&r().createElement(S.A,{container:!0,size:12,direction:"row",justifyContent:"center",alignItems:"center",className:"wpvc_pagination_container"},d.page_nums>this.props.pagenumber&&r().createElement(q.A,{variant:"contained",className:"wpvc_pagination_btns",color:"primary",startIcon:r().createElement(Nn.A,null),onClick:function(){e.props.changepaginbtn("button",v)},style:{color:s||"#FFF",background:o||"#303f9f"}},_.load_more_button_text)),4==_.style&&r().createElement(S.A,{container:!0,size:12,direction:"row",justifyContent:"center",alignItems:"center",className:"wpvc_pagination_container"},r().createElement(Dn.A,{dataLength:p.length,next:function(){e.props.changepaginbtn("button",v)},hasMore:h,loader:r().createElement("h4",null," ",r().createElement(Ht.A,{color:"inherit"}),"Loading...")}))):""}}])}(s.Component));const Pn=(0,i.Ng)()(jn);function Un(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Un=function(){return!!e})()}var Vn=wp.element,Bn=(Vn.render,Vn.useState,null),qn=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Un()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentWillUnmount",(function(){o._isMounted=!1})),(0,p.A)(o,"componentDidMount",(function(){o._isMounted=!0,o.setState({wait:1});var e="";""!=o.props.search&&(e=o.props.search());var t="";""!=o.props.author_id&&void 0!==o.props.author_id&&(o.setState({authorid:o.props.author_id}),t=o.props.author_id);var n=1;""!=o.props.paginate_value&&(n=o.props.paginate_value),o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,n,"",e,t).then((function(e){o._isMounted&&o.setState({wait:0})})),Bn=o.props.currentdate})),(0,p.A)(o,"clearauthor",(function(){o.setState({wait:0,authorid:"",page_number:1});var e="";""!=o.props.search&&(e=o.props.search()),o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,1,"",e,"").then((function(e){o._isMounted&&o.setState({wait:0})}))})),(0,p.A)(o,"getauthor",(function(e){o.setState({wait:1,authorid:e,page_number:1});var t="";""!=o.props.search&&(t=o.props.search()),o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,1,"",t,e).then((function(e){o._isMounted&&o.setState({wait:0})}))})),(0,p.A)(o,"pagination",(function(e,t){Number.isInteger(t)||(t=e.target.value),o.props.frontimmute("paginate_value",t);var n="";""!=o.props.search&&(n=o.props.search()),o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,t,"",n,o.state.authorid).then((function(e){o._isMounted&&(o.contestantsContainer.current.scrollIntoView({behavior:"smooth"}),o.setState({page_number:t}))}))})),(0,p.A)(o,"paginationbtn",(function(e,t){"button"==e&&(t+=1);var n="";""!=o.props.search&&(n=o.props.search()),o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,t,"load",n,o.state.authorid).then((function(e){o._isMounted&&o.setState({page_number:t})}))})),(0,p.A)(o,"getVoteButtonText",(function(e,t){o.setState({butn_msg:(0,p.A)({},t,e)})})),o._isMounted=!1,o.state={anchorEl:"",wait:1,page_number:1,authorid:"",butn_msg:null},o.contestantsContainer=r().createRef(),o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props.t,o=this.props.settings.style,n=o.wpvc_spacing,a=o.row_width,s=o.vote_title_alocation,i=this.props.settings.color.box_bgcolor,l=void 0!==this.props.settings.style?this.props.settings.style.vote_count_showhide:"on";null!=l&&void 0!==l||(l="on");var c=a,p=this.props.post.posts,u=this.props,_=null,d=null;void 0!==u.short.allcatoption&&(_=u.short.allcatoption.show_description,d=this.props.short.contest_type);var m="";""!=this.props.author_id&&void 0!==this.props.author_id&&(m=this.props.author_id);var h=(void 0!==u.short.allcatoption.style?u.short.allcatoption.style:"off").imageProportion;return null!=p&&"object"===(0,qt.A)(p)&&1!=this.state.wait&&p.length>0?r().createElement(S.A,{container:!0,className:"wpvc_showcontestant_container wpvc_grid_container",ref:this.contestantsContainer},r().createElement(S.A,{container:!0,size:12,direction:"row",alignItems:"on"===h?"flex-end":"center",spacing:parseInt(n),className:"on"===h?"wpvc_show_style wpvc_image_proportion":"wpvc_show_style"},p.map((function(t,o){var n;return r().createElement(S.A,{key:o,className:"wpvc_show_style_row",size:{md:"on"===h?"auto":parseInt(c),sm:"on"===h?"auto":6,xs:"on"===h?"auto":12}},r().createElement(Gt.A,{className:"wpvc_card_row",style:{backgroundColor:i||"#FFF"}},"on"==s&&r().createElement($t,(0,w.A)({},u,{singlepost:t,title_alocation:"on_grid",view:e.props.view,changeauthor:e.getauthor})),null!=d&&("photo"==d||"essay"==d)&&r().createElement(En,(0,w.A)({},u,{singlepost:t,indexpost:o,view:e.props.view,currentdate:Bn,setButtonText:e.getVoteButtonText,butn_msg:null===(n=e.state.butn_msg)||void 0===n?void 0:n[o]})),null!=d&&("video"==d||"music"==d)&&r().createElement(On,(0,w.A)({},u,{singlepost:t,indexpost:o,view:e.props.view,currentdate:Bn})),r().createElement(Ft.A,{className:"wpvc_card_content_row"},"off"==s&&r().createElement($t,(0,w.A)({},u,{singlepost:t,view:e.props.view,changeauthor:e.getauthor})),r().createElement(no,(0,w.A)({},u,{singlepost:t,view:e.props.view,changeauthor:e.getauthor})),"-1"!=_&&"list"!=_&&r().createElement(io,(0,w.A)({},u,{singlepost:t,view:e.props.view})),r().createElement(hn,(0,w.A)({},u,{singlepost:t,vi
1ew:e.props.view,currentdate:Bn}))),r().createElement(Wt.A,{disableSpacing:!0,className:"wpvc_card_actions_row"},r().createElement(tn,(0,w.A)({},u,{singlepost:t,view:e.props.view})),r().createElement(S.A,{container:!0,justifyContent:"flex-start"},r().createElement("div",{className:"wpvc_contestant_vote_class"},"on"===l&&r().createElement(vo,(0,w.A)({},u,{singlepost:t,view:e.props.view})),r().createElement(sn,(0,w.A)({},u,{singlepost:t,indexpost:o,view:e.props.view,currentdate:Bn,setButtonText:e.getVoteButtonText,wait:e.state.wait})),wp.hooks.applyFilters("wpvc_add_judge_btn","",e.props,t))))))})),r().createElement(Pn,(0,w.A)({},u,{pagenumber:this.state.page_number,changepagin:this.pagination,changepaginbtn:this.paginationbtn,select_value:this.props.paginate_value}))),""!=this.state.authorid&&""==m&&r().createElement(q.A,{variant:"contained",className:"wpvc_clear_author_btns",color:"secondary",onClick:function(){return e.clearauthor()}},t("reset_gallery")),""!=m&&r().createElement(q.A,{variant:"contained",className:"wpvc_clear_author_btns",color:"secondary",onClick:function(){return e.props.authorfunc()}},t("clear_gallery"))):"perpage"==p?"":null!=p&&0==p.length?r().createElement(S.A,{container:!0,className:"wpvc_hr_contestants"},r().createElement(C.A,{align:"center",variant:"h6",component:"h6"},t("no_contestants_found")),r().createElement(Yt.A,{variant:"middle"})):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component);const Gn=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{frontimmutable:He,frontimmute:Xe,fetchposts:Me,buyvotesPayment:Pe,dataJudgeFetch:Ue,dataJudgeInsert:Ve,frontsingleimmute:Je})((0,h.CI)("translations")(qn));function Fn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fn=function(){return!!e})()}var Wn=wp.element,Yn=(Wn.render,Wn.useState,null),Zn=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Fn()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentWillUnmount",(function(){o._isMounted=!1})),(0,p.A)(o,"componentDidMount",(function(){o._isMounted=!0,o.setState({wait:1});var e=o.props.search(),t=1;""!=o.props.paginate_value&&(t=o.props.paginate_value),o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,t,"",e).then((function(e){o._isMounted&&o.setState({wait:0})})),Yn=o.props.currentdate})),(0,p.A)(o,"clearauthor",(function(){o.setState({wait:1,authorid:"",page_number:1});var e="";""!=o.props.search&&(e=o.props.search()),o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,1,"",e,"").then((function(e){o._isMounted&&o.setState({wait:0})}))})),(0,p.A)(o,"getauthor",(function(e){o.setState({wait:1,authorid:e,page_number:1});var t=o.props.search(),n=1;""!=o.props.paginate_value&&(n=o.props.paginate_value),o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,n,"",t,e).then((function(e){o._isMounted&&o.setState({wait:0})}))})),(0,p.A)(o,"pagination",(function(e,t){Number.isInteger(t)||(t=e.target.value),o.props.frontimmute("paginate_value",t);var n=o.props.search();o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,t,"",n).then((function(e){o._isMounted&&(o.contestantsContainer.current.scrollIntoView({behavior:"smooth"}),o.setState({page_number:t}))}))})),(0,p.A)(o,"paginationbtn",(function(e,t){"button"==e&&(t+=1);var n=o.props.search();o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,t,"load",n).then((function(e){o._isMounted&&o.setState({page_number:t})}))})),(0,p.A)(o,"getVoteButtonText",(function(e,t){o.setState({butn_msg:(0,p.A)({},t,e)})})),o._isMounted=!1,o.state={anchorEl:"",open:"",wait:1,page_number:1,authorid:"",butn_msg:null},o.contestantsContainer=r().createRef(),o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props.t,o=this.props.settings.style,n=o.wpvc_spacing,a=o.column_width,s=o.vote_title_alocation,i=this.props.settings.color.box_bgcolor,l=void 0!==this.props.settings.style?this.props.settings.style.vote_count_showhide:"on";null!=l&&void 0!==l||(l="on");var c=a||12,p=this.props.post.posts,u=this.props,_=null,d=null;void 0!==u.short.allcatoption&&(_=u.short.allcatoption.show_description,d=this.props.short.contest_type);var m=(void 0!==u.short.allcatoption.style?u.short.allcatoption.style:"off").imageProportion;return null!=p&&"object"===(0,qt.A)(p)&&1!=this.state.wait&&p.length>0?r().createElement(S.A,{container:!0,className:"wpvc_showcontestant_container wpvc_list_container",ref:this.contestantsContainer},r().createElement(S.A,{container:!0,size:12,direction:"column",spacing:parseInt(n),className:"on"===m?"wpvc_show_style_list wpvc_image_proportion":"wpvc_show_style_list"},p.map((function(t,o){var n;return r().createElement(S.A,{key:o,className:"wpvc_show_style_column",size:{md:"on"===m?"auto":parseInt(c),sm:"on"===m?"auto":6,xs:"on"===m?"auto":12}},r().createElement(Gt.A,{className:"wpvc_card_column",style:{backgroundColor:i||"#FFF"}},"on"==s&&r().createElement($t,(0,w.A)({},u,{singlepost:t,title_alocation:"on_grid",view:e.props.view,changeauthor:e.getauthor})),null!=d&&("photo"==d||"essay"==d)&&r().createElement(En,(0,w.A)({},u,{singlepost:t,indexpost:o,view:e.props.view,currentdate:Yn,setButtonText:e.getVoteButtonText,butn_msg:null===(n=e.state.butn_msg)||void 0===n?void 0:n[o]})),null!=d&&("video"==d||"music"==d)&&r().createElement(On,(0,w.A)({},u,{singlepost:t,indexpost:o,view:e.props.view,currentdate:Yn})),r().createElement(Ft.A,{className:"video"==d||"music"==d?"wpvc_card_video_content_column":"wpvc_card_content_column"},"off"==s&&r().createElement($t,(0,w.A)({},u,{singlepost:t,view:e.props.view,changeauthor:e.getauthor})),r().createElement(no,(0,w.A)({},u,{singlepost:t,view:e.props.view,changeauthor:e.getauthor})),"-1"!=_&&"grid"!=_&&r().createElement(io,(0,w.A)({},u,{singlepost:t,view:e.props.view})),r().createElement(hn,(0,w.A)({},u,{singlepost:t,view:e.props.view,currentdate:Yn}))),r().createElement(Wt.A,{disableSpacing:!0,className:"wpvc_card_actions_column"},r().createElement(S.A,{container:!0,justifyContent:"flex-start"},r().createElement("div",{className:"wpvc_contestant_vote_class"},"on"===l&&r().createElement(vo,(0,w.A)({},u,{singlepost:t,view:e.props.view})),r().createElement(sn,(0,w.A)({},u,{singlepost:t,indexpost:o,view:e.props.view,currentdate:Yn,setButtonText:e.getVoteButtonText,wait:e.state.wait})),wp.hooks.applyFilters("wpvc_add_judge_btn","",e.props,t))),r().createElement(S.A,{container:!0,justifyContent:"flex-end",className:"wpvc_contestant_social"},r().createElement(tn,(0,w.A)({},u,{singlepost:t,view:e.props.view}))))))})),r().createElement(Pn,(0,w.A)({},u,{pagenumber:this.state.page_number,changepagin:this.pagination,changepaginbtn:this.paginationbtn,select_value:this.props.paginate_value}))),""!=this.state.authorid&&r().createElement(q.A,{variant:"contained",className:"wpvc_clear_author_btns",color:"secondary",onClick:function(){return e.clearauthor()}},t("reset_gallery"))):"perpage"==p?"":null!=p&&0==p.length?r().createElement(S.A,{container:!0,className:"wpvc_hr_contestants"},r().createElement(C.A,{align:"center",variant:"h6",component:"h6"},t("no_contestants_found")),r().createElement(Yt.A,{variant:"middle"})):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component);const Hn=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{frontimmutable:He,fetchposts:Me,frontimmute:Xe,buyvotesPayment:Pe,dataJudgeFetch:Ue,dataJudgeInsert:Ve,frontsingleimmute:Je})((0,h.CI)("translations")(Zn));var Jn=o(58642),Xn=o(36164),Qn=o(71083),Kn=o(87458),$n=o(69307),ea=o(92728),ta=o(80684),oa=o.n(ta);function na(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(na=function(){return!!e})()}var aa=wp.element,sa=(aa.render,aa.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,na()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"handlelogin",(function(){o.setState({show_login:!0})})),(0,p.A)(o,"handleClose",(function(e){o.setState({show_login:!1})})),o.state={show_login:!1},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props,o=t.t,n=(t.i18n,this.props.short.onlyloggedsubmit);1==this.props.updatecall&&(n=0);var a=this.props.short.user_logged,s=this.props.btn_loader;return r().createElement("div",null,1==n&&0==a&&r().createElement(S.A,{className:"wpvc_save_contestant",size:12},r().createElement(q.A,{variant:"contained",color:"secondary",onClick:function(){return e.handlelogin()},className:"wpvc_save_contestant_btn",disabled:0!==s},0===s&&r().createElement(r().Fragment,null,o("save_contestant")),1===s&&r().createElement(r().Fragment,null,o("Processing"),r().createElement(Ht.A,{className:"wpvc_vote_btn_loading",color:"inherit",size:16}))),r().createElement(St,(0,w.A)({ORIGINAL_URL:this.props.ORIGINAL_URL},this.props,{showlog:this.state.show_login,handclose:this.handleClose,handlog:this.handlelogin}))),(0==n||1==a)&&r().createElement(S.A,{className:"wpvc_save_contestant",size:12},r().createElement(q.A,{variant:"contained",color:"secondary",disabled:0!==s,onClick:this.props.saveform,className:"wpvc_save_contestant_btn"},0===s&&r().createElement(r().Fragment,null,o("save_contestant")),1===s&&r().createElement(r().Fragment,null,o("Processing"),r().createElement(Ht.A,{className:"wpvc_vote_btn_loading",color:"inherit",size:16})))))}}])}(s.Component));const ra=(0,i.Ng)()((0,h.CI)("translations")(sa));var ia=o(89502);function la(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(la=function(){return!!e})()}var ca=wp.element,pa=(ca.render,ca.useState,function(e){function t(e){return(0,A.A)(this,t),o=this,n=t,a=[e],n=(0,E.A)(n),(0,b.A)(o,la()?Reflect.construct(n,a||[],(0,E.A)(o).constructor):n.apply(o,a));var o,n,a}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props,t=e.t;return e.i18n,r().createElement(ia.A,{className:"wpvc_max_limit",elevation:6,variant:"filled",onClose:this.props.handleLimitClose,severity:"error"},t("you_have_reach_limit"))}}])}(s.Component));const ua=(0,i.Ng)()((0,h.CI)("translations")(pa));function _a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_a=function(){return!!e})()}var da=wp.element,ma=(da.render,da.useState,function(e){function t(e){var o;(0,A.A)(this,t),o=function(e,t,o){return t=(0,E.A)(t),(0,b.A)(e,_a()?Reflect.construct(t,o||[],(0,E.A)(e).constructor):t.apply(e,o))}(this,t,[e]),(0,p.A)(o,"handleterms",(function(e){o.setState({show_term:!0})}
1)),(0,p.A)(o,"submitForm",(function(){if(o.validator.allValid()){o.setState({wait:0});var e=o.props.selcategoryoptions,t=e.ow_category_paypal_settings,n=e.ow_category_stripe_settings,a=e.ow_category_paystack_settings,s=e.ow_category_coinbase_settings,r={user_id_profile:o.props.short.user_id_profile,user_logged:o.props.short.user_logged};"on"===t||"on"===n||"on"===a||"on"===s?o.props.paymentchange("payment_entry_open",!0):(o.setState({btn_loader:1}),void 0!==o.props.selcategory?o.props.SubmitContestant(o.props.SITE_URL,o.props.selcategory,o.props.contestant_form,r):o.props.SubmitContestant(o.props.SITE_URL,o.props.short.id,o.props.contestant_form,r)),o.setState({wait:1})}else o.validator.showMessages(),o.forceUpdate()})),(0,p.A)(o,"handleupload",(function(e,t){var o=e.file_sys_name,n=e.contestant_form,a=e.new_post_id,s=e.use_tus_upload,r=[],i=[],l=[],c=[],p=[];if(void 0!==o){var u=o.length;if(0==u)return void t.setState({sucess_contest:1});t.setState({totalupload:u}),Object.values(o).map((function(_){var d=n[_.system_name];if(!d){u--;var m=-1;return o.some((function(e,t){return e.system_name===_.system_name&&(m=t),e.system_name===_.system_name})),m>=0&&(o.splice(m,1),0==u)?void t.setState({sucess_contest:1,totalupload:u}):void 0}if(d)if(r[_.system_name]=d.name,i[_.system_name]=0,l[_.system_name]=100,c[_.system_name]=0,p[_.system_name]=0,t.setState({file_sys_name:o,fileName:r,uploadedBytes:i,totalBytes:l,status:c,uploadsucess:p}),s)new Xn._O(d,{endpoint:e.ORIGINAL_URL+"/wp-tus/",retryDelays:[0,3e3,5e3,1e4],metadata:{filename:"wpvc_media_"+(new Date).getTime()+"_"+d.name,filetype:d.type,post_id:a,system_name:_.system_name},onError:function(o){return u--,console.log("Failed because: "+o),c[_.system_name]=e.t("upload_failed"),p[_.system_name]=0,t.setState({btn_loader:0,openError:1,status:c,uploadsucess:p,totalupload:0}),!1},onShouldRetry:function(e,t,o){var n=e.originalResponse?e.originalResponse.getStatus():0;return 403!==n&&413!==n},onProgress:function(e,o){var n=(e/o*100).toFixed(2);i[_.system_name]=Math.round(n),t.setState({uploadedBytes:i})},onSuccess:function(){u--,p[_.system_name]=1,c[_.system_name]="100%",t.setState({uploadsucess:p,totalupload:u,status:c}),0==u&&0==t.state.openError&&(t.setState({sucess_contest:1}),t.handlemodalClose())}}).start();else{var h=new FormData;h.append("file",d),h.append("post_id",a),h.append("system_name",_.system_name);var v=f.A.get("wpvc_voting_authorize"),g=t.props.SITE_URL+"wpvc-voting/v1/wpvcuploadfiles";Qn.A.post(g,h,{headers:{"Authorize-wpvc":v,"Authorize-wpvc-request":"xmlhttprequest"},onUploadProgress:function(e){var o=(e.loaded/e.total*100).toFixed(2);i[_.system_name]=Math.round(o),t.setState({uploadedBytes:i})}}).then((function(e){if(!e.data.success)return c[_.system_name]=e.data.error_message,p[_.system_name]=0,i[_.system_name]=0,t.setState({btn_loader:0,openError:1,uploadedBytes:i,status:c,uploadsucess:p,totalupload:0}),!1;u--,p[_.system_name]=1,i[_.system_name]=100,c[_.system_name]="100%",t.setState({uploadedBytes:i,status:c,uploadsucess:p,totalupload:u}),0==u&&(t.setState({sucess_contest:1}),t.handlemodalClose())})).catch((function(e){return console.log(e),c[_.system_name]=e.message,p[_.system_name]=0,t.setState({btn_loader:0,openError:1,status:c,uploadsucess:p,totalupload:0}),!1}))}}))}})),(0,p.A)(o,"handleClose",(function(e){o.setState({show_term:!1})})),(0,p.A)(o,"handlemodalClose",(function(e){o.setState({file_upl:!1})})),(0,p.A)(o,"handleErrorClose",(function(e){o.setState({openError:0})})),(0,p.A)(o,"handlemodalsuccess",(function(e){var t={user_id_profile:o.props.short.user_id_profile,user_logged:o.props.short.user_logged},n="";if(void 0!==o.props.wpvc_current_gateway&&(n=o.props.wpvc_current_gateway),"coinbase"!==n){var a=o.props.contestant_form,s=o.props.new_post_id;o.props.SendEmail(o.props.SITE_URL,s,t,a,n)}o.setState({sucess_contest:0}),""!=n&&wp.hooks.hasAction("wpvc_submit_redirect","wpvc_paidentry_settings")?wp.hooks.doAction("wpvc_submit_redirect",o.props):setTimeout(window.location.reload.bind(window.location),2e3)})),(0,p.A)(o,"isFileImage",(function(e){if("object"===(0,qt.A)(e))return e&&"image"===e.type.split("/")[0]})),(0,p.A)(o,"isImageupdated",(function(e,t){if("object"===(0,qt.A)(e)){var n=o.state[t+"_filename"]!=e.name;if(void 0===o.state[t]||n){var a={};a[t]=URL.createObjectURL(e),a[t+"_filename"]=e.name,o.setState(a)}return!0}})),o.state={anchorEl:"",open:"",show_term:!1,contestant:[],wait:0,file_upl:!1,new_entry:null,
1sucess_contest:0,uploadedBytes:[],totalBytes:[],fileName:[],status:[],uploadsucess:[],totalupload:0,file_sys_name:null,btn_loader:0,openError:0};var n=o.props.t;return o.validator=new ge({validators:{file_react:{message:n("file_format_validation"),rule:function(e,t,o){if("object"===(0,qt.A)(e)){var n=t.pop(),a=t.filter(String);if(0!==a.length&&"null"!=a[0]&&""!=a[0]){var s=e.type.split("/").pop();return a.includes(s)}if("contestant-image"==n)return e&&"image"===e.type.split("/")[0];if("contestant-ow_music_url"==n)return e&&"audio"===e.type.split("/")[0];if("contestant-ow_video_upload_url"==n)return e&&"video"===e.type.split("/")[0]}},messageReplace:function(e,t){return e.replace(":values",t)},required:!0},file_size:{message:n("file_size_validation"),rule:function(e,t,o){return"object"!==(0,qt.A)(e)||"0"==t[0]||!t[0]||e.size/1024/1024<=t[0]},messageReplace:function(e,t){return e.replace(":values",t[0])}},desc_char_limit:{message:n("char_limit_validation"),rule:function(e,t,o){return!(e.replace(/(<([^>]+)>)/gi,"").length>t[0])},messageReplace:function(e,t){return e.replace(":values",t)},required:!0},word_limit:{message:n("word_limit_validation"),rule:function(e,t,o){return!(e.split(" ").length>t[0])},messageReplace:function(e,t){return e.replace(":values",t)},required:!0}}}),o.handleupload=o.handleupload.bind(o),o}
1return(0,T.A)(t,e),(0,y.A)(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.new_post_id;void 0!==t&&(this.setState({file_upl:!0}),this.setState({new_entry:t}),this.handleupload(e,this))}},{key:"calculateVoteTimeLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.props.currentdate;if(o||(o=new Date),null!=e){e=e.replace(/ /g,"T");var n=(0,N.Ay)(e);return(0,O.L)(new Date(n),t)-o}return-1}},{key:"render",value:function(){var e=this,t=this.props.t,o=this.props.custom_field,n=this.props,a=this.props.short.end_time,s=null;a&&(s=this.calculateVoteTimeLeft(a)),Boolean(this.state.show_term);var i=this.props.contestant_form,l=this.props.settings.color,c=l.votes_navigationbgcolor,p=l.votes_formbgcolor,u=l.votes_formborder,_=(this.props.settings.wpvc_video_extension,{buttons:["bold","strikethrough","underline","italic","|","ul","ol","|","outdent","indent","|","fontsize","brush","paragraph","|","image","table","link","|","align","|","hr"],buttonsMD:["bold","strikethrough","underline","italic","|","ul","ol","|","outdent","indent","|","fontsize","brush","paragraph","|","image","table","link","|","align","|","hr"],buttonsSM:["bold","strikethrough","underline","italic","|","ul","ol","|","outdent","indent","|","fontsize","brush","paragraph","|","image","table","link","|","align","|","hr"],readonly:!1,askBeforePasteHTML:!1,askBeforePasteFromWord:!1}),d=this.state.file_sys_name;this.validator.purgeFields();var m="";void 0!==i["contestant-ow_video_upload_url"]&&(m=i["contestant-ow_video_upload_url"]);var h="";void 0!==i["contestant-ow_video_url"]&&(h=i["contestant-ow_video_url"]);var v=!1;""==m&&""==h&&(v=!0);var g=null,f=null;if(void 0!==this.props.short.allcategory){g=this.props.short.allcategory;var A=n.taxonomy?n.taxonomy:[];f=Object.keys(A).map((function(t){var o=null,n=A[t].tax_activationcount||0;if(A[t].votes_starttime?o=e.calculateVoteTimeLeft(A[t].votes_starttime,A[t].pause_voting):A[t].votes_expiration&&(o=e.calculateVoteTimeLeft(A[t].votes_expiration)),(null!=o&&o>0||null==o)&&(0==n||0!=n&&n>A[t].published_post_count))return r().createElement(Y.A,{key:t,value:A[t].term_id},A[t].category_name)}))}return"0"!==this.props.short.showform&&"0"!==this.props.short.displayform&&("1"===this.props.short.showform||"1"===this.props.short.displayform||o&&0==this.state.totalupload&&(s>0||null==s))?r().createElement(r().Fragment,null,1==this.state.sucess_contest&&r().createElement(Q.A,{onClose:this.handlemodalsuccess,"aria-labelledby":"customized-dialog-title",open:!0},r().createElement(ce.A,{component:"div",className:"wpvc_submission_popup_title",onClose:this.handlemodalsuccess},r().createElement(C.A,{variant:"h6"},t("success_entry")),r().createElement(_e.A,{"aria-label":"close",onClick:this.handlemodalsuccess},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_submission_popup_content"},r().createElement(C.A,null,t(this.props.ret_alert))),r().createElement(ee.A,null,r().createElement(q.A,{onClick:this.handlemodalsuccess,color:"primary",autoFocus:!0},"Ok"))),1==this.state.openError&&r().createElement(Q.A,{onClose:this.handleErrorClose,"aria-labelledby":"customized-dialog-title",open:this.state.openError},r().createElement(ce.A,{component:"div",className:"wpvc_progress_popup_title",onClose:this.handleErrorClose},r().createElement(C.A,{variant:"h6"},t("upload_failed"))),r().createElement(K.A,{dividers:!0,className:"wpvc_progress_popup_content"},null==d?void 0:d.map((function(o,n){return r().createElement(S.A,{key:n,className:"wpvc_upload_content_progress",size:12},r().createElement(C.A,null,t("file_name"),e.state.fileName[o.system_name]),r().createElement(J.A,{alignItems:"center"},r().createElement(J.A,{width:"100%",mr:1},r().createElement(Kn.A,{variant:"determinate",value:e.state.uploadedBytes[o.system_name]})),r().createElement(J.A,null,r().createElement(C.A,{color:"error"},e.state.status[o.system_name]))))}))),r().createElement(ee.A,null,r().createElement(q.A,{onClick:this.handleErrorClose,color:"primary",autoFocus:!0},"Close"))),r().createElement("form",{id:"add_contestant",name:"myForm",encType:"multipart/form-data"},r().createElement(S.A,{container:!0,size:12,direction:"column",className:"wpvc_submit_form",style:{backgroundColor:p||(0,Jn.I)(c,195),border:"1px solid "+u||0,color:c}},1==g&&r().createElement(S.A,{container:!0,className:"wpvc_submit_form_field",size:12},r().createElement(S.A,{className:"wpvc_label",size:12},r().createElement(C.A,null,t("select_add_category"))),r().createElement(S.A,{className:"wpvc_form_grid",size:12},r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement(ut.A,{variant:"standard",name:"all_category_drop",onChange:this.props.catchange("contestant_form"),value:this.props.selcategory||""},f||r().createElement(Y.A,{value:key},t("select"))),this.validator.message(t("select_add_category"),this.props.selcategory,"required")))),1==g&&0!==this.props.checklimit&&r().createElement(ua,{setopen:1}),1==g&&0!==this.props.checklimit||o.map((function(o,n){return r().createElement(S.A,{key:n,container:!0,className:"wpvc_submit_form_field",size:12},"TERMS"!=o.question_type&&r().createElement(S.A,{className:"wpvc_label",size:12},r().createElement(C.A,null,o.question)),r().createElement(S.A,{className:"wpvc_form_grid",size:12},"TEXT"==o.question_type&&"contestant-desc"!=o.system_name&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement($.A,{variant:"standard",type:o.react_values.text_field_type,name:o.system_name,value:i[o.system_name]||"",label:o.description,onChange:e.props.valchange("contestant_form")}),"contestant-ow_video_url"!=o.system_name&&"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required"),"contestant-ow_video_url"==o.system_name&&1==v&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required"),"contestant-title"==o.system_name&&"Y"==o.set_limit&&"N"==o.limit_type&&e.validator.message(t("char_limit_val
1idation"),i[o.system_name],"desc_char_limit:"+o.limit_count),"contestant-title"==o.system_name&&"Y"==o.set_limit&&"Y"==o.limit_type&&e.validator.message(t("word_limit_validation"),i[o.system_name],"word_limit:"+o.limit_count)),"contestant-desc"==o.system_name&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement($n.A,{component:"legend",className:"wpvc_submit_description"},o.description),r().createElement(oa(),{editorRef:"response",name:o.system_name,value:i[o.system_name]||"",config:_,onBlur:e.props.ediorchange(o.system_name)}),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required"),"contestant-desc"==o.system_name&&"Y"==o.set_limit&&"N"==o.limit_type&&e.validator.message(t("char_limit_validation"),i[o.system_name],"desc_char_limit:"+o.limit_count),"contestant-desc"==o.system_name&&"Y"==o.set_limit&&"Y"==o.limit_type&&e.validator.message(t("word_limit_validation"),i[o.system_name],"word_limit:"+o.limit_count)),"TEXTAREA"==o.question_type&&"contestant-desc"!=o.system_name&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement(lt.A,{name:o.system_name,minRows:o.react_values.text_area_row,value:i[o.system_name]||"",placeholder:o.description,onChange:e.props.valchange("contestant_form")}),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required")),"SINGLE"==o.question_type&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad",component:"fieldset"},r().createElement($n.A,{component:"legend",className:"wpvc_submit_description"},o.description),r().createElement(ct.A,{row:!0,"aria-label":"vote_votingtype",name:o.system_name,onChange:e.props.valchange("contestant_form")},Object.keys(o.drop_values).map((function(e){return r().createElement(ye.A,{key:e,className:"wpvc_submit_label",control:r().createElement(pt.A,{color:"primary"}),value:o.drop_values[e],label:o.drop_values[e],labelPlacement:o.react_values.value_placement})}))),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required")),"DROPDOWN"==o.question_type&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement(wo.A,{id:"contest-"+o.system_name},o.description),r().createElement(ut.A,{variant:"standard",name:o.system_name,labelId:"contest-"+o.system_name,displayEmpty:!0,className:"wpvc_submit_select",onChange:e.props.valchange("contestant_form")},Object.keys(o.drop_values).map((function(e){return r().createElement(Y.A,{key:e,value:o.drop_values[e]},o.drop_values[e])}))),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required")),"MULTIPLE"==o.question_type&&r().createElement(Ae.A,{component:"fieldset",fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement($n.A,{component:"legend",className:"wpvc_submit_description"},o.description),r().createElement(ct.A,{row:!0,"aria-label":"vote_votingtype"},Object.keys(o.drop_values).map((function(t){return r().createElement(ye.A,{key:t,className:"wpvc_submit_label",control:r().createElement(be.A,{color:"primary",name:o.system_name,onChange:e.props.checkboxchange("contestant_form")}),value:o.drop_values[t],label:o.drop_values[t],labelPlacement:o.react_values.value_placement})}))),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required")),"TERMS"==o.question_type&&r().createElement(Ae.A,{component:"fieldset",fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement($n.A,{component:"legend",className:"wpvc_submit_description"},o.description),r().createElement(ct.A,{row:!0,"aria-label":"vote_votingtype",className:"wpvc_terms_checkbox"},r().createElement(ye.A,{control:r().createElement(be.A,{color:"primary",name:o.system_name,value:"on"==i[o.system_name]?"off":"on",onChange:e.props.valchange("contestant_form")})}),r().createElement(q.A,{className:"wpvc_terms_submit",color:"primary",component:"a",onClick:function(){e.handleterms()}},o.question),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required"))),"TERMS"==o.question_type&&r().createElement(Q.A,{onClose:e.handleClose,"aria-labelledby":"
1customized-dialog-title",open:e.state.show_term},r().createElement(ce.A,{component:"div",className:"wpvc_terms_popup_title",onClose:e.handleClose},r().createElement(C.A,{variant:"h6"},t("termsandconditions")),r().createElement(_e.A,{"aria-label":"close",onClick:e.handleClose},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_terms_popup_content"},(0,Qe.Ay)(o.response))),"FILE"==o.question_type&&r().createElement("div",{className:"wpvc_form_control_ad"},r().createElement($n.A,{component:"legend",className:"wpvc_submit_description"},o.description),r().createElement("input",{id:e.props.short.id+"_"+o.system_name,name:o.system_name,type:"file",style:{display:"none"},onChange:e.props.filechange("contestant_form")}),r().createElement("label",{htmlFor:e.props.short.id+"_"+o.system_name},r().createElement(q.A,{variant:"contained",color:"primary",className:"wpvc_btn_submit_form",component:"span",startIcon:r().createElement(ea.A,null,o.react_values.upload_icon)},t("upload_button_text")),"contestant-ow_video_upload_url"!=o.system_name&&"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required"),"contestant-ow_video_upload_url"!=o.system_name&&e.validator.message(o.question,i[o.system_name],"file_react:"+(o.response||("Y"==o.is_music_upload?"mp3,mpeg":""))+","+o.system_name+"|file_size:"+o.ow_file_size),"contestant-ow_video_upload_url"==o.system_name&&i[o.system_name]&&e.validator.message(o.question,i[o.system_name],"file_react:"+o.response+","+o.system_name+"|file_size:"+o.ow_file_size),"contestant-ow_video_upload_url"==o.system_name&&1==v&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required")),1==e.isFileImage(i[o.system_name])&&r().createElement(lo.A,{className:"wpvc_submit_display_image",image:URL.createObjectURL(i[o.system_name])}),0==e.isFileImage(i[o.system_name])&&r().createElement(C.A,null,i[o.system_name].name)),"DATE"==o.question_type&&r().createElement(Ae.A,{component:"fieldset",fullWidth:!0,className:"wpvc_form_control_ad wpvc_form_datepicker"},r().createElement(it.$,{dateAdapter:st.h},r().createElement(rt.l,{className:"wpvc_datepicker",label:o.description,value:i[o.system_name]?i[o.system_name]:new Date,onChange:e.props.datepickerchange("contestant_form--"+o.system_name),format:o.react_values.datepicker_only})),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,i[o.system_name],"required"))))})),1==g&&null!=this.props.selcategory&&null!=this.props.selcategoryoptions&&wp.hooks.applyFilters("wpvc_submit_entry_btn",r().createElement(ra,(0,w.A)({},n,{btn_loader:this.state.btn_loader,ORIGINAL_URL:this.props.ORIGINAL_URL,saveform:this.submitForm})),this.props),null==g&&null==this.props.currentcat&&wp.hooks.applyFilters("wpvc_submit_entry_btn",r().createElement(ra,(0,w.A)({},n,{btn_loader:this.state.btn_loader,ORIGINAL_URL:this.props.ORIGINAL_URL,saveform:this.submitForm})),this.props)))):0!=this.state.totalupload&&(s>0||null==s)?r().createElement(r().Fragment,null,r().createElement(Q.A,{onClose:this.handlemodalClose,"aria-labelledby":"customized-dialog-title",open:this.state.file_upl},r().createElement(ce.A,{component:"div",className:"wpvc_progress_popup_title",onClose:this.handlemodalClose},r().createElement(C.A,{variant:"h6"},t("please_wait_until"))),r().createElement(K.A,{dividers:!0,className:"wpvc_progress_popup_content"},r().createElement(C.A,null,t("please_wait_uploads")),null==d?void 0:d.map((function(o,n){return r().createElement(S.A,{key:n,className:"wpvc_upload_content_progress",size:12},r().createElement(C.A,null,t("file_name"),e.state.fileName[o.system_name]),r().createElement(J.A,{display:"flex",alignItems:"center"},r().createElement(J.A,{width:"100%",mr:1},r().createElement(Kn.A,{variant:"determinate",value:e.state.uploadedBytes[o.system_name]})),r().createElement(J.A,{minWidth:35},r().createElement(C.A,{variant:"body2",color:"textSecondary"},e.state.uploadedBytes[o.system_name]+"%"))))}))))):s<0||"0"==this.props.short.showform||"0"==this.props.short.dis
1playform?"":r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));console.warn=function(){};const ha=(0,i.Ng)("",{SubmitContestant:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",r=f.A.get("wpvc_voting_authorize"),i=e+"wpvc-voting/v1/wpvcsubmitentry";return function(e){var l={method:"POST",body:JSON.stringify({insertData:o,category_id:t,userdata:n,post_status:a,coinbaseCharge:s}),headers:{"Content-Type":"application/json","Authorize-wpvc":r,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(i,l).then((function(e){return e.json()})).then((function(t){return e(We(t)),""!=s&&e(Ze("payment_entry_open",!1)),t}))}},SubmitFiles:De,SendEmail:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=f.A.get("wpvc_voting_authorize"),r=e+"wpvc-voting/v1/wpvcsendemail";return function(e){var i={method:"POST",body:JSON.stringify({post_id:t,userdata:o,insertdata:n,gateway:a}),headers:{"Content-Type":"application/json","Authorize-wpvc":s,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(r,i).then((function(e){return e.json()})).then((function(e){return e}))}}})((0,h.CI)("translations")(ma));function va(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(va=function(){return!!e})()}var ga=wp.element,fa=(ga.render,ga.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),(o=(0,b.A)(n,va()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s))).state={anchorEl:"",open:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props;return e.t,e.i18n,this.props.short.end_time,this.props.short.start_time,r().createElement(S.A,{container:!0,className:"wpvc_contest_title"},r().createElement(C.A,{variant:"h5",className:"wpvc_grid_header"},this.props.short.title))}}])}(s.Component));const wa=(0,i.Ng)()((0,h.CI)("translations")(fa));var Aa=o(52653);function ya(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ya=function(){return!!e})()}var ba=wp.element,Ea=(ba.render,ba.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,ya()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1}),o.props.fetchtopten(o.props.SITE_URL,o.props.short.id,o.props.short),setTimeout(function(){this.setState({wait:0})}.bind(o),1e3)})),o.state={anchorEl:"",wait:1},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props.settings.style,o=t.wpvc_spacing,n=t.row_width,a=this.props.settings.color,s=a.votes_button_bgcolor,i=a.votes_button_font_color,l=n,c=this.props.post.top_contestans,p=this.props,u=this.props.short.contest_type;return c&&1!=this.state.wait?r().createElement(S.A,{container:!0,className:"wpvc_showcontestant_container"},r().createElement(S.A,{container:!0,size:12,direction:"row",spacing:parseInt(o),className:"wpvc_show_style"},c.map((function(t,o){return r().createElement(S.A,{key:o,className:"wpvc_show_style_row",size:{xs:12,md:parseInt(l)}},r().createElement(Gt.A,{className:"wpvc_card_row"},r().createElement("div",{className:"wpvc_topten_card_media"},null!=u&&("photo"==u||"essay"==u)&&r().createElement(En,(0,w.A)({},p,{singlepost:t,indexpost:o,view:"topten"})),null!=u&&("video"==u||"music"==u)&&r().createElement(On,(0,w.A)({},p,{singlepost:t,indexpost:o,view:"topten"})),r().createElement("div",{className:"wpvc_icon_topten_star"},r().createElement(ne.A,null),r().createElement("span",null,o+1))),r().createElement(Ft.A,{className:"wpvc_card_content_row wpvc_card_topten_title"},r().createElement($t,(0,w.A)({hideCategory:1},p,{post_single:c,singlepost:t,view:e.props.view}))),r().createElement(Wt.A,{style:{padding:0},className:"wpvc_cardcontainer_topten"},r().createElement(S.A,{container:!0,size:12,justifyContent:"space-between",style:{background:s,color:i,padding:"10px"}},r().createElement(S.A,{className:"wpvc_card_actions_topten"},r().createElement(fo.A,null),r().createElement(C.A,null,t.votes_count)),r().createElement(S.A,{className:"wpvc_card_actions_topten"},r().createElement(Aa.A,null),r().createElement(C.A,null,t.votes_viewers))))))})))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const Ta=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{frontimmutable:He,fetchtopten:Se}
1)((0,h.CI)("translations")(Ea));function ka(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ka=function(){return!!e})()}var Ma=wp.element,Sa=(Ma.render,Ma.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),(o=(0,b.A)(n,ka()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s))).state={anchorEl:"",open:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"decodeHTMLEntities",value:function(e){for(var t=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"']],o=0,n=t.length;o<n;++o)e=e.replace(new RegExp("&"+t[o][0]+";","g"),t[o][1]);return e}},{key:"render",value:function(){var e=void 0!==this.props.short?this.props.short.allcatoption.contest_rules:null;return null!=e?r().createElement(S.A,{container:!0,className:"wpvc_rules_content"},r().createElement(C.A,{component:"div"},(0,Qe.Ay)(this.decodeHTMLEntities(e)))):""}}])}(s.Component));const Ca=(0,i.Ng)()((0,h.CI)("translations")(Sa));var Oa=o(48875),Na=o(15326),Da=o(85685),Ia=o(83568),xa=o(72297),La=o(67110),za=o(49211),Ra=o(45402);function ja(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ja=function(){return!!e})()}var Pa=wp.element,Ua=(Pa.render,Pa.useState,function(e){function t(e){var o;(0,A.A)(this,t),o=function(e,t,o){return t=(0,E.A)(t),(0,b.A)(e,ja()?Reflect.construct(t,o||[],(0,E.A)(e).constructor):t.apply(e,o))}(this,t,[e]),(0,p.A)(o,"handleterms",(function(e){o.setState({show_term:!0})})),(0,p.A)(o,"Updatecontestant",(function(){o.validator.allValid()?(o.setState({wait:0,btn_loader:1}),o.props.UpdateContestant(o.props.SITE_URL,o.props.edit_value,o.props.contestant_form).then((function(e){o.setState({wait:1})}))):(o.validator.showMessages(),o.forceUpdate())})),(0,p.A)(o,"handleupload",(function(e,t){var n=e.file_sys_name,a=e.contestant_form,s=e.new_post_id,r=e.use_tus_upload,i=[],l=[],c=[],p=[],u=[];if(void 0!==n){var _=n.length;t.setState({totalupload:_}),Object.values(n).map((function(o){var n=a[o.system_name];if(!n)return _--,void t.setState({totalupload:_});if("object"!==(0,qt.A)(n))return _--,void t.setState({totalupload:_});if(i[o.system_name]=n.name,l[o.system_name]=0,c[o.system_name]=100,p[o.system_name]=e.t("upload_in_progress"),u[o.system_name]=0,t.setState({fileName:i,uploadedBytes:l,totalBytes:c,status:p,uploadsucess:u}),r)new Xn._O(n,{endpoint:e.ORIGINAL_URL+"/wp-tus/",chunkSize:"500",retryDelays:[0,3e3,5e3,1e4],metadata:{filename:n.name,filetype:n.type,post_id:s,system_name:o.system_name},onError:function(n){return _--,console.log("Failed because: "+n),p[o.system_name]=e.t("upload_failed"),u[o.system_name]=0,t.setState({btn_loader:0,openError:1,status:p,uploadsucess:u,totalupload:0}),!1},onShouldRetry:function(e,t,o){var n=e.originalResponse?e.originalResponse.getStatus():0;return 403!==n&&413!==n},onProgress:function(e,n){var a=(e/n*100).toFixed(2);l[o.system_name]=Math.round(a),t.setState({uploadedBytes:l})},onSuccess:function(){_--,u[o.system_name]=1,p[o.system_name]="100%",t.setState({uploadsucess:u,totalupload:_,status:p}),0==_&&(t.setState({sucess_contest:1}),t.handlemodalClose())}}).start();else{var d=new FormData;d.append("file",n),d.append("post_id",s),d.append("system_name",o.system_name);var m=f.A.get("wpvc_voting_authorize"),h=t.props.SITE_URL+"wpvc-voting/v1/wpvcuploadfiles";Qn.A.post(h,d,{headers:{"Authorize-wpvc":m,"Authorize-wpvc-request":"xmlhttprequest"},onUploadProgress:function(e){var n=(e.loaded/e.total*100).toFixed(2);l[o.system_name]=Math.round(n),t.setState({uploadedBytes:l})}}).then((function(e){if(!e.data.success)return p[o.system_name]=e.data.error_message,u[o.system_name]=0,l[o.system_name]=0,t.setState({btn_loader:0,openError:1,uploadedBytes:l,status:p,uploadsucess:u,totalupload:0}),!1;_--,u[o.system_name]=1,l[o.system_name]=100,p[o.system_name]="100%",t.setState({uploadedBytes:l,status:p,uploadsucess:u,totalupload:_}),0==_&&(t.setState({sucess_contest:1}),t.handlemodalClose())})).catch((function(e){return console.log(e),p[o.system_name]=e.message,u[o.system_name]=0,t.setState({btn_loader:0,openError:1,status:p,uploadsucess:u,totalupload:0}),!1}))}})),0==o.state.totalupload&&o.setState({sucess_contest:1})}else o.setState({sucess_contest:1})})),(0,p.A)(o,"handleClose",(function(e){o.setState({show_term:!1})}
1)),(0,p.A)(o,"handlemodalClose",(function(e){o.setState({file_upl:!1})})),(0,p.A)(o,"handlemodalsuccess",(function(e){o.setState({sucess_contest:0}),window.location.reload()})),(0,p.A)(o,"handleErrorClose",(function(e){o.setState({openError:0})})),(0,p.A)(o,"isFileImage",(function(e){return"object"===(0,qt.A)(e)?e&&"image"===e.type.split("/")[0]:/\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(e)})),o.state={anchorEl:"",open:"",show_term:!1,contestant:[],wait:0,file_upl:!1,new_entry:null,sucess_contest:0,uploadedBytes:[],totalBytes:[],fileName:[],status:[],uploadsucess:[],totalupload:0,btn_loader:0,openError:0};var n=o.props.t;return o.validator=new ge({validators:{file_react:{message:n("file_format_validation"),rule:function(e,t,o){if("object"===(0,qt.A)(e)){var n=t.pop(),a=t.filter(String);if(0!==a.length&&"null"!=a[0]&&""!=a[0]){var s=e.type.split("/").pop();return a.includes(s)}if("contestant-image"==n)return e&&"image"===e.type.split("/")[0];if("contestant-ow_music_url"==n)return e&&"audio"===e.type.split("/")[0];if("contestant-ow_video_upload_url"==n)return e&&"video"===e.type.split("/")[0]}},messageReplace:function(e,t){return e.replace(":values",t)},required:!0},file_size:{message:n("file_size_validation"),rule:function(e,t,o){return"object"!==(0,qt.A)(e)||"0"==t[0]||!t[0]||e.size/1024/1024<=t[0]},messageReplace:function(e,t){return e.replace(":values",t[0])}},desc_char_limit:{message:n("char_limit_validation"),rule:function(e,t,o){return!(e.replace(/(<([^>]+)>)/gi,"").length>t[0])},messageReplace:function(e,t){return e.replace(":values",t)},required:!0},word_limit:{message:n("word_limit_validation"),rule:function(e,t,o){return!(e.split(" ").length>t[0])},messageReplace:function(e,t){return e.replace(":values",t)},required:!0}},messages:{alpha_num_dash_space:n("alpha_num_dash_space_validation")}}),o.handleupload=o.handleupload.bind(o),o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"validURL",value:function(e){return null!=e&&"object"!==(0,qt.A)(e)&&null!==e.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)&&e}},{key:"componentWillReceiveProps",value:function(e){var t=e.new_post_id;void 0!==t&&(this.setState({file_upl:!0}),this.setState({new_entry:t}),this.handleupload(e,this))}},{key:"render",value:function(){var e=this,t=this.props.t,o=this.props,n=this.props.profilescreen,a=this.props.custom_field,s=this.props.contestant_form;n&&(a=void 0!==this.props.singlepost.custom_fields?this.props.singlepost.custom_fields.custom_field:null);var i=this.props.settings.color.votes_navigationbgcolor,l={buttons:["bold","strikethrough","underline","italic","|","ul","ol","|","outdent","indent","|","fontsize","brush","paragraph","|","image","table","link","|","align","|","hr"],buttonsMD:["bold","strikethrough","underline","italic","|","ul","ol","|","outdent","indent","|","fontsize","brush","paragraph","|","image","table","link","|","align","|","hr"],buttonsSM:["bold","strikethrough","underline","italic","|","ul","ol","|","outdent","indent","|","fontsize","brush","paragraph","|","image","table","link","|","align","|","hr"],readonly:!1,askBeforePasteHTML:!1,askBeforePasteFromWord:!1},c=this.props.file_sys_name,p=void 0!==this.props.edit_value?this.props.edit_value:null,u="";void 0!==s["contestant-ow_video_upload_url"]&&(u=s["contestant-ow_video_upload_url"]);var _="";void 0!==s["contestant-ow_video_url"]&&(_=s["contestant-ow_video_url"]);var d=!1;return""==u&&""==_&&(d=!0),a&&0==this.state.totalupload?(this.validator.purgeFields(),r().createElement(r().Fragment,null,1==this.state.sucess_contest&&r().createElement(Q.A,{maxWidth:"xs",fullWidth:!0,onClose:this.handlemodalsuccess,"aria-labelledby":"customized-dialog-title",open:!0},r().createElement(ce.A,{component:"div",className:"wpvc_submission_popup_title",onClose:this.handlemodalsuccess},r().createElement(C.A,{variant:"h6"},t("successup_entry")),r().createElement(_e.A,{"aria-label":"close",onClick:this.handlemodalsuccess},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_submission_popup_content"},r().createElement(C.A,null,t("contestant_updated"))),r().createElement(ee.A,null,r().createElement(q.A,{onClick:this.handlemodalsuccess,color:"primary",autoF
1ocus:!0},"Ok"))),1==this.state.openError&&r().createElement(Q.A,{onClose:this.handleErrorClose,"aria-labelledby":"customized-dialog-title",open:this.state.openError},r().createElement(ce.A,{component:"div",className:"wpvc_progress_popup_title",onClose:this.handleErrorClose},r().createElement(C.A,{variant:"h6"},t("upload_failed"))),r().createElement(K.A,{dividers:!0,className:"wpvc_progress_popup_content"},null==c?void 0:c.map((function(o,n){return r().createElement(S.A,{key:n,className:"wpvc_upload_content_progress",size:12},r().createElement(C.A,null,t("file_name"),e.state.fileName[o.system_name]),r().createElement(J.A,{alignItems:"center"},r().createElement(J.A,{width:"100%",mr:1},r().createElement(Kn.A,{variant:"determinate",value:e.state.uploadedBytes[o.system_name]})),r().createElement(J.A,null,r().createElement(C.A,{color:"error"},e.state.status[o.system_name]))))}))),r().createElement(ee.A,null,r().createElement(q.A,{onClick:this.handleErrorClose,color:"primary",autoFocus:!0},"Close"))),r().createElement("form",{id:"add_contestant",name:"myForm",encType:"multipart/form-data"},r().createElement(S.A,{container:!0,size:12,direction:"column",className:"wpvc_submit_form",style:{backgroundColor:(0,Jn.I)(i,195),border:"1px solid "+i,color:i}},a.map((function(o,n){return r().createElement(S.A,{key:n,container:!0,className:"wpvc_submit_form_field",size:12},"TERMS"!=o.question_type&&r().createElement(S.A,{className:"wpvc_label",size:12},r().createElement(C.A,null,o.question)),r().createElement(S.A,{className:"wpvc_form_grid",size:12},"TEXT"==o.question_type&&"contestant-desc"!=o.system_name&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement($.A,{variant:"standard",type:o.react_values.text_field_type,name:o.system_name,value:null==s[o.system_name]?"":s[o.system_name],onChange:e.props.valchange("contestant_form")}),"contestant-ow_video_url"!=o.system_name&&"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required"),"contestant-ow_video_url"==o.system_name&&1==d&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required"),"contestant-title"==o.system_name&&"Y"==o.set_limit&&"N"==o.limit_type&&e.validator.message(t("char_limit_validation"),s[o.system_name],"desc_char_limit:"+o.limit_count),"contestant-title"==o.system_name&&"Y"==o.set_limit&&"Y"==o.limit_type&&e.validator.message(t("word_limit_validation"),s[o.system_name],"word_limit:"+o.limit_count)),"contestant-desc"==o.system_name&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement(oa(),{editorRef:"response",name:o.system_name,value:s[o.system_name],config:l,onBlur:e.props.ediorchange(o.system_name)}),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required"),"contestant-desc"==o.system_name&&"Y"==o.set_limit&&"N"==o.limit_type&&e.validator.message(t("char_limit_validation"),s[o.system_name],"desc_char_limit:"+o.limit_count),"contestant-desc"==o.system_name&&"Y"==o.set_limit&&"Y"==o.limit_type&&e.validator.message(t("word_limit_validation"),s[o.system_name],"word_limit:"+o.limit_count)),"TEXTAREA"==o.question_type&&"contestant-desc"!=o.system_name&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement(lt.A,{name:o.system_name,minRows:o.react_values.text_area_row,value:s[o.system_name],onChange:e.props.valchange("contestant_form")}),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required|alpha_num_dash_space")),"SINGLE"==o.question_type&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad",component:"fieldset"},r().createElement(ct.A,{row:!0,"aria-label":"vote_votingtype",name:o.system_name,onChange:e.props.valchange("contestant_form")},Object.keys(o.drop_values).map((function(e){return r().createElement(ye.A,{key:e,className:"wpvc_submit_label",control:r().createElement(pt.A,{color:"primary"}),value:o.drop_values[e],label:o.drop_values[e],labelPlacement:o.react_values.value_placement})}))),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required")),"DROPDOWN"==o.question_type&&r().createElement(Ae.A,{fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement(ut.A,{variant:"standard",name:o.system_name,displayEmpty:!0,className:"wpvc_submit_select",onChange:e.props.valchange("contestant_form")},Object.keys(o.drop_values).map((function(e){return r().createElement(Y.A,{key:e,value:o.drop_values[e]},o.drop_values[e])}))),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required")),"MULTIPLE"==o.question_type&&r().createElement(Ae.A,{component:"fieldset",fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement(ct.A,{row:!0,"aria-label":"vote_votingtype"},Object.keys(o.drop_values).map((function(t){return r().createElement(ye.A,{key:t,className:"wpvc_submit_label",control:r().createElement(be.A,{color:"primary",name:o.system_name,onChange:e.props.checkboxchange("contestant_form")}),value:o.drop_values[t],label:o.drop_values[t],labelPlacement:o.react_values.value_placement})}))),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required")),"TERMS"==o.question_type&&r().createElement(Ae.A,{component:"fieldset",fullWidth:!0,className:"wpvc_form_control_ad"},r().createElement(ct.A,{row:!0,"aria-label":"vote_votingtype",className:"wpvc_terms_checkbox"},r().createElement(ye.A,{control:r().createElement(be.A,{color:"primary",name:o.system_name,value:"on"==s[o.system_name]?"off":"on",onChange:e.props.valchange("contestant_form")})}),r().createElement(q.A,{className:"wpvc_terms_submit",color:"primary",component:"a",onClick:function(){e.handleterms()}},o.question),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required"))),"TERMS"==o.question_type&&r().createElement(Q.A,{onClose:e.handleClose,"aria-labelledby":"
1customized-dialog-title",open:e.state.show_term},r().createElement(ce.A,{component:"div",className:"wpvc_terms_popup_title",onClose:e.handleClose},r().createElement(C.A,{variant:"h6"},t("termsandconditions")),r().createElement(_e.A,{"aria-label":"close",onClick:e.handleClose},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_terms_popup_content"},(0,Qe.Ay)(o.response))),"FILE"==o.question_type&&r().createElement("div",{className:"wpvc_form_control_ad"},r().createElement("input",{id:o.system_name,name:o.system_name,type:"file",style:{display:"none"},onChange:e.props.filechange("contestant_form")}),r().createElement("label",{htmlFor:o.system_name},r().createElement(q.A,{variant:"contained",color:"primary",className:"wpvc_btn_submit_form",component:"span",startIcon:r().createElement(ea.A,null,o.react_values.upload_icon)},t("upload_button_text")),"contestant-ow_video_upload_url"!=o.system_name&&"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required"),"contestant-ow_video_upload_url"==o.system_name&&s[o.system_name]&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"file_react:"+o.response+","+o.system_name+"|file_size:"+o.ow_file_size),"contestant-ow_video_upload_url"==o.system_name&&1==d&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required")),null!=p&&null!=s[o.system_name]&&""!=s[o.system_name]&&1==e.isFileImage(s[o.system_name])&&r().createElement(lo.A,{className:"wpvc_submit_display_image",image:"object"===(0,qt.A)(s[o.system_name])?URL.createObjectURL(s[o.system_name]):e.validURL(s[o.system_name])}),0==e.isFileImage(s[o.system_name])&&r().createElement(C.A,null,"string"==typeof s[o.system_name]?decodeURIComponent(s[o.system_name].split("/").pop()):s[o.system_name]?s[o.system_name].name:"")),"DATE"==o.question_type&&r().createElement(Ae.A,{component:"fieldset",fullWidth:!0,className:"wpvc_form_control_ad wpvc_form_datepicker"},r().createElement(it.$,{dateAdapter:st.h},r().createElement(rt.l,{className:"wpvc_datepicker",value:s[o.system_name]?s[o.system_name]:new Date,onChange:e.props.datepickerchange("contestant_form--"+o.system_name),format:o.react_values.datepicker_only})),"Y"==o.required&&e.validator.message(null!=o.required_text&&""!=o.required_text?o.required_text:t("enter_the")+o.question,s[o.system_name],"required"))))})),null!=p&&r().createElement(ra,(0,w.A)({btn_loader:this.state.btn_loader,ORIGINAL_URL:this.props.ORIGINAL_URL,saveform:this.Updatecontestant},o,{updatecall:"1"})))))):0!=this.state.totalupload?r().createElement(r().Fragment,null,r().createElement(Q.A,{onClose:this.handlemodalClose,"aria-labelledby":"customized-dialog-title",open:this.state.file_upl},r().createElement(ce.A,{component:"div",className:"wpvc_progress_popup_title",onClose:this.handlemodalClose},r().createElement(C.A,{variant:"h6"},t("please_wait_until"))),r().createElement(K.A,{dividers:!0,className:"wpvc_progress_popup_content"},r().createElement(C.A,null,t("please_wait_uploads")),null==c?void 0:c.map((function(o,n){return r().createElement(S.A,{key:n,className:"wpvc_upload_content_progress",size:12},r().createElement(C.A,null,t("file_name"),e.state.fileName[o.system_name]),r().createElement(J.A,{display:"flex",alignItems:"center"},r().createElement(J.A,{width:"100%",mr:1},r().createElement(Kn.A,{variant:"determinate",value:e.state.uploadedBytes[o.system_name]})),r().createElement(J.A,{minWidth:35},r().createElement(C.A,{variant:"body2",color:"textSecondary"},e.state.uploadedBytes[o.system_name]+"%"))))}))))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));console.warn=function(){};const Va=(0,i.Ng)("",{SubmitFiles:De,UpdateContestant:function(e,t,o){var n=f.A.get("wpvc_voting_authorize"),a=e+"wpvc-voting/v1/wpvcupdatesubmitentry";return function(e){var s={method:"POST",body:JSON.stringify({insertData:o,post_id:t}),headers:{"Content-Type":"application/json","Authorize-wpvc":n,"Authorize-wpvc-request":"xmlhttprequest"}};return fetch(a,s).then((function(e){return e.json()})).then((function(t){return e(We(t)),t}))}}})((0,h.CI)("translations")(Ua));function Ba(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ba=function(){return!!e})()}var qa=wp.element,Ga=(qa.render,qa.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Ba()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1});var e=1;""!=o.props.paginate_value&&(e=o.props.paginate_value),o.props.fetchauthorprofile(o.props.SITE_URL,o.props.short.id,o.props.short,e),setTimeout(function(){this.setState({wait:0})}.bind(o),1e3)})),(0,p.A)(o,"pagination",(function(e,t){Number.isInteger(t)||(t=e.target.value),o.props.frontimmute("paginate_value",t),o.setState({wait:1}),o.props.fetchauthorprofile(o.props.SITE_URL,o.props.short.id,o.props.short,t,""),o.setState({wait:0,page_number:t}),o.contestantsContainer.current.scrollIntoView({behavior:"smooth"})})),(0,p.A)(o,"paginationbtn",(function(e,t){"button"==e&&(t+=1),o.setState({wait:0}),o.props.fetchauthorprofile(o.props.SITE_URL,o.props.short.id,o.props.short,t,"load"),o.setState({wait:0,page_number:t})})),(0,p.A)(o,"handleDeleteContestant",(function(){o.setState({wait:1}),o.props.deleteContestant(o.props.SITE_URL,o.state.delete_val),o.setState({wait:0,modalopen:0}),alert("Contestant Deleted Successfully!"),window.location.reload()})),(0,p.A)(o,"handleEditval",(function(e,t){o.props.fetcheditpost(o.props.SITE_URL,e,t),o.setState({edit_val:t})})),(0,p.A)(o,"handleDelete",(function(e){o.setState({delete_val:e,modalopen:1})})),(0,p.A)(o,"handleClose",(function(){o.setState({modalopen:0})})),o.state={anchorEl:"",modalopen:0,wait:1,edit_val:null,delete_val:null,page_number:1},o.contestantsContainer=r().createRef(),o}
1return(0,T.A)(t,e),(0,y.A)(t,[{key:"componentWillReceiveProps",value:function(e){void 0!==e.deleted&&e.deleted==this.state.delete_val&&(this.setState({delete_val:null}),this.props.fetchauthorprofile(this.props.SITE_URL,this.props.short.id,this.props.short))}},{key:"getformatteddate",value:function(e){if(null!=e)return(0,N.Ay)(e,"mmm dd yyyy")}},{key:"calculateVoteTimeLeft",value:function(e){var t=this.props.currentdate;if(t||(t=new Date),null!=e){e=e.replace(/ /g,"T");var o=(0,N.Ay)(e);return new Date(o)-t}return-1}},{key:"render",value:function(){var e=this,t=this.props.t,o=this.props,n=void 0!==o.post.posts?o.post.posts:null,a=o.settings.color,s=a.votes_button_bgcolor,i=a.votes_button_font_color,l=(o.profile_view,o.short.end_time),c=o.short.start_time,p=null,u=0,_=void 0!==o.pagin_val?o.pagin_val:null,d=null!=_?_.total_posts:0,m=o.short.allcatoption.tax_activationcount||0;1==o.short.showform||1==o.short.displayform?u=1:c?c?(u=this.calculateVoteTimeLeft(c),0!==m&&parseInt(m)<=parseInt(d)&&(u=0)):l&&(u=this.calculateVoteTimeLeft(l)):(u=1,0!==m&&parseInt(m)<=parseInt(d)&&(u=0)),l&&(p=this.calculateVoteTimeLeft(l)),(1!=o.short.showform||1!=o.short.displayform)&&0!==m&&parseInt(m)<=parseInt(d)&&(p=-1);var h="off";"0"!==o.short.showform&&"0"!==o.short.displayform&&u>0&&("1"===o.short.showform||"1"===o.short.displayform||p>0||null==p)&&void 0!==o.short.allcatoption&&(h=o.short.allcatoption.editenablecontestant);var v=r().forwardRef((function(e,t){return r().createElement(Oa.A,(0,w.A)({direction:"up",ref:t},e))})),g=null;void 0!==o.short.allcatoption&&(g=o.short.contest_type);var f=o.short.user_id_profile?o.short.user_id_profile:0;return null!=n&&"object"===(0,qt.A)(n)&&0!=f&&1!=this.state.wait&&n.length>0?r().createElement(S.A,{container:!0,className:"wpvc_profile_screen_container",ref:this.contestantsContainer},null!=this.state.edit_val&&r().createElement(Va,(0,w.A)({},o,{short:o.short,SITE_URL:o.SITE_URL,ORIGINAL_URL:o.ORIGINAL_URL,valchange:o.valchange,filechange:o.filechange,ediorchange:o.ediorchange,checkboxchange:o.checkboxchange,datepickerchange:o.datepickerchange,edit_value:this.state.edit_val})),r().createElement(S.A,{container:!0,size:12,direction:"row",spacing:3,className:"wpvc_show_style"},n.map((function(n,a){return r().createElement(S.A,{key:a,className:"wpvc_show_style_row",size:{xs:12,md:4}},r().createElement(Gt.A,{className:"wpvc_card_row"},null!=g&&("photo"==g||"essay"==g)&&r().createElement(En,(0,w.A)({},o,{singlepost:n,indexpost:a,view:"topten"})),null!=g&&("video"==g||"music"==g)&&r().createElement(On,(0,w.A)({},o,{singlepost:n,indexpost:a,view:o.view})),r().createElement(Ft.A,{className:"wpvc_card_content_row wpvc_card_profile_title"},r().createElement($t,(0,w.A)({},o,{singlepost:n,view:o.view}))),r().createElement(Wt.A,{disableSpacing:!0,className:"wpvc_cardcontainer_profile"},r().createElement(S.A,{container:!0,className:"wpvc_profile_info_tab",direction:"row",justifyContent:"space-between",alignItems:"flex-end",style:{background:s,color:i}},r().createElement(S.A,{className:"wpvc_profile_date",size:6},r().createElement(C.A,null,r().createElement(Na.A,null)),r().createElement(C.A,null,t("upload_date")),r().createElement(C.A,{className:"wpvc_bold_typo"},e.getformatteddate(n.date))),r().createElement(S.A,{className:"wpvc_profile_category",size:6},r().createElement(C.A,null,r().createElement(Da.A,null)),r().createElement(C.A,null,t("category")),r().createElement(C.A,{className:"wpvc_bold_typo"},n.term_name)),r().createElement(S.A,{className:"wpvc_profile_vote",size:6},r().createElement(C.A,null,r().createElement(fo.A,null)),r().createElement(C.A,null,t("fr_votes")),r().createElement(C.A,{className:"wpvc_bold_typo"},n.votes_count)),"on"==h&&r().createElement(S.A,{className:"wpvc_profile_edit",size:6},r().createElement(C.A,null,r().createElement(Ia.A,null)),r().createElement(C.A,null,t("edit_delete")),r().createElement(C.A,{className:"wpvc_edit_delete_typo"},r().createElement(Ee.A,{className:"wpvc_edit_delete",href:"#add_contestant",onClick:function(){return e.handleEditval(o.short.id,n.id)}},r().createElement(xa.A,null)),r().createElement(Ee.A,{className:"wpvc_edit_delete",href:void 0,onClick:function(){return e.handleDelete(n.id)}}
1,r().createElement(La.A,null)))),r().createElement(S.A,{className:"wpvc_profile_status",size:6},r().createElement(C.A,null,r().createElement(za.A,null)),r().createElement(C.A,null,t("post_status")),r().createElement(C.A,{className:"wpvc_bold_typo wpvc_status_post"},n.status)),r().createElement(S.A,{className:"wpvc_profile_share",size:6},r().createElement(C.A,null,r().createElement(Ra.A,null)),r().createElement(C.A,{className:"wpvc_profile_share_contest"},t("social")),r().createElement(tn,(0,w.A)({},o,{singlepost:n,view:"grid"})))))))})),r().createElement(Pn,(0,w.A)({},o,{pagenumber:this.state.page_number,changepagin:this.pagination,changepaginbtn:this.paginationbtn,select_value:o.paginate_value}))),1==this.state.modalopen&&r().createElement(Q.A,{open:!0,TransitionComponent:v,onClose:this.handleClose,"aria-labelledby":"alert-dialog-slide-title","aria-describedby":"alert-dialog-slide-description",className:"wpvc_profile_delete_dailog"},r().createElement(ce.A,{id:"alert-dialog-slide-title"},t("do_you_wanna_delete")),r().createElement(ee.A,null,r().createElement(q.A,{onClick:this.handleClose,color:"secondary"},t("cancel")),r().createElement(q.A,{onClick:this.handleDeleteContestant,color:"primary"},t("delete"))))):0==f||null!=n&&0==n.length?r().createElement(S.A,{container:!0,className:"wpvc_hr_contestants"},r().createElement(C.A,{align:"center",variant:"h6",component:"h6"},t("no_contestants_found")),r().createElement(Yt.A,{variant:"middle"})):"perpage"==n?"":r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const Fa=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{deleteContestant:Ce,frontimmute:Xe,fetchauthorprofile:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=f.A.get("wpvc_voting_authorize"),r=e+"wp/v2/contestants?contest_category="+t+"&status=publish"+(null==n?"&author="+o.user_id_profile+"&per_page="+o.postperpage+"&page="+o.paged+"&orderby=date&order=desc":"&author="+o.user_id_profile+"&per_page="+o.postperpage+"&page="+n+"&orderby=date&order=desc"),i=o.postperpage;return 0==i?function(e){e(We({posts:"perpage",pagin_val:""}))}:i>500||i<0?function(e){e(Ye({posts:"perpage",pagin_val:""},"Please check the <strong>postperpage</strong> shortcode attribute !"))}:function(e){var t="",o="";return fetch(r,{method:"GET",headers:{"Content-Type":"application/json","Authorize-wpvc":s,"Authorize-wpvc-request":"xmlhttprequest"}}).then((function(e){return t=e.headers.get("X-WP-Total"),o=e.headers.get("X-WP-TotalPages"),e.json()})).then((function(n){var s={posts:n,pagin_val:{total_posts:t,page_nums:o}};return e("load"==a?Fe("posts",n):We(s)),n}))}},fetcheditpost:Oe})((0,h.CI)("translations")(Ga));function Wa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wa=function(){return!!e})()}var Ya=wp.element,Za=(Ya.render,Ya.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),(o=(0,b.A)(n,Wa()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s))).state={anchorEl:"",open:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props.t,t=this.props.message;return null!=t?r().createElement(S.A,{container:!0,className:"wpvc_rules_content",size:12},r().createElement(C.A,{variant:"subtitle2",component:"subtitle2"},e(t))):""}}])}(s.Component));const Ha=(0,i.Ng)()((0,h.CI)("translations")(Za));var Ja=o(75494),Xa=o.n(Ja);function Qa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qa=function(){return!!e})()}var Ka=wp.element,$a=(Ka.render,Ka.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Qa()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1}),o.props.fetchFrontSetting(o.props.SITE_URL),o.setState({wait:0})})),(0,p.A)(o,"handleextClose",(function(e){o.closeForget()})),(0,p.A)(o,"handleChange",(function(e,t){var n=e.target.id;""==n&&(n=e.target.parentNode.id);var a=n.replace(/\D/g,"");o.setState({value:t,tabindex:parseInt(a)})})),(0,p.A)(o,"handleAccount",(function(){o.setState({value:0})})),(0,p.A)(o,"handleForget",(function(){o.setState({forget_panel:1})})),(0,p.A)(o,"closeForget",(function(){o.setState({forget_panel:0}
1)})),(0,p.A)(o,"handleForgetEvent",(function(e){o.props.ForgotPassword(o.props.SITE_URL,e)})),(0,p.A)(o,"toggleVerificationEmail",(function(e){o.setState({verification_panel:e})})),(0,p.A)(o,"handleVerificationEmail",(function(e){o.props.ResendVerificationEmail(o.props.SITE_URL,e)})),o.state={anchorEl:"",open:"",value:0,forget_panel:0,verification_panel:!1},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"tabProps",value:function(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tab-".concat(e)}}},{key:"render",value:function(){var e=this.props.t,t=this.props,o=this.props.short.user_can_register;if(null!=(void 0!==this.props.model?this.props.model:null)){var n=t.model.settings.common.vote_hide_account,a=t.model;return t.short.user_logged?r().createElement(C.A,{className:"user_logged_in_text"},e("user_logged_in"),r().createElement("a",{href:Xa()(t.short.wp_user_logout)},e("user_logout_link"))):r().createElement("div",null,0==this.state.forget_panel&&0==this.state.verification_panel&&r().createElement(S.A,{container:!0,className:"wpvc_login_contest_shortcode"},r().createElement(S.A,{container:!0,size:12,className:"wpvc_login_popup_title"},r().createElement(S.A,{className:"wpvc_login_panel",size:12},r().createElement(pe.A,{className:"wpvc_login_panel_tabs",value:this.state.value,onChange:this.handleChange},r().createElement(ue.A,(0,w.A)({className:"wpvc_login_panel_tab",label:e("login")},this.tabProps(0))),1==o&&"off"==n&&r().createElement(ue.A,(0,w.A)({className:"wpvc_login_panel_tab",label:e("create_account")},this.tabProps(1)))))),r().createElement(S.A,{container:!0,className:"wpvc_login_popup_content"},r().createElement(S.A,{size:12},0==this.state.value&&r().createElement("form",null,r().createElement(at,(0,w.A)({shortcode:"login",SITE_URL:this.props.SITE_URL,ORIGINAL_URL:this.props.ORIGINAL_URL,constant:g},this.props.model,{handleforgot:this.handleForget,handleVerificationEmail:this.toggleVerificationEmail}))),1==this.state.value&&r().createElement("form",null,r().createElement(ht,(0,w.A)({shortcode:"login",SITE_URL:this.props.SITE_URL},a,{handleaccount:this.handleAccount})))))),1==this.state.forget_panel&&r().createElement(S.A,{container:!0,className:"wpvc_login_contest_shortcode"},r().createElement(S.A,{container:!0,size:12,className:"wpvc_login_popup_title",alignItems:"center"},r().createElement(S.A,{className:"wpvc_login_panel",justifyContent:"center",size:12},r().createElement(C.A,{className:"wpvc_forget_title",variant:"h6"},e("forgot_details")))),r().createElement(S.A,{container:!0,size:12,className:"wpvc_login_popup_content"},r().createElement(wt,(0,w.A)({},t,{handleForgetEvent:this.handleForgetEvent,closeforgot:this.closeForget})))),1==this.state.verification_panel&&r().createElement(S.A,{container:!0,className:"wpvc_login_contest_shortcode"},r().createElement(S.A,{container:!0,size:12,className:"wpvc_login_popup_title",alignItems:"center"},r().createElement(S.A,{className:"wpvc_login_panel",justifyContent:"center",size:12},r().createElement(C.A,{className:"wpvc_forget_title",variant:"h6"},e("resend_verification_email")))),r().createElement(S.A,{container:!0,size:12,className:"wpvc_login_popup_content"},r().createElement(Et,(0,w.A)({},t,{sendEmail:this.handleVerificationEmail,toggleVerificationEmail:this.toggleVerificationEmail})))))}return""}}])}(s.Component));const es=(0,i.Ng)((function(e){return{model:e.wpvcfrontdata}}),{fetchFrontSetting:Te,ForgotPassword:Re,ResendVerificationEmail:je})((0,h.CI)("translations")($a));var ts=o(54937);function os(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(os=function(){return!!e})()}var ns=wp.element;ns.render,ns.useState;const as=function(e){function t(){return(0,A.A)(this,t),e=this,o=t,n=arguments,o=(0,E.A)(o),(0,b.A)(e,os()?Reflect.construct(o,n||[],(0,E.A)(e).constructor):o.apply(e,n));var e,o,n}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){return r().createElement(ia.A,{severity:"error"},r().createElement(ts.A,null,"Error"),r().createElement("div",{dangerouslySetInnerHTML:{__html:this.props.msg}}))}}])}(s.Component);var ss=o(78373),rs=o(54855);function is(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(is=function(){return!!e})()}
1var ls=wp.element,cs=(ls.render,ls.useState,function(e){function t(e){return(0,A.A)(this,t),o=this,n=t,a=[e],n=(0,E.A)(n),(0,b.A)(o,is()?Reflect.construct(n,a||[],(0,E.A)(o).constructor):n.apply(o,a));var o,n,a}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e,t=this.props.t,o=null===(e=this.props.values)||void 0===e?void 0:e.bonus_vote_count;return o>0?r().createElement(S.A,{className:"wpvc_total_term_vote_count"},r().createElement(C.A,{variant:"body1",className:"timer_typography"},t("remaining_bonus_votes")," ",o||0)):null}}])}(s.Component));const ps=(0,h.CI)("translations")(cs);function us(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(us=function(){return!!e})()}var _s=wp.element,ds=(_s.render,_s.useState,function(e){function t(e){return(0,A.A)(this,t),o=this,n=t,a=[e],n=(0,E.A)(n),(0,b.A)(o,us()?Reflect.construct(n,a||[],(0,E.A)(o).constructor):n.apply(o,a));var o,n,a}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e,t=this.props.t,o=null===(e=this.props.values)||void 0===e?void 0:e.buy_votes_count;return r().createElement(S.A,{className:"wpvc_total_term_vote_count"},r().createElement(C.A,{variant:"body1",className:"timer_typography"},t("remaining_buy_votes")," ",o||0))}}])}(s.Component));const ms=(0,h.CI)("translations")(ds);function hs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hs=function(){return!!e})()}var vs=wp.element,gs=(vs.render,vs.useState,null),fs=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,hs()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){if(o.setState({wait:1}),o.props.fetchFrontSetting(o.props.SITE_URL,o.props.shortagrument.id).then((function(e){if("grid"==o.state.listgrid&&!o.props.shortagrument.view){var t,n,a="column"==((null===(t=e.selcategoryoptions)||void 0===t||null===(t=t.style)||void 0===t?void 0:t.direction)||(null===(n=e.settings)||void 0===n||null===(n=n.style)||void 0===n?void 0:n.direction))?"list":"grid";o.setState({listgrid:a})}})),void 0!==o.props.shortagrument){var e=o.props.shortagrument.showcontestants,t=o.props.shortagrument.flag_code;0==e?o.setState({listgrid:"upcoming"}):"profile"==t?o.setState({listgrid:"profile_screen"}):"topcontest"==t?o.setState({listgrid:"topcontest"}):o.setState({listgrid:o.props.shortagrument.view}),"on"==o.props.shortagrument.openform&&("profile"==t?o.setState({form_val:""}):o.setState({form_val:"submit_form"}))}o.setState({wait:0})})),(0,p.A)(o,"handleDrawer",(function(e){o.props.frontimmute("drawer",e)})),(0,p.A)(o,"handleGrid",(function(e){o.setState({wait:1}),o.setState({listgrid:e}),o.setState({wait:0})})),(0,p.A)(o,"handleLimitClose",(function(){o.setState({setlimit:!1})})),(0,p.A)(o,"handleform",(function(e){o.setState({wait:1}),!0===o.handleLimitCheck()?o.setState({setlimit:!0}):"submit_form"==o.state.form_val?o.setState({form_val:""}):o.setState({form_val:e}),o.setState({wait:0})})),(0,p.A)(o,"handleLimitCheck",(function(){var e=o.props.model.entrycount,t=(o.props.shortagrument.allcatoption||"").vote_contest_entry_person;return null!==e&&0!=t&&null!==t&&parseInt(e)>=parseInt(t)})),(0,p.A)(o,"handlegallery",(function(e){o.setState({wait:1}),o.setState({listgrid:e,form_val:""}),o.setState({wait:0})})),(0,p.A)(o,"handletopten",(function(e){o.setState({wait:1}),o.setState({listgrid:e,form_val:""}),o.setState({wait:0})})),(0,p.A)(o,"handlerules",(function(e){o.setState({wait:1}),o.setState({listgrid:e,form_val:""}),o.setState({wait:0})})),(0,p.A)(o,"handleurprofile",(function(e){o.setState({wait:1}),o.setState({listgrid:e,form_val:""}),o.setState({wait:0})})),(0,p.A)(o,"handleValueChange",(function(e){return function(t){o.props.frontsingleimmute(e,t.target.name,t.target.value)}})),(0,p.A)(o,"handleFileChange",(function(e){return function(t){var n=t.target.files[0];o.props.frontsingleimmute(e,t.target.name,n)}})),(0,p.A)(o,"handleValueDate",(function(e){return function(t){var n=e.split("--");if(n.length>=1){var a=t;o.props.frontsingleimmute(n[0],n[1],a)}}})),(0,p.A)(o,"handleValueCheckbox",(function(e){return function(t,n){var a=t.target.name,s=o.props.model.contestant_form[a];if(n)if(""==s)o.props.frontsingleimmute(e,t.target.name,t.target.value);else{var r=s+","+t.target.value;o.props.frontsingleimmute(e,t.target.name,r)}else if(""!=s){var i=s.replace(","+t.target.value,"").replace(t.target.value+",","").replace(t.target.value,"");o.props.frontsingleimmute(e,t.target.name,i)}}})),(0,p.A)(o,"handleValueEditor",(function(e){return function(t){var n=void 0===t.srcElement?t:t.srcElement.innerHTML;o.props.frontsingleimmute("contestant_form",e,n)}})),(0,p.A)(o,"paymentChange",(function(e,t){o.props.updateFrontData(e,t)})),(0,p.A)(o,"insertPayment",(function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";o.props.insertPayment(o.props.SITE_URL,e,t,n,a)})),(0,p.A)(o,"stripePayment",(function(e){o.props.stripePayment(o.props.SITE_URL,e)})),(0,p.A)(o,"couponApply",(function(e,t,n){return o.props.couponApply(o.props.SITE_URL,e,t,n)})),(0,p.A)(o,"handleSearchChange",(function(e){return function(e){e.target.value,o.props.frontimmute("wpvc_search",e.target.value)}})),(0,p.A)(o,"handleSearchClick",(function(e){o.setState({wait:1}),"grid"!==o.state.listgrid&&"list"!==o.state.listgrid?o.setState({listgrid:"grid"}):o.setState({listgrid:o.state.listgrid}),o.props.frontimmute("paginate_value",1),o.props.fetchposts(o.props.SITE_URL,o.props.shortagrument.id,o.props.shortagrument,1,"",e),""==e?(o.props.frontimmute("wpvc_search",""),o.props.frontimmute("wpvc_search_active",0)):o.props.frontimmute("wpvc_search_active",1),o.setState({wait:0})})),(0,p.A)(o,"handleSearchListing",(function(){var e="";return void 0!==o.props.model.wpvc_search&&(e=o.props.model.wpvc_search),e})),(0,p.A)(o,"handleSortSelect",(function(){var e="";return void 0!==o.props.model.wpvc_sort&&(e=o.props.model.wpvc_sort),e})),(0,p.A)(o,"handleSorting",(function(e){o.setState({wait:1});var t=e.currentTarget.dataset.value,n={},a=o.handleSearchListing();switch("grid"!==o.state.listgrid&&"list"!==o.state.listgrid?o.setState({listgrid:"grid"}):o.setState({listgrid:o.state.listgrid}),void 0===o.props.model.wpvc_old_orderby&&(o.props.frontimmute("wpvc_old_orderby",o.props.shortagrument.orderby),o.props.frontimmute("wpvc_old_order",o.props.shortagrument.order)),t){case"newest":n={orderby:"id",order:"desc"};break;case"oldest":n={orderby:"id",order:"asc"};break;case"mostvoted":n={orderby:"votes",order:"desc"};break;case"leastvoted":n={orderby:"votes",order:"asc"};break;case"mostjudged":n={orderby:"wpvc_judge_score",order:"desc"};break;case"leastjudged":n={orderby:"wpvc_judge_score",order:"asc"}}n=Object.assign(o.props.shortagrument,n),o.props.fetchposts(o.props.SITE_URL,o.props.shortagrument.id,n,1,"",a),o.props.frontimmute("wpvc_sort",t),o.setState({wait:0})})),o.state={language:"en",listgrid:"grid",wait:0,form_val:null,short:o.props.shortagrument,setlimit:!1},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e,t=this,o=this.props.t;if(1==(null===(e=this.props)||void 0===e||null===(e=e.model)||void 0===e?void 0:e.term_not_exists))return o("no_category_exists");var n=this.props.shortagrument,a=this.props.model,s=n.onlyloggedsubmit,i=n.user_logged;if(a&&1!=this.state.wait){var l,c,p,u,_,d,m=this.props.model.settings.color;gs=new Date(a.current_date),_="submit_form"==this.state.form_val?1:0,d=!1===this.handleLimitCheck()?1:0;var h=1==s&&0==i&&"on"==n.openform&&0!=this.props.shortagrument.showform?1:0;return r().createElement(ss.A,{className:"wpvc_showcontestant_container"},r().createElement(rs.A,{open:this.state.setlimit,autoHideDuration:6e3,onClose:this.handleLimitClose,anchorOrigin:{vertical:"bottom",horizontal:"right"}},r().createElement(ia.A,{className:"wpvc_max_limit",variant:"filled",onClose:this.handleLimitClose,severity:"error"},o("you_have_reach_limit"))),null!=this.props.shortagrument.title&&r().createElement(wa,{short:n}),r().createElement(S.A,{container:!0,className:"wpvc_timer_count_container",direction:"row",justifyContent:"space-between",alignItems:"center"},1==this.props.shortagrument.showtimer&&r().createElement(R,(0,w.A)({},m,{short:n,currentdate:gs}
1,a)),"on"===(null===(l=this.props.model.selcategoryoptions)||void 0===l?void 0:l.total_vote_count)&&r().createElement(V,{values:a}),"on"===(null===(c=this.props.model.settings)||void 0===c||null===(c=c.referral)||void 0===c?void 0:c.referral_enable)&&r().createElement(ps,{values:a}),"on"==(null===(p=this.props.model.selcategoryoptions)||void 0===p?void 0:p.wpvc_category_buyvotes_settings)&&"on"===(null===(u=this.props.model.settings)||void 0===u||null===(u=u.wpvc_buyvotes_settings)||void 0===u?void 0:u.ow_buyvotes_split_votes)&&r().createElement(ms,{values:a})),1==this.props.shortagrument.navbar&&r().createElement(Bt,(0,w.A)({},a,m,{short:n,SITE_URL:this.props.SITE_URL,handleDrawer:this.handleDrawer,handlelogout:function(){return t.props.Userlogout(t.props.SITE_URL)},handleview:this.handleGrid,handleform:this.handleform,handlegallery:this.handlegallery,handletopten:this.handletopten,handlerules:this.handlerules,handleurprofile:this.handleurprofile,searchchange:this.handleSearchChange,searchclick:this.handleSearchClick,sortchange:this.handleSorting,sortselect:this.handleSortSelect,view:this.state.listgrid,sortshow:"1",hide_grid:"1",currentdate:gs})),void 0!==this.props.model.criticalError&&r().createElement(as,{msg:this.props.model.criticalError}),1==h&&r().createElement("div",{className:"wpvc_not_loggedin"},r().createElement(es,(0,w.A)({},a,{short:n,SITE_URL:this.props.SITE_URL,ORIGINAL_URL:this.props.ORIGINAL_URL,CONSTANT:this.props.CONSTANT}))),1==_&&1==d&&0==h&&r().createElement(ha,(0,w.A)({},a,{short:n,SITE_URL:this.props.SITE_URL,ORIGINAL_URL:this.props.ORIGINAL_URL,valchange:this.handleValueChange,filechange:this.handleFileChange,ediorchange:this.handleValueEditor,checkboxchange:this.handleValueCheckbox,datepickerchange:this.handleValueDate,paymentchange:this.paymentChange,insertPayment:this.insertPayment,stripePayment:this.stripePayment,couponApply:this.couponApply,currentdate:gs})),"grid"==this.state.listgrid&&r().createElement(Gn,(0,w.A)({},a,{view:this.state.listgrid,short:n,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,search:this.handleSearchListing,currentdate:gs})),"gallery"==this.state.listgrid&&r().createElement(Gn,(0,w.A)({},a,{view:"grid",short:n,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,search:this.handleSearchListing,currentdate:gs})),("topten"==this.state.listgrid||"topcontest"==this.state.listgrid)&&r().createElement(Ta,(0,w.A)({},a,{view:"grid",short:n,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,currentdate:gs})),wp.hooks.applyFilters("wpvc_judge_show_top10","",this.props,this.state.listgrid),"rules"==this.state.listgrid&&r().createElement(Ca,(0,w.A)({},a,{short:n,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,currentdate:gs})),("profile"==this.state.listgrid||"profile_screen"==this.state.listgrid)&&r().createElement(Fa,(0,w.A)({},a,{view:"grid",profile_view:this.state.listgrid,short:n,SITE_URL:this.props.SITE_URL,ORIGINAL_URL:this.props.ORIGINAL_URL,CONSTANT:this.props.CONSTANT,valchange:this.handleValueChange,filechange:this.handleFileChange,ediorchange:this.handleValueEditor,checkboxchange:this.handleValueCheckbox,datepickerchange:this.handleValueDate,currentdate:gs})),"list"==this.state.listgrid&&r().createElement(Hn,(0,w.A)({},a,{view:this.state.listgrid,short:n,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,search:this.handleSearchListing,currentdate:gs})),("no_upcoming_contest"==this.props.shortagrument||"no_ended_contest"==this.props.shortagrument)&&r().createElement(Ha,{message:this.props.shortagrument}))}return r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component);const ws=(0,i.Ng)((function(e){return{model:e.wpvcfrontdata}}),{frontsingleimmute:Je,fetchFrontSetting:Te,updateFrontData:Ze,insertPayment:Ie,stripePayment:xe,couponApply:Le,frontimmute:Xe,fetchposts:Me,fetchjudgetopten:Be,Userlogout:ze})((0,h.CI)("translations")(fs));var As=o(10467),ys=o(54756),bs=o.n(ys),Es=o(74229);function Ts(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ts=function(){return!!e})()}var ks=wp.element,Ms=(ks.render,ks.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),(o=(0,b.A)(n,Ts()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s))).state={anchorEl:"",open:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props.post,t=this.props.settings.color,o=t.votes_cont_title_font_size,n=t.votes_cont_title_color_hover_grid;if(e){var a=null!=e.popup_image?e.popup_image:e.featured_image_url,s=e.img_contest,i=null;return null!=s&&"video"==s?i=this.props.singlepost.custom_fields_value["contestant-ow_video_url"]:null!=s&&"music"==s&&null==(i=this.props.singlepost.custom_fields_value["contestant-ow_music_url_link"])&&(i=this.props.singlepost.custom_fields_value["contestant-ow_music_url"]),r().createElement(Q.A,{onClose:this.props.handlemodal,className:"wpvc_contestant_popup_container","aria-labelledby":"
1customized-dialog-title",open:this.props.open_val},r().createElement(ce.A,{component:"div",className:"wpvc_contestant_popup_title",onClose:this.props.handlemodal},r().createElement(C.A,{variant:"h5",className:"wpvc_grid_header",style:{fontSize:o+"px",color:n}},e.post_title),r().createElement(_e.A,{"aria-label":"close",onClick:this.props.handlemodal},r().createElement(de.A,null))),r().createElement(K.A,{dividers:!0,className:"wpvc_contestant_popup_content wpvc_show_allcontestant_popup_content"},r().createElement(S.A,{container:!0,className:"wpvc_showcontestant_popup_container"},r().createElement(S.A,{className:"wpvc_popup_item_btns",size:12},("photo"==e.img_contest||"essay"==e.img_contest)&&r().createElement("img",{className:"wpvc_contestant_popup_image",src:a,title:e.post_title}),("video"==e.img_contest||"music"==e.img_contest)&&r().createElement(kn(),{url:(0,Fo.encode)(i),playing:!1,width:"100%",height:"300px",controls:!0,className:"music"==s?"wpvc_music_contest_player":"wpvc_video_contest_player"})))))}}}])}(s.Component));const Ss=(0,i.Ng)()((0,h.CI)("translations")(Ms));function Cs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cs=function(){return!!e})()}var Os=wp.element,Ns=(Os.render,Os.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Cs()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){if("object"===(0,qt.A)(o.props.settings)){var e=o.props.settings.color,t=e.votes_button_font_color,n=e.votes_button_bgcolor;o.setState({anch_font:t,anchor_btn:n,link_font:t,link_btn:n})}})),(0,p.A)(o,"toggleHovertwo",(function(e,t,n){return function(){"anchr_button"==n?o.setState({anch_font:e,anchor_btn:t}):o.setState({link_font:e,link_btn:t})}})),(0,p.A)(o,"toggleleavetwo",(function(e,t,n){return function(){"anchr_button"==n?o.setState({anch_font:e,anchor_btn:t}):o.setState({link_font:e,link_btn:t})}})),(0,p.A)(o,"handlepopup",(function(){o.setState({modalopen:!0})})),(0,p.A)(o,"handleClose",(function(e){o.setState({modalopen:!1})})),o.state={anchor_btn:"",anch_font:"",link_btn:"",link_fnt:"",modalopen:!1},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props.settings.color,o=t.votes_button_font_size,n=t.votes_button_font_color,a=t.votes_button_font_color_hover,s=t.votes_button_bgcolor,i=t.votes_button_bgcolor_hover,l=this.props,c=this.props.indexpost;return r().createElement(r().Fragment,null,r().createElement(S.A,{size:4},r().createElement(_e.A,{color:"primary",style:{fontSize:o+"px",color:this.state.anch_font,background:this.state.anchor_btn},onMouseOver:this.toggleHovertwo(a,i,"anchr_button"),onMouseLeave:this.toggleleavetwo(n,s,"anchr_button"),href:this.props.singlepost.link},r().createElement(Es.A,null))),r().createElement(S.A,{size:4},r().createElement(_e.A,{color:"primary",style:{fontSize:o+"px",color:this.state.link_font,background:this.state.link_btn},onMouseOver:this.toggleHovertwo(a,i,"link_button"),onMouseLeave:this.toggleleavetwo(n,s,"link_button"),onClick:function(){return e.handlepopup()}},r().createElement(co.A,null))),r().createElement(Ss,(0,w.A)({},l,{post:this.props.singlepost,open_val:this.state.modalopen,handlemodal:this.handleClose,post_index_val:c})))}}])}(s.Component));const Ds=(0,i.Ng)()((0,h.CI)("translations")(Ns));function Is(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Is=function(){return!!e})()}var xs=wp.element,Ls=(xs.render,xs.useState,null),zs=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Is()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentWillUnmount",(function(){o._isMounted=!1})),(0,p.A)(o,"componentDidMount",(function(){o._isMounted=!0,o.setState({wait:1}),o.handleUpdateposts()})),(0,p.A)(o,"handleUpdateposts",function(){var e=(0,As.A)(bs().mark((function e(t,n,a,s,r){var i,l;return bs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.props.term_id||!o.props.posts){e.next=3;break}return o.setState({wait:0}),e.abrupt("return");case 3:a=null!=a&&void 0!==a?a:1,void 0!==t&&0!=t||void 0!==n&&0!=n||void 0!==r&&""!=r?((i=o.props.short).search_text=void 0!==r?r:"","new"==n&&(i.orderby="date",i.order="desc"),"old"==n&&(i.orderby="date",i.order="asc"),l=null,void 0!==t&&0!=t&&(l=t),o.props.fetchallposts(o.props.SITE_URL,l,i,a,s).then((function(e){o._isMounted&&o.setState({wait:0})}))):o.props.fetchallposts(o.props.SITE_URL,null,o.props.short,a,s).then((function(e){o._isMounted&&o.setState({wait:0})}));case 5:case"end":return e.stop()}}),e)})));return function(t,o,n,a,s){return e.apply(this,arguments)}}()),(0,p.A)(o,"pagination",(function(e,t){Number.isInteger(t)||(t=e.target.value),o.props.frontimmute("allpaginateval",t),o.handleUpdateposts(o.props.category_term,o.props.sort_order,t).then((function(e){o._isMounted&&(o.setState({page_number:t}),o.contestantsContainer.current.scrollIntoView({behavior:"smooth"}))}))})),(0,p.A)(o,"paginationbtn",(function(e,t){"button"==e&&(t+=1),o.handleUpdateposts(o.props.category_term,o.props.sort_order,t,"load").then((function(e){o._isMounted&&o.setState({page_number:t})}))})),o._isMounted=!1,o.state={anchorEl:"",wait:1,page_number:1,gtitle_color:"",listgrid:"grid"},o.contestantsContainer=r().createRef(),o}
1return(0,T.A)(t,e),(0,y.A)(t,[{key:"componentDidUpdate",value:function(e,t){e.category_term===this.props.category_term&&e.sort_order===this.props.sort_order&&e.search_text===this.props.search_text||(this.setState({wait:1}),this.handleUpdateposts(this.props.category_term,this.props.sort_order,null,"",this.props.search_text))}},{key:"render",value:function(){var e=this,t=this.props.t,o=this.props.settings.color,n=o.votes_cont_title_font_size,a=o.votes_cont_title_color_hover,s=o.box_bgcolor,i=this.props.post.posts?this.props.post.posts:this.props.posts,l=this.props;if(void 0!==this.props.criticalError)return r().createElement(as,{msg:this.props.criticalError});if(null!=i&&"object"===(0,qt.A)(i)&&i.length>0&&1!=this.state.wait){Ls=new Date(i.current_date);var c=i;return l.term_id&&(c=i.filter((function(e){return e.term_id==l.term_id}))),r().createElement(S.A,{container:!0,className:"wpvc_showcontestant_container",ref:this.contestantsContainer},r().createElement(S.A,{container:!0,size:12,direction:"row",spacing:3,className:"wpvc_show_style"},c.map((function(t,o){var c,p,u,_=o;return l.term_id&&(_=i.findIndex((function(e){return e.id===t.id}))),r().createElement(S.A,{key:o,className:"on"===(null===(c=t.allcatoption)||void 0===c||null===(c=c.style)||void 0===c?void 0:c.imageProportion)?"wpvc_show_style_row wpvc_image_proportion":"wpvc_show_style_row",size:{xs:"on"===(null===(p=t.allcatoption)||void 0===p||null===(p=p.style)||void 0===p?void 0:p.imageProportion)?"auto":12,md:(null===(u=t.allcatoption)||void 0===u||null===(u=u.style)||void 0===u||u.imageProportion,4)}},r().createElement(Gt.A,{className:"wpvc_card_row wpvc_showall_container",style:{backgroundColor:s||"#FFF"}},r().createElement(Jt.A,{className:"wpvc_card_show_header",title:r().createElement(Ee.A,{underline:"none",style:{fontSize:n+"px",color:a},href:null==t?void 0:t.link},t.post_title)}),("photo"==t.img_contest||"essay"==t.img_contest)&&r().createElement(En,(0,w.A)({},l,{showallpage:1,short:t,singlepost:t,all_contest:1,indexpost:_,view:e.props.view})),("video"==t.img_contest||"music"==t.img_contest)&&r().createElement(On,(0,w.A)({},l,{singlepost:t,all_contest:1,indexpost:_,view:e.props.view})),r().createElement(Wt.A,{disableSpacing:!0},r().createElement(S.A,{container:!0,size:12,direction:"row"},r().createElement(S.A,{size:8},r().createElement(S.A,{container:!0,className:"wpvc_allcontest_action",direction:"row"},"ended"!=t.vote_button_status&&"not_started"!=t.vote_button_status&&r().createElement(sn,(0,w.A)({},l,{singlepost:t,indexpost:_,view:e.state.listgrid,allcontest:1,termid:t.term_id,currentdate:Ls,wait:e.state.wait})),r().createElement(Ds,(0,w.A)({},l,{singlepost:t,indexpost:_,view:e.state.listgrid,allcontest:1,termid:t.term_id})))),r().createElement(S.A,{className:"wpvc_card_allcontest_actions",size:4},r().createElement(C.A,{className:"wpvc_card_show_actions_single"},r().createElement(Aa.A,null),r().createElement("span",null,t.votes_viewers)),r().createElement(C.A,{className:"wpvc_card_show_actions_single"},r().createElement(fo.A,null),r().createElement("span",null,t.votes_count)))))))})),0==c.length&&r().createElement(S.A,{container:!0,className:"wpvc_hr_contestants"},r().createElement(C.A,{align:"center",variant:"h6",component:"h6"},t("no_contestants_found"))),r().createElement(Pn,(0,w.A)({},l,{pagenumber:this.state.page_number,changepagin:this.pagination,changepaginbtn:this.paginationbtn,select_value:this.props.allpaginateval}))))}return"perpage"==i||i&&i.current_date&&1!=this.state.wait||this.props.index>0?"":r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component);const Rs=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{buyvotesPayment:Pe,fetchallposts:ke,frontimmute:Xe})((0,h.CI)("translations")(zs));function js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(js=function(){return!!e})()}var Ps=wp.element,Us=(Ps.render,Ps.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),(o=(0,b.A)(n,js()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s))).state={profilefontcolor:null,profilehover_back:null},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props.values,t="";if(void 0!==e){var o=e.taxonomy?e.taxonomy:[];t=Object.keys(o).map((function(e){return r().createElement(Y.A,{disableGutters:!0,dense:!0,className:"wpvc_showallterms",key:e,value:o[e].term_id},o[e].category_name)}))}var n=this.props,a=n.t,s=(n.i18n,this.props.settings.color.votes_navigationbgcolor),i=this.props.category_term,l=this.props.sort_order||0,c=this.props.searchtext||"";return r().createElement(S.A,{container:!0,className:"wpvc_showall_navigation"},r().createElement(S.A,{container:!0,className:"wpvc_navigation_bar",size:12},r().createElement(Z.A,{position:"static",className:"wpvc_app_bar",style:{backgroundColor:s},enableColorOnDark:!0}
1,r().createElement(H.A,null,r().createElement(S.A,{container:!0,spacing:2,className:"wpvc_navigation_show_all_grid",size:12},r().createElement(S.A,{className:"wpvc_label_grid",size:{md:4,xs:12}},r().createElement(Ae.A,{className:"wpvc_form_control_ad"},r().createElement($.A,{type:"text",name:"title",className:"wpvc_text_navigation",value:c,onChange:this.props.searchchange("showall_form"),slotProps:{input:{endAdornment:r().createElement(go.A,{position:"end",className:"wpvc_allcontest_search"},r().createElement(_e.A,{onClick:this.props.searchclick("showall_form")},r().createElement(re.A,null)))}}}))),r().createElement(S.A,{className:"wpvc_label_grid",size:{md:4,xs:12}},r().createElement(Ae.A,{className:"wpvc_form_control_ad"},r().createElement(ut.A,{variant:"standard",name:"sort_order",className:"wpvc_text_navigation",value:l,onChange:this.props.sortchange("showall_form")},r().createElement(Y.A,{value:0},a("sort")),r().createElement(Y.A,{value:"new"},a("newest")),r().createElement(Y.A,{value:"old"},a("oldest"))))),r().createElement(S.A,{className:"wpvc_label_grid",size:{md:4,xs:12}},r().createElement(Ae.A,{className:"wpvc_form_control_ad"},r().createElement(ut.A,{variant:"standard",name:"category_term",className:"wpvc_text_navigation",MenuProps:{getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"left"},className:"wpvc_showall_modal"},onChange:this.props.catchange("showall_form"),value:i},r().createElement(Y.A,{disableGutters:!0,dense:!0,className:"wpvc_showallterms",value:"0"},a("all_categories_select")),t||r().createElement(Y.A,{value:key},a("select"))))))))))}}])}(s.Component));const Vs=(0,i.Ng)()((0,h.CI)("translations")(Us));function Bs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bs=function(){return!!e})()}var qs=wp.element,Gs=(qs.render,qs.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Bs()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1}),o.props.fetchFrontSetting(o.props.SITE_URL),setTimeout(function(){this.setState({wait:0})}.bind(o),1e3)})),(0,p.A)(o,"handleCategoryChange",(function(e){return function(e){o.props.frontimmute(e.target.name,e.target.value)}})),(0,p.A)(o,"handleSortChange",(function(e){return function(e){o.props.frontimmute(e.target.name,e.target.value)}})),(0,p.A)(o,"handleSearchChange",(function(e){return function(e){var t=e.target.value;""==t&&o.props.frontimmute("search_text",t),o.setState({search_text:t})}})),(0,p.A)(o,"handleSearchClick",(function(e){return function(e){o.props.frontimmute("search_text",o.state.search_text)}})),o.state={language:"en",listgrid:"grid",wait:1,form_val:null,short:o.props.shortagrument,search_text:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props,t=(e.t,e.i18n,this.props.shortagrument),o=this.props.model;if(o&&1!=this.state.wait){var n=this.props.model.settings.color;return r().createElement(ss.A,{className:"wpvc_showcontestant_container"},null!=this.props.shortagrument.title&&r().createElement(wa,{short:t}),r().createElement(Vs,(0,w.A)({},o,n,{short:t,values:o,searchtext:this.state.search_text,catchange:this.handleCategoryChange,sortchange:this.handleSortChange,searchchange:this.handleSearchChange,searchclick:this.handleSearchClick})),r().createElement(Rs,(0,w.A)({},o,{view:this.state.listgrid,short:t,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT})))}return r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const Fs=(0,i.Ng)((function(e){return{model:e.wpvcfrontdata}}),{frontimmute:Xe,fetchFrontSetting:Te,updateFrontData:Ze,insertPayment:Ie,stripePayment:xe,couponApply:Le})((0,h.CI)("translations")(Gs));function Ws(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ws=function(){return!!e})()}var Ys=wp.element,Zs=(Ys.render,Ys.useState,null),Hs=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Ws()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1}),o.props.fetchFrontSetting(o.props.SITE_URL,o.props.shortagrument.id).then((function(e){if("grid"==o.state.listgrid){var t,n,a="column"==((null===(t=e.selcategoryoptions)||void 0===t||null===(t=t.style)||void 0===t?void 0:t.direction)||(null===(n=e.settings)||void 0===n||null===(n=n.style)||void 0===n?void 0:n.direction))?"list":"grid";o.setState({listgrid:a})}})),void 0!==o.props.shortagrument&&o.setState({listgrid:o.props.shortagrument.view}),o.setState({wait:0})})),(0,p.A)(o,"handleGrid",(function(e){o.setState({wait:1}),o.setState({listgrid:e}),o.setState({wait:0})})),(0,p.A)(o,"handletopten",(function(e){o.setState({wait:1}),o.setState({listgrid:e}),o.setState({wait:0})})),(0,p.A)(o,"handleLimitClose",(function(){o.setState({setlimit:!1})}
1)),(0,p.A)(o,"handleform",(function(e){o.setState({wait:1}),!0===o.handleLimitCheck()?o.setState({setlimit:!0}):"submit_form"==o.state.form_val?o.setState({form_val:""}):o.setState({form_val:e}),o.setState({wait:0})})),(0,p.A)(o,"handleLimitCheck",(function(){var e=o.props.model.entrycount,t=o.props.shortagrument.allcatoption.vote_contest_entry_person;return null!==e&&0!=t&&null!==t&&parseInt(e)>=parseInt(t)})),(0,p.A)(o,"handlegallery",(function(e){o.setState({wait:1}),o.setState({listgrid:e}),o.setState({wait:0})})),(0,p.A)(o,"handlerules",(function(e){o.setState({wait:1}),"rules"==o.state.listgrid?o.setState({listgrid:""}):o.setState({listgrid:e}),o.setState({wait:0})})),(0,p.A)(o,"handleValueChange",(function(e){return function(t){o.props.frontsingleimmute(e,t.target.name,t.target.value)}})),(0,p.A)(o,"handleFileChange",(function(e){return function(t){var n=t.target.files[0];o.props.frontsingleimmute(e,t.target.name,n)}})),(0,p.A)(o,"handleValueDate",(function(e){return function(t){var n=e.split("--");if(n.length>=1){var a=t;o.props.frontsingleimmute(n[0],n[1],a)}}})),(0,p.A)(o,"handleValueCheckbox",(function(e){return function(t,n){var a=t.target.name,s=o.props.model.contestant_form[a];if(n)if(""==s)o.props.frontsingleimmute(e,t.target.name,t.target.value);else{var r=s+","+t.target.value;o.props.frontsingleimmute(e,t.target.name,r)}else if(""!=s){var i=s.replace(","+t.target.value,"").replace(t.target.value+",","").replace(t.target.value,"");o.props.frontsingleimmute(e,t.target.name,i)}}})),(0,p.A)(o,"handleValueEditor",(function(e){return function(t){var n=void 0===t.srcElement?t:t.srcElement.innerHTML;o.props.frontsingleimmute("contestant_form",e,n)}})),(0,p.A)(o,"paymentChange",(function(e,t){o.props.updateFrontData(e,t)})),(0,p.A)(o,"insertPayment",(function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";o.props.insertPayment(o.props.SITE_URL,e,t,n,a)})),(0,p.A)(o,"stripePayment",(function(e){o.props.stripePayment(o.props.SITE_URL,e)})),(0,p.A)(o,"couponApply",(function(e,t,n){return o.props.couponApply(o.props.SITE_URL,e,t,n)})),(0,p.A)(o,"handleSearchListing",(function(){var e="";return void 0!==o.props.model.wpvc_search&&(e=o.props.model.wpvc_search),e})),(0,p.A)(o,"handleDrawer",(function(e){o.props.frontimmute("drawer",e)})),o.state={language:"en",listgrid:"grid",wait:1,form_val:null,short:o.props.shortagrument,setlimit:!1},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e,t=this,o=this.props.t;if(1==(null===(e=this.props)||void 0===e||null===(e=e.model)||void 0===e?void 0:e.term_not_exists))return o("no_category_exists");var n=this.props.shortagrument,a=this.props.model,s=n.onlyloggedsubmit,i=n.user_logged;if(a&&1!=this.state.wait){var l,c,p=this.props.model.settings.color;Zs=new Date(a.current_date),l="submit_form"==this.state.form_val||"on"==n.openform||"1"==n.displayform?1:0,c=!1===this.handleLimitCheck()?1:0;var u=n.showcontestants,_=1!=s||0!=i||"on"!=n.openform&&"1"!=n.displayform?0:1;return r().createElement(ss.A,{className:"wpvc_showcontestant_container"},r().createElement(rs.A,{open:this.state.setlimit,autoHideDuration:6e3,onClose:this.handleLimitClose,anchorOrigin:{vertical:"bottom",horizontal:"right"}},r().createElement(ia.A,{className:"wpvc_max_limit",variant:"filled",onClose:this.props.handleLimitClose,severity:"error"},o("you_have_reach_limit"))),1==this.props.shortagrument.navbar&&r().createElement(Bt,(0,w.A)({},a,p,{SITE_URL:this.props.SITE_URL,short:n,handleDrawer:this.handleDrawer,handlelogout:function(){return t.props.Userlogout(t.props.SITE_URL)},handleview:this.handleGrid,handleform:this.handleform,handlerules:this.handlerules,handletopten:this.handletopten,view:this.state.listgrid,hide_grid:u})),1==_&&r().createElement("div",{className:"wpvc_not_loggedin"},r().createElement(es,(0,w.A)({},a,{short:n,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,ORIGINAL_URL:this.props.ORIGINAL_URL}))),1==l&&1==c&&0==_&&r().createElement(ha,(0,w.A)({},a,{short:n,SITE_URL:this.props.SITE_URL,ORIGINAL_URL:this.props.ORIGINAL_URL,valchange:this.handleValueChange,filechange:this.handleFileChange,ediorchange:this.handleValueEditor,checkboxchange:this.handleValueCheckbox,datepickerchange:this.handleValueDate,paymentchange:this.paymentChange,insertPayment:this.insertPayment,stripePayment:this.stripePayment,couponApply:this.couponApply,currentdate:Zs})),"rules"==this.state.listgrid&&r().createElement(Ca,(0,w.A)({},a,{short:n,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT})),"grid"==this.state.listgrid&&1==u&&r().createElement(Gn,(0,w.A)({},a,{view:this.state.listgrid,short:n,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,search:this.handleSearchListing,currentdate:Zs})),"list"==this.state.listgrid&&1==u&&r().createElement(Hn,(0,w.A)({},a,{view:this.state.listgrid,short:n,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,search:this.handleSearchListing,currentdate:Zs})),wp.hooks.applyFilters("wpvc_judge_show_top10","",this.props,this.state.listgrid))}return r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component);const Js=(0,i.Ng)((function(e){return{model:e.wpvcfrontdata}}),{frontsingleimmute:Je,fetchFrontSetting:Te,updateFrontData:Ze,insertPayment:Ie,stripePayment:xe,couponApply:Le,frontimmute:Xe,fetchjudgetopten:Be,Userlogout:ze})((0,h.CI)("translations")(Hs));function Xs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xs=function(){return!!e})()}var Qs=wp.element,Ks=(Qs.render,Qs.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Xs()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1}),o.props.fetchFrontSetting(o.props.SITE_URL),void 0!==o.props.shortagrument&&o.setState({listgrid:o.props.shortagrument.view}),o.setState({wait:0})})),(0,p.A)(o,"handleGrid",(function(e){o.setState({wait:1}),o.setState({listgrid:e}),o.setState({wait:0})})),(0,p.A)(o,"handleform",(function(e){o.setState({wait:1}),"submit_form"==o.state.form_val?o.setState({form_val:""}):o.setState({form_val:e}),o.setState({wait:0})})),(0,p.A)(o,"handleCategoryChange",(function(e){return function(e){var t=e.target.value;null!=t&&(o.props.fetchFrontSetting(o.props.SITE_URL,t).then((function(t){o.setState({currentcat:t.
1selcategoryoptions});var n=Array.isArray(o.props.model.taxonomy)&&o.props.model.taxonomy.find((function(t){return t.term_id==e.target.value}));if(null!=n){var a=t.entrycount,s=n.vote_contest_entry_person;null!==a&&null!==s&&parseInt(a)>=parseInt(s)?o.setState({checklimit:e.target.value}):o.setState({checklimit:0})}})),o.setState({all_cat_selected:e.target.value}))}})),(0,p.A)(o,"handleValueChange",(function(e){return function(t){o.props.frontsingleimmute(e,t.target.name,t.target.value)}})),(0,p.A)(o,"handleFileChange",(function(e){return function(t){var n=t.target.files[0];o.props.frontsingleimmute(e,t.target.name,n)}})),(0,p.A)(o,"handleValueDate",(function(e){return function(t){var n=e.split("--");if(n.length>=1){var a=t;o.props.frontsingleimmute(n[0],n[1],a)}}})),(0,p.A)(o,"handleValueCheckbox",(function(e){return function(t,n){var a=t.target.name,s=o.props.model.contestant_form[a];if(n)if(""==s)o.props.frontsingleimmute(e,t.target.name,t.target.value);else{var r=s+","+t.target.value;o.props.frontsingleimmute(e,t.target.name,r)}else if(""!=s){var i=s.replace(","+t.target.value,"").replace(t.target.value+",","").replace(t.target.value,"");o.props.frontsingleimmute(e,t.target.name,i)}}})),(0,p.A)(o,"handleValueEditor",(function(e){return function(t){var n=void 0===t.srcElement?t:t.srcElement.innerHTML;o.props.frontsingleimmute("contestant_form",e,n)}})),(0,p.A)(o,"paymentChange",(function(e,t){o.props.updateFrontData(e,t)})),(0,p.A)(o,"insertPayment",(function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";o.props.insertPayment(o.props.SITE_URL,e,t,n,a)})),(0,p.A)(o,"stripePayment",(function(e){o.props.stripePayment(o.props.SITE_URL,e)})),(0,p.A)(o,"couponApply",(function(e,t,n){return o.props.couponApply(o.props.SITE_URL,e,t,n)})),(0,p.A)(o,"handleDrawer",(function(e){o.props.frontimmute("drawer",e)})),o.state={language:"en",listgrid:"grid",wait:0,form_val:null,short:o.props.shortagrument,all_cat_selected:null,checklimit:0,currentcat:""},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=(this.props.t,this.props.shortagrument),o=t.onlyloggedsubmit,n=t.user_logged,a=void 0!==this.props.model?this.props.model:null;if(null!=a&&1!=this.state.wait){var s,i=this.props.model.settings.color,l=new Date(a.current_date);s="submit_form"==this.state.form_val||"on"==t.openform?1:0;var c=t.showcontestants,p=1==o&&0==n&&"on"==t.openform?1:0;return r().createElement(ss.A,{className:"wpvc_showcontestant_container"},1==this.props.shortagrument.navbar&&r().createElement(Bt,(0,w.A)({},a,i,{short:t,handleDrawer:this.handleDrawer,handlelogout:function(){return e.props.Userlogout(e.props.SITE_URL)},SITE_URL:this.props.SITE_URL,handleview:this.handleGrid,handleform:this.handleform,view:this.state.listgrid,hide_grid:c,show_all_rules:0})),1==p&&r().createElement("div",{className:"wpvc_not_loggedin"},r().createElement(es,(0,w.A)({},a,{short:t,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,ORIGINAL_URL:this.props.ORIGINAL_URL}))),1==s&&0==p&&r().createElement(ha,(0,w.A)({},a,{short:t,SITE_URL:this.props.SITE_URL,ORIGINAL_URL:this.props.ORIGINAL_URL,selcategory:this.state.all_cat_selected,currentcat:this.state.currentcat,catchange:this.handleCategoryChange,valchange:this.handleValueChange,filechange:this.handleFileChange,ediorchange:this.handleValueEditor,checkboxchange:this.handleValueCheckbox,datepickerchange:this.handleValueDate,paymentchange:this.paymentChange,insertPayment:this.insertPayment,stripePayment:this.stripePayment,couponApply:this.couponApply,checklimit:this.state.checklimit,currentdate:l})))}return r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const $s=(0,i.Ng)((function(e){return{model:e.wpvcfrontdata}}),{frontsingleimmute:Je,fetchFrontSetting:Te,updateFrontData:Ze,insertPayment:Ie,stripePayment:xe,couponApply:Le,frontimmute:Xe,Userlogout:ze})((0,h.CI)("translations")(Ks));function er(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(er=function(){return!!e})()}var tr=wp.element,or=(tr.render,tr.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,er()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"toggleHover",(function(e,t){return function(){switch(t){case"gallery":o.setState({galleryfontcolor:e,galleryhover_back:o.props.vote_navbar_active_button_background});break;case"topten":o.setState({tenfontcolor:e,tenhover_back:o.props.vote_navbar_active_button_background});break;case"rules":o.setState({rulesfontcolor:e,ruleshover_back:o.props.vote_navbar_active_button_background})}}})),(0,p.A)(o,"toggleleave",(function(e,t){return function(){switch(t){case"gallery":o.setState({galleryfontcolor:e,galleryhover_back:null});break;case"topten":o.setState({tenfontcolor:e,tenhover_back:null});break;case"rules":o.setState({rulesfontcolor:e,ruleshover_back:null})}}})),(0,p.A)(o,"componentDidMount",(function(){o.setState({galleryfontcolor:o.props.votes_navigation_text_color,tenfontcolor:o.props.votes_navigation_text_color,rulesfontcolor:o.props.votes_navigation_text_color})}
1)),o.state={fontcolor:"",hover_back:"",listcolor:"",gridcolor:"",btn_number:"",show_login:!1,galleryfontcolor:null,galleryhover_back:null,tenfontcolor:null,tenhover_back:null,formfontcolor:null,formhover_back:null,rulesfontcolor:null,ruleshover_back:null,profilefontcolor:null,profilehover_back:null},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props,t=e.t,o=(e.i18n,this.props),n=o.votes_navigation_font_size,a=o.votes_navigation_text_color,s=o.votes_navigation_text_color_hover,i=o.votes_navigationbgcolor,l=o.vote_navbar_active_button_background,c=this.props,p=c.short.allcatoption.middle_custom_navigation?c.short.allcatoption.middle_custom_navigation:null,u=void 0!==c.short?c.short.contest_url:null,_=void 0!==c.post_single?c.post_single.term_name:null;return r().createElement(S.A,{container:!0,className:"wpvc_single_navigation"},r().createElement(S.A,{container:!0,size:12,className:"wpvc_navigation_bar"},r().createElement(Z.A,{position:"static",className:"wpvc_app_bar",style:{backgroundColor:i},enableColorOnDark:!0}
1,r().createElement(H.A,null,r().createElement(S.A,{container:!0,className:"wpvc_single_navigation",size:{xs:6,md:9}},1==this.props.short.showgallery&&r().createElement(B.A,{title:t("gallery"),placement:"top-start"},r().createElement(q.A,{className:"wpvc_navigation",onMouseOver:this.toggleHover(s,"gallery"),onMouseLeave:this.toggleleave(a,"gallery"),startIcon:r().createElement(oe.A,null),size:"small",style:{fontSize:n+"px",color:"gallery"==this.props.view?s:this.state.galleryfontcolor,backgroundColor:"gallery"==this.props.view?l:this.state.galleryhover_back},href:(p||u)+"?view=contest-gallery"},r().createElement("span",{className:"wpvc_nav_text"},t("gallery")))),1==this.props.short.showtop||"on"==this.props.short.showtop&&r().createElement(B.A,{title:t("top_ten"),placement:"top-start"},r().createElement(q.A,{className:"wpvc_navigation",onMouseOver:this.toggleHover(s,"topten"),onMouseLeave:this.toggleleave(a,"topten"),startIcon:r().createElement(ne.A,null),size:"small",style:{fontSize:n+"px",color:"topten"==this.props.view?s:this.state.tenfontcolor,backgroundColor:"topten"==this.props.view?l:this.state.tenhover_back},href:(p||u)+"?view=contest-topten"},r().createElement("span",{className:"wpvc_nav_text"},t("top_ten")))),1==this.props.short.showrules&&r().createElement(B.A,{title:t("rules"),placement:"top-start"},r().createElement(q.A,{className:"wpvc_navigation",onMouseOver:this.toggleHover(s,"rules"),onMouseLeave:this.toggleleave(a,"rules"),startIcon:r().createElement(ae.A,null),size:"small",style:{fontSize:n+"px",color:"rules"==this.props.view?s:this.state.rulesfontcolor,backgroundColor:"rules"==this.props.view?l:this.state.ruleshover_back},href:(p||u)+"?view=contest-rules"},r().createElement("span",{className:"wpvc_nav_text"},t("rules"))))),r().createElement(S.A,{size:{xs:6,md:3}},r().createElement(C.A,{className:"wpvc_single_top_category"},t("category")+" : "+_))))))}}])}(s.Component));const nr=(0,i.Ng)()((0,h.CI)("translations")(or));var ar=o(17965),sr=o.n(ar),rr=o(67626);function ir(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ir=function(){return!!e})()}var lr=wp.element,cr=(lr.render,lr.useState,null),pr=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,ir()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.props.fetchsinglepost(o.props.SITE_URL,o.props.contestant_id)})),(0,p.A)(o,"getauthor",(function(e){o.setState({author:e})})),(0,p.A)(o,"clearauthor",(function(e){o.setState({author:""})})),(0,p.A)(o,"shareSocial",(function(){o.setState((function(e){return{opensocial:!e.opensocial}}))})),(0,p.A)(o,"copyshareSocial",(function(e){o.setState((function(e){return{copied:!e.copied}})),sr()(e),document.execCommand("copy")})),(0,p.A)(o,"getVoteButtonText",(function(e){o.setState({butn_msg:e})})),o.state={anchorEl:"",open:"",opensocial:!1,copied:!1,author:"",butn_msg:null},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props,o=t.t,n=(t.i18n,this.props.post.post_single);cr=new Date(this.props.post.current_date);var a=this.props,s=this.props.settings.color,i=s.votes_button_bgcolor,l=s.votes_button_font_color,c=null,p=a.settings.common.single_page_title,u=null;void 0!==a.custom_field&&(a.custom_field.map((function(e,t){"contestant-desc"===e.system_name&&(c=e)})),c&&(c=c.admin_view)),void 0!==a.short.allcatoption&&(u=this.props.short.contest_type);var _=null;return void 0!==this.props.short.allcatoption&&(_=this.props.short.allcatoption.style?this.props.short.allcatoption.style.vote_count_showhide:void 0!==this.props.settings.style?this.props.settings.style.vote_count_showhide:"on"),void 0!==n?r().createElement(S.A,{container:!0,className:"wpvc_showcontestant_container"},r().createElement(S.A,{container:!0,size:12,direction:"row",className:"wpvc_show_style"},r().createElement(S.A,{className:"wpvc_show_style_row",size:12},r().createElement(Gt.A,{className:"wpvc_card_row"},r().createElement(sn,(0,w.A)({},a,{singlepost:n,single_page:"on",indexpost:"null",view:"single",currentdate:cr,setButtonText:this.getVoteButtonText,wait:0})),"on"==p&&r().createElement("div",{className:"wpvc_single_contestant_title"},r().createElement($t,(0,w.A)({},a,{singlepost:n,view:this.props.view,changeauthor:this.getauthor}))),null!=u&&("photo"==u||"essay"==u)&&r().createElement(En,(0,w.A)({},a,{singlepost:n,indexpost:"null",view:"single",currentdate:cr,setButtonText:this.getVoteButtonText,butn_msg:this.state.butn_msg})),null!=u&&("video"==u||"music"==u)&&r().createElement(On,(0,w.A)({},a,{singlepost:n,indexpost:"null",view:"single",currentdate:cr})),r().createElement(Ft.A,{className:"wpvc_card_content_row"},"off"==p&&r().createElement($t,(0,w.A)({},a,{singlepost:n,view:this.props.view,changeauthor:this.getauthor})),r().createElement(no,(0,w.A)({},a,{singlepost:n,view:this.props.view,changeauthor:this.getauthor})),"N"!=c&&""!=c&&r().createElement(io,(0,w.A)({},a,{singlepost:n,view:"single"})),r().createElement(hn,(0,w.A)({},a,{singlepost:n,view:"single",currentdate:cr}))),r().createElement(Wt.A,{style:{padding:0},className:"wpvc_card_actions_row"},r().createElement(S.A,{className:"wpvc_share_single_header",container:!0,style:{justifyContent:"space-between",background:i,color:l}},r().createElement(S.A,{style:{padding:16}},"on"===_&&r().createElement(C.A,{className:"wpvc_card_actions_single"},r().createElement(fo.A,null),r().createElement("span",null,n.votes_count)),r().createElement(C.A,{className:"wpvc_card_actions_single"},r().createElement(Aa.A,null),r().createElement("span",null,n.votes_viewers))),r().createElement(S.A,{style:{padding:16}},r().createElement(Ee.A,{color:"inherit",href:void 0,className:"wpvc_share_social_single",onClick:this.shareSocial},r().createElement("span",null,o("share_contestant")),r().createElement(Ra.A,null))),1==this.state.opensocial&&r().createElement(S.A,{container:!0,size:12,direction:"row",justifyContent:"center",alignItems:"center",style:{color:l},className:"wpvc_single_social"},r().createElement(S.A,{className:"wpvc_single_social_item",size:12},r().createElement(tn,(0,w.A)({},a,{singlepost:n,view:this.props.view}))),r().createElement(S.A,{className:"wpvc_single_copy_link",size:12},this.state.copied&&r().createElement(C.A,{className:"wpvc_copied"}
1,o("copied")),r().createElement(q.A,{variant:"contained",className:"wpvc_share_social_button",color:"primary",startIcon:r().createElement(rr.A,null),onClick:function(){e.copyshareSocial(n.link)}},n.link)))))))),""!=this.state.author&&r().createElement(Gn,(0,w.A)({},a,{view:"grid",short:a.short,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,search:"",author_id:this.state.author,authorfunc:this.clearauthor}))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component);const ur=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{buyvotesPayment:Pe,fetchsinglepost:Ne,fetchposts:Me})((0,h.CI)("translations")(pr));function _r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_r=function(){return!!e})()}var dr=wp.element,mr=(dr.render,dr.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,_r()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:0}),o.props.fetchFrontSetting(o.props.SITE_URL,o.props.shortagrument.id),void 0!==o.props.shortagrument&&o.setState({listgrid:o.props.shortagrument.view}),o.setState({wait:1})})),(0,p.A)(o,"handleGrid",(function(e){o.setState({wait:1}),o.setState({listgrid:e}),o.setState({wait:0})})),(0,p.A)(o,"handleform",(function(e){o.setState({wait:1}),"submit_form"==o.state.form_val?o.setState({form_val:""}):o.setState({form_val:e}),o.setState({wait:0})})),o.state={language:"en",listgrid:"grid",form_val:null,short:o.props.shortagrument},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props.shortagrument,t=this.props.model,o=this.props.SINGLEPOST;if(t&&void 0!==o){var n=null!==(0,qt.A)(this.props.model)?this.props.model.settings.color:null;return r().createElement(ss.A,{className:"wpvc_showcontestant_container"},r().createElement(nr,(0,w.A)({},t,n,{short:e,view:this.state.listgrid})),r().createElement(ur,(0,w.A)({},t,{view:this.state.listgrid,short:e,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,contestant_id:o})),wp.hooks.applyFilters("wpvc_single_contestant_judge","",this.props))}return r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const hr=(0,i.Ng)((function(e){return{model:e.wpvcfrontdata}}),{frontsingleimmute:Je,fetchFrontSetting:Te,dataJudgeFetch:Ue,dataJudgeInsert:Ve})((0,h.CI)("translations")(mr));function vr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vr=function(){return!!e})()}var gr=wp.element,fr=(gr.render,gr.useState,null),wr=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,vr()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.props.fetchsinglepost(o.props.SITE_URL,o.props.contestant_id)})),(0,p.A)(o,"getauthor",(function(e){o.setState({author:e})})),(0,p.A)(o,"clearauthor",(function(e){o.setState({author:""})})),(0,p.A)(o,"shareSocial",(function(){o.setState((function(e){return{opensocial:!e.opensocial}}))})),(0,p.A)(o,"copyshareSocial",(function(e){o.setState((function(e){return{copied:!e.copied}})),sr()(e),document.execCommand("copy")})),(0,p.A)(o,"getVoteButtonText",(function(e){o.setState({butn_msg:e})})),o.state={anchorEl:"",open:"",opensocial:!1,copied:!1,author:"",butn_msg:null},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props.t,o=this.props.post.post_single;fr=new Date(this.props.post.current_date);var n=this.props,a=this.props.settings.color,s=a.votes_button_bgcolor,i=a.votes_button_font_color,l=null,c=n.settings.common.single_page_title,p=null,u=this.props.templatepart;void 0!==n.custom_field&&(n.custom_field.map((function(e,t){"contestant-desc"===e.system_name&&(l=e)})),l&&(l=l.admin_view)),void 0!==n.short.allcatoption&&(p=this.props.short.contest_type);var _=null;return void 0!==this.props.short.allcatoption&&(_=this.props.short.allcatoption.style?this.props.short.allcatoption.style.vote_count_showhide:void 0!==this.props.settings.style?this.props.settings.style.vote_count_showhide:"on"),void 0!==o?r().createElement(S.A,{container:!0,className:"wpvc_splitsingle_container"},r().createElement(S.A,{container:!0,size:12,direction:"row",className:"wpvc_show_style"},"header"==u&&r().createElement(S.A,{className:"wpvc_show_style_row",size:12},r().createElement(sn,(0,w.A)({},n,{singlepost:o,single_page:"on",indexpost:"null",view:"single",currentdate:fr,setButtonText:this.getVoteButtonText,wait:0})),"on"==c&&r().createElement("div",{className:"wpvc_single_contestant_title"},r().createElement($t,(0,w.A)({},n,{singlepost:o,view:this.props.view,changeauthor:this.getauthor}))),null!=p&&("photo"==p||"essay"==p)&&r().createElement(En,(0,w.A)({},n,{singlepost:o,indexpost:"null",view:"single",setButtonText:this.getVoteButtonText,butn_msg:this.state.butn_msg})),null!=p&&("video"==p||"music"==p)&&r().createElement(On,(0,w.A)({},n,{singlepost:o,indexpost:"null",view:"single"})),"off"==c&&r().createElement($t,(0,w.A)({},n,{singlepost:o,view:this.props.view,changeauthor:this.getauthor})),r().createElement(no,(0,w.A)({},n,{singlepost:o,view:this.props.view,changeauthor:this.getauthor}))),"footer"==u&&r().createElement(S.A,{className:"wpvc_show_style_row",size:12},r().createElement(hn,(0,w.A)({},n,{singlepost:o,view:"single",currentdate:fr})),r().createElement(S.A,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"flex-end",style:{background:s,color:i},spacing:4},r().createElement(S.A,{size:{xs:9,md:10}},"on"===_&&r().createElement(C.A,{className:"wpvc_card_actions_single"},r().createElement(fo.A,null),r().createElement("span",null,o.votes_count)),r().createElement(C.A,{className:"wpvc_card_actions_single"},r().createElement(Aa.A,null),r().createElement("span",null,o.votes_viewers))),r().createElement(S.A,{size:{xs:3,md:2}},r().createElement(Ee.A,{href:void 0,className:"wpvc_share_social_single",onClick:this.shareSocial},r().createElement("span",null,t("share_contestant")),r().createElement(Ra.A,null))),1==this.state.opensocial&&r().createElement(S.A,{container:!0,size:12,direction:"row",justifyContent:"center",alignItems:"center",style:{color:i},className:"wpvc_single_social"},r().createElement(S.A,{className:"wpvc_single_social_item",size:12},r().createElement(tn,(0,w.A)({},n,{singlepost:o,view:this.props.view}))),r().createElement(S.A,{className:"wpvc_single_copy_link",size:12},this.state.copied&&r().createElement(C.A,{className:"wpvc_copied"},t("copied")),r().createElement(q.A,{variant:"contained",className:"wpvc_share_social_button",color:"primary",startIcon:r().createElement(rr.A,null),onClick:function(){e.copyshareSocial(o.link)}},o.link)))))),""!=this.state.author&&r().createElement(Gn,(0,w.A)({},n,{view:"grid",short:n.short,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,search:"",author_id:this.state.author,authorfunc:this.clearauthor}))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component);const Ar=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{buyvotesPayment:Pe,fetchsinglepost:Ne,fetchposts:Me})((0,h.CI)("translations")(wr));function yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yr=function(){return!!e})()}var br=wp.element,Er=(br.render,br.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,yr()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:0}),o.props.fetchFrontSetting(o.props.SITE_URL,o.props.shortagrument.id),void 0!==o.props.shortagrument&&o.setState({listgrid:o.props.shortagrument.view}),o.setState({wait:1})})),(0,p.A)(o,"handleGrid",(function(e){o.setState({wait:1}),o.setState({listgrid:e}),o.setState({wait:0})})),(0,p.A)(o,"handleform",(function(e){o.setState({wait:1}),"submit_form"==o.state.form_val?o.setState({form_val:""}):o.setState({form_val:e}),o.setState({wait:0})})),o.state={language:"en",listgrid:"grid",form_val:null,short:o.props.shortagrument},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props.shortagrument,t=this.props.model,o=this.props.SINGLEPOST,n=this.props.templatepart;if(t&&void 0!==o){var a=null!==(0,qt.A)(this.props.model)?this.props.model.settings.color:null;return r().createElement(ss.A,{className:"wpvc_singlecontest_container"},"header"==n&&r().createElement(nr,(0,w.A)({},t,a,{short:e,view:this.state.listgrid})),r().createElement(Ar,(0,w.A)({},t,{view:this.state.listgrid,short:e,SITE_URL:this.props.SITE_URL,CONSTANT:this.props.CONSTANT,contestant_id:o,templatepart:this.props.templatepart})),wp.hooks.applyFilters("wpvc_single_contestant_judge","",this.props))}return r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const Tr=(0,i.Ng)((function(e){return{model:e.wpvcfrontdata}}),{frontsingleimmute:Je,fetchFrontSetting:Te,dataJudgeFetch:Ue,dataJudgeInsert:Ve})((0,h.CI)("translations")(Er));function kr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kr=function(){return!!e})()}var Mr=wp.element,Sr=(Mr.render,Mr.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,kr()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1});var e="";""!=o.props.author_id&&void 0!==o.props.author_id&&(o.setState({authorid:o.props.author_id}),e=o.props.author_id),o.props.fetchposts(o.props.SITE_URL,o.props.short.id,o.props.short,1,"","",e),setTimeout(function(){this.setState({wait:0})}.bind(o),1e3)})),o.state={anchorEl:"",wait:0},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props,t=e.t,o=(e.i18n,this.props),n=null;void 0!==this.props.post&&null!=this.props.post&&(n=this.props.post.posts);var a=null;void 0!==o.short.allcatoption&&(a=this.props.short.contest_type);var s=void 0!==o.short.allcatoption?o.short.allcatoption.musicfileenable:null,i="250",l=o.short.dis
1play_photo,c=o.short.display_category,p=o.short.display_author;return null!=n&&"object"===(0,qt.A)(n)&&1!=this.state.wait&&n.length>0?r().createElement(S.A,{container:!0,className:"wpvc_widget_photo_container"},r().createElement(S.A,{container:!0,size:12,direction:"row",className:"wpvc_show_style"},1==c&&r().createElement(C.A,{variant:"h5",className:"wpvc_card_widget_cat_name"},o.short.title),n.map((function(e,o){return r().createElement(S.A,{key:o,className:"wpvc_show_style_row_leader_widget",size:parseInt(12)},r().createElement(Gt.A,{className:"wpvc_card_row"},1==l&&r().createElement("div",null,null!=a&&("photo"==a||"essay"==a)&&r().createElement(Ee.A,{href:e.link,className:"wpvc_image_popup_modal"},r().createElement(lo.A,{className:"wpvc_card_media_row",image:e.featured_image_url,title:e.post_title})),null!=a&&"video"==a&&e.custom_fields_value["contestant-ow_video_url"].includes("www.bitchute.com")&&r().createElement("iframe",{width:"100%",className:"bitchute_video",scrolling:"no",allowFullScreen:!0,height:i,frameborder:"0",src:(0,Fo.encode)(e.custom_fields_value["contestant-ow_video_url"].replace("video","embed"))}),null!=a&&"video"==a&&e.custom_fields_value["contestant-ow_video_url"].includes("www.instagram.com")&&r().createElement("div",{className:"wpvc_instagram_parent_div"},r().createElement("iframe",{className:"wpvc_instagram-media instagram-media-rendered",id:"instagram-embed-"+e.id,src:(0,Fo.encode)(e.custom_fields_value["contestant-ow_video_url"])+"embed/captioned",height:i,frameborder:"0",scrolling:"no",allowtransparency:"true",allowFullScreen:!0})),null!=a&&"video"==a&&e.custom_fields_value["contestant-ow_video_url"].includes("www.tiktok.com")&&r().createElement("div",{className:"wpvc_tiktok_parent_div"},r().createElement("iframe",{className:"tiktok_video",scrolling:"no",allowFullScreen:!0,width:"100%",height:i,frameborder:"0",src:"https://www.tiktok.com/embed/"+new URL(e.custom_fields_value["contestant-ow_video_url"]).pathname.substring(new URL(e.custom_fields_value["contestant-ow_video_url"]).pathname.lastIndexOf("/")+1)})),null!=a&&"video"==a&&!e.custom_fields_value["contestant-ow_video_url"].includes("www.bitchute.com")&&!e.custom_fields_value["contestant-ow_video_url"].includes("www.tiktok.com")&&!e.custom_fields_value["contestant-ow_video_url"].includes("www.instagram.com")&&r().createElement(kn(),{url:(0,Fo.encode)(e.custom_fields_value["contestant-ow_video_url"]),playing:!1,width:"100%",height:i+"px",controls:!0,className:"music"==a?"
1wpvc_music_contest_player":"wpvc_video_contest_player"}),null!=a&&"music"==a&&r().createElement(kn(),{url:"off"==s?(0,Fo.encode)(e.custom_fields_value["contestant-ow_music_url_link"]):(0,Fo.encode)(e.custom_fields_value["contestant-ow_music_url"]),playing:!1,width:"100%",height:"250px",controls:!0,className:"music"==a?"wpvc_music_contest_player":"wpvc_video_contest_player"})),0==l&&r().createElement("div",{className:"wpvc_no_photo_leader_widget"}),r().createElement(S.A,{className:"wpvc_leader_contents"},r().createElement(Ee.A,{className:"wpvc_leader_title",href:e.link},e.post_title),1==p&&r().createElement(C.A,{className:"wpvc_card_widget_author_name"},""!=e.author_name?t("by"):"",e.author_name),r().createElement("div",{className:"wpvc_card_widget_vote_count"},r().createElement("div",{className:"wpvc_card_widget_vote_count_child"},r().createElement("span",null,e.votes_count),r().createElement("span",null,t("votes")))))))})))):""}}])}(s.Component));const Cr=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{frontimmute:Xe,fetchposts:Me,fetchtopten:Se})((0,h.CI)("translations")(Sr));function Or(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Or=function(){return!!e})()}var Nr=wp.element,Dr=(Nr.render,Nr.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Or()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1}),o.props.fetchrecentposts(o.props.SITE_URL,o.props.short),o.setState({wait:0})})),o.state={anchorEl:"",wait:0},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props.t,t=this.props,o=null;void 0!==this.props.post&&null!=this.props.post&&(o=this.props.post.posts);var n=t.short.display_photo,a=t.short.display_category,s=t.short.display_author;return o?r().createElement(S.A,{container:!0,className:"wpvc_widget_photo_container"},r().createElement(S.A,{container:!0,size:12,direction:"row",className:"wpvc_show_style"},o.map((function(t,o){return r().createElement(S.A,{key:o,className:"wpvc_show_style_row_leader_widget",size:parseInt(12)},r().createElement(Gt.A,{className:"wpvc_card_row"},1==n&&r().createElement("div",null,null!=t.img_contest&&("photo"==t.img_contest||"essay"==t.img_contest)&&r().createElement(Ee.A,{href:t.link,className:"wpvc_image_popup_modal"},r().createElement(lo.A,{className:"wpvc_card_media_row",image:t.featured_image_url,title:t.post_title})),null!=t.img_contest&&"video"==t.img_contest&&r().createElement(kn(),{url:(0,Fo.encode)(t.custom_fields_value["contestant-ow_video_url"]),playing:!1,width:"100%",height:"250px",controls:!0,className:"music"==t.img_contest?"wpvc_music_contest_player":"wpvc_video_contest_player"}),null!=t.img_contest&&"music"==t.img_contest&&r().createElement(kn(),{url:""!=t.custom_fields_value["contestant-ow_music_url_link"]?(0,Fo.encode)(t.custom_fields_value["contestant-ow_music_url_link"]):(0,Fo.encode)(t.custom_fields_value["contestant-ow_music_url"]),playing:!1,width:"100%",height:"250px",controls:!0,className:"music"==t.img_contest?"wpvc_music_contest_player":"wpvc_video_contest_player"})),0==n&&r().createElement("div",{className:"wpvc_no_photo_leader_widget"}),r().createElement(S.A,{className:"wpvc_recent_contents"},r().createElement(Ee.A,{className:"wpvc_leader_title",href:t.link},t.post_title),1==s&&r().createElement(C.A,{className:"wpvc_card_widget_author_name"},""!=t.author_name?e("by"):"",t.author_name),1==a&&r().createElement(C.A,{className:"wpvc_card_widget_term_name"},t.term_name))))})))):""}}])}(s.Component));const Ir=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{frontimmutable:He,fetchrecentposts:function(e,t){var o=f.A.get("wpvc_voting_authorize"),n=e+"wp/v2/contestants?status=publish&per_page="+t.showcount+"&page=1&orderby="+t.orderby+"&order="+t.order;return function(e){return fetch(n,{method:"GET",headers:{"Content-Type":"application/json","Authorize-wpvc":o,"Authorize-wpvc-request":"xmlhttprequest"}}).then((function(e){return e.json()})).then((function(t){return e(We({posts:t})),t}))}}})((0,h.CI)("translations")(Dr));function xr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xr=function(){return!!e})()}var Lr=wp.element,zr=(Lr.render,Lr.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),(o=(0,b.A)(n,xr()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s))).state={language:"en"},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props,t=this.props.widget;return r().createElement(ss.A,{className:"wpvc_photoleader_container"},"leader"==t&&r().createElement(Cr,{short:e.shortagrument,SITE_URL:this.props.SITE_URL}),"recent"==t&&r().createElement(Ir,{short:e.shortagrument,SITE_URL:this.props.SITE_URL}))}}])}(s.Component));const Rr=(0,i.Ng)()((0,h.CI)("translations")(zr));function jr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jr=function(){return!!e})()}var Pr=wp.element,Ur=(Pr.render,Pr.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,jr()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1});var e=1;""!=o.props.paginate_value&&(e=o.props.paginate_value),o.props.fetchauthorallprofile(o.props.SITE_URL,o.props.short,e),setTimeout(function(){this.setState({wait:0})}.bind(o),1e3)})),(0,p.A)(o,"pagination",(function(e,t){Number.isInteger(t)||(t=e.target.value),o.props.frontimmute("paginate_value",t),o.setState({wait:1}),o.props.fetchauthorallprofile(o.props.SITE_URL,o.props.short,t,""),o.setState({wait:0,page_number:t}),o.contestantsContainer.current.scrollIntoView({behavior:"smooth"})})),(0,p.A)(o,"paginationbtn",(function(e,t){"button"==e&&(t+=1),o.setState({wait:0}),o.props.fetchauthorallprofile(o.props.SITE_URL,o.props.short,t,"load"),o.setState({wait:0,page_number:t})})),(0,p.A)(o,"handleDeleteContestant",(function(){o.setState({wait:1}),o.props.deleteContestant(o.props.SITE_URL,o.state.delete_val),o.setState({wait:0,modalopen:0}),alert("Contestant Deleted Successfully!"),window.location.reload()})),(0,p.A)(o,"handleEditval",(function(e,t,n){o.props.fetcheditpost(o.props.SITE_URL,e,t),o.setState({edit_val:t,single_post:n}),window.scrollTo(0,0)})),(0,p.A)(o,"handleDelete",(function(e){o.setState({delete_val:e,modalopen:1})})),(0,p.A)(o,"handleClose",(function(){o.setState({modalopen:0})})),(0,p.A)(o,"handleValueChange",(function(e){return function(t){o.props.frontsingleimmute(e,t.target.name,t.target.value)}})),(0,p.A)(o,"handleFileChange",(function(e){return function(t){var n=t.target.files[0];o.props.frontsingleimmute(e,t.target.name,n)}})),(0,p.A)(o,"handleValueDate",(function(e){return function(t){var n=e.split("--");if(n.length>=1){var a=t;o.props.frontsingleimmute(n[0],n[1],a)}}})),(0,p.A)(o,"handleValueCheckbox",(function(e){return function(t,n){var a=t.target.name,s=o.props.model.contestant_form[a];if(n)if(""==s)o.props.frontsingleimmute(e,t.target.name,t.target.value);else{var r=s+","+t.target.value;o.props.frontsingleimmute(e,t.target.name,r)}else if(""!=s){var i=s.replace(","+t.target.value,"").replace(t.target.value+",","").replace(t.target.value,"");o.props.frontsingleimmute(e,t.target.name,i)}}})),(0,p.A)(o,"handleValueEditor",(function(e){return function(t){var n=void 0===t.srcElement?t:t.srcElement.innerHTML;o.props.frontsingleimmute("contestant_form",e,n)}})),o.state={anchorEl:"",modalopen:0,wait:1,single_post:null,edit_val:null,delete_val:null,page_number:1},o.contestantsContainer=r().createRef(),o}
1return(0,T.A)(t,e),(0,y.A)(t,[{key:"componentWillReceiveProps",value:function(e){void 0!==e.deleted&&e.deleted==this.state.delete_val&&(this.setState({delete_val:null}),this.props.fetchauthorallprofile(this.props.SITE_URL,this.props.short))}},{key:"getformatteddate",value:function(e){if(null!=e)return(0,N.Ay)(e,"mmm dd yyyy")}},{key:"calculateVoteTimeLeft",value:function(e){var t=this.props.currentdate;if(t||(t=new Date),null!=e){e=e.replace(/ /g,"T");var o=(0,N.Ay)(e);return new Date(o)-t}return-1}},{key:"render",value:function(){var e=this,t=this.props.t,o=void 0!==this.props.post.posts?this.props.post.posts:null,n=this.props,a=this.props.settings.color,s=a.votes_button_bgcolor,i=a.votes_button_font_color,l=r().forwardRef((function(e,t){return r().createElement(Oa.A,(0,w.A)({direction:"up",ref:t},e))})),c=n.short.user_id_profile?n.short.user_id_profile:0;return void 0!==this.props.criticalError?r().createElement(as,{msg:this.props.criticalError}):null!=o&&"object"===(0,qt.A)(o)&&0!=c&&1!=this.state.wait&&o.length>0?r().createElement(S.A,{container:!0,className:"wpvc_profile_screen_container",ref:this.contestantsContainer},null!=this.state.edit_val&&r().createElement(Va,(0,w.A)({},n,{profilescreen:"1",singlepost:this.state.single_post,short:this.props.short,SITE_URL:this.props.SITE_URL,ORIGINAL_URL:this.props.ORIGINAL_URL,valchange:this.handleValueChange,filechange:this.handleFileChange,ediorchange:this.handleValueEditor,checkboxchange:this.handleValueCheckbox,datepickerchange:this.handleValueDate,edit_value:this.state.edit_val})),r().createElement(S.A,{container:!0,size:12,direction:"row",spacing:3,className:"wpvc_show_style"},o.map((function(o,a){var l=o.allcatoption.votes_expiration,c=o.allcatoption.votes_starttime,p=null,u=0,_=o.allcatoption.published_post_count,d=o.allcatoption.tax_activationcount||0;c?c?(u=e.calculateVoteTimeLeft(c),0!==d&&parseInt(d)<=parseInt(_)&&(u=0)):l&&(u=e.calculateVoteTimeLeft(l)):(u=1,0!==d&&parseInt(d)<=parseInt(_)&&(u=0)),l&&(p=e.calculateVoteTimeLeft(l)),0!==d&&parseInt(d)<=parseInt(_)&&(p=-1);var m="off";return u>0&&(p>0||null==p)&&void 0!==o.allcatoption&&(m=o.allcatoption.editenablecontestant),r().createElement(S.A,{key:a,className:"wpvc_show_style_row",size:{xs:12,md:4}},r().createElement(Gt.A,{className:"wpvc_card_row"},null!=o.img_contest&&("photo"==o.img_contest||"essay"==o.img_contest)&&r().createElement(En,(0,w.A)({},n,{singlepost:o,indexpost:a,view:"topten"})),null!=o.img_contest&&("video"==o.img_contest||"music"==o.img_contest)&&r().createElement(On,(0,w.A)({},n,{singlepost:o,indexpost:a,all_contest:"1",screen:"profile_screen",view:e.props.view})),r().createElement(Ft.A,{className:"wpvc_card_content_row wpvc_card_profile_title"},r().createElement($t,(0,w.A)({},n,{singlepost:o,view:e.props.view}))),r().createElement(Wt.A,{disableSpacing:!0,className:"wpvc_cardcontainer_profile"},r().createElement(S.A,{container:!0,className:"wpvc_profile_info_tab",direction:"row",justifyContent:"space-between",alignItems:"flex-end",style:{background:s,color:i},spacing:4},r().createElement(S.A,{className:"wpvc_profile_date",size:6},r().createElement(C.A,null,r().createElement(Na.A,null)),r().createElement(C.A,null,t("upload_date")),r().createElement(C.A,{className:"wpvc_bold_typo"},e.getformatteddate(o.date))),r().createElement(S.A,{className:"wpvc_profile_category",size:6},r().createElement(C.A,null,r().createElement(Da.A,null)),r().createElement(C.A,null,t("category")),r().createElement(C.A,{className:"wpvc_bold_typo"},o.term_name)),r().createElement(S.A,{className:"wpvc_profile_vote",size:6},r().createElement(C.A,null,r().createElement(fo.A,null)),r().createElement(C.A,null,t("fr_votes")),r().createElement(C.A,{className:"wpvc_bold_typo"},o.votes_count)),"on"==m&&r().createElement(S.A,{className:"wpvc_profile_edit",size:6},r().createElement(C.A,null,r().createElement(Ia.A,null)),r().createElement(C.A,null,t("edit_delete")),r().createElement(C.A,{className:"wpvc_edit_delete_typo"},r().createElement(Ee.A,{className:"wpvc_edit_delete",href:"#add_contestant",onClick:function(){return e.handleEditval(o.term_id,o.id,o)}},r().createElement(xa.A,null)),r().createElement(Ee.A,{className:"wpvc_edit_delete",href:void 0,onClick:function(){return e.handleDelete(o.id)}}
1,r().createElement(La.A,null)))),r().createElement(S.A,{className:"wpvc_profile_status",size:6},r().createElement(C.A,null,r().createElement(za.A,null)),r().createElement(C.A,null,t("post_status")),r().createElement(C.A,{className:"wpvc_bold_typo wpvc_status_post"},o.status)),r().createElement(S.A,{className:"wpvc_profile_share",size:6},r().createElement(C.A,null,r().createElement(Ra.A,null)),r().createElement(C.A,{className:"wpvc_profile_share_contest"},t("social")),r().createElement(tn,(0,w.A)({},n,{singlepost:o,view:"grid"})))))))})),r().createElement(Pn,(0,w.A)({},n,{pagenumber:this.state.page_number,changepagin:this.pagination,changepaginbtn:this.paginationbtn,select_value:this.props.paginate_value}))),1==this.state.modalopen&&r().createElement(Q.A,{open:this.state.modalopen,TransitionComponent:l,onClose:this.handleClose,"aria-labelledby":"alert-dialog-slide-title","aria-describedby":"alert-dialog-slide-description",className:"wpvc_profile_delete_dailog"},r().createElement(ce.A,{id:"alert-dialog-slide-title"},t("do_you_wanna_delete")),r().createElement(ee.A,null,r().createElement(q.A,{onClick:this.handleClose,color:"secondary"},t("cancel")),r().createElement(q.A,{onClick:this.handleDeleteContestant,color:"primary"},t("delete"))))):0==c||null!=o&&"object"===(0,qt.A)(o)&&0==o.length?r().createElement(S.A,{container:!0,className:"wpvc_hr_contestants"},r().createElement(C.A,{align:"center",variant:"h6",component:"h6"},t("no_contestants_found")),r().createElement(Yt.A,{variant:"middle"})):"perpage"==o?"":r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const Vr=(0,i.Ng)((function(e){return{post:e.wpvcfrontdata}}),{deleteContestant:Ce,frontsingleimmute:Je,frontimmute:Xe,fetchauthorallprofile:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=f.A.get("wpvc_voting_authorize"),s=e+"wp/v2/contestants?status=publish"+(null==o?"&author="+t.user_id_profile+"&per_page="+t.postperpage+"&page="+t.paged+"&orderby=date&order=desc":"&author="+t.user_id_profile+"&per_page="+t.postperpage+"&page="+o+"&orderby=date&order=desc"),r=t.postperpage;return 0==r?function(e){e(We({posts:"perpage",pagin_val:""}))}:r<0?function(e){e(Ye({posts:"perpage",pagin_val:""},"Please do not use a negative number for the <strong>postperpage</strong> shortcode attribute."))}:r>500?function(e){e(Ye({posts:"perpage",pagin_val:""},"Maximum allowed for <strong>postperpage</strong> shortcode attribute is 500."))}:function(e){var t="",o="";return fetch(s,{method:"GET",headers:{"Content-Type":"application/json","Authorize-wpvc":a,"Authorize-wpvc-request":"xmlhttprequest","Authorize-wpvc-requestmethod":"authorprofile"}}).then((function(e){return t=e.headers.get("X-WP-Total"),o=e.headers.get("X-WP-TotalPages"),e.json()})).then((function(a){var s={posts:a,pagin_val:{total_posts:t,page_nums:o}};return e("load"==n?Fe("posts",a):We(s)),a}))}},fetcheditpost:Oe})((0,h.CI)("translations")(Ur));function Br(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Br=function(){return!!e})()}var qr=wp.element,Gr=(qr.render,qr.useState,null),Fr=function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Br()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1}),o.props.fetchFrontSetting(o.props.SITE_URL,o.props.shortagrument.id),o.setState({wait:0})})),o.state={language:"en",listgrid:"grid",wait:0,form_val:null,short:o.props.shortagrument,setlimit:0},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this.props,t=(e.t,e.i18n,this.props.shortagrument),o=this.props.model;return o&&1!=this.state.wait?(Gr=new Date(o.current_date),r().createElement(ss.A,{className:"wpvc_showcontestant_container"},null!=this.props.shortagrument.title&&r().createElement(wa,{short:t}),r().createElement(Vr,(0,w.A)({},o,{view:"grid",profile_view:this.state.listgrid,short:t,SITE_URL:this.props.SITE_URL,ORIGINAL_URL:this.props.ORIGINAL_URL,CONSTANT:this.props.CONSTANT,currentdate:Gr})))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component);const Wr=(0,i.Ng)((function(e){return{model:e.wpvcfrontdata}}),{fetchFrontSetting:Te})((0,h.CI)("translations")(Fr));function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yr=function(){return!!e})()}var Zr=wp.element,Hr=(Zr.render,Zr.useState,function(e){function t(e){var o,n,a,s;return(0,A.A)(this,t),n=this,a=t,s=[e],a=(0,E.A)(a),o=(0,b.A)(n,Yr()?Reflect.construct(a,s||[],(0,E.A)(n).constructor):a.apply(n,s)),(0,p.A)(o,"componentDidMount",(function(){o.setState({wait:1}),o.props.fetchFrontSetting(o.props.SITE_URL);var e=o.props.shortagrument;e.postperpage=500,o.props.fetchallposts(o.props.SITE_URL,null,e,1,"").then((function(e){o.setState({wait:0})}))})),o.state={listgrid:"grid",wait:1},o}return(0,T.A)(t,e),(0,y.A)(t,[{key:"render",value:function(){var e=this,t=this.props,o=(t.t,t.i18n,this.props.shortagrument),n=this.props.model;return n&&1!=this.state.wait?(new Date(n.current_date),r().createElement(ss.A,{className:"wpvc_showcontestant_container"},null!=this.props.shortagrument.title&&r().createElement(wa,{short:o}),n.taxonomy.map((function(t,a){return r().createElement(ss.A,{key:a,className:"wpvc_showallcategories_container"},r().createElement(S.A,{container:!0,className:"wpvc_contest_title"},r().createElement(C.A,{variant:"h5",className:"wpvc_grid_header"},t.category_name)),r().createElement(Rs,(0,w.A)({},n,{view:e.state.listgrid,short:o,SITE_URL:e.props.SITE_URL,CONSTANT:e.props.CONSTANT,term_id:t.term_id,index:a})))})))):r().createElement(Zt.A,{className:"wpvc_back_loader",open:!0},r().createElement(Ht.A,{color:"inherit"}))}}])}(s.Component));const Jr=(0,i.Ng)((function(e){return{model:e.wpvcfrontdata}}),{frontimmute:Xe,fetchFrontSetting:Te,fetchallposts:ke,updateFrontData:Ze,insertPayment:Ie,stripePayment:xe,couponApply:Le})((0,h.CI)("translations")(Hr));var Xr=o(49473),Qr=wp.element,Kr=(Qr.render,Qr.useState,(0,xn.A)({props:{MuiButtonBase:{disableRipple:!0}},palette:{secondary:Xr.A}}
1)),$r=document.querySelectorAll("[id^='wpvc-root-shortcode']"),ei="",ti="",oi=Array();if($r.length>0&&$r.forEach((function(e,t){ei=e.getAttribute("data-rootcode"),ti=e.getAttribute("data-url"),oi.includes(ei)||(oi.push(ei),function(e,t){var o="",n="",r="",p="",u="",_="",d="",f="",w="",A="",y="";switch(ci(t),"showcontestants"!=e&&"addcontestants"!=e&&(d=(0,l.Yl)(m,(0,l.Tw)(c.P))),e){case"showcontestants":var b=document.querySelectorAll("[id^='wpvc-showcontestants-page-']");b.length>0&&b.forEach((function(e,t){n=e.id;var o=document.getElementById(n);p=o.getAttribute("data-url"),u=o.getAttribute("data-originalurl"),d=(0,l.Yl)(m,(0,l.Tw)(c.P)),_=JSON.parse(o.getAttribute("data-args"));var s=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(ws,{shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u}))));(0,a.H)(o).render(s)}));break;case"showallcontestants":n="wpvc-showallcontest-page",r=document.getElementById(n),p=r.getAttribute("data-url"),u=r.getAttribute("data-originalurl"),o="new"==(_=JSON.parse(r.getAttribute("data-args"))).design?React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(Jr,{shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u})))):React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(Fs,{shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u}))));break;case"addcontestants":var E=document.querySelectorAll("[id^='wpvc-addcontestant-page-']");E.length>0&&E.forEach((function(e,t){n=e.id;var o=document.getElementById(n);p=o.getAttribute("data-url"),u=o.getAttribute("data-originalurl"),d=(0,l.Yl)(m,(0,l.Tw)(c.P)),_=JSON.parse(o.getAttribute("data-args"));var r=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(Js,{shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u}))));(0,a.H)(o).render(React.createElement(s.StrictMode,null,r))}));break;case"addcontest":n="wpvc-addcontest-page",r=document.getElementById(n),p=r.getAttribute("data-url"),u=r.getAttribute("data-originalurl"),_=JSON.parse(r.getAttribute("data-args")),o=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement($s,{shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u}))));break;case"upcomingcontestants":n="wpvc-upcomingcontestants-page",r=document.getElementById(n),p=r.getAttribute("data-url"),u=r.getAttribute("data-originalurl"),_=JSON.parse(r.getAttribute("data-args")),o=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(ws,{shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u}))));break;
1case"endcontestants":n="wpvc-endcontestants-page",r=document.getElementById(n),p=r.getAttribute("data-url"),u=r.getAttribute("data-originalurl"),_=JSON.parse(r.getAttribute("data-args")),o=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(ws,{shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u}))));break;case"profilecontestants":n="wpvc-profilecontestants-page",r=document.getElementById(n),p=r.getAttribute("data-url"),u=r.getAttribute("data-originalurl"),_=JSON.parse(r.getAttribute("data-args")),o=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(Wr,{shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u}))));break;case"topcontestants":n="wpvc-topcontestants-page",r=document.getElementById(n),p=r.getAttribute("data-url"),u=r.getAttribute("data-originalurl"),_=JSON.parse(r.getAttribute("data-args")),o=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(ws,{shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u}))));break;case"logincontest":n="wpvc-logincontest-page",r=document.getElementById(n),p=r.getAttribute("data-url"),u=r.getAttribute("data-originalurl"),_=JSON.parse(r.getAttribute("data-args")),o=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(es,{short:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u}))));break;case"singlecontestants":n="wpvc-singlecontestant-page",r=document.getElementById(n),p=r.getAttribute("data-url"),u=r.getAttribute("data-originalurl");var T=r.getAttribute("data-postid");_=JSON.parse(r.getAttribute("data-args")),o=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(hr,{shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u,SINGLEPOST:T}))));break;case"singlepagesplit":f="wpvc-singlecustom-header",w="wpvc-singlecustom-footer",A=document.getElementById(f),y=document.getElementById(w),r="",p=A.getAttribute("data-url"),u=A.getAttribute("data-originalurl");var k=A.getAttribute("data-postid");_=JSON.parse(A.getAttribute("data-args")),o=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(Tr,{templatepart:"header",shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u,SINGLEPOST:k})))),(0,a.H)(A).render(React.createElement(s.StrictMode,null,o));var M=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:d},React.createElement(h.xC,{i18n:v.A},React.createElement(Tr,{templatepart:"footer",shortagrument:_,CONSTANT:g,SITE_URL:p,ORIGINAL_URL:u,SINGLEPOST:k}))));(0,a.H)(y).render(React.createElement(s.StrictMode,null,M))}""!=o&&""!=r&&(0,a.H)(r).render(React.createElement(s.StrictMode,null,o))}(ei,ti))})),window.opener){var ni=window.location.search.match(/^(?=.*oauth_token=([^&]+)|)(?=.*oauth_verifier=([^&]+)|).+$/)||[],ai=(0,n.A)(ni,3),si=ai[1],ri=ai[2];si&&(window.opener.postMessage({type:"authorized",data:{oauthToken:si,oauthVerifier:ri}},window.origin),window.close())}if(null!=document.getElementById("wpvc-root-widget")){var ii=document.querySelectorAll("[id^='wpvc-photoleader-page-']");ii.length>0&&ii.forEach((function(e,t){var o=document.getElementById(e.id),n=o.getAttribute("data-url");ci(n);var r=(0,l.Yl)(m,(0,l.Tw)(c.P)),p=JSON.parse(o.getAttribute("data-args")),u=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:r},React.createElement(h.xC,{i18n:v.A},React.createElement(Rr,{widget:"leader",shortagrument:p,CONSTANT:g,SITE_URL:n}))));(0,a.H)(o).render(React.createElement(s.StrictMode,null,u))}))}if(null!=document.getElementById("wpvc-root-widget-recent")){var li=document.querySelectorAll("[id^='wpvc-recent-contestants-page-']");li.length>0&&li.forEach((function(e,t){var o=document.getElementById(e.id),n=o.getAttribute("data-url");ci(n);var r=(0,l.Yl)(m,(0,l.Tw)(c.P)),p=JSON.parse(o.getAttribute("data-args")),u=React.createElement(Ln.A,{theme:Kr},React.createElement(i.Kq,{store:r},React.createElement(h.xC,{i18n:v.A},React.createElement(Rr,{widget:"recent",shortagrument:p,CONSTANT:g,SITE_URL:n}))));(0,a.H)(o).render(React.createElement(s.StrictMode,null,u))}))}function ci(e){var t=f.A.get("wpvc_voting_authorize");fetch(e+"wpvc-voting/v1/wpvcgetsitetranslations",{method:"GET",headers:{"Content-Type":"application/json","Authorize-wpvc":t,"Authorize-wpvc-request":"xmlhttprequest"}}).then((function(e){return e.json()})).then((function(e){v.A.addResources(e.site_translations.language,"translations",e.site_translations.translations),v.A.changeLanguage(e.site_translations.language,(function(e,t){if(e)return console.log("something went wrong loading",e)}))}),(function(e){console.log("something went wrong loading",e)}))}setTimeout(console.log.bind(console,"%cWP VOTING CONTEST","color: #303f9f;font-weight:bold;
1font-size:30px"),0)},16069:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxMDAwIiB3aWR0aD0iMTAwMCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgo8bWV0YWRhdGE+SWNvRm9udCBJY29uczwvbWV0YWRhdGE+Cjx0aXRsZT51bmRvPC90aXRsZT4KPGdseXBoIGdseXBoLW5hbWU9InVuZG8iIHVuaWNvZGU9IiYjeGVlMGI7IiBob3Jpei1hZHYteD0iMTAwMCIgLz4KPHBhdGggIGZpbGw9IiNmZmZmZmYiIGQ9Ik04OTguMSA2NTVjLTcuMjAwMDAwMDAwMDAwMDQ1NSAyOS41LTExLjM5OTk5OTk5OTk5OTk3NyA1OS43MDAwMDAwMDAwMDAwNDUtMjEuNzAwMDAwMDAwMDAwMDQ1IDg4LjUtNTMuMzk5OTk5OTk5OTk5OTggMTUwLjcwMDAwMDAwMDAwMDA1LTIwMCAyNTUuODk5OTk5OTk5OTk5OTgtMzU4LjI5OTk5OTk5OTk5OTk1IDI1Ni41LTQxLjcwMDAwMDAwMDAwMDA0NSAwLjEwMDAwMDAwMDAwMDAyMjc0LTc2LjMwMDAwMDAwMDAwMDAxLTI4Ljg5OTk5OTk5OTk5OTk3Ny04MC40MDAwMDAwMDAwMDAwMy02Ny4zOTk5OTk5OTk5OTk5OC00LjM5OTk5OTk5OTk5OTk3Ny00MC44OTk5OTk5OTk5OTk5OCAyMC45MDAwMDAwMDAwMDAwMzQtNzcuODk5OTk5OTk5OTk5OTggNjAuNjAwMDAwMDAwMDAwMDItODUuMTAwMDAwMDAwMDAwMDIgMjIuODAwMDAwMDAwMDAwMDEtNC4xMDAwMDAwMDAwMDAwMjMgNDYuNjk5OTk5OTk5OTk5OTktMi4yOTk5OTk5OTk5OTk5NTQ1IDY5LjQwMDAwMDAwMDAwMDAzLTguNSA5Mi4wOTk5OTk5OTk5OTk5MS0yNS4yMDAwMDAwMDAwMDAwNDUgMTUzLTg0IDE3MC43OTk5OTk5OTk5OTk5NS0xNzcuMjk5OTk5OTk5OTk5OTUgMTguODk5OTk5OTk5OTk5OTc3LTk4LjMwMDAwMDAwMDAwMDA3LTkuNS0xODQuMDAwMDAwMDAwMDAwMDYtOTIuMjAwMDAwMDAwMDAwMDUtMjQ2LjQwMDAwMDAwMDAwMDAzLTIzLjM5OTk5OTk5OTk5OTk3Ny0xNy42MDAwMDAwMDAwMDAwMjMtNTAuODk5OTk5OTk5OTk5OTgtMjguMTk5OTk5OTk5OTk5OTktODAtMjktNTYuMTk5OTk5OTk5OTk5OTMtMS41LTExMi4zOTk5OTk5OTk5OTk5OC0wLjQwMDAwMDAwMDAwMDAzNDEtMTY5LjA5OTk5OTk5OTk5OTk3LTAuNDAwMDAwMDAwMDAwMDM0MSAwLjQwMDAwMDAwMDAwMDAzNDEgNy41IDYuNSAxMC4yMDAwMDAwMDAwMDAwNDUgMTAuNDAwMDAwMDAwMDAwMDM0IDE0LjEwMDAwMDAwMDAwMDAyMyAyNy43OTk5OTk5OTk5OTk5NTUgMjguMTAwMDAwMDAwMDAwMDIzIDU2LjM5OTk5OTk5OTk5OTk4IDU1LjYwMDAwMDAwMDAwMDAyIDgzLjc5OTk5OTk5OTk5OTk1IDg0LjEwMDAwMDAwMDAwMDAyIDMxIDMyLjEwMDAwMDAwMDAwMDAyIDMwLjUgNzkuMjk5OTk5OTk5OTk5OTUtMC4wOTk5OTk5OTk5OTk5NjU5IDEwOS42OTk5OTk5OTk5OTk5My0yOS44MDAwMDAwMDAwMDAwMSAyOS42MDAwMDAwMDAwMDAwMjMtNzcuMTAwMDAwMDAwMDAwMDIgMzAuMjAwMDAwMDAwMDAwMDQ1LTEwOC4zMDAwMDAwMDAwMDAwMS0wLjY5OTk5OTk5OTk5OTkzMTgtOTIuNS05MS43MDAwMDAwMDAwMDAwNS0xODQuMi0xODQuMTAwMDAwMDAwMDAwMDItMjc2LjQtMjc1LjkwMDAwMDAwMDAwMDAzLTcuNTAwMDAwMDAwMDAwMDI4LTcuNS02LjIwMDAwMDAwMDAwMDAxNy0xMS4zOTk5OTk5OTk5OTk5NzcgMC42OTk5OTk5OTk5OTk5NzQ0LTE4LjMwMDAwMDAwMDAwMDAxIDkxLjgtOTEuMjk5OTk5OTk5OTk5OTggMTgzLjM5OTk5OTk5OTk5OTk4LTE4Mi44OTk5OTk5OTk5OTk5OCAyNzQuNy0yNzQuNyAxMS44MDAwMDAwMDAwMDAwMTEtMTEuODk5OTk5OTk5OTk5OTg4IDI3LTE2LjY5OTk5OTk5OTk5OTk5IDQxLTI0LjE5OTk5OTk5OTk5OTk5aDI4LjgwMDAwMDAwMDAwMDAxYzEuMzk5OTk5OTk5OTk5OTc3MyAzLjQgNC41OTk5OTk5OTk5OTk5NjYgMy4xIDcuMzk5OTk5OTk5OTk5OTc3IDQuMSA1OC4xOTk5OTk5OTk5OTk5OSAyMC41IDczLjY5OTk5OTk5OTk5OTk5IDg1LjUgMzAuOTAwMDAwMDAwMDAwMDM0IDEzMC05LjUgOS45MDAwMDAwMDAwMDAwMDYtMTkuNSAxOS41LTI5LjMwMDAwMDAwMDAwMDAxIDI5LjIwMDAwMDAwMDAwMDAxNy0yMS41IDIxLjE5OTk5OTk5OTk5OTk5LTQzIDQyLjUtNjguMzAwMDAwMDAwMDAwMDEgNjcuMzk5OTk5OTk5OTk5OThoMjMuMTAwMDAwMDAwMDAwMDIzYzQ3LjM5OTk5OTk5OTk5OTk4IDAgOTQuNjk5OTk5OTk5OTk5OTktMC4zOTk5OTk5OTk5OTk5NzcyNiAxNDIuMTAwMDAwMDAwMDAwMDIgMC4zMDAwMDAwMDAwMDAwMTEzNyAzNC44OTk5OTk5OTk5OTk5OCAwLjU5OTk5OTk5OTk5OTk5NDMgNjkuMTk5OTk5OTk5OTk5OTMgNi41IDEwMS43OTk5OTk5OTk5OTk5NSAxOS4wOTk5OTk5OTk5OTk5OTQgMTEzLjEwMDAwMDAwMDAwMDAyIDQzLjU5OTk5OTk5OTk5OTk5NCAxODIuMzk5OTk5OTk5OTk5OTggMTI3LjUwMDAwMDAwMDAwMDAzIDIyMC4xMDAwMDAwMDAwMDAwMiAyNDAuMjk5OTk5OTk5OTk5OTggOC44OTk5OTk5OTk5OTk5NzcgMjYuNzAwMDAwMDAwMDAwMDQ1IDExLjM5OTk5OTk5OTk5OTk3NyA1NC44MDAwMDAwMDAwMDAwNyAxOC4zOTk5OTk5OTk5OTk5NzcgODEuODAwMDAwMDAwMDAwMDcgMC4xMDAwMDAwMDAwMDAwMjI3NCAyNy41OTk5OTk5OTk5OTk5MSAwLjEwMDAwMDAwMDAwMDAyMjc0IDU1LjE5OTk5OTk5OTk5OTkzIDAuMTAwMDAwMDAwMDAwMDIyNzQgODIuNzk5OTk5OTk5OTk5OTV6Ii8+Cjwvc3ZnPg=="},41594:e=>{"use strict";e.exports=React},42127:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxMDAwIiB3aWR0aD0iMTAwMCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgo8bWV0YWRhdGE+SWNvRm9udCBJY29uczwvbWV0YWRhdGE+Cjx0aXRsZT5yZWZyZXNoPC90aXRsZT4KPGdseXBoIGdseX
1BoLW5hbWU9InJlZnJlc2giIHVuaWNvZGU9IiYjeGVmZDE7IiBob3Jpei1hZHYteD0iMTAwMCIgLz4KPHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTg5OS44IDU1NC42aC00Mi4xOTk5OTk5OTk5OTk5M2MtMTguODk5OTk5OTk5OTk5OTc3IDAtMzYuNSAxNS4xOTk5OTk5OTk5OTk5MzItNDEuNjAwMDAwMDAwMDAwMDIgMzMuMzk5OTk5OTk5OTk5OTgtMzguMjk5OTk5OTk5OTk5OTU1IDEzOC4zOTk5OTk5OTk5OTk5OC0xNjUuMzk5OTk5OTk5OTk5OTggMjQwLTMxNi4yIDI0MC0xMDIuODAwMDAwMDAwMDAwMDEgMC0xOTQuOC00Ny4yOTk5OTk5OTk5OTk5NTUtMjU0LjktMTIxLjYwMDAwMDAwMDAwMDAyLTExLjkwMDAwMDAwMDAwMDAwNi0xNC42OTk5OTk5OTk5OTk5MzItOC44MDAwMDAwMDAwMDAwMTEtMzggNS4wOTk5OTk5OTk5OTk5OTQtNTAuNzk5OTk5OTk5OTk5OTU1bDg0LjgwMDAwMDAwMDAwMDAxLTc3Ljg5OTk5OTk5OTk5OTk4YzEzLjg5OTk5OTk5OTk5OTk3Ny0xMi44MDAwMDAwMDAwMDAwNjggOS44OTk5OTk5OTk5OTk5NzctMjMuMTAwMDAwMDAwMDAwMDIzLTktMjMuMTAwMDAwMDAwMDAwMDIzaC0yMjkuMTAwMDAwMDAwMDAwMDJjLTE4Ljg5OTk5OTk5OTk5OTk5IDAtMzQuMTk5OTk5OTk5OTk5OTkgMTUuMjk5OTk5OTk5OTk5OTU1LTM0LjE5OTk5OTk5OTk5OTk5IDM0LjE5OTk5OTk5OTk5OTkzdjIwNS4xMDAwMDAwMDAwMDAwMmMwIDE4Ljg5OTk5OTk5OTk5OTk3NyAxMS4yOTk5OTk5OTk5OTk5OTcgMjMuODAwMDAwMDAwMDAwMDY4IDI1LjA5OTk5OTk5OTk5OTk5NCAxMWwzMC42MDAwMDAwMDAwMDAwMS0yOC4xOTk5OTk5OTk5OTk5MzJjMTMuODk5OTk5OTk5OTk5OTkxLTEyLjgwMDAwMDAwMDAwMDA2OCAzMy44OTk5OTk5OTk5OTk5OS0xMC42MDAwMDAwMDAwMDAwMjMgNDYuMTAwMDAwMDAwMDAwMDEgMy44OTk5OTk5OTk5OTk5NzczIDgwLjI5OTk5OTk5OTk5OTk4IDk1Ljg5OTk5OTk5OTk5OTk4IDIwMC44OTk5OTk5OTk5OTk5OCAxNTYuODk5OTk5OTk5OTk5OTggMzM1LjUgMTU2Ljg5OTk5OTk5OTk5OTk4IDIxMS40OTk5OTk5OTk5OTk5NCAwIDM4Ny43LTE1MCA0MjguNTk5OTk5OTk5OTk5OTctMzQ5LjIwMDAwMDAwMDAwMDA1IDMuODk5OTk5OTk5OTk5OTc3My0xOC41LTkuNjk5OTk5OTk5OTk5OTMyLTMzLjY5OTk5OTk5OTk5OTkzLTI4LjYwMDAwMDAwMDAwMDAyMy0zMy42OTk5OTk5OTk5OTk5M3ogbTEzLjUtMzU4LjQwMDAwMDAwMDAwMDAzbC0yOS44OTk5OTk5OTk5OTk5NzcgMjkuODAwMDAwMDAwMDAwMDFjLTEzLjM5OTk5OTk5OTk5OTk3NyAxMy4zMDAwMDAwMDAwMDAwMTEtMzIuNzk5OTk5OTk5OTk5OTU1IDExLjUtNDQuNzk5OTk5OTk5OTk5OTU1LTMuMDk5OTk5OTk5OTk5OTk0My04MC4yMDAwMDAwMDAwMDAwNS05Ny45LTIwMi4zMDAwMDAwMDAwMDAwNy0xNjAuNC0zMzguOC0xNjAuNC0yMTEuMTAwMDAwMDAwMDAwMDIgMC0zODcuNiAxNDkuNy00MjguMyAzNDkuMi0zLjc5OTk5OTk5OTk5OTk5NyAxOC41IDkuNzk5OTk5OTk5OTk5OTk3IDMzLjgwMDAwMDAwMDAwMDAxIDI4LjcwMDAwMDAwMDAwMDAwMyAzMy44MDAwMDAwMDAwMDAwMWg0Mi4yYzE4LjkwMDAwMDAwMDAwMDAwNiAwIDM2LjUtMTUuMTAwMDAwMDAwMDAwMDIzIDQxLjUtMzMuMzAwMDAwMDAwMDAwMDEgMzguMjk5OTk5OTk5OTk5OTgtMTM4LjggMTY1LjQtMjQwLjIgMzE1LjktMjQwLjIgMTA2LjYwMDAwMDAwMDAwMDAyIDAgMjAxLjIwMDAwMDAwMDAwMDA1IDUwLjUgMjYxLjIwMDAwMDAwMDAwMDA1IDEyOS4xMDAwMDAwMDAwMDAwMiAxMS41IDE1IDguMzk5OTk5OTk5OTk5OTc3IDM5LTQuODk5OTk5OTk5OTk5OTc3IDUyLjI5OTk5OTk5OTk5OTk1NWwtNjcuODAwMDAwMDAwMDAwMDcgNjcuOTAwMDAwMDAwMDAwMDNjLT
1EzLjI5OTk5OTk5OTk5OTk1NSAxMy4zOTk5OTk5OTk5OTk5NzctOC44OTk5OTk5OTk5OTk5NzcgMjQuMTk5OTk5OTk5OTk5OTkgMTAgMjQuMTk5OTk5OTk5OTk5OTloMjA1LjEwMDAwMDAwMDAwMDAyYzE4Ljg5OTk5OTk5OTk5OTk3NyAwIDM0LjIwMDAwMDAwMDAwMDA0NS0xNS4zMDAwMDAwMDAwMDAwMTEgMzQuMjAwMDAwMDAwMDAwMDQ1LTM0LjE5OTk5OTk5OTk5OTk5di0yMDUuMTAwMDAwMDAwMDAwMDJjLTAuMTAwMDAwMDAwMDAwMDIyNzQtMTguODk5OTk5OTk5OTk5OTc3LTEwLjg5OTk5OTk5OTk5OTk3Ny0yMy4zOTk5OTk5OTk5OTk5NzctMjQuMzAwMDAwMDAwMDAwMDY4LTEweiIvPgo8L3N2Zz4="},55021:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ibWFyZ2luOiBhdXRvOyBiYWNrZ3JvdW5kOiBub25lOyBkaXNwbGF5OiBibG9jazsgc2hhcGUtcmVuZGVyaW5nOiBhdXRvOyIgd2lkdGg9IjEwMXB4IiBoZWlnaHQ9IjEwMXB4IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgo8ZyB0cmFuc2Zvcm09InJvdGF0ZSgwIDUwIDUwKSI+CiAgPHJlY3QgeD0iNDguNSIgeT0iMjUiIHJ4PSIwIiByeT0iMCIgd2lkdGg9IjMiIGhlaWdodD0iMTAiIGZpbGw9IiNmZmZmZmYiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIxOzAiIGtleVRpbWVzPSIwOzEiIGR1cj0iMXMiIGJlZ2luPSItMC45MzMzMzMzMzMzMzMzMzMzcyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiPjwvYW5pbWF0ZT4KICA8L3JlY3Q+CjwvZz48ZyB0cmFuc2Zvcm09InJvdGF0ZSgyNCA1MCA1MCkiPgogIDxyZWN0IHg9IjQ4LjUiIHk9IjI1IiByeD0iMCIgcnk9IjAiIHdpZHRoPSIzIiBoZWlnaHQ9IjEwIiBmaWxsPSIjZmZmZmZmIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIHZhbHVlcz0iMTswIiBrZXlUaW1lcz0iMDsxIiBkdXI9IjFzIiBiZWdpbj0iLTAuODY2NjY2NjY2NjY2NjY2N3MiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+CiAgPC9yZWN0Pgo8L2c+PGcgdHJhbnNmb3JtPSJyb3RhdGUoNDggNTAgNTApIj4KICA8cmVjdCB4PSI0OC41IiB5PSIyNSIgcng9IjAiIHJ5PSIwIiB3aWR0aD0iMyIgaGVpZ2h0PSIxMCIgZmlsbD0iI2ZmZmZmZiI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjE7MCIga2V5VGltZXM9IjA7MSIgZHVyPSIxcyIgYmVnaW49Ii0wLjhzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlPgogIDwvcmVjdD4KPC9nPjxnIHRyYW5zZm9ybT0icm90YXRlKDcyIDUwIDUwKSI+CiAgPHJlY3QgeD0iNDguNSIgeT0iMjUiIHJ4PSIwIiByeT0iMCIgd2lkdGg9IjMiIGhlaWdodD0iMTAiIGZpbGw9IiNmZmZmZmYiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIxOzAiIGtleVRpbWVzPSIwOzEiIGR1cj0iMXMiIGJlZ2luPSItMC43MzMzMzMzMzMzMzMzMzMzcyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiPjwvYW5pbWF0ZT4KICA8L3JlY3Q+CjwvZz48ZyB0cmFuc2Zvcm09InJvdGF0ZSg5NiA1MCA1MCkiPgogIDxyZWN0IHg9IjQ4LjUiIHk9IjI1IiByeD0iMCIgcnk9IjAiIHdpZHRoPSIzIiBoZWlnaHQ9IjEwIiBmaWxsPSIjZmZmZmZmIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIHZhbHVlcz0iMTswIiBrZXlUaW1lcz0iMDsxIiBkdXI9IjFzIiBiZWdpbj0iLTAuNjY2NjY2NjY2NjY2NjY2NnMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+CiAgPC9yZWN0Pgo8L2c+PGcgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDUwIDUwKSI+CiAgPHJlY3QgeD0iNDguNSIgeT0iMjUiIHJ4PSIwIiByeT0iMCIgd2lkdGg9IjMiIGhlaWdodD0iMTAiIGZpbGw9IiNmZmZmZmYiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIxOzAiIGtleVRpbWVzPSIwOzEiIGR1cj0iMXMiIGJlZ2luPSItMC42cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiPjwvYW5pbWF0ZT4KICA8L3JlY3Q+CjwvZz48ZyB0cmFuc2Zvcm09InJvdGF0ZSgxNDQgNTAgNTApIj4KICA8cmVjdCB4PSI0OC41IiB5PSIyNSIgcng9IjAiIHJ5PSIwIiB3aWR0aD0iMyIgaGVpZ2h0PSIxMCIgZmlsbD0iI2ZmZmZmZiI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjE7MCIga2V5VGltZXM9IjA7MSIgZHVyPSIxcyIgYmVnaW49Ii0wLjUzMzMzMzMzMzMzMzMzMzNzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlPgogIDwvcmVjdD4KPC9nPjxnIHRyYW5zZm9ybT0icm90YXRlKDE2OCA1MCA1MCkiPgogIDxyZWN0IHg9IjQ4LjUiIHk9IjI1IiByeD0iMCIgcnk9IjAiIHdpZHRoPSIzIiBoZWlnaHQ9IjEwIiBmaWxsPSIjZmZmZmZmIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIHZhbHVlcz0iMTswIiBrZXlUaW1lcz0iMDsxIiBkdXI9IjFzIiBiZWdpbj0iLTAuNDY2NjY2NjY2NjY2NjY2N3MiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+CiAgPC9yZWN0Pgo8L2c+PGcgdHJhbnNmb3JtPSJyb3RhdGUoMTkyIDUwIDUwKSI+CiAgPHJlY3QgeD0iNDguNSIgeT0iMjUiIHJ4PSIwIiByeT0iMCIgd2lkdGg9IjMiIGhlaWdodD0iMTAiIGZpbGw9IiNmZmZmZmYiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIxOzAiIGtleVRpbWVzPSIwOzEiIGR1cj0iMXMiIGJlZ2luPSItMC40cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiPjwvYW5pbWF0ZT4KICA8L3JlY3Q+CjwvZz48ZyB0cmFuc2Zvcm09InJvdGF0ZSgyMTYgNTAgNTApIj4KICA8cmVjdCB4PSI0OC41IiB5PSIyNSIgcng9IjAiIHJ5PSIwIiB3aWR0aD0iMyIgaGVpZ2h0PSIxMCIgZmlsbD0iI2ZmZmZmZiI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjE7MCIga2V5VGltZXM9IjA7MSIgZHVyPSIxcyIgYmVnaW49Ii0wLjMzMzMzMzMzMzMzMzMzMzNzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlPgogIDwvcmVjdD4KPC9nPjxnIHRyYW5zZm9ybT0icm90YXRlKDI0MCA1MCA1MCkiPgogIDxyZWN0IHg9IjQ4LjUiIHk9IjI1IiByeD0iMCIgcnk9IjAiIHdpZHRoPSIzIiBoZWlnaHQ9IjEwIiBmaWxsPSIjZmZmZmZmIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIHZhbHVlcz0iMTswIiBrZXlUaW1lcz0iMDsxIiBkdXI9IjFzIiBiZWdpbj0iLTAuMjY2NjY2NjY2NjY2NjY2NjZzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlPgogIDwvcmVjdD4KPC9nPjxnIHRyYW5zZm9ybT0icm90YXRlKDI2NCA1MCA1MCkiPgogIDxyZWN0IHg9IjQ4LjUiIHk9IjI1IiByeD0iMCIgcnk9IjAiIHdpZHRoPSIzIiBoZWlnaHQ9IjEwIiBmaWxsPSIjZmZmZmZmIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIHZhbHVlcz0iMTswIiBrZXlUaW1lcz0iMDsxIiBkdXI9IjFzIiBiZWdpbj0iLTAuMnMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+CiAgPC9yZWN0Pgo8L2c+PGcgdHJhbnNmb3JtPSJyb3RhdGUoMjg4IDUwIDUwKSI+CiAgPHJlY3QgeD0iNDguNSIgeT0iMjUiIHJ4PSIwIiByeT0iMCIgd2lkdGg9IjMiIGhlaWdodD0iMTAiIGZpbGw9IiNmZmZmZmYiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIxOzAiIGtleVRpbWVzPSIwOzEiIGR1cj0iMXMiIGJlZ2luPSItMC4xMzMzMzMzMzMzMzMzMzMzM3MiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+CiAgPC9yZWN0Pgo8L2c+PGcgdHJhbnNmb3JtPSJyb3RhdGUoMzEyIDUwIDUwKSI+CiAgPHJlY3QgeD0iNDguNSIgeT0iMjUiIHJ4PSIwIiByeT0iMCIgd2lkdGg9IjMiIGhlaWdodD0iMTAiIGZpbGw9IiNmZmZmZmYiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIxOzAiIGtleVRpbWVzPSIwOzEiIGR1cj0iMXMiIGJlZ2luPSItMC4wNjY2NjY2NjY2NjY2NjY2N3MiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+CiAgPC9yZWN0Pgo8L2c+PGcgdHJhbnNmb3JtPSJyb3RhdGUoMzM2IDUwIDUwKSI+CiAgPHJlY3QgeD0iNDguNSIgeT0iMjUiIHJ4PSIwIiByeT0iMCIgd2lkdGg9IjMiIGhlaWdodD0iMTAiIGZpbGw9IiNmZmZmZmYiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIxOzAiIGtleVRpbWVzPSIwOzEiIGR1cj0iMXMiIGJlZ2luPSIwcyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiPjwvYW5pbWF0ZT4KICA8L3JlY3Q+CjwvZz4KPCEtLSBbbGRpb10gZ2VuZXJhdGVkIGJ5IGh0dHBzOi8vbG9hZGluZy5pby8gLS0+PC9zdmc+"},64697:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(72635),a=o(94997),s=o(60234);const r=JSON.parse('{"Version":"Version","Online_doc":"Online Documentation","Demo_con":"Demo contests","Setup_wiz":"Run Setup Wizard","Overview_intro":"PLEASE READ BELOW FOR EXAMPLES OF THE VARIOUS SHORTCODES, WHAT THEY DO AND HOW TO USE THEM.","Show_contest_intro":"The \\"showcontestants\\" shortcode is the most frequently used shortcode. It is generally used to display a single contest category with a list of contestant entries from the assigned category ID and the entry form.","Show_contest_id":"(IMPORTANT: You must enter the correct Contest Category ID in your shortcode for your contest to be displayed properly. The ID is listed on the Contest Category page.)","Show_contest_orderby":"(Note: Specify how your contestants are ordered by, by adding orderby=votes to your shortcode. Options are listed ","HERE":"HERE","Show_contest_order":"(Note: Specify the Order the Contestants are listed in by adding order=ASC or order=DESC to your shortcode.)","Show_attr_id":"Attributes that can be passed to this shortcode are as follows:","Show_contest_thumb":"(Note: Specify whether the thumbnail will be displayed in the Contest Listing)","Show_contest_height":"(Note: Specify the Height of the Thumbn
1ail in the Contest Listing)","Show_contest_width":"(Note: Specify the Width of the Thumbnail in the Contest Listing)","Show_contest_title":"(Note: Add a title above your contest by adding title=\\"Your Title Here\\" to your shortcode. This is rarely used or needed.)","Show_contest_termdisplay":"(Note: Specify whether the Category is displayed in the Contest Listing)","Show_contest_exclude":"(Note: Exclude contestants from your listing by adding exclude=1,2,3 to your shortcode. You must separate multiple contestants post ids by a comma.)","Show_contest_include":"(Note: Include contestants from your listing by adding include=1,2,3 to your shortcode. You must separate multiple contestants post ids by a comma.)","Show_contest_pagination":"(Note: The contestants will be displayed without pagination if it is set to 0)","Show_contest_onlyloggedinuser":"(Note: To specify Whether the non-loggedin Users able to cast the vote or not.)","Show_contest_showtimer":"(Note: By default, the Start or End timer is not shown. Added showtimer=1 to display the Start or End timer.)","Show_contest_showform":"(Note: By default, the entry form is displayed based upon your start timer settings. If you want to hide the form add showform=0 to your shortcode.)","Show_contest_showrules":"(Note: By default, the show rules is displayed. If you want to hide the form add showrules=0 to your shortcode.)","Show_contest_view":"(Note: By default, the grid and list view changer is shown. By adding view=grid or view=list you can specify the default view which removes the view changer.)","Show_contest_navbar":"(Note: By default, the navigation bar is shown. If you want to hide the navigation bar add navbar=0 to your shortcode.)","Show_contest_search":"(Note: By default, the Search bar will not be displayed. Add search=1 attribute to display search in navigation bar.)","multiple_contest_intro":"Create a page and use showcontestant shortcode multiple times. It will list multiple contestants in a single page.","multiple_contest_ex":"(Note: [showcontestants id=3 showform=1][showcontestants id=2 showform=1] etc)","multiple_contest_use":"(Note: you can use the attributes available for show contestant shortcode.)","upcoming_contest_id":"(Note: To specify the Category of the post for which the Start timer get displayed.)","upcoming_contest_show":"(Note: To specify Whether the Contestants get displayed or not.)","user_logged_in":"User is logged in! Do you wanna logout ","user_logout_link":"Logout","by":"By: ","votes":"Votes","all_categories":"All Categories","csv":"CSV","html":"HTML","excel_xlsx":"Excel 2007 (XLSX)","excel_xls":"Excel 2003 (XLS)","excel_ods":"Open office (ODS)","steps_import":"Steps to Import Contestants","prepare_contest":"Prepare your Contestants CSV/XLS/XLSX/ODS file in the format given below.","choose_category":"Choose Category. Note: New Category can be created in this page  ","add_category_link":"Add Category","upload_csv":"Upload the CSV/XLS/XLSX/ODS file using the form and click upload","end_contest_attr_id":"The \\"endcontestants\\" shortcode is used to display only the contestants from contests that have already ended.","end_contest_id":"(Note: To specify the Category of the post for which the End timer get displayed.)","top_contest_attr_id":"The \\"topcontestants\\" shortcode is used to display only the contestants from contests that got high number votes during the contest.","top_contest_id":"(Note: To specify the Category of the post for which the high voted contestants get displayed.)","top_contestant_count":"(Note: Adding the shortcode attritube showcount=3 will force high voted contestant entries limit to 3.)","login_contest_attr_id":"The \\"logincontest\\" shortcode is used to display the login form.","add_contest_attr_id":"The \\"addcontestants\\" shortcode is typically used to display only the entry form of a single contest and not the contestants.","add_contest_id":"(Note: Specify the Contest Category which the contestants are added to.)","add_contest_showcontestants":"(Note: Adding the shortcode attribute showcontestants=1 or showcontestants=0 will show or hide the contestants. Very useful when you just want to display the entry form.)","add_contest_displayform":"(Note: Adding the shortcode attribute displayform=1 or displayform=0 will override your default form settings that are based off the start time. )","add_contest_showrules":"(Note: Adding the shortcode attribute showrules=1 or showrules=0 will show or hide the Rules and Prizes link. Very useful when you just want to display the entry form.)","profile_screen_attr_id":"The \\"profilescreen\\" shortcode is used when you require a contestant to register/login to enter a contest. Since the user account is created, we can now track their entries. This allows us to display all of thier own entries on the profile screen after they login. From here they can delete their entries. Optionally, if you enable it, they can edit their entry from this screen as well. You can ","profile_screen_attr_id_link":"VIEW THE DEMO HERE.","profilescreen_id":"(Note: Adding the shortcode attritube contests=1 will force display the contestant entries. Using contests=0 will hide their entries.)","profilescreen_form":"(Note: You can override the global contestant edit setting by using the shortcode attribute form=1 to enable editing of contestants. You can also use form=0 to disable editing.)","show_all_attr_id":"The \\"showallcontestants\\" shortcode is a completely new layout and view for displaying all the contestants on a signle page from all contest categories. With this view only, you can search for contestants and filter by category. You can ","show_all_order_by":"(Note: Specify how your contestants are ordered by, by adding orderby=votes to your shortcode. Options are listed ","show_all_order":"(Note: Specify the Order the Contestants are listed in by adding order=ASC or order=DESC to your shortcode.)","show_all_post":"(Note: Specify the Number of Contestants to display per page in the Contest Listing by adding postperpage=10 to your shortcode. Change # to desired amount.)","add_con_attr_id":"The \\"addcontest\\" shortcode will allow you to show a single entry form to enter all of your contests. This shortcode will not allow you to show the contestants listing. You can ","no_attribute":"(No Attributes available for this shortcode.)","common_set":"Common Settings","contest_set":"Contest Settings","style_set":"Layout Settings","style_setting":"Global Layout Settings","gcolor_setting":"Global Color Settings","share_set":"Share Settings","script_set":"Plugin Settings","excerpt_set":"Excerpt Settings","pagin_set":"Pagination Settings","email_set"
1:"Email Notifications","referral_set":"Referral Settings","enable_all":"Enable All","disable_all":"Disable All","mobile_settings":"Mobile App Settings","configure_mobile_app":"Configure Mobile App","mobile_app_general_color":"General Colors","mobile_app_icon_color":"Icon Colors","mobile_app_text_color":"Text Colors","use_following_app":"You can use the following settings to customize the Mobile App. Preview will differs based upon the device","select_intro_imgs":"Select Intro Images","select_logo_img":"Select Logo Image","select_gradient_1":"Select Gradient Color 1","select_gradient_2":"Select Gradient Color 2","select_app_bg":"Select App BG Color","contestant_bg":"Select Contestant BG Color","contestant_border":"Select Contestant Border Color","select_shadow":"Select Shadow Color","select_footer_bg":"Select Bottom BG Color","footer_border":"Select Bottom Border Color","intro_icon":"Intro Dots Icon Colors","category_icon":"Category Icon Colors","vote_icon":"Vote Button Icon Colors","bottom_icon":"Bottom Bar Icon Colors ","view_icon":"View Icon Color","intro_btn_icon":"Intro Button Icon Color","loadmore_icon":"Load More Icon Color","share_icon":"Share Icon Color","category_text":"Category Text Colors","contestant_title":"Contestant Title","view_text":"View Button Text Color","vote_text":"Vote Button Text Color","intro_button_text":"Intro Button Text Color","loadmore_text":"Load More Text Color","buyvotes_button":"Buy Votes","payment_paypal_set":"Payment - Paypal","payment_stripe_set":"Payment - Stripe","video_ext_set":"Video Extension Settings","photo_ext_set":"Photo Extension Settings","image_setting":"Image Settings","shrt_cont_image":"Shortcode Contest Image","select_image_tooltip":"Select Image size to show on Grid/List","shrt_cont_image_mobile":"Shortcode Contest Image (Mobile)","select_image_mobile_tooltip":"Select Image size to show on Grid/List","conts_cont_image":"Contestants Page Image","popup_image":"Popup Image","select_image_s_tooltip":"Select Image size to show on single contestant page","popup_image_s_tooltip":"Select Image size to show on Popup","full_size":"Full size","sing_cont_image":"Single Contestant Image","specify_image_s_tooltip":"Specify Image size on single contestant page","single_setting":"Single contestant page settings","title_postion":"Title Position","title_pos_tooltip":"Shows the title in the Top of Single Contestant view.","disable_popup":"Disable Popup","disable_singlepage":"Disable Single contestant page","select":"Select","none":"None","diable_popup_tool":"Disable popup in single contestants page","disable_single_contest":"Disable single contestants page","content_Setting":"Content Setting","popup_setting":"Popup Setting","title_cat_Set":"Title/Category Position","title_cat_tooltip":"Shows the title in the Top of Image/Video/Music grid view.","show_title_tip":"Specify the Title to show above contestants","show_title":"Title","order_by":"Order By","order_by_tooltip":"Order contestants in Grid/List pages","select_sidebar":"Select Sidebar","select_sidebar_tool":"Selected Sidebar Will Be Displayed In Contestant Description Page.","disable_sidebar":"Disable Sidebar","disable_sidebar_tool":"Disable Sidebar In Contestant Description Page.","BOTTOM":"BOTTOM","TOP":"TOP","NO":"NO","YES":"YES","DESC":"DESC","ASC":"ASC","disable_read_tool":"Disable Read More Button In Contestant Page.","disable_read_more":"Disable Read More Button","disable_state_entry":"Default State of Entry Form","disable_state_entry_tool":"Entry Form Can be set to open always","hide_your_profile":"Hide Your Profile Tab","hide_your_profile_tool":"Show / Hide Your Profile tab for logged-in users","OPEN":"OPEN","CLOSED":"CLOSED","ENABLE":"ENABLE","DISABLE":"DISABLE","SHOW":"SHOW","HIDE":"HIDE","disable_popup_tool":"Disables Popup in Grid/List View and Redirects to the Single Contestants Page","show_date":"Show Date","show_date_tool":"Show Date in Popup","permalink_setting":"PERMALINK SETTINGS","custom_slug_tooltip":"Specify the Custom Slug","custom_slug":"Custom Slug","contest_new_tab":"Contestant Link in New TAB","contest_new_tab_tool":"Open Contestant Link in New TAB. It will work only when the custom links for the contestants is added.","all_contest_settings":"ALL CONTEST PAGE SETTINGS","enable_expired_contest":"Enable Expired Contest","select_showallcontestants_design":"Show All Contestants - Split Categories","showallcontestants_design_tool":"Specify if contestants should be split based on categories or shown mixed.","show_hide":"Show / Hide Vote Count","enable_exp_tool":"Specify whether Enable or Disable the Ended and Expired Contest in Category Select","show_hide_tool":"Specify whether to Show/Hide Vote Count In All Contestant Page","login_settings":"LOGIN SETTINGS","hide_account":"Hide Create Account","hide_account_tool":"Specify Whether to Hide or Show Create Account tab in Login Form","enab_dis_login":"Enable / Disable Auto Login","enab_dis_login_tool":"Disable Auto Login after registration to force users to verify their email address","recap_settings":"GOOGLE RECAPTCHA SETTINGS","enabl_recap":"Enable Recaptcha in Login & Register","enabl_recap_tool":"Specify Whether to Enable or Disable the Recaptcha in Login & Register form","enabl_recap_vote":"Enable Recaptcha while voting","enabl_recap_vote_tool":"Specify Whether to Enable or Disable the Recaptcha While Voting","percent":"%","px":"px","mobile_menu_settings":"MOBILE MENU SETTINGS","default_mobile_menu":"Default State of Mobile Menu","default_mobile_menu_tool":"Specify Whether to Open or Close Mobile Menu","voting_options":"Voting Options","contest_options":"CONTEST OPTIONS","voter_details_options":"VOTER DETAILS","must_login_vote":"Must be logged in to Vote?","must_login_vote_tool":"Only logged in Users can register their Vote","vote_own_entry":"Allow voting own entry","vote_own_entry_tool":"Enable / Disable voting own entry","must_login_submit":"Must be logged in to submit entries?","must_login_submit_tool":"Only logged in Users can submit their entries for the contest","enable_cancel_vote":"Enable Cancel Vote ( IP, Cookie & User Account Tracking only )","enable_cancel_vote_tool":"Allows user to cancel their vote - IP, Cookie & User Account Tracking only","vote_track":"Vote Tracking","vote_frequency":"Voting Frequency","user_vote_for":"User Can Vote For","voted_message":"Voted successful message","voted_message_tool":"Add custom voted successful message with formatting. Leave this empty to use translation message.","vote_track_tool":"Select how Votes will be Tracked when a User is not required to log in. IP Traced is the most secure!","vote_frequency_tool":"Allows to change the Voting Frequency.","grab_email":"Grab Email Address Before Voting","grab_email_tool":"This option will only work for IP & COOKIE vote tracking","grab_email_news":"Enable Newsletter Subscription","grab_email_news_tool":"If the vote tracking is configured for email verification or the option to collect email before voting is enabled, the checkbox will be displayed beneath the email field and will appear as a widget for other tracking options.","grab_name":"Grab Name Before Voting","grab_country":"Grab Country Before Voting","grab_zipcode":"Grab Zipcode Before Voting","grab_consent":"Show Consent Before Voting","consent_text":"Enter the Consent Text","single":"Single","entries":"Entries","multiple_exp":"Multiple (Exclusive)","miltiple_split":"Multiple (Split)","title_trunc_grid":"Title Truncation grid view","title_trunc_list":"Title Truncation list view","auto_approve":"Auto Approve Contestants","to_be_started":"To Be Started Description","closed_desc":"Closed Description","entr_closed":"Entries Closed Description","title_trunc_grid_tool":"Limit the title characters show on contestant listing (grid view)","title_trunc_list_tool":"Limit the title characters show on contestant listing (List view)","auto_approve_tool":"Select for publishing automatically unselect for Pending State","to_be_started_tool":"Start time Description.","closed_desc_tool":"Closed Description","entr_closed_tool":"Entries Closed Description","facebook_sharing":"Facebook Sharing","deactivate_settings":"Deactivation Settings","retain_data":"Save data when deactivating or updating plugin","loadScript_settings":"Script Settings","deactivate_settings_tool":"Data will get retained after deactivation","fb_api_id":"Facebook App ID","enable_fb":"Enable Facebook Sharing?","enable_fb_login":"Enable Facebook Login?","use_default_fb":"Use default Facebook image?","fb_api_id_tool":"Create Facebook key and add it here","enable_share_tool":"Sharing Icon will be shown on contestants","enable_fb_login_tool":"Enable Facebook on Registration and Login","use_default_fb_tool":"Change the default icon by uploading the image / use default icon for sharing","upload_image":"Upload Image","threads_sharing":"THREADS SHARING","enable_threads":"Enable Threads Sharing?","pinterest_sharing":"PINTEREST SHARING","enable_pin":"Enable Pinterest Sharing?","use_default_pin":"Use default pinterest image?","reddit_sharing":"REDDIT SHARING","enable_reddit":"Enable Reddit Sharing?","use_default_red":"Use default Reddit image?","linked_setting":"LINKEDIN SHARING","enable_linkedin":"Enable LinkedIn Sharing?","use_default_linked":"Use default LinkedIn image?","tumblr_sharing":"TUMBLR SHARING","enable_tumblr":"Enable Tumblr Sharing?","use_default_tumblr":"Use default tumblr image?","twitter_sharing":"X(TWITTER) SHARING","twitter_api_key":"X(Twitter) API key","twitter_api_secret":"X(Twitter) API Secret","t
1witter_enable":"Enable X(Twitter) Sharing?","twitter_enable_login":"Enable X(Twitter) Login?","use_twitter_image":"Use default X(Twitter) image?","twitter_api_id_tool":"Create X(Twitter) key and add it here","twitter_api_secret_tool":"Create X(Twitter) secret key and add it here","enable_twitter_login_tool":"Enable X(Twitter) on Registration and Login","google_sharing":"GOOGLE AUTHENTICATION","enable_google":"Enable Google Login?","google_api":"App\'s Client ID","enable_google_tool":"Enable Google Login","google_api_tool":"Create App\'s Client ID on Google and add it here","use_words":"use words?","excerpt_length":"Excerpt Length","excerpt_length_tool":"Specify the length of excerpt","ellipsis":"Ellipsis","ellipsis_tool":"Will substitute the part of the post that is omitted in the excerpt.","finish":"Finish","finish_tool":"Prevents cutting a word or sentence at the end of an excerpt. This option can result in (slightly) longer excerpts.","read_more":"‘Read-more’ Text","add_link":"Add link to excerpt","word":"Word","sentence":"Sentence","read_more_tool":"Change the Read more text as per need","no_custom_excerpt":"No Custom Excerpts","no_custom_excerpt_tool":"Create custom excerpt even if post has custom excerpt","generate_excerpt":"Generate excerpts even if a post has a custom excerpt attached.","strip_short":"Strip Shortcodes","remove_shortcode":"Remove shortcodes from the excerpt. (recommended)","strip_short_tool":"Removes the shortcode from excerpt","page_navi":"PAGE NAVIGATION TEXT","text_num_page":"Text For Number Of Pages","text_num_page_tool":"%CURRENT_PAGE% - The current page number %TOTAL_PAGES% - The total number of pages","text_cur_page":"Text For Current Page","text_cur_page_tool":"%PAGE_NUMBER% - The page number","text_page":"Text For Page","text_frst_page":"Text For First Page","text_last_page":"Text For Last Page","text_frst_page_tool":"%TOTAL_PAGES% - The total number of pages","text_prev_page":"Text For Previous Page","text_next_page":"Text For Next Page","text_load_more":"Text For LoadMore Button","text_prev_page_tool":"Change Text For Previous Page","text_next_page_tool":"Change Text For Next Page","text_load_more_tool":"Change Text For LoadMore Button","page_navi_option":"PAGE NAVIGATION OPTIONS","page_navi_style":"Page Navigation Style","page_navi_style_tool":"Select Page Navigation Style","no_of_page_show":"Number Of Pages To Show","no_of_page_show_tool":"Number Of Pages To Show","usage_variable":"USAGE VARIABLES","use_following":"You can use the following email tags to customize the email notifications.","admin_email_notif":"ADMIN EMAIL NOTIFICATION","admin_notif":"Admin Notification","admin_notif_tool":"Admin notify on contestant entry submission","notif_mail":"Notification E-Mail Id","from_mail":"From E-Mail Id","notif_mail_tool":"Admin notification E-mail Id Note: If no Email Id is set. Mail will be sent to admin email (Settings->General)","admin_email_notifc":"Admin Email Notification","admin_email_notifc_tool":"Admin notification E-mail Content Note: This text will be appended after the Link of Contestants","contestant_email_notif":"CONTESTANT SUCCESS EMAIL NOTIFICATION","contestant_email_not":"Contestant Success Notification","contestant_email_not_tool":"Contestant will be notified when an entry is submitted","contestant_email_sub":"Email Notification Subject","contestant_email_sub_tool":"Add Email Notification Subject when an contestant is submitted","contestant_eml_notif":"Contestant Email Notification","contestant_eml_notif_tool":"Contestant Success E-mail Notification Content Note: This text will be appended after the Details of Contestants","contest_publish":"Contestant Published Email Notification","contest_appr_notif":"Contestant Approved Notification","contest_appr_notif_tool":"Contestant will be notified when an entry is Approved/Published","contest_appr_sub":"Email Notification Subject","contest_appr_sub_tool":"Add Email Notification Subject when an contestant is Approved/Published","contest_em_appr":"Contestant Email Notification","contest_em_appr_tool":"Contestant Approved/Published E-mail Notification Content Note: This text will be appended after the Details of Contestants","contest_rejected":"Contestant Rejection Email Notification","contest_reject_notif":"Contestant Rejected Notification","contest_reject_notif_tool":"Contestant will be notified when an entry is Rejected","contest_rej_sub_tool":"Add Email Notification Subject when an contestant is Rejected","contest_rej_appr_tool":"Contestant Rejected E-mail Notification Content Note: This text will be appended after the Details of Contestants","voted_successfully_email":"Voted Successfully Email Notification","voted_successfully_notif":"Voted Successfully Notification","voted_successfully_notif_tool":"User will be notified when voted successfully","contest_voted_sub_tool":"Add Email Notification Subject when a user Voted","contest_voted_content_tool":"Voted Successfully E-mail Notification Content","referral_options":"REFERRAL OPTIONS","referral_enable_tool":"Enable referral while registering new user. Must use the plugin registration form.","referral_enable":"Enable Referral","referral_codes":"Referral Codes","referral_codes_tool":"Enter Referral Codes and Bonus Votes Information","referral_site":"Referring Site URL","referral_code":"Referral Code","referral_votes":"Bonus Votes","referral_add_code":"Add new code","referral_delete_code":"Delete code","referral_copy_code":"Copy Referral Link","referral_login_page":"Login Page URL","referral_login_page_tool":"URL to your page that uses the [logincontest] shortcode","remaining_bonus_votes":"Available Bonu
1s Votes : ","basic_style_settings":"Basic Style Settings","spacing":"Select Spacing","direction":"Select Style","imageProportion":"Maintain Image Proportion","info":"Info","imageProportionInfo":" will display the Contestants based upon the Image Width and Height applied in the Common Settings in both GRID and LIST view. Below preview will differ based upon the Image Dimensions","grid":"Grid","list":"List","sel_grid":"Select Grid Width","sel_video_height":"Select Video Height","sel_music_height":"Select Music Height","sel_list_width":"Select List Width","set_updt":"Settings Updated","css_color_setting":"Color Settings","timer_back":"Counter Background Color","count_font_color":"Count Font Color","pagination_default_bgcolor":"Pagination Default Background Color","pagination_active_bgcolor":"Pagination Active Background Color","pagination_default_fontcolor":"Pagination Default Font Color","pagination_active_fontcolor":"Pagination Active Font Color","pagination_disabled_bgcolor":"Pagination Disabled Background Color","cfont_size":"Counter Font Size","counter_colors":"Counter Colors","navigation_bar":"Navigation Bar","submit_entry":"Submit Entry","gallery":"Gallery","top_ten":"Top 10","rules":"Rules and Prizes","profile":"Your Profile","navi_font_size":"Navigation Font Size","navi_font_color":"Navigation Font Color","navi_font_hover":"Navigation Font Color:Hover","navi_background":"Navigation Background Color","form_background":"Form Background Color","form_border":"Form Border Color","use_category_colors_tool":"Choose to utilize Category Colors rather than Global Colors.","use_category_colors":"Use Category Colors","import_global_colors":"Import Global Colors","list_view_act":"List View Active","list_view_inact":"List View Inactive","grid_view_act":"Grid View Active","grid_view_inact":"Grid View Inactive","act_btn_back":"Navigation Active Button Background","menu_arrow":"On Mobile Responsive Menu Arrow & Font Color","Search":"Search","Cancel":"Cancel","you_have_reach_limit":"You have reached Maximum Limit","contestant_view":"Contestant Grid / List View","pagination_color":"Pagination","contest_font_Size":"Contestant Title Font Size","contest_title_font":"Contestant Title Font Color","contest_title_font_hover":"Contestant Title Font Color:Hover","contestant_title_bg_color":"Contestant Title Background Color","contest_desc_font":"Contestant Description Font Size","contest_desc_font_clr":"Contestant Description Font Color","contest_desc_font_bg_clr":"Contestant Description Background Color","read_more_fnt":"Read More Font Size","read_more_fnt_color":"Read More Font Color","read_more_fnt_clr_hover":"Read More Font Color:Hover","vote_count_font_size":"Vote Count Font Size","vote_box_bg":"Background Color of Contestant Grid or List","vote_count_font_clr":"Vote Count Font Color","vote_count_bck_clr":"Vote Count Backgroun
1d Color","vote_btn_font_size":"Vote Button Font Size","vote_btn_font_clr":"Vote Button Font Color","vote_btn_font_clr_hover":"Vote Button Font Color:Hover","vote_btn_bck_clr":"Vote Button Background Color","vote_btn_bck_clr_hover":"Vote Button Background Color:Hover","vote_highlight":"Highlight Voted button (vote registered) only works for voting frequency is set to \\"Per Category and Per Calendar Day\\"","vote_highlight_other":"Other Voted button (Non votable) only works for voting frequency is set to \\"Per Category and Per Calendar Day\\"","cancel_button_font_size":"Cancel Button Font Size","cancel_btn_font_clr":"Cancel Button Font Color","cancel_btn_font_clr_hover":"Cancel Button Font Color:Hover","cancel_btn_bck_clr":"Vote Button Background Color","cancel_btn_bck_clr_hover":"Cancel Button Background Color:Hover","votes_social_font_size":"Social Icon Font Size","votes_social_icon_color":"Social Icon Color","votes_social_icon_color_hover":"Social Icon Color:Hover","contest_category":"Contest Category","add_category":"Add Contest","template_setting":"Template Setting","color_setting":"Color Settings","contest_custom":"Contestant Custom Fields","registration_custom":"Registration Custom Fields","contest_add_custom":"Add Custom Fields","submit_form_add":"Add Fields To Submit Entry","registration_add":"Add Fields To Registration","enter_reg_form":"Show in Registration Form","populate_field_type":"Click the buttons below to Populate the Custom Field Type","text":"Text","text_area":"Text Area","radio_button":"Radio Button","drop_down":"Drop Down","checkbox":"Checkbox","file":"File","datepicker":"DatePicker","field_name":"Field Name *","enter_field_name":"Enter Custom Field Name","allow_size":"Allowed File Size Limit","allowtype":"Allowed File Types","enter_allow_size":"Mention size upload limit in MB eg:3","filevalues_tool":"A comma seperated list of extensions Eg. docx,pdf,doc","terms_condition":"Terms & Conditions","field_desc":"Field Description","enter_field_desc":"Custom Field Description or Notes","required":"Required","enter_required":"Mark this question as required (Mandatory).","required_text":"Required Text","enter_required_text":"Text to display if field is empty. (Validation Error Message)","show_form":"Show in contestant form","enter_show_form":"YES: Shows custom field in contestant form.  NO: Shows custom field in admin only","show_label_single":"Show Labels In Single Contestants View","enter_label_single":"YES: Show Labels In Single Contestants View.  NO: Hide Label In Single Contestants View","show_label_grid":"Show Labels In Grid/List view","enter_label_grid":"YES: Show label in Grid/List View.  NO: Hide label in Grid/List only","show_grid":"Show in Grid View","enter_show_grid":"YES: Shows custom field in Grid View.  NO: Shows custom field in admin only","show_list":"Show in List View","enter_show_list":"YES: Shows custom field in List View.  NO: Shows custom field in admin only","show_single":"Show on Single Contestants Post","enter_show_single":"YES: Shows custom field details in Single Contestant page.","show_modal":"Show in Modal Popup","is_music_upload":"Music files only","is_music_upload_help":"Allow only \'Music\' file upload","set_limit_type":"Select Limit Type","set_limit":"Set Character/Word Limit","set_limit_tool":"Set Character/Word Limit for the Field","set_character_limit":"Set Character Limit","set_word_limit":"Set Word Limit","set_limit_count_tool":"Set Limit Count for the Field","enter_show_modal":"YES: Shows custom field details in Modal Popup.","select_text_box":"Select Textbox Type","select_size_area":"Select Textarea Size","number":"Number","values":"Values *","values_tool":"A comma seperated list of values Eg. black,blue,red","value_placement":"Label Placement","icon_placement":"Select Icon","display_format":"Display Format","plugin_license_options":"Plugin License Options","license_key":"License Key","license_status":"License Status","license_validity":"Validity","save_changes":"Save Changes","active":"Active","expired":"Expired / Invalid","contestants":"Contestants","add_contestants":"Add Contestants","move_contestants":"Move Contestants","import_ontestants":"Import Contestants","export_contestants":"Export Contestants","news_subscriber":"Newsletter Subscriber","subscribe_news":"Subscribe","vote_log":"Vote Log","move_contest":"Move Contestants from this Category:","to_category":"To Category","list_of_contest":"List of Contestants in Category","select_get_contestant":"Select the Category to get Contestants","choose_cat_for_contestants":"Choose a Category for the Contestants","upload_import":"Upload File and Import","choose_file":"Choose a file from your computer","Export":"Export","export_file":"Export File","inserted_sucess":"Custom field saved sucessfully !","edit":"Edit","delete":"Delete","are_you_sure":"Are you sure?","delete_custom_field":"Delete custom field from list","delete_vote_log":"Delete Casted Vote","delete_newsletter_log":"Delete the newsletter subscribed user","agree":"Agree","disagree":"Disagree","custom_deleted":"Custom Field Deleted Successfully","custom_inserted":"Custom Field Saved Successfully","custom_align":"Custom Field Order Sequence Saved Successfully","content_Setti":"content Setting","select_category":"Select Contest Category","select_fields_for_entry":"Selected Fields for submit entry form ","drag_fields_for_entry":"Drag Fields for submit entry form ","drag_fields_for_register_form":"Drag Fields for Registration Form","select_fields_for_login":"Selected Fields for Login form This will be added with default wordpress register form","clear_voting_entries":"CLEAR VOTING ENTRIES","clear_voting":"Select the Contestants Category to Delete the Vote.","clear_voting_note":"Note: If you do not select a Contestant Category, all votes will be deleted from all Contest Categories.","select_the_contest":"Select the Contest","add_contest_category":"Add Contest Category","clone":"Clone","edit_contest_category":"Edit Contest Category","switch_list_contest":"Switch back to Contest Category Listing","category_name":"Contest Category Name","category_name_required":"Contest Category Name is required","category_slug":"Contest Category Slug","category_slug_required":"Contest Category Slug is required","update_vote_category_details":"Update Other Details for Contest Category","enable_edit_contestant":"Enable Edit/Delete Contestant","contest_category_type":"Type of Contest","photo_contest":"Photo Contest","video_contest":"Video Contest","music_contest":"Music Contest","essay_contest":"Essay Contest","display_image":"Display Image","hide_vote_count":"Hide Vote Count","display_categories":"Display Categories","hide_grid_list":"Hide List/Grid","show_total_vote_count":"Show Total Vote Count","show_to
1p_contestants":"Show Top 10 Contestants","show_gallery":"Show Gallery Button","show_author_name":"Show Author Name","show_author_email":"Show Author Email","hide_photos_until_live":"Hide Photos Until Live","hide_video_until_live":"Hide Videos Until Live","hide_music_until_live":"Hide Music Until Live","select_start_time":"Select Start Time","clear_start_time":"Clear Start Time","select_end_time":"Select End Time","clear_end_time":"Clear End Time","activation_count":"Activation Count","topten_custom_count":"Display Top ___ Contestants","set_gallery_link_btn":"Set Gallery Button Link","entry_limit_user":"Entry Limit Per User","show_contest_desc":"Show Contestant Description","both":"Both","author_details":"Author Details","category_details":"Contest Category Details","img_mandatory":"Image Mandatory","enable_music_upload":"Enable Music Upload","vote_count_per_click":"Vote Count Per Click","add_new_contest_category":"Add New Contest Category","update_contest_category":"Update Contest Category","update_category":"Add / Edit Category","contest_category_saved":"Contest Category Saved Successfully","contest_color_settings_saved":"Contest Category Color Settings Saved Successfuly","contest_layout_settings_saved":"Contest Category Layout Settings Saved Successfuly","contest_clone_saved":"Contest Category Cloned Successfully","contest_clone_deleted":"Contest Category Deleted Successfully","contest_style_clone_deleted":"Contest Category Layout setting Deleted Successfully","contest_color_clone_deleted":"Contest Category Color setting Deleted Successfully","confirm_delete_category":"Are you sure to delete Contest Category ?","confirm_voting_log":"Are you sure to delete Voting logs ?","confirm_newsletter_log":"Are you sure to delete Newsletter subscribed users ?","no_contest_category":"No Contest Category found","update_color_settings":"Update Color Settings for the Category","update_layout_settings":"Update Layout Settings for the Category","category_name_help":"The name is how it appears on your site","category_slug_help":"The Slug is how it appears on your URL for category on site","enable_edit_contestant_help":"Allow contestants to edit/delete their contest entries via the profile screen","contest_category_type_help":"Type of Contest","display_image_help":"Display Featured Image in Contestant Listing","hide_vote_count_help":"Hide Vote Count in Contestant Listing and Description Page","display_categories_help":"Displays Categories in Contestant Listing","hide_grid_list_help":"Hide List/Grid Option in Contests","show_total_vote_count_help":"Displays Total Vote Count Of Category Below Contest Timer","show_top_contestants_help":"Displays Top Ten Contestants","show_gallery_help":"Displays Gallery Button in Navigation Bar","show_author_name_help":"Displays Author Name On Contestant","show_author_email_help":"Displays Author Email On Contestant","hide_photos_until_live_help":"Hide Photos Until Live","select_start_time_help":"Default: No Start Time","select_end_time_help":"Default: No Expiration","pause_voting_help":"Pause voting for a specified number of hours after the completion of contestants\' entry.","pause_voting":"Pause voting for ___ hours","activation_count_help":"Number of Contestants to be reached to make it Active","topten_custom_count_help":"Number of Contestants to show in Top Ten Contestants list","set_gallery_link_btn_help":"Enter the URL of this contests main page","entry_limit_user_help":"Limit the number of entries a single contestant may submit. Leave blank for unlimited entries per contestant","enable_music_upload_help":"Enable Music Upload In Submit Entry Form for Music Contest Category","rules_help":"Description of Rules and prizes","show_contest_desc_help":"Select options to show contestant descriptions in the Corresponding view","vote_count_per_click_help":"Set the number of votes per click.(Default count 1)","color_settings_category":"Color Settings for Category","layout_settings_category":"Layout Settings for Category","category":"Category","enter_email_address":"Enter your Email address","check_email_newsletter":"Subscribe to our Newsletter","enter_voter_name":"Enter your Name","select_voter_country":"Select your Country","enter_voter_zipcode":"Enter your Zipcode","enter_email_to_verify":"Enter Email Address to receive voting code","enter_email_code":"Enter Emailed Voting Code","send_email_code":"Send Code","verifiy_code":"Verify Code","fr_category":"Category: ","fr_read_more":"Read More","fr_vote_now":"Vote Now","Processing":"Processing","fr_votes":"Votes","termsandconditions":"Terms and Conditions","save_contestant":"Save Contestant","fr_author_name":"Author: ","fr_author_email":"Author Email: ","please_wait_until":"Please wait file upload is in progress","please_wait_uploads":"Appending the files to the contestant","success_entry":"Contestant Submission","approve_entry":"Your entry has been successfully submitted. You will receive a confirmation email.","profile_update":"Contestant Successfully Edited. Waiting for Admin Approval","not_approved":"Contestant Successfully Added. Waiting for Admin Approval.","file_name":"File name: ","vote_starts_in":"Voting Starts In:","vote_ends_in":"Contest Ends In:","vote_ended":"Contest Has Ended","days":"days","hours":"hours","minutes":"minutes","seconds":"seconds","show_total_votes":"Total votes for the Contest","create_account":"Create Account","login":"Login","you_must_logged":"YOU MUST BE REGIST
1ERED AND LOGGED TO CONTINUE","login_username":"Username","login_password":"Password","login_btn":"Login","forgot_password":"FORGOT YOUR PASSWORD?","forgot_details":"FORGOT YOUR DETAILS?","send_my_details":"SEND MY DETAILS!","remember_now":"AAH, WAIT, I REMEMBER NOW!","resend_verification_email":"RESEND VERIFICATION EMAIL","send_email":"SEND EMAIL!","back_to_login":"LOGIN NOW!","login_with":"Login with:","remember_me":"Remember Me","login_cpassword":"Confirm Password","login_email":"Email Address","create_myaccount":"Create My Account","account_created":"Account is created","registration_successfull_subject":"Registration Successful!","registration_successfull":"Registration Successful! Check your mailbox to activate the account","already_have_account":"ALREADY HAVE AN ACCOUNT?","additional_infor":"Additional Information","paidentry_extension_settings":"Paid Entry settings","paypal_settings":"Payment Settings - Paypal","select_paypal_mode":"Select Paypal Payment mode","select_paypal_mode_desc":"Select Paypal Payment mode whether it is testing or live","paypal_client_id":"Paypal Client ID","paypal_client_id_desc":"Add Paypal Client ID","ow_payment_currency":"Currency Select","ow_payment_currency_desc":"Select Currency Format for the Payment","ow_thankyou":"Thank you Page Link","ow_thankyou_desc":"Add Thank you Page Link","email_content":"Email Content","stripe_settings":"Payment Settings - Stripe","stripe_secret_key":"Stripe Secret Key","stripe_secret_key_desc":"Add Stripe Secret Key","stripe_publishable_key":"Stripe Publishable Key","stripe_publishable_key_desc":"Add Stripe Publishable Key","paystack_settings":"Payment Settings - PayStack","coinbase_settings":"Payment Settings - Coinbase Cryptocurrency","paystack_public_key":"PayStack Public key","paystack_public_key_desc":"Add PayStack Public key","enable_paypal_payment":"Enable Paypal Payment","enable_paypal_payment_desc":"Enable the Paypal Payment mode for this Category","enable_stripe_payment":"Enable Stripe Payment","enable_stripe_payment_desc":"Enable the Stripe Payment mode for this Category","enable_paystack_payment":"Enable Paystack Payment","enable_paystack_payment_desc":"Enable the Paystack Payment mode for this Category","enable_coinbase_payment":"Enable Coinbase Payment","enable_coinbase_payment_desc":"Enable the Coinbase Payment mode for this Category","payment_paypal_entry_amount":"Amount for Entry - Paypal","payment_paypal_entry_amount_desc":"Enter the Amount for Contestants (Example - 20)","payment_stripe_entry_amount":"Amount for Entry - Stripe","payment_stripe_entry_amount_desc":"Enter the Amount for Contestants (Example - 20)","payment_paystack_entry_amount":"Amount for Entry - Paystack","payment_paystack_entry_amount_desc":"Enter the Amount for Contestants (Example - 20)","payment_coinbase_entry_amount":"Amount for Entry - Coinbase","payment_coinbase_entry_amount_desc":"Enter the Amount for Contestants (Example - 20)","paysave_contestant":"Pay to Save Contestant","select_payment_gateway":"Select Payment Gateway","pay_using_stripe":"Pay Using Stripe","pay_using_paystack":"Pay with Paystack","coupon_extension_settings":"Coupon Extension Settings","enable_coupon":"Enable Coupon","enable_coupon_desc":"Enable the Coupon mode for this Category","apply_coupon":"Apply Coupon","share_contestant":"Share ","copied":"Copied!","upload_date":"Upload Date","edit_delete":"Edit / Delete","post_status":"STATUS","social":"SHARE","do_you_wanna_delete":"Are you sure you want to delete?","contestant_updated":"Contestant updated successfully","successup_entry":"Contestant Update","share_with_friends":"Share with your Friends","restricted":"Restricted","voted_sucess":"Voted Successfully","you_voted":"You\'ve Voted!","voted_already":"Already Voted","already_content":"Warning! You have already registered your vote","cannot_vote_own_post":"Warning! You cannot vote your own entry","votes_cleared":"Votes Cleared Successfully","vote_frequency_hours":"Enter Frequency Hours","voted":"Voted","cancel_vote":"Cancel Vote","votes_cancelled":"Vote Cancelled","votes_cancelled_content":"Your vote is cancelled","voteagain":"Vote Again","voterestricted":"Voting Restricted","vote_limit_reached":"Vote Limit Reached","pls_vote_tomorrow":"Please vote again tomorrow","pls_vote_tomo_for_cal":"Please vote again tomorrow or for another contestant","pls_vote_tomo_for_cal_split":"Please vote again tomorrow or vote for another contestant","select_add_category":"Select Contest Category","all_categories_select":"All Categories","sort":"SORT","newest":"NEWEST","oldest":"OLDEST","mostvoted":"MOST VOTED","leastvoted":"LEAST VOTED","reset_gallery":"Reset Gallery","clear_gallery":"Clear Gallery","clear_layout":"Clear Layout Design","clear_color":"Clear Color Design","layout_delete":"Are you sure to Clear Layout Design ?","color_delete":"Are you sure to Clear 
1Color Design ?","buyvotes_extension_settings_tab":"Buy Votes","buyvotes_extension_settings_title":"Buy Votes Settings - Payment Settings","buyvotes_extension_settings":"Buy Votes Settings","buyvotes_select_payment_mode":"Select Payment mode","buyvotes_select_payment_gateway":"Select Default Payment gateway","buyvotes_select_payment_mode_tool":"Select Payment mode whether it is testing or live","buyvotes_select_payment_gateway_tool":"Select Default Payment gateway selected in the Payment form","buyvotes_currency_select":"Currency Select","buyvotes_currency_select_tool":"Select Currency Format for the Payment","buyvotes_multiple_contestants":"Allow user to split votes between contestants","buyvotes_multiple_contestants_tool":"To allow user to split votes between contestants the \'Must be logged in to Vote\' option should be set to \'YES\' in Contest Settings.","remaining_buy_votes":"Remaining Votes : ","buyvotes_paypal_merchant_settings":"Paypal Merchant Settings","buyvotes_enable_paypal":"Enable Paypal for Buy Votes","buyvotes_enable_paypal_tool":"Turn On/Off Paypal Payment Gateway for Buy Votes","buyvotes_payp
1al_client_id":"PayPal Client ID - Production","buyvotes_paypal_client_id_tool":"Add PayPal Production or live Client ID. Sandbox client ID is already in the code. No need to add sandbox","buyvotes_paypal_secret":"PayPal Secret key - Production","buyvotes_paypal_secret_tool":"Add PayPal Production or live Secret key. Sandbox Secret key is already in the code. No need to add sandbox","buyvotes_stripe_merchant_settings":"Stripe Merchant Settings","buyvotes_enable_stripe":"Enable Stripe for Buy Votes","buyvotes_enable_stripe_zipcode":"Enable Postcode in Stripe","buyvotes_enable_stripe_zipcode_tool":"Enable Postcode in the Card Element while using the Stripe","buyvotes_enable_stripe_tool":"Turn On/Off Stripe Payment Gateway for Buy Votes","buyvotes_stripe_secret_key":"Secret Key","buyvotes_stripe_secret_key_tool":"Add Stripe Secret Key","buyvotes_stripe_publishable_key":"Publishable Key","buyvotes_stripe_publishable_key_tool":"Add Stripe Publishable Key","buyvotes_paystack_merchant_settings":"Paystack Merchant Settings","buyvotes_enable_paystack":"Enable Paystack for Buy Votes","buyvotes_enable_paystack_tool":"Turn On/Off Paystack Payment Gateway for Buy Votes","buyvotes_paystack_public_key":"Public Key","buyvotes_paystack_public_key_tool":"Add Paystack Public Key","buyvotes_coinbase_settings":"Coinbase Cryptocurrency Gateway Settings","buyvotes_coinbase_no_sandbox":"No Sandbox Available","buyvotes_enable_coinbase":"Enable Coinbase for Buy Votes","buyvotes_enable_coinbase_tool":"Turn On/Off Coinbase Payment Gateway for Buy Votes","buyvotes_coinbase_client_id":"Coinbase API Key","buyvotes_coinbase_client_id_tool":"Add Coinbase API Key","buyvotes_coinbase_create_app":"to Create a Coinbase API key","buyvotes_coinbase_secret":"Coinbase Webhook Shared Secret","buyvotes_coinbase_secret_tool":"Add Coinbase Webhook Shared Secret from Coinbase Settings Page under Webhook Subscriptions","buyvotes_coinbase_webhook_url":"Webhook URL","buyvotes_coinbase_webhook_url_tool":"Copy the Webhook URL and Paste in the Coinbase Settings Page under Webhook Subscriptions","buyvotes_coinbase_copy":"Click to Copy URL","buyvotes_coinbase_whitelist":"Add your domain in Whitelist","buyvotes_coinbase_whitelist_tool":"Copy your domain URL and Paste in the Coinbase Settings Page under Whitelisted domains","payment_failed":"Payment Failed","payment_initiated":"Payment Initiated","payment_success":"Payment Success","payment_initiated_text_buyvotes":"Your Payment has been initiated and processing. You will receive an Email and Votes will be added once the Payment is confirmed.","payment_failed_text_buyvotes":"Payment has been Failed. Try again later","your_email_address":"Your Email Address ","payment_initiated_text_paidentry":"Your Payment has been initiated and processing.Contestant will be added now and will be in PENDING Status. You will receive an Email and Contestant will be published once the Payment is confirmed.","payment_success_text_paidentry":"Your Payment has been confirmed.Contestant will be published after clicking on the below button","payment_paidentry_proceed_btn":"Click to Proceed","buyvotes_sandbox":"Sandbox (Test)","buyvotes_live":"Live","buyvotes_payp
1al_create_app":"to Create a PayPal app","buyvotes_paypal_click_here":"Click here","buyvotes_category_enable":"Enable Buy Votes","buyvotes_category_enable_help":"Enable the Buy Votes for this Category.","buyvotes_category_user_can_enter_count":"User Enters Quantity to Buy Votes","buyvotes_category_user_can_enter_count_help":"Enable the User to enter the quantity of votes to buy","buyvotes_category_tiered_payment_enable":"Enable Tiered Payments ","buyvotes_category_tiered_payment_enable_help":"Enable the Tiered Payments for quantity of votes","buyvotes_category_tiered_payment_visible_front_end":"Display Tiered Payments ","buyvotes_category_tiered_payment_visible_front_end_help":"Show Tiered Payments in the front end","wpvc_category_fixed_payment_enable":"Enable Fixed Payments","wpvc_category_fixed_payment_enable_help":"Enable the Fixed Payments for quantity of votes","buyvotes_category_cost":"Amount for Votes","buyvotes_category_cost_help":"Enter the Amount for Votes, example:10 USD (PER) 4 Votes","buyvotes_category_tiered_pricing_help":"For tiered pricing, the cost is PER vote; example: 10 USD (PER vote) for 1-4 votes.","buyvotes_category_fixed_pricing_help":"For fixed pricing, the cost is FOR a fixed number of votes, example: 10 USD (FOR) 4 votes","buyvotes_category_payment_gateway_help":"PayPal & Stripe will not process transactions under 1 USD.","buyvotes_category_amount":"Amount","buyvotes_category_per":"PER","buyvotes_category_from":"FROM","buyvotes_category_to":"TO","buyvotes_category_fixed":"FOR","buyvotes_category_votes":"Votes","buyvotes_category_per_vote":"PER vote","buyvotes_category_add_range":"Add Range","buyvotes_category_remove_range":"Remove Range","buyvotes_category_no_of_free_votes":"No. of free Votes","buyvotes_category_no_of_free_votes_help":"Enter the number of free votes By default it is calculated as 1","buyvotes_payment_gateway":"Select Payment Gateway","buyvotes_min_spend":"You need to spend at least 1 USD","buyvotes_total_amount":"Total Amount:","buyvotes_amount_per_vote":"AMOUNT PER VOTE","buyvotes_paywith_stripe":"Pay With Stripe","buyvotes_paywith_paystack":"Pay With Paystack","buyvotes_payp
1al":"Paypal","buyvotes_stripe":"Stripe","buyvotes_paystack":"Paystack","buyvotes_coinbase":"Coinbase","buyvotes_email_grab_submit":"Submit Email to proceed Payment Screen","buyvotes_email_grab_submit_captcha":"Add Email & Verify CAPTCHA to Payment Screen","buyvotes_split_votes_message":"Votes will be saved to your account, you can then assign the votes to contestant of your choice.","buyvotes_fixed_votes_message":"You can purchase votes to participate in choosing the winner. The more votes you buy, the more you save.","buyvotes_success":"Votes added to your account successfully! You can now vote for any contestant.","minimum":"Minimum","translations_saved":"Translations successfully saved","translations_not_saved":"Translations failed to save","no_upcoming_contest":"The contest has already started! Upcoming contest not found","no_ended_contest":"Contest is not ended or contest is still open for voting","license_options":"License Options","mobile_license_options":"WP Voting Contest - Mobile APP","unique_id_qr":"Unique ID and QR","android_app_qr":"Android APP Link and QR","ios_app_qr":"iOS APP Link and QR","unique_id_qr_tool":"User will need to enter/scan this code to access the Mobile APP. This will setup the website specific settings","android_app_qr_tool":"Share this link/QR Code to user, so they can download the Mobile APP in Android Phones","ios_app_qr_tool":"Share this link/QR Code to user, so they can download the Mobile APP in Apple Phones","gravity_forms_license_options":"WP Voting Contest - Gravity Forms Add-on","buyvotes_license_options":"WP Voting Contest - Buy Votes Extension","video_license_options":"WP Voting Contest - Video Extension","paidentry_license_options":"WP Voting Contest - Paid Entry Extension","coupon_license_options":"WP Voting Contest - Coupon System","video_extension_settings":"Video extension settings","enable_youtube_upload":"Enable Youtube Upload","enable_youtube_upload_tool":"Enable / Disable Video to publish in Youtube","oauth_client_id":"Oauth Client ID","oauth_client_id_tool":"Add Oauth Client ID","oauth_secret_id":"Oauth Secret ID","oauth_secret_id_tool":"Add Oauth Secret ID","video_uploading_message":"Video Uploading Message","video_uploading_message_tool":"Add Uploading Message while video uploading","video_uploaded_message":"Video Upload Success Message","video_uploaded_message_tool":"Add Uploading Message When Video Upload Completes","enable_video_url":"Enable Video URL","enable_video_url_desc":"Enable / Disable Video URL on Edit contestant","migrate_page":"Make sure to backup the Whole site DataBase before migrating to new voting, We will be doing it for you before migrating everything but if in anycase it doesn\'t work you will be having one.","migrate_translation":"We are sorry your previous language translation can\'t be retrieved in the new voting, if you wish to migrate you need to add the translations again","migrate_template":"Previous template overriding can be done on the files it is deprecated now, you can change the design as your wish on settings->layout settings","migrate_paid_entry_emial":"If you used paypal email id to get paid on submit entry/ Buy votes. You need to create API key for paypal","migrate_designs":"Previous color changes wont work now, you need to reconfigure on settings colors/layouts no need to worry you can design just on clicks","migrate_deprecated":"The two extensions Paypal and Stripe are combined in to one extension now","migrate_backup":"If you choose to have the older version, we will try to keep up the support as much as we can. If you wish to migrate please do backup and click the below migrate button","migrate_new":"We have completely revamped everything to enhance the user experience","migrate_exp":"Mimimised load to webpage, It is more safe and secure than before","create_layouts":"Change the colors and layouts as you need, Also we have added a place to choose the colors/layouts based on contest. Different Contest different colors","draganddrop":"Drag and drop custom fields to the contest categories","captcha_title":"Captcha Validation","no_contestants_found":"No contestants to display.","no_category_exists":"Contest Category does not exists","judging_extension_setting":"Judging Settings","enable_judge_top10":"Show Judging Top 10","enable_judge_top10_desc":"Display Judged Top 10 Contestants for the Public","enable_judge_button":"Show Judge Button","enable_judge_button_desc":"Show Judge button for Judges in Front End","judge_top_ten":"Judged Top 10","mostjudged":"HIGHEST JUDGE RATING","leastjudged":"LEAST JU
1DGE RATING","judge_log_deleted":"Judging Log Delete Successfully","judge_license_options":"WP Voting Contest - Judging Extension","no_of_judges":"No. of Judges","no_judged_contestants":"No. of Judged Contestants","no_categories":"No. of Categories","no_judging_groups":"No. of Judging Groups","filter_judging_logs":"Filter judging Logs","search_contestant_title":"Search By Contestant Title","select_contest_judges":"Select Contest Judges","Reset":"Reset","select_contest_charts":"Select Contest Category for Charts","add_question":"Add Questions","select_judges":"Select Judges","settings":"Settings","allow_edit_score":"Allow judges to edit scores","edit_scores":"Edit Scores","question_answer_type":"Question & Answer Type","preview":"Preview","star_rating":"Star Rating","heart_rating":"Heart Rating","rating_type":"Select the Rating Type","maximum_range":"Set the Maximum Range","precision_range":"Set the Precision Range in Rating","new_question":"New Question","Judges":"Judges","Points":"Points","Rating":"Rating","set_maximum_points":"Set the Maximum Points","judge_now":"Judge Now","judging_logs":"Judging Logs","judging_log_deleted":"Judging Log Deleted Successfully","you_judged_contestant":"You have Judged this Contestant","review_answer":"Review Answers","Back":"Back","Next":"Next","submit_final_ans":"Submit Final Answers","answers_cleared":"Answers have been cleared Successfully !","Menu":"MENU","Logout":"Logout","upload_failed":"Upload Failed","tus_settings":"File Upload Settings","copied_to_clipboard":"Copied to Clip Board!","copy_video_link":"Copy video link","upload_button_text":"Upload","twitter_signin":"X(Twitter) Signin","facebook_signin":"Facebook Signin","username_required":"Please Enter username","password_required":"Please Enter password","voter_email_required":"Please Enter email address","enable_checkbox":"Please check the subscribe","newsletter_thanks":"Thank you for subscribing to our newsletter!","newsletter_error":"Subscription to our newsletter failed! Please try again.","voter_name_required":"Name is required","voter_country_required":"Country is required","voter_zipcode_required":"Zipcode is required","verify_captcha":"Verify Captcha to proceed","consent_validation_text":"The Terms/Conditions Must Be Accepted.","confirm_password_required":"Please Enter Confirm password","enter_the":"Enter the ","verification_code_required":"Please Enter Verification Code","verification_code_not_matching":"Code Not Matching","file_format_validation":"The file must be in following format :values.","file_size_validation":"The file must be less than :values MB.","char_limit_validation":"Characters Limit Exceeded. May Not Be Greater Than :values Characters.","word_limit_validation":"Words Limit Exceeded. Only :values words allowed.","upload_in_progress":"Upload is in progress","email_validation":"Must Be A Valid Email Address.","password_match_validation":"Passwords need to match!","alpha_num_dash_space_validation":"May Only Contain Letters, Numbers, Dashes, And Spaces.","thanks_for_submission":"Thank you for your submission","your_submission_approved":"Your Submission is Approved","user_added_contestant":"A user has added a contestant","contestant_added":"CONTESTANT ADDED","thanks_for_voting":"Thanks for Voting","email_verification_code":"Email Verification Code","thanks_adding_contestants":"Thanks for Adding Contestants","submission_rejected":"Your Submission is Rejected","thanks":"Thanks","copyrights":"Copyrights","all_rights_reserved":"All Rights Reserved"}');n.Ay.use(s.A).use(a.A).init({debug:!1,lng:"en",fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1},resources:{en:{translations:r}},ns:["translations"],defaultNS:"translations"});const i=n.Ay},75206:e=>{"use strict";e.exports=ReactDOM},77675:(e,t,o)=>{"use strict";o.r(t),o.d(t,{PLUGIN_NAME:()=>s,PLUGIN_URL:()=>r,PLUGIN_VERSION:()=>n,SITE_LANG:()=>a,WPVC_MOBILE_APP_ANDROID:()=>d,WPVC_MOBILE_APP_IOS:()=>m,WPVC_SKIP_FIELDS:()=>_,WPVC_VOTES_CUSTOMFIELD:()=>c,WPVC_VOTES_EXPIRATIONFIELD:()=>p,WPVC_VOTES_SETTINGS:()=>u,WPVC_VOTES_TAXONOMY:()=>l,WPVC_VOTES_TYPE:()=>i});var n="5.3.4",a="en_US",s="WordPress Voting Photo Contest Plugin",r="/wp-content/plugins/wp-voting-contest/",i="c
1ontestants",l="contest_category",c="votes_count",p="votes_expiration",u="wpvc_votes_settings",_=["contestant-title","contestant-desc","contestant-image"],d="https://wpvcdev.tempsrvr.com/",m="https://wpvcdev.tempsrvr.com/"},80637:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxMDAwIiB3aWR0aD0iMTAwMCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgo8bWV0YWRhdGE+SWNvRm9udCBJY29uczwvbWV0YWRhdGE+Cjx0aXRsZT5hcnJvdy1sZWZ0PC90aXRsZT4KPGdseXBoIGdseXBoLW5hbWU9ImFycm93LWxlZnQiIHVuaWNvZGU9IiYjeGVhNWM7IiBob3Jpei1hZHYteD0iMTAwMCIgLz4KPHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTc3Ny40IDQyNy42aC0zNDMuMjk5OTk5OTk5OTk5OTVsMTI3LjUtMTI3LjVjOC43OTk5OTk5OTk5OTk5NTUtOC44MDAwMDAwMDAwMDAwMTEgOC43OTk5OTk5OTk5OTk5NTUtMjMuMTAwMDAwMDAwMDAwMDIzIDAtMzEuOTAwMDAwMDAwMDAwMDM0bC01My42MDAwMDAwMDAwMDAwMi01My41OTk5OTk5OTk5OTk5OTRjLTguODAwMDAwMDAwMDAwMDExLTguNzk5OTk5OTk5OTk5OTgzLTIzLjEwMDAwMDAwMDAwMDAyMy04Ljc5OTk5OTk5OTk5OTk4My0zMS44OTk5OTk5OTk5OTk5NzcgMGwtMjY5LjUgMjY5LjRjLTguODAwMDAwMDAwMDAwMDExIDguODAwMDAwMDAwMDAwMDExLTguODAwMDAwMDAwMDAwMDExIDIzLjEwMDAwMDAwMDAwMDAyMy0yLjg0MjE3MDk0MzA0MDQwMWUtMTQgMzEuODk5OTk5OTk5OTk5OTc3bDI2OS41IDI2OS41YzguNzk5OTk5OTk5OTk5OTU1IDguODAwMDAwMDAwMDAwMDY4IDIzLjA5OTk5OTk5OTk5OTk2NiA4LjgwMDAwMDAwMDAwMDA2OCAzMS44OTk5OTk5OTk5OTk5NzcgMGw1My42MDAwMDAwMDAwMDAwMi01My42MDAwMDAwMDAwMDAwMmM4Ljc5OTk5OTk5OTk5OTk1NS04Ljc5OTk5OTk5OTk5OTk1NSA4Ljc5OTk5OTk5OTk5OTk1NS0yMy4wOTk5OTk5OTk5OTk5MSAwLTMxLjg5OTk5OTk5OTk5OTk3N2wtMTM2LjkwMDAwMDAwMDAwMDAzLTEzNi43OTk5OTk5OTk5OTk5NWgzNTIuN2MxMi41IDAgMjIuNjAwMDAwMDAwMDAwMDIzLTEwLjEwMDAwMDAwMDAwMDAyMyAyMi42MDAwMDAwMDAwMDAwMjMtMjIuNjAwMDAwMDAwMDAwMDIzdi05MC4zMDAwMDAwMDAwMDAwMWMwLTEyLjUtMTAuMTAwMDAwMDAwMDAwMDIzLTIyLjU5OTk5OTk5OTk5OTk2Ni0yMi42MDAwMDAwMDAwMDAwMjMtMjIuNTk5OTk5OTk5OTk5OTY2eiIvPgo8L3N2Zz4="},87956:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxMDAwIiB3aWR0aD0iMTAwMCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgo8bWV0YWRhdGE+SWNvRm9udCBJY29uczwvbWV0YWRhdGE+Cjx0aXRsZT51aS16b29tLWluPC90aXRsZT4KPGdseXBoIGdseX
1BoLW5hbWU9InVpLXpvb20taW4iIHVuaWNvZGU9IiYjeGVjOTc7IiBob3Jpei1hZHYteD0iMTAwMCIgLz4KPHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTk4Mi4yIDc4OC42bC0yMzQuOTAwMDAwMDAwMDAwMS0yMTZjMjcuMTAwMDAwMDAwMDAwMDIzLTUzLjM5OTk5OTk5OTk5OTk4IDQyLjYwMDAwMDAwMDAwMDAyLTExMy42MDAwMDAwMDAwMDAwMiA0Mi42MDAwMDAwMDAwMDAwMi0xNzcuNzAwMDAwMDAwMDAwMDUgMC0yMTguMDk5OTk5OTk5OTk5OTctMTc2Ljc5OTk5OTk5OTk5OTk1LTM5NC45LTM5NS0zOTQuOS0yMTcuOTk5OTk5OTk5OTk5OTcgMC0zOTQuOSAxNzYuOC0zOTQuOSAzOTQuOSAwIDIxOC4yMDAwMDAwMDAwMDAwNSAxNzYuOSAzOTUgMzk0LjkgMzk1IDY0IDAgMTI0LjIwMDAwMDAwMDAwMDA1LTE1LjUgMTc3LjYwMDAwMDAwMDAwMDAyLTQyLjVsMjE2IDIzNWMyMSAyMi44MDAwMDAwMDAwMDAwNjggNTYuMTAwMDAwMDAwMDAwMDIgMjMuNSA3OC4xMDAwMDAwMDAwMDAwMiAxLjYwMDAwMDAwMDAwMDAyMjdsMTE3LjE5OTk5OTk5OTk5OTkzLTExNy4yOTk5OTk5OTk5OTk5NWMyMi0yMiAyMS4yMDAwMDAwMDAwMDAwNDUtNTcuMTAwMDAwMDAwMDAwMDItMS41OTk5OTk5OTk5OTk5MDktNzguMTAwMDAwMDAwMDAwMDJ6IG0tNTg3LjMwMDAwMDAwMDAwMDEtMTUyLjcwMDAwMDAwMDAwMDA1Yy0xMzIuODk5OTk5OTk5OTk5OTggMC0yNDAuNzk5OTk5OTk5OTk5OTgtMTA3Ljg5OTk5OTk5OTk5OTk4LTI0MC43OTk5OTk5OTk5OTk5OC0yNDFzMTA3LjktMjQwLjg5OTk5OTk5OTk5OTk4IDI0MC43OTk5OTk5OTk5OTk5OC0yNDAuODk5OTk5OTk5OTk5OThjMTMzLjEwMDAwMDAwMDAwMDAyIDAgMjQxIDEwNy44OTk5OTk5OTk5OTk5OCAyNDEgMjQwLjg5OTk5OTk5OTk5OTk4cy0xMDcuODk5OTk5OTk5OTk5OTggMjQxLTI0MSAyNDF6IG0xMjUuMzAwMDAwMDAwMDAwMDctMjgyLjVoLTg5LjQwMDAwMDAwMDAwMDAzdi04OS4zOTk5OTk5OTk5OTk5OGMwLTEyLjQwMDAwMDAwMDAwMDAwNi0xMC4xOTk5OTk5OTk5OTk5ODktMjIuNTk5OTk5OTk5OTk5OTk0LTIyLjYwMDAwMDAwMDAwMDAyMy0yMi41OTk5OTk5OTk5OTk5OTRoLTI5LjM5OTk5OTk5OTk5OTk3N2MtMTIuNSAwLTIyLjY5OTk5OTk5OTk5OTk5IDEwLjE5OTk5OTk5OTk5OTk4OS0yMi42OTk5OTk5OTk5OTk5OSAyMi41OTk5OTk5OTk5OTk5OTR2ODkuMzk5OTk5OTk5OTk5OThoLTg5LjQwMDAwMDAwMDAwMDAzYy0xMi4zOTk5OTk5OTk5OTk5NzcgMC0yMi41OTk5OTk5OTk5OTk5OTQgMTAuMjAwMDAwMDAwMDAwMDQ1LTIyLjU5OTk5OTk5OTk5OTk5NCAyMi42MDAwMDAwMDAwMDAwMjN2MjkuNWMwIDEyLjM5OTk5OTk5OTk5OTk3NyAxMC4yMDAwMDAwMDAwMDAwMTcgMjIuNjAwMDAwMDAwMDAwMDIzIDIyLjU5OTk5OTk5OTk5OTk5NCAyMi42MDAwMDAwMDAwMDAwMjNoODkuNDAwMDAwMDAwMDAwMDN2ODkuMzk5OTk5OTk5OTk5OThjMCAxMi41IDEwLjE5OTk5OTk5OTk5OTk4OSAyMi42MDAwMDAwMDAwMDAwMjMgMjIuNjk5OTk5OTk5OTk5OTkgMjIuNjAwMDAwMDAwMDAwMDIzaDI5LjM5OTk5OTk5OTk5OTk3N2MxMi40MDAwMDAwMDAwMDAwMzQgMCAyMi42MDAwMDAwMDAwMDAwMjMtMTAuMTAwMDAwMDAwMDAwMDIzIDIyLjYwMDAwMDAwMDAwMDAyMy0yMi42MDAwMDAwMDAwMDAwMjN2LTg5LjM5OTk5OTk5OTk5OTk4aDg5LjQwMDAwMDAwMDAwMDAzYzEyLjUgMCAyMi41OTk5OTk5OTk5OTk5MS0xMC4yMDAwMDAwMDAwMDAwNDUgMjIuNTk5OTk5OTk5OTk5OTEtMjIuNjAwMDAwMDAwMDAwMDIzdi0yOS41YzAtMTIuMzk5OTk5OTk5OTk5OTc3LTEwLjA5OTk5OTk5OTk5OTkwOS0yMi42MDAwMDAwMDAwMDAwMjMtMjIuNTk5OTk5OTk5OTk5OTEtMjIuNjAwMDAwMDAwMDAwMDIzeiIvPgo8L3N2Zz4="},88918:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxMDAwIiB3aWR0aD0iMTAwMCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgo8bWV0YWRhdGE+SWNvRm9udCBJY29uczwvbWV0YWRhdGE+Cjx0aXRsZT5jbG9zZS1saW5lPC90aXRsZT4KPGdseXBoIGdseX
1BoLW5hbWU9ImNsb3NlLWxpbmUiIHVuaWNvZGU9IiYjeGVlZTE7IiBob3Jpei1hZHYteD0iMTAwMCIgLz4KPHBhdGggIGZpbGw9IiNmZmZmZmYiIGQ9Ik03NjIuNSAyMDBsMzcuNSAzNy41LTI2Mi41IDI2Mi41IDI2Mi41IDI2Mi41LTM3LjUgMzcuNS0yNjIuNS0yNjIuNS0yNjIuNSAyNjIuNS0zNy41LTM3LjUgMjYyLjUtMjYyLjUtMjYyLjUtMjYyLjUgMzcuNS0zNy41IDI2Mi41IDI2Mi41eiIvPgo8L3N2Zz4="},95098:()=>{}},e=>{e.O(0,[96],(()=>e(e.s=10326))),e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.