PageSourceSearch

https://ascensionpress.com/cdn/shopifycloud/checkout-web/assets/c1/a535174a.D9-hmEEh.js

js ascensionpress.com collected 2026-10-01 10:24:40 UTC 4,381 bytes, 1 lines download raw bytes

1import{_ as e}from"./app.bDJ3v-8C.js";import{d as a,r as o,o as r,G as t,e as n,k as i,h as s,u as l,b3 as c,y as u,E as d,j as v,A as p,b4 as h,f as m,g as f,i as y}from"./2c1ab0fe.D_oO1jU7.js";import{H as b}from"./5fd968f2.DTvmd-mL.js";import{iO as g,h as _,bD as k,c7 as S,dI as C,c as L,W as E,A as w,ac as O,_ as j,bY as x}from"./164ad2e3.DgUUtBtV.js";import{bx as B,by as V,be as q,ae as D,O as P,cL as R,co as z,a7 as I,Q as T,bh as J,bi as A}from"./4c290a1e.D9lE9kmU.js";import{c as K}from"./01973ac7.BVhNP6nv.js";const M=a({displayName:"Captcha",load:()=>o((()=>e((()=>Promise.resolve().then((()=>Q))),void 0)))});function N(e,a){return"failed"===e?.status&&a===e.id}function U(){const{i18n:e}=P(),{progressing:a}=_(),{hasError:o,error:r}=k(R),t=function(){const[e,a]=g(q.LastSeenCaptchaRequestedErrorReceiptId),o=D(),{checkout:r}=P(),t=r.latestReceipt.value,[n,l]=i((()=>!o.peek()||N(t,e)));return s((()=>{const o=N(t,e);l(o),"failed"===t?.status&&e!==t.id&&a(t.id),"failed"!==t?.status&&a(void 0)}),[t?.id,t?.status]),n}();return a.value?null:o&&r&&!t?l(K,{identifier:"CaptchaRequiredBanner",tone:"critical",children:e.translate("payment_errors.captcha_required_without_payment_information")}):null}let G=!1;const H=c((e=>{const{appContext:{i18n:a,observability:o},captchaSignal:r,errorSignal:n,lastJourneyProgression:i,negotiate:s,onViolation:l}=e,c=u(t((()=>r.value?.sitekey))),p=u(G),h=u(t((()=>Boolean(r.value?.token)))),m=d((()=>Boolean(n.value))),f=Date.now(),y=G,b=a.translate("captcha.errors.not_solved");v((()=>{const e=r.value;e?e.sitekey&&(c.value=e.sitekey):c.value=void 0})),v((()=>{const e=i.value,a="error"===e.type?e.violations.map((e=>e.code)):[],o=r.value;o&&o.violationCode&&a.includes(o.violationCode)?(l?.(),n.value=b):o?.token&&(n.value=void 0)}));const g=d((()=>Boolean(c.value)));return{errorSignal:n,hasError:m,hasSiteKey:g,isLoaded:p,sitekey:c,solvedOnLoad:h,handleVerify(e){const a=r.value;a&&(r.value={...a,token:e,violationCode:void 0},s({include:["captcha"],skipStateUpdates:!0}))},handleLoad(){y||o.histogram({name:"captcha_load_time",value:Date.now()-f,attributes:{provider:r.value?.provider,success:!0}}),G=!0,p.value=!0},handleError(e){y||o.histogram({name:"captcha_load_time",value:Date.now()-f,attributes:{provider:r.peek()?.provider,success:!1,error:String(e)}})},validate(e){if(e)return e.token?void 0:b}}})),Q=Object.freeze(Object.defineProperty({__proto__:null,default:function(){const e=P(),{client:a,i18n:o}=e,i="fast"!==a.unstable_getSerialization("workerVersion"),s=S(),c=z(),{lastJourneyProgression:u}=I(),{captcha:d}=T(),{negotiate:v}=_(),g=p(null),{onOpen:k,onClose:q}=function({embed:e},a){const o=B(e?.embedder),i=n(!1);return function({embed:e},a){r((()=>{if(!a.value||!B(e?.embedder))return;const o=t((()=>e?.presentation?.acquire()));return()=>t((()=>o?.()))}))}({embed:e},i),r((()=>{a.value?o&&t((()=>V(e,"captcha"))):i.value=!1})),{onOpen:()=>{i.value=o&&Boolean(a.value)},onClose:()=>{i.value=!1}}}(e,d),D=h((()=>new H({appContext:e,captchaSignal:d,errorSignal:c,lastJourneyProgression:u,negotiate:v,onViolation:()=>{q(),g.current?.resetCaptcha()}})));J(d,c,D.validate,A.InvalidCaptcha);const R=p(null),K=C({active:D.hasError.value});r((()=>{d.value&&D.isLoaded.value&&R.current&&(K.current=R.current.querySelector("iframe"))}));const M=m((()=>D.isLoaded.value?void 0:"none")),N=m((()=>D.hasError.value?f("MTtRU"):void 0));return l(y,{when:()=>{const e=D.solvedOnLoad.value&&!d.value?.sitekey;return Boolean("hcaptcha"===d.value?.provider&&!e&&Boolean(D.sitekey.value))},children:l(L,{gap:"large-100",children:[l(y,{when:()=>s.value&&D.isLoaded.value&&D.hasSiteKey.value,children:l(E,{tone:"critical",errorType:w.CheckoutError,children:o.translate("payment_errors.captcha_required_without_payment_information")})}),l(y,{when:()=>!D.isLoaded.value,children:l(O,{delay:i,contentDisplay:"block",inlineSize:"302px",blockSize:"83px"})}),l(j,{accessibilityLabel:o.translate("captcha.title"),display:M.value,children:l(L,{gap:"small-400",children:[l(U,{}),l("div",{className:N.value,ref:R,children:l(b,{sitekey:D.sitekey.value,onVerify:e=>{q(),D.handleVerify(e)},languageOverride:o.locale,ref:g,onLoad:D.handleLoad,onError:e=>{q(),D.handleError(e)},onOpen:k,onClose:q,onChalExpired:q})}),l(y,{when:D.errorSignal,children:e=>l(x,{children:e?.message??e})})]})})]})})}},Symbol.toStringTag,{value:"Module"}));
1export{M as C};

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.