PageSourceSearch

https://www.prosoundeffects.com/_nuxt/CwUZPVci.js

js prosoundeffects.com collected 2026-10-02 04:44:33 UTC 9,280 bytes, 2 lines download raw bytes

1import{_ as fe}from"./B2gYtxax.js";import{j as xe,z as E,y as ve,x as _e,aQ as ge,H as he,p as ye,ad as ke,a0 as Se,o as n,k as y,w as k,V as l,m as s,a3 as c,a8 as G,U as d,X as a,ae as K,a4 as W,a5 as H,K as m,$ as Ce,W as Y,a2 as Be,f as r,ag as Q,r as X,n as we}from"./CmB3FgNx.js";import{_ as Pe}from"./DdOCwNqw.js";import{R as Ne,a as q,b as J}from"./BAFTR_TS.js";import{u as Re}from"./BWHtUdn4.js";import{u as Ie}from"./BGSIVwiz.js";import{u as ze}from"./BmbcfD75.js";import{u as Te}from"./DqPosZRG.js";import{f as S}from"./BYr6M-Xn.js";import{R as Z}from"./BPPcfI6H.js";import"./BcBRrp0N.js";import"./DQXA3oKj.js";import"./D1ZNHKqm.js";import"./C6534OHC.js";import"./B4G5CZgg.js";import"./Cxq-6Grf.js";import"./CsybqWZJ.js";import"./DzL_e4S-.js";import"./DDRqXvlF.js";import"./FUKBWQwh.js";import"./ChOKVcqp.js";import"./C-E83dC9.js";import"./BgjU8_Xz.js";import"./Bmt4XSgU.js";import"./DlAUqK2U.js";function Ve(i,o){if(!/^#[0-9a-f]{6}$/i.test(i))return`rgba(0, 0, 0, ${o})`;const C=parseInt(i.slice(1,3),16),B=parseInt(i.slice(3,5),16),_=parseInt(i.slice(5,7),16);return`rgba(${C}, ${B}, ${_}, ${o})`}const De={class:"flex flex-col items-center gap-6 md:flex-row md:items-center md:gap-10"},Ae={class:"mt-10 grid grid-cols-1 items-stretch gap-6 md:mt-12 lg:grid-cols-2 lg:gap-10"},Fe={key:0,class:"mt-6 flex flex-wrap items-center gap-3"},Le={class:"text-base text-text-dark-blue-10 line-through"},$e={key:0,class:"rounded-md bg-[var(--tier-badge-bg)] px-2 py-0.5 text-sm font-medium text-[color:var(--tier-color)]"},Me={key:1,class:"mt-6 flex items-baseline gap-3"},je={class:"font-DMSans text-[42px] font-bold leading-none tracking-tight text-[color:var(--tier-color)]"},Ue={key:0,class:"text-2xl text-text-grey-10 line-through"},Oe=["disabled"],Ee={class:"mt-6"},Ge={role:"list",class:"mt-3 flex flex-col gap-3"},Ke={class:"flex cursor-pointer items-center gap-2"},We={class:"flex cursor-pointer items-center gap-2"},He={key:0,class:"rounded-md bg-[var(--tier-badge-bg)] px-2 py-0.5 text-sm font-medium text-[color:var(--tier-color)]"},Ye={key:0,class:"mt-6 flex items-baseline gap-2"},Qe={class:"font-DMSans text-[42px] font-bold leading-none tracking-tight text-[color:var(--tier-color)]"},Xe={class:"text-lg text-text-secondary-strength-2"},qe=["disabled","title"],Je={class:"mt-6"},Ze={role:"list",class:"mt-3 flex flex-col gap-3"},et="#1D97FF",ee="mt-10 inline-flex w-full items-center justify-center rounded-lg bg-[var(--tier-color)] px-6 py-4 text-lg font-semibold text-text-white transition hover:brightness-95 active:brightness-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--tier-color)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:!bg-action-primary-btn-disabled disabled:!text-white/70",tt=xe({__name:"BundleCTA",props:{blok:{}},setup(i){const o=i,C=r(()=>Q(o.blok?.headline)),B=r(()=>Q(o.blok?.fine_print)),_=r(()=>{const e=(o.blok?.tier_color??"").trim();return/^#[0-9a-f]{6}$/i.test(e)?e:et}),I=r(()=>({"--tier-color":_.value,"--tier-badge-bg":Ve(_.value,.15)})),te=["Lifetime license","Local download","Cloud access"],se=["Subscription license","Cloud access","Cancel any time"],le=r(()=>[(o.blok?.paddle_price_id_buy??"").trim(),(o.blok?.paddle_price_id_monthly??"").trim(),(o.blok?.paddle_price_id_annual??"").trim()].filter(e=>e.startsWith("pri_"))),{byPriceId:w}=ze({priceIds:le}),u=r(()=>{const e=(o.blok?.paddle_price_id_buy??"").trim();return e?w.value.get(e)??null:null}),z=r(()=>{const e=(o.blok?.paddle_price_id_monthly??"").trim();return e?w.value.get(e)??null:null}),T=r(()=>{const e=(o.blok?.paddle_price_id_annual??"").trim();return e?w.value.get(e)??null:null}),V=r(()=>u.value?.product?.image_url??""),re=r(()=>u.value?.product?.name??""),p=r(()=>{const e=Number(u.value?.unit_price?.amount);return Number.isFinite(e)&&e>0?e:null}),g=r(()=>{const e=u.value?.product?.custom_data?.["Bundle Value"],t=Number(e);return Number.isFinite(t)&&t>0?t:null}),P=r(()=>{const e=u.value?.product?.custom_data?.["Reg Price"],t=Number(e);return Number.isFinite(t)&&t>0?t:null}),D=r(()=>p.value!=null?S(p.value,{isCents:!0}):null),A=r(()=>P.value==null||p.value==null||P.value*100<=p.value?null:S(P.value,{isCents:!1})),F=r(()=>g.value!=null&&p.value!=null),oe=r(()=>g.value!=null?S(g.value,{isCents:!1}):null),L=r(()=>{if(!F.value)return null;const e=g.value*100,t=p.value;return e<=t?null:`Save ${Math.round((e-t)/e*100)}%`}),f=X("monthly"),$=r(()=>f.value==="annually"?T.value:z.value),M=r(()=>{const e=Number($.value?.unit_price?.amount);return!Number.isFinite(e)||e<=0?null:S(e,{isCents:!0})}),ne=r(()=>f.value==="annually"?"year":"month"),j=r(()=>{const e=Number(z.value?.unit_price?.amount),t=Number(T.value?.unit_price?.amount);if(!Number.isFinite(e)||!Number.isFinite(t)||e<=0||t<=0)return null;const v=e*12;return t>=v?null:`Save ${Math.round((v-t)/v*100)}%`}),ae=X({cta_action:"add_to_cart"}),{ctaState:N}=Re({blok:ae,matchedPrice:u}),ie=Te(),{showAddedToCart:ce}=Ie(),U=r(()=>N.value.disabled||N.value.action!=="add_to_cart"||!u.value);function ue(){if(U.value)return;const e=ie.addPaddleItem(u.value);if(!e){console.warn("[BundleCTA] Could not add to cart — missing SKU on Paddle product");return}ce(e)}const{isAuthenticated:R}=E(ve()),{isTeamUser:de}=E(_e()),x=ge();he(()=>
1{R.value&&!x.initialized&&x.fetchSubscriptionData(!1).catch(()=>{})}),ye(R,e=>{e&&!x.initialized&&x.fetchSubscriptionData(!1).catch(()=>{})});const h=r(()=>{if(de.value)return{label:"Subscribe",disabled:!0,tooltip:"Contact your team admin to manage subscription access."};if(!R.value)return{label:"Subscribe",disabled:!1};const e=$.value?.product?.id??"",t=f.value==="annually"?"year":"month";return e&&x.isCurrentSubscriptionActive(e,t)?{label:"Your plan",disabled:!0}:x.currentSubscription?{label:"Manage subscription",disabled:!1}:{label:"Subscribe",disabled:!1}});function be(){h.value.disabled||we("/pricing")}return(e,t)=>{const v=fe,O=Ce,me=Pe,pe=ke("editable");return Se((n(),y(me,{blok:i.blok,bg:"secondary-strength-2"},{default:k(()=>[l("div",De,[s(V)?(n(),y(v,{key:0,src:s(V),alt:s(re),width:"120",height:"120",loading:"lazy",class:"size-24 shrink-0 rounded-md object-cover md:size-[120px]"},null,8,["src","alt"])):c("",!0),s(C)?(n(),y(Z,{key:1,doc:i.blok.headline,class:"flex-1 text-center md:text-left"},null,8,["doc"])):c("",!0)]),l("div",Ae,[l("article",{style:G(s(I)),class:"flex flex-col rounded-2xl border border-section-secondary-strength-2 bg-section-base-invert p-8 shadow-sm md:p-10"},[t[2]||(t[2]=l("h3",{class:"text-2xl font-bold tracking-tight text-text-dark-blue-10 md:text-3xl"}," Buy & Own ",-1)),s(F)?(n(),d("div",Fe,[l("span",Le,a(s(oe))+" Value ",1),s(L)?(n(),d("span",$e,a(s(L)),1)):c("",!0)])):c("",!0),s(D)?(n(),d("div",Me,[l("p",je,a(s(D)),1),s(A)?(n(),d("p",Ue,a(s(A)),1)):c("",!0)])):c("",!0),l("button",{type:"button",disabled:s(U),class:K(ee),onClick:ue},a(s(N).label),9,Oe),l("div",Ee,[t[1]||(t[1]=l("p",{class:"font-medium text-text-secondary-strength-2"},"Benefits:",-1)),l("ul",Ge,[(n(),d(W,null,H(te,b=>l("li",{key:b,class:"flex items-center gap-3 text-text-secondary-strength-2"},[m(O,{name:"ui:check-rounded",class:"size-5 shrink-0 text-[color:var(--tier-color)]","aria-hidden":""}),Y(" "+a(b),1)])),64))])])],4),l("article",{style:G(s(I)),class:"flex flex-col rounded-2xl border border-section-secondary-strength-2 bg-section-base-invert p-8 shadow-sm md:p-10"},[t[6]||(t[6]=l("h3",{class:"text-2xl font-bold tracking-tight text-text-dark-blue-10 md:text-3xl"}," Subscription ",-1)),m(s(Ne),{modelValue:s(f),"onUpdate:modelValue":t[0]||(t[0]=b=>Be(f)?f.value=b:null),class:"mt-6 flex items-center gap-7"},{default:k(()=>[l("label",Ke,[m(s(q),{value:"monthly",class:"flex size-5 items-center justify-center rounded-full border border-section-secondary-strength-3 transition-colors data-[state=checked]:border-[color:var(--tier-color)]"},{default:k(()=>[m(s(J),{class:"size-2.5 rounded-full bg-[var(--tier-color)]"})]),_:1}),t[3]||(t[3]=l("span",{class:"text-text-dark-blue-10"},"Monthly",-1))]),l("label",We,[m(s(q),{value:"annually",class:"flex size-5 items-center justify-center rounded-full border border-section-secondary-strength-3 transition-colors data-[state=checked]:border-[color:var(--tier-color)]"},{default:k(()=>[m(s(J),{class:"size-2.5 rounded-full bg-[var(--tier-color)]"})]),_:1}),t[4]||(t[4]=l("span",{class:"text-text-dark-blue-10"},"Annually",-1)),s(j)?(n(),d("span",He,a(s(j)),1)):c("",!0)])]),_:1},8,["modelValue"]),s(M)?(n(),d("div",Ye,[l("p",Qe,a(s(M)),1),l("p",Xe,"/ "+a(s(ne)),1)])):c("",!0),l("button",{type:"button",disabled:s(h).disabled,title:s(h).tooltip||void 0,class:K(ee),onClick:be},a(s(h).label),9,qe),l("div",Je,[t[5]||(t[5]=l("p",{class:"font-medium text-text-secondary-strength-2"},"Benefits:",-1)),l("ul",Ze,[(n(),d(W,null,H(se,b=>l("li",{key:b,class:"flex items-center gap-3 text-text-secondary-strength-2"},[m(O,{name:"ui:check-rounded",class:"size-5 shrink-0 text-[color:var(--tier-color)]","aria-hidden":""}),Y(" "+a(b),1)])),64))])])],4)]),s(B)?(n(),y(Z,{key:0,doc:i.blok.fine_print,class:"mt-10 text-center text-sm text-text-secondary-strength-2"},null,8,["doc"])):c("",!0)]),_:1},8,["blok"])),[[pe,i.blok]])}}}),Pt=Object.assign(tt,{__name:"BundleCTA"});export{Pt as default};
2//# sourceMappingURL=CwUZPVci.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.