PageSourceSearch

https://athenspride.eu/wp-content/plugins/stachethemes_event_calen…/activator-82c2087bd9cf5518e7c1-lazy.js

js athenspride.eu collected 2026-10-02 04:39:34 UTC 3,696 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkstec=globalThis.webpackChunkstec||[]).push([[5860],{48596(e,t,a){a.r(t),a.d(t,{default:()=>n});var c=a(8403),s=a(22819);const n=e=>{const t=["stec-section"];return e.className&&t.push(e.className),React.createElement(c.StecDiv,{className:t.join(" "),style:e.style},e.title&&React.createElement(c.StecSpan,{key:"title",className:"stec-section-title"},e.title),e.subtitle&&React.createElement(c.StecSpan,{key:"subittle",className:"stec-section-subtitle"},e.subtitle),(e.title||e.subtitle)&&React.createElement(s.default,null),e.children)}},16019(e,t,a){a.r(t),a.d(t,{default:()=>f});var c=a(52779),s=a(32488),n=a(48596),r=a(22819),l=a(98196),u=a(91927),o=a(8403),i=a(73772),m=a(26878),R=a(60799);const __=i.__,d=()=>{const{setActiveMenu:e}=(0,u.useDashboardMenu)();return React.createElement(React.Fragment,null,React.createElement(o.StecDiv,{className:"stec-dashboard-top-nav"},React.createElement(c.default,{label:__("Home","stec"),className:"stcolor",onClick:()=>{e({page:"home",params:{}})}}),React.createElement(c.default,{target:"_blank",href:"https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-",label:__("Where is my purchase key?","stec"),className:"blue"}),React.createElement(c.default,{target:"_blank",href:"https://api3.stachethemes.com/stec/manage",label:__("Remote Activation","stec"),className:"green"})))},h=({inputKeyRef:e,resetState:t})=>{const a=(0,m.useRef)(!1);return React.createElement(c.default,{label:__("Activate","stec"),className:"green",onClick:()=>{R.toast.promise(new Promise(((c,s)=>{a.current=!0,async function(){try{let a;a=await(0,l.newApiPost)({route:"ACTIVATOR/ACTIVATE",data:{key:e.current},includeResponseStatus:!0,errorMessage:"auto"});const{status:s,data:n}=a;switch(s){case 201:case 200:return t(n.key),c(__("Plugin activated successfully","stec"))}}catch(e){return s(e.message)}}()})),{loading:__("Connecting","stec"),success:e=>(a.current=!1,e),error:e=>(a.current=!1,React.createElement(o.StecDiv,{dangerouslySetInnerHTML:{__html:e}}))})}})},p=({inputKeyRef:e,resetState:t})=>{const a=(0,m.useRef)(!1);return React.createElement(c.default,{label:__("Deactivate","stec"),className:"red",onClick:()=>{R.toast.promise(new Promise(((c,s)=>{a.current=!0,async function(){try{let a;a=await(0,l.newApiPost)({route:"ACTIVATOR/DEACTIVATE",data:{key:e.current},includeResponseStatus:!0,errorMessage:"auto"});const{status:s,data:n}=a;switch(s){case 201:case 200:return e.current="",t(""),c(__("Plugin deactivated successfully","stec"))}}catch(e){return s(e.message)}}()})),{loading:__("Connecting","stec"),success:e=>(a.current=!1,e),error:e=>(a.current=!1,React.createElement(o.StecDiv,{dangerouslySetInnerHTML:{__html:e}}))})}})},y=({purchaseKey:e})=>{const[t,a]=(0,m.useState)(0),[c,l]=(0,m.useState)(e),u=(0,m.useRef)(c),o=e=>{l(e),a((new Date).getTime())};return React.createElement(n.default,{key:t,title:__("Activator","stec")},React.createElement(s.UncontrolledInputText,{title:__("Enter your purchase key","stec"),description:(0,i.sprintf)(__("Note the plugin connects to %s to validate your purchase key","stec"),"stachethemes.com"),defaultValue:u.current,onChange:e=>{u.current=e}}),React.createElement(r.default,null),""!==c&&React.createElement(p,{inputKeyRef:u,resetState:o}),""===c&&React.createElement(h,{inputKeyRef:u,resetState:o}))};const f=function(){const{data:e,ready:t,error:a}=(0,u.useActivatorInfo)();return t?a?React.createElement(React.Fragment,null,React.createElement(d,null),React.createElement(n.default,{title:__("Activator","stec")},a)):React.createElement(React.Fragment,null,React.createElement(d,null),React.createElement(y,{purchaseKey:e.key})):null}}}]);

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.