PageSourceSearch

https://thechive.com/wp-content/themes/chivecommon-2014/js/dist/39.2982302d686d25d686c2.js

js thechive.com collected 2026-10-01 08:57:40 UTC 4,262 bytes, 1 lines download raw bytes

1(self.webpackChunk_chive_core_theme=self.webpackChunk_chive_core_theme||[]).push([[39],{4697:function(e,t,r){"use strict";r.d(t,{U2:function(){return u},Xf:function(){return c},v_:function(){return l}});var n=r(9669),s=r.n(n),o=r(9124),a=r(7856);const{ajaxURL:i}=o.kh.endpoint,c=e=>{const t=new FormData;return Object.keys(e).forEach((r=>{Array.isArray(e[r])?(0===e[r].length&&t.set(r+"[]",""),e[r].map((e=>t.append((0,a.sanitize)(r+"[]"),(0,a.sanitize)(e))))):t.set(r,e[r])})),t},l=async(e,t,r)=>{t.action=e,t._ajax_nonce=r;const{data:n}=await s().post(i,c(t));if(!n.success)throw new Error(JSON.stringify(n.data)||"No response from the request");return n.data},u=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=new URL(i);Object.entries(r).forEach((e=>{let[t,r]=e;n.searchParams.set(t,encodeURIComponent(r))})),n.searchParams.set("action",e),n.searchParams.set("_ajax_nonce",t);const{data:o}=await s().get(n.toString());if(!o.success)throw new Error(JSON.stringify(o.data));return o.data}},4834:function(e,t,r){"use strict";r.d(t,{Ph:function(){return o},sZ:function(){return s},uX:function(){return a}}),r(8367);var n=r(7856);const s=(e,t)=>{const r=new URL((0,n.sanitize)(window.location.href));r.searchParams.set(e,t),window.history.pushState({},"",r)},o=e=>new URLSearchParams((0,n.sanitize)(window.location.search)).get(e),a=e=>{window.location.replace(e)}},39:function(e,t,r){"use strict";r.r(t);var n=r(9124),s=r(4697),o=r(4834),a=r(7856);function i(e,t,r){e.textContent=t,e.style.display="block",e.className=`message ${r}`,e.scrollIntoView({behavior:"smooth",block:"nearest"})}function c(e){e.style.display="none"}function l(e,t){e.disabled=t;const r=e.querySelector(".btn-text"),n=e.querySelector(".btn-loading");r&&n&&(t?(r.style.display="none",n.style.display="inline"):(r.style.display="inline",n.style.display="none"))}t.default=e=>{const t=e.querySelector("#forgot-password-form"),r=e.querySelector("#reset-password-form");t&&function(e){const t=document.getElementById("fp-message"),r=e.querySelector("#submit-btn");e.addEventListener("submit",(async o=>{o.preventDefault(),await async function(e,t,r){const o=e.querySelector("#email").value.trim();if(o){l(r,!0),c(t);try{i(t,(await(0,s.v_)(n.kh.endpoint.passwordReset.forgotPasswordAction,{email:o},n.kh.endpoint.passwordReset.forgotPasswordNonce)).message||"Password reset link sent! Please check your email.","success"),e.reset()}catch(e){console.error("Error:",e);const r=e instanceof Error?e.message:"Unable to connect to the server. Please try again later.";try{i(t,JSON.parse(r).message||r,"error")}catch{i(t,r,"error")}}finally{l(r,!1)}}else i(t,"Please enter your email address.","error")}(e,t,r)}))}(t),r&&function(e){const t=document.getElementById("rp-message"),r=e.querySelector("#submit-btn");e.addEventListener("submit",(async u=>{u.preventDefault(),await async function(e,t,r){const u=e.querySelector('input[name="token"]'),d=e.querySelector('input[name="email"]'),f=e.querySelector("#password"),p=e.querySelector("#password_confirmation"),y={token:u.value,email:d.value,password:f.value,password_confirmation:p.value};if(y.password===y.password_confirmation){l(r,!0),c(t);try{await(0,s.v_)(n.kh.endpoint.passwordReset.resetPasswordAction,{token:y.token||"",email:y.email||"",password:y.password||"",password_confirmation:y.password_confirmation||""},n.kh.endpoint.passwordReset.resetPasswordNonce),i(t,"Password reset successfully! Redirecting to homepage...","success"),e.style.display="none",setTimeout((()=>{(0,o.uX)((0,a.sanitize)(n.kh.siteurl))}),2e3)}catch(e){console.error("Error:",e);const r=e instanceof Error?e.message:"Unable to connect. Please try again.";try{i(t,JSON.parse(r).message||r,"error")}catch{i(t,r,"error")}}finally{l(r,!1)}}else i(t,"Passwords do not match.","error")}(e,t,r)}))}(r)}},8367:function(e,t,r){var n=r(280),s=r(4160),o=r(5694),a=r(1469),i=r(8612),c=r(4144),l=r(5726),u=r(6719),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(i(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||o(e)))return!e.length;var t=s(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!n(e).length;
1for(var r in e)if(d.call(e,r))return!1;return!0}}}]);

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.