PageSourceSearch

https://jettyrockfoundation.org/cdn/shopifycloud/checkout-web/assets/c1/7d9fe557.CcaYhOol.js

js jettyrockfoundation.org collected 2026-10-08 01:56:23 UTC 4,375 bytes, 1 lines download raw bytes

1import{p as e,L as a,o,z as t,h as r,u as n,U as i,y as s,I as l,t as c,g as u,V as d,k as p,m as v,w as h}from"./2c1ab0fe.B2yRRyAW.js";import{H as m}from"./f8eac2fc.C3pSCjjo.js";import{bC as b,v as f,bD as g,bE as y,bF as k,S as _,a9 as C,aa as S,au as j,i as L,bG as w}from"./164ad2e3.-hfWY9cN.js";import{I as E,bb as B,b2 as V,ag as q,c as x,bc as O,_ as D,bd as R,b4 as z,b5 as I}from"./4b4bc88f.JFrEI7LU.js";import{P}from"./01973ac7.BHLY876L.js";import"./d0bb51ec.CiN57OqX.js";import"./app.C_W8kcQ4.js";import"./f67abd2c.Boj0gJpa.js";import"./60a453ce.aSs2kW8G.js";import"./e12db40c.ZpKYxNRe.js";import"./9dba8418.BqWu-Ch9.js";import"./58314944.DeRGAACO.js";import"./c6c0cbda.AqWWc50G.js";function U(e,a){return"failed"===e?.status&&a===e.id}function J(){const{i18n:e}=x(),{progressing:a}=f(),{hasError:o,error:i}=g(O),s=function(){const[e,a]=b(V.LastSeenCaptchaRequestedErrorReceiptId),o=q(),{checkout:n}=x(),i=n.latestReceipt.value,[s,l]=t(()=>!o.peek()||U(i,e));return r(()=>{const o=U(i,e);l(o),"failed"===i?.status&&e!==i.id&&a(i.id),"failed"!==i?.status&&a(void 0)},[i?.id,i?.status]),s}();return a.value?null:o&&i&&!s?n(P,{identifier:"CaptchaRequiredBanner",tone:"critical",children:e.translate("payment_errors.captcha_required_without_payment_information")}):null}let G=!1;const K=i(e=>{const{appContext:{i18n:o,observability:t},captchaSignal:r,errorSignal:n,lastJourneyProgression:i,negotiate:u,onViolation:d}=e,p=s(a(()=>r.value?.sitekey)),v=s(G),h=s(a(()=>Boolean(r.value?.token))),m=l(()=>Boolean(n.value)),b=Date.now(),f=G,g=o.translate("captcha.errors.not_solved");c(()=>{const e=r.value;e?e.sitekey&&(p.value=e.sitekey):p.value=void 0}),c(()=>{const e=i.value,a="error"===e.type?e.violations.map(e=>e.code):[],o=r.value;o&&o.violationCode&&a.includes(o.violationCode)?(d?.(),n.value=g):o?.token&&(n.value=void 0)});const y=l(()=>Boolean(p.value));return{errorSignal:n,hasError:m,hasSiteKey:y,isLoaded:v,sitekey:p,solvedOnLoad:h,handleVerify(e){const a=r.value;a&&(r.value={...a,token:e,violationCode:void 0},u({silenceViolations:D(["captcha"]),skipStateUpdates:!0}))},handleLoad(){f||t.histogram({name:"captcha_load_time",value:Date.now()-b,attributes:{provider:r.value?.provider,success:!0}}),G=!0,v.value=!0},handleError(e){f||t.histogram({name:"captcha_load_time",value:Date.now()-b,attributes:{provider:r.peek()?.provider,success:!1,error:String(e)}})},validate(e){if(e)return e.token?void 0:g}}});function T(){const t=x(),{client:r,i18n:i}=t,s="fast"!==r.unstable_getSerialization("workerVersion"),l=y(),c=R(),{lastJourneyProgression:b}=t.checkout.negotiator,{captcha:g}=t.checkout.negotiator.parts,{negotiate:V}=f(),q=u(null),{onOpen:O,onClose:D}=function({embed:t},r){const n=E(t?.embedder),i=o(!1);return function({embed:o},t){e(()=>{if(!t.value||!E(o?.embedder))return;const e=a(()=>o?.presentation?.acquire());return()=>a(()=>e?.())})}({embed:t},i),e(()=>{r.value?n&&a(()=>B(t,"captcha")):i.value=!1}),{onOpen:()=>{i.value=n&&Boolean(r.value)},onClose:()=>{i.value=!1}}}(t,g),P=d(()=>new K({appContext:t,captchaSignal:g,errorSignal:c,lastJourneyProgression:b,negotiate:V,onViolation:()=>{D(),q.current?.resetCaptcha()}}));z(g,c,P.validate,I.InvalidCaptcha);const U=u(null),G=k({active:P.hasError.value});e(()=>{g.value&&P.isLoaded.value&&U.current&&(G.current=U.current.querySelector("iframe"))});const T=p(()=>P.isLoaded.value?void 0:"none"),A=p(()=>P.hasError.value?v("MTtRU"):void 0);return n(h,{when:()=>{const e=P.solvedOnLoad.value&&!g.value?.sitekey;return Boolean("hcaptcha"===g.value?.provider&&!e&&Boolean(P.sitekey.value))},children:n(_,{gap:"large-100",children:[n(h,{when:()=>l.value&&P.isLoaded.value&&P.hasSiteKey.value,children:n(C,{tone:"critical",errorType:S.CheckoutError,children:i.translate("payment_errors.captcha_required_without_payment_information")})}),n(h,{when:()=>!P.isLoaded.value,children:n(j,{delay:s,contentDisplay:"block",inlineSize:"302px",blockSize:"83px"})}),n(L,{accessibilityLabel:i.translate("captcha.title"),display:T.value,children:n(_,{gap:"small-400",children:[n(J,{}),n("div",{className:A.value,ref:U,children:n(m,{sitekey:P.sitekey.value,onVerify:e=>{D(),P.handleVerify(e)},languageOverride:i.locale,ref:q,onLoad:P.handleLoad,onError:e=>{D(),P.handleError(e)},onOpen:O,onClose:D,onChalExpired:D})}),n(h,{when:P.errorSignal,children:e=>n(w,{children:e?.message??e})})]})})]})})}export{T as default};

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.