PHP Classes

File: assets/js/coolkidsnetwork.min.js

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Cool Kids Network For WP Plugin   assets/js/coolkidsnetwork.min.js   Download  
File: assets/js/coolkidsnetwork.min.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Cool Kids Network For WP Plugin
WordPress plugin to manage users with roles
Author: By
Last change:
Date: 27 days ago
Size: 5,016 bytes
 

Contents

Class file image Download
(()=>{var e={533:()=>{},72:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},s=[],c=0;c<e.length;c++){var i=e[c],u=r.base?i[0]+r.base:i[0],d=a[u]||0,p="".concat(u," ").concat(d);a[u]=d+1;var l=n(p),f={css:i[1],media:i[2],sourceMap:i[3],supports:i[4],layer:i[5]};if(-1!==l)t[l].references++,t[l].updater(f);else{var m=o(f,r);r.byIndex=c,t.splice(c,0,{identifier:p,updater:m,references:1})}s.push(p)}return s}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<a.length;s++){var c=n(a[s]);t[c].references--}for(var i=r(e,o),u=0;u<a.length;u++){var d=n(a[u]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=i}}},659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0,(()=>{"use strict";var e=n(72),t=n.n(e),r=n(825),o=n.n(r),a=n(659),s=n.n(a),c=n(56),i=n.n(c),u=n(540),d=n.n(u),p=n(113),l=n.n(p),f=n(533),m=n.n(f),v={};v.styleTagTransform=l(),v.setAttributes=i(),v.insert=s().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=d();t()(m(),v);m()&&m().locals&&m().locals;jQuery(document).ready((function(e){e(".wp_ckn_signup-form").on("submit",(function(t){t.preventDefault();var n=e(this),r=n.find("button"),o=n.find("input[name='email']").val();e.ajax({url:wp_ckn_object.ajax_url,type:"POST",data:{action:"wp_ckn_signup",email:o,nonce:wp_ckn_object.nonce},beforeSend:function(t){e(".wp_ckn_notice-message").fadeOut().text("").removeClass("success"),r.prop("disabled",!0),r.text("Signing up...")},success:function(t){r.prop("disabled",!1),r.text("Sign up"),t.success?e(".wp_ckn_notice-message").addClass("success").html(t.data.message).fadeIn():e(".wp_ckn_notice-message").text(t.data.message).fadeIn()},error:function(t,n,o){r.prop("disabled",!1),r.text("Sign up"),console.log(t,n,o),e(".wp_ckn_notice-message").text("An error occurred. Please try again.").fadeIn()}})})),e(".wp_ckn_login-form").on("submit",(function(t){t.preventDefault();var n=e(this),r=n.find("button"),o=n.find("input[name='email']").val();e.ajax({url:wp_ckn_object.ajax_url,type:"POST",data:{action:"wp_ckn_login",email:o,nonce:wp_ckn_object.nonce},beforeSend:function(t){e(".wp_ckn_notice-message").fadeOut().text("").removeClass("success"),r.prop("disabled",!0),r.text("Logging in...")},success:function(t){r.prop("disabled",!1),r.text("Login"),t.success?(e(".wp_ckn_notice-message").addClass("success").html(t.data.message).fadeIn(),setTimeout((function(){window.location.href=t.data.redirect_url}),2e3)):e(".wp_ckn_notice-message").text(t.data.message).fadeIn()},error:function(t,n,o){r.prop("disabled",!1),r.text("Login"),console.log(t,n,o),e(".wp_ckn_notice-message").text("An error occurred. Please try again.").fadeIn()}})})),e(".wp_ckn_button").on("click",(function(){window.location.href=wp_ckn_object.logout_url}))}))})()})(); //# sourceMappingURL=coolkidsnetwork.min.js.map