PageSourceSearch

https://chartinsight.ai/_nuxt/Dw2drw71.js

js chartinsight.ai collected 2026-10-05 12:25:54 UTC 3,854 bytes, 1 lines download raw bytes

1import{Y as R,ar as L,E as S,ax as E,aF as T,i as P,y as w,z as r,f as q,u as z,R as H,s as y,o as b,c as h,F as O,r as F,a as v,B as I,t as N,n as U,_ as V}from"./DeGZr0e7.js";import{u as A}from"./BjVjYNhF.js";const x={slug:"default",label:"Default pricing",pricePerPage:15,minPages:50,maxDiscountPct:90},M=e=>{const o=e.paygo_product,i=o?.price_per_page_cents??x.pricePerPage,m=o?.min_pages??x.minPages,g=o?.max_discount_pct??x.maxDiscountPct,n=e.banner_text?.trim()||"",d=`${e.name}: ${i}¢ per page`;return{slug:e.slug,label:e.name,pricePerPage:i,minPages:m,maxDiscountPct:g,bannerText:n||d}},j=()=>{const e=R(),o=L(),{apiBaseURL:i}=S(),{persistSlug:m,cookiesEnabled:g}=E(),n=T("landing-page-settings"),d=typeof e.query.campaign=="string"?e.query.campaign.trim():"",a=w(d);a.value&&m(a.value),P(()=>e.query.campaign,s=>{const c=typeof s=="string"?s.trim():"";c&&c!==a.value&&(a.value=c,m(c))}),typeof window<"u"&&e.query.campaign!==void 0&&Promise.resolve().then(()=>{if(e.query.campaign===void 0||!g())return;const{campaign:s,...c}=e.query;o.replace({path:e.path,query:c,hash:e.hash}).catch(()=>{})});const f=r(()=>{const s=n.value?.pages;return!s||s.length===0?null:s.find(c=>c.route===e.path)??null}),t=r(()=>f.value?.disable_campaigns??!1),u=r(()=>`campaign:${a.value||"none"}`),{data:l}=A(u.value,async()=>{if(!a.value||t.value)return null;try{return await $fetch(`${i}/v1/campaigns/by-slug/${encodeURIComponent(a.value)}`)}catch{return null}},{watch:[a,t],default:()=>null}),p=r(()=>l.value?M(l.value):x),_=r(()=>l.value!==null),B=r(()=>{const s=`${p.value.pricePerPage}¢ / page`;return p.value.minPages>0?`${s} · ${p.value.minPages}-page minimum`:s}),$=r(()=>`Starting at ${p.value.pricePerPage}¢ / page with volume discounts up to ${p.value.maxDiscountPct}%.`),k=r(()=>p.value.bannerText??""),C=r(()=>f.value?.hide_default_pricing??n.value?.hide_default_pricing??!1),D=r(()=>_.value||!C.value);return{pricing:p,isPromoCampaign:_,ctaSubtext:B,pricingTagline:$,bannerText:k,showPricingCopy:D,disableCampaigns:t,bookDemoOnly:t}},G={class:"relative mx-auto flex max-w-[1240px] flex-wrap items-baseline justify-center gap-x-2 gap-y-0.5 px-4 py-2.5 text-center sm:flex-nowrap sm:justify-start sm:text-left sm:px-6 lg:px-8"},K={class:"promo-banner__text font-display text-[13.5px] font-semibold leading-none text-white [text-wrap:pretty]","data-test":"promo-banner-text"},X=40,Y=q({__name:"PromoBanner",setup(e){const{isPromoCampaign:o,bannerText:i}=j(),m=r(()=>!!(o.value&&i.value));z(()=>({style:m.value?[{children:`:root { --promo-banner-h: ${X}px; }`}]:[]}));const g=w(null);let n=null;function d(t){return Math.ceil(t.getBoundingClientRect().height)}function a(t){typeof document>"u"||document.documentElement.style.setProperty("--promo-banner-h",`${t}px`)}function f(){typeof document>"u"||document.documentElement.style.removeProperty("--promo-banner-h")}return P(g,t=>{if(n&&(n.disconnect(),n=null),!t){f();return}a(d(t)),typeof ResizeObserver<"u"&&(n=new ResizeObserver(u=>{for(const l of u)a(d(l.target))}),n.observe(t))},{immediate:!0}),H(()=>{n&&(n.disconnect(),n=null),f()}),(t,u)=>y(o)&&y(i)?(b(),h("section",{key:0,ref_key:"bannerRef",ref:g,class:"promo-banner fixed inset-x-0 top-0 z-[60] flex w-full items-center overflow-hidden",role:"status","aria-live":"polite","data-test":"promo-banner"},[(b(),h(O,null,F(5,l=>v("svg",{key:l,class:I(`sparkle sparkle--${l}`),viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[...u[0]||(u[0]=[v("path",{d:"M12 0 L14 10 L24 12 L14 14 L12 24 L10 14 L0 12 L10 10 Z"},null,-1)])],2)),64)),v("div",G,[u[1]||(u[1]=v("span",{class:"promo-banner__eyebrow my-auto font-display text-[10.5px] font-extrabold uppercase leading-none tracking-[0.16em] text-white"}," Promotional pricing ",-1)),v("span",K,N(y(i)),1)])],512)):U("",!0)}}),W=V(Y,[["__scopeId","data-v-1d815daa"]]);export{W as _};

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.