1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e93de2f8-f467-42fc-aea0-b3d7ec862abb",e._sentryDebugIdIdentifier="sentry-dbid-e93de2f8-f467-42fc-aea0-b3d7ec862abb")}catch(m){}import{_ as e}from"./PayBright.80152b46.js";import{u as a}from"./useFinancing.04068caf.js";import{c7 as t,cj as n,c1 as i,c9 as o,ca as r,cs as s,d0 as l,d1 as d,cb as g,cc as c,cG as f}from"./index.061e774e.js";const u={name:"FinancingCTA",components:{PayBright:e},props:{label:{type:String,default:"Affirm financing"},amount:{type:Number,default:0},tryNative:{type:Boolean,default:!1},clazz:{type:String,default:"grey text bg-white"}},setup(e){const{estimatePayment:t,openPrequalifyModal:o,isPaybrightEnabled:r}=a(),s=n(!1),l=i((()=>e.amount/100||1400)),d=i((()=>r(l.value)));return{onModalTriggerSet:()=>s.value=!0,openModal:async()=>{if(d.value){document.getElementsByClassName("affirm-modal-trigger")[0].click()}else if(e.amount>0){const a=await t(e.amount);e.tryNative?a.openNativeModal():a.openModal()}else await o()},isPaybrightModalTriggerSet:s,payBrightAmount:l,isPaybrightEnabled:d}}},y=["disabled"];var b=t(u,[["render",function(e,a,t,n,i,u){const b=o("PayBright");return r(),s("button",{disabled:n.isPaybrightEnabled&&!n.isPaybrightModalTriggerSet,class:f(t.clazz),onClick:a[0]||(a[0]=(...e)=>n.openModal&&n.openModal(...e))},[l(d(t.label)+" ",1),n.isPaybrightEnabled?(r(),g(b,{key:0,style:{display:"none"},"financed-amount":n.payBrightAmount,onTriggerSet:n.onModalTriggerSet},null,8,["financed-amount","onTriggerSet"])):c("",!0)],10,y)}]]);export{b as default}; 2//# sourceMappingURL=FinancingCta.82dadbfe.js.map
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.