PageSourceSearch

https://morphq.com/assets/pricing-BQUbWPcJ.js

js morphq.com collected 2026-10-08 01:06:19 UTC 28,844 bytes, 1 lines download raw bytes

1import{r as e}from"./chunk-QTnfLwEv.js";import{Ah as t,Bh as n,Ch as r,Dh as i,Eh as a,Fh as o,GM as s,Gh as c,Hh as l,Ih as u,JM as d,KM as f,Kh as p,Lh as m,Mh as h,Nh as g,Oh as _,Ph as v,Rh as y,Sh as b,Th as x,Uh as S,Vh as C,Wh as w,YM as T,_h as E,ah as D,bh as O,cP as k,ch as A,dh as j,fh as M,gh as N,hh as P,ih as ee,jh as te,kh as F,lh as ne,mh as re,nh as ie,oh as ae,ph as oe,qM as I,qh as se,rh as ce,sP as le,sh as ue,uh as de,vh as fe,wh as pe,xh as me,yh as he,zh as ge}from"./messages-DGI6SUsr.js";import{r as _e,t as ve}from"./navigation-mDgHGwPL.js";import{o as ye}from"./api-client-DYg7-4-E.js";import{t as be}from"./useMutation-Iuc9lVeg.js";import{t as xe}from"./chevron-up-DX4laS61.js";import{t as Se}from"./credit-card-BPMZ9N9N.js";import{t as L}from"./utils-DXalBF5w.js";import{D as R,O as z,V as Ce,i as we,n as Te,o as B,t as Ee,z as De}from"./button-xH3lxb63.js";import{t as Oe}from"./useControlled-3-ZSGgMl.js";import{En as ke,Jn as Ae,Nn as je,Pn as Me,Qn as Ne,Sn as Pe,Un as Fe,Yn as Ie,Zn as V,Zt as Le,an as Re,cn as ze,dn as H,dr as Be,dt as Ve,ft as He,in as Ue,ln as We,lt as Ge,mt as Ke,on as qe,ot as Je,pn as Ye,rr as Xe,rt as Ze,sn as U,un as W,ut as Qe}from"./index-jo9u0Wgf.js";import{a as $e,n as et,o as tt,r as nt,t as rt}from"./dialog-BOK9E4sr.js";var G=e(k()),it=G.createContext(void 0);function K(){let e=G.useContext(it);if(e===void 0)throw Error(Ce(10));return e}var q=le(),at={value:()=>null},ot=G.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,hiddenUntilFound:a,keepMounted:o,loopFocus:s=!0,onValueChange:c,multiple:l=!1,orientation:u=`vertical`,value:d,defaultValue:f,...p}=e,m=Je(),h=G.useMemo(()=>{if(d===void 0)return f??[]},[d,f]),g=R(c),_=G.useRef([]),[v,y]=Oe({controlled:d,default:h,name:`Accordion`,state:`value`}),b=R((e,t)=>{let n=W(Pe);if(!l){let t=v[0]===e?[]:[e];if(g(t,n),n.isCanceled)return;y(t)}else if(t){let t=v.slice();if(t.push(e),g(t,n),n.isCanceled)return;y(t)}else{let t=v.filter(t=>t!==e);if(g(t,n),n.isCanceled)return;y(t)}}),x=G.useMemo(()=>({value:v,disabled:i,orientation:u}),[v,i,u]),S=G.useMemo(()=>({accordionItemRefs:_,direction:m,disabled:i,handleValueChange:b,hiddenUntilFound:a??!1,keepMounted:o??!1,loopFocus:s,orientation:u,state:x,value:v}),[m,i,b,a,o,s,u,x,v]),C=z(`div`,e,{state:x,ref:t,props:[{dir:m,role:`region`},p],stateAttributesMapping:at});return(0,q.jsx)(it.Provider,{value:S,children:(0,q.jsx)(Ze,{elementsRef:_,children:C})})});function st(e){let{open:t,defaultOpen:n,onOpenChange:r,disabled:i}=e,a=t!==void 0,[o,s]=Oe({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:c,setMounted:l,transitionStatus:u}=qe(o,!0,!0),[d,f]=G.useState(o),[{height:p,width:m},h]=G.useState({height:void 0,width:void 0}),g=H(),[_,v]=G.useState(),y=_??g,[b,x]=G.useState(!1),[S,C]=G.useState(!1),w=G.useRef(null),T=G.useRef(null),E=G.useRef(null),D=G.useRef(null),O=Re(D,!1),k=R(e=>{let t=!o,n=W(ke,e.nativeEvent);if(r(t,n),n.isCanceled)return;let i=D.current;T.current===`css-animation`&&i!=null&&i.style.removeProperty(`animation-name`),!b&&!S&&(T.current!=null&&T.current!==`css-animation`&&!c&&t&&l(!0),T.current===`css-animation`&&(!d&&t&&f(!0),!c&&t&&l(!0))),s(t),T.current===`none`&&c&&!t&&l(!1)});return B(()=>{a&&T.current===`none`&&!S&&!o&&l(!1)},[a,S,o,t,l]),G.useMemo(()=>({abortControllerRef:w,animationTypeRef:T,disabled:i,handleTrigger:k,height:p,mounted:c,open:o,panelId:y,panelRef:D,runOnceAnimationsFinish:O,setDimensions:h,setHiddenUntilFound:x,setKeepMounted:C,setMounted:l,setOpen:s,setPanelIdState:v,setVisible:f,transitionDimensionRef:E,transitionStatus:u,visible:d,width:m}),[w,T,i,k,p,c,o,y,D,O,h,x,C,l,s,f,E,u,d,m])}var ct=G.createContext(void 0);function lt(){let e=G.useContext(ct);if(e===void 0)throw Error(Ce(15));return e}var ut=G.createContext(void 0);function J(){let e=G.useContext(ut);if(e===void 0)throw Error(Ce(9));return e}var Y=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=je.startingStyle]=`startingStyle`,e[e.endingStyle=je.endingStyle]=`endingStyle`,e}({}),dt=function(e){return e.panelOpen=`data-panel-open`,e}({}),ft={[Y.open]:``},pt={[Y.closed]:``},mt={open(e){return e?{[dt.panelOpen]:``}:null}},ht={open(e){return e?ft:pt}},gt=function(e){return e.index=`data-index`,e.disabled=`data-disabled`,e.open=`data-open`,e}({}),X={...ht,index:e=>Number.isInteger(e)?{[gt.index]:String(e)}:null,...Me,value:()=>null},_t=G.forwardRef(function(e,t){let{className:n,disabled:r=!1,onOpenChange:i,render:a,value:o,...s}=e,{ref:c,index:l}=Ye(),u=De(t,c),{disabled:d,handleValueChange:f,state:p,value:m}=K(),h=H(),g=o??h,_=r||d,v=G.useMemo(()=>
1{if(!m)return!1;for(let e=0;e<m.length;e+=1)if(m[e]===g)return!0;return!1},[m,g]),y=R((e,t)=>{i?.(e,t),!t.isCanceled&&f(g,e)}),b=st({open:v,onOpenChange:y,disabled:_}),x=G.useMemo(()=>({open:b.open,disabled:b.disabled,hidden:!b.mounted,transitionStatus:b.transitionStatus}),[b.open,b.disabled,b.mounted,b.transitionStatus]),S=G.useMemo(()=>({...b,onOpenChange:y,state:x}),[b,x,y]),C=G.useMemo(()=>({...p,index:l,disabled:_,open:v}),[_,l,v,p]),[w,T]=G.useState(H()),E=G.useMemo(()=>({open:v,state:C,setTriggerId:T,triggerId:w}),[v,C,T,w]),D=z(`div`,e,{state:C,ref:u,props:s,stateAttributesMapping:X});return(0,q.jsx)(ct.Provider,{value:S,children:(0,q.jsx)(ut.Provider,{value:E,children:D})})}),vt=G.forwardRef(function(e,t){let{render:n,className:r,...i}=e,{state:a}=J();return z(`h3`,e,{state:a,ref:t,props:i,stateAttributesMapping:X})});function yt(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var bt=new Set([Ge,He,Ve,Qe,Ke,`End`]);function xt(e){let{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){let r=t[e];if(!yt(r)){let e=r?.querySelector(`[type="button"], [role="button"]`);e&&!yt(e)&&n.push(e)}}return n}var St=G.forwardRef(function(e,t){let{disabled:n,className:r,id:i,render:a,nativeButton:o=!0,...s}=e,{panelId:c,open:l,handleTrigger:u,disabled:d}=lt(),{getButtonProps:f,buttonRef:p}=we({disabled:n??d,focusableWhenDisabled:!0,native:o,composite:!0}),{accordionItemRefs:m,direction:h,loopFocus:g,orientation:_}=K(),v=h===`rtl`,y=_===`horizontal`,{state:b,setTriggerId:x,triggerId:S}=J();B(()=>(i&&x(i),()=>{x(void 0)}),[i,x]);let C=G.useMemo(()=>({"aria-controls":l?c:void 0,"aria-expanded":l,id:S,tabIndex:0,onClick:u,onKeyDown(e){if(!bt.has(e.key))return;Le(e);let t=xt(m),n=t.length-1,r=-1,i=t.indexOf(e.target);function a(){r=g?i+1>n?0:i+1:Math.min(i+1,n)}function o(){r=g&&i===0?n:i-1}switch(e.key){case Ge:y||a();break;case He:y||o();break;case Ve:y&&(v?o():a());break;case Qe:y&&(v?a():o());break;case`Home`:r=0;break;case`End`:r=n;break;default:break}r>-1&&t[r].focus()}}),[m,u,S,y,v,g,l,c]);return z(`button`,e,{state:b,ref:[t,p],props:[C,s,f],stateAttributesMapping:mt})}),Ct=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e}({});function wt(e){let{abortControllerRef:t,animationTypeRef:n,externalRef:r,height:i,hiddenUntilFound:a,keepMounted:o,id:s,mounted:c,onOpenChange:l,open:u,panelRef:d,runOnceAnimationsFinish:f,setDimensions:p,setMounted:m,setOpen:h,setVisible:g,transitionDimensionRef:_,visible:v,width:y}=e,b=G.useRef(!1),x=G.useRef(null),S=G.useRef(u),C=G.useRef(u),w=ze(),T=G.useMemo(()=>n.current===`css-animation`?!v:!u&&!c,[u,c,v,n]),E=De(r,d,R(e=>{if(!e)return;if(n.current==null||_.current==null){let t=getComputedStyle(e),r=t.animationName!==`none`&&t.animationName!==``,i=t.transitionDuration!==`0s`&&t.transitionDuration!==``;r&&i||(t.animationName===`none`&&t.transitionDuration!==`0s`?n.current=`css-transition`:t.animationName!==`none`&&t.transitionDuration===`0s`?n.current=`css-animation`:n.current=`none`),e.getAttribute(Ct.orientation)===`horizontal`||t.transitionProperty.indexOf(`width`)>-1?_.current=`width`:_.current=`height`}if(n.current!==`css-transition`)return;(i===void 0||y===void 0)&&(p({height:e.scrollHeight,width:e.scrollWidth}),C.current&&e.style.setProperty(`transition-duration`,`0s`));let t=-1,r=-1;return t=U.request(()=>{C.current=!1,r=U.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})}),()=>{U.cancel(t),U.cancel(r)}}));return B(()=>{if(n.current!==`css-transition`)return;let e=d.current;if(!e)return;let r=-1;if(t.current!=null&&(t.current.abort(),t.current=null),u){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)}),!C.current&&!o&&e.setAttribute(Y.startingStyle,``),p({height:e.scrollHeight,width:e.scrollWidth}),r=U.request(()=>{Object.entries(t).forEach(([t,n])=>{n===``?e.style.removeProperty(t):e.style.setProperty(t,n)})})}else{if(e.scrollHeight===0&&e.scrollWidth===0)return;p({height:e.scrollHeight,width:e.scrollWidth}
1);let n=new AbortController;t.current=n;let r=n.signal,i=null,a=Y.endingStyle;return i=new MutationObserver(o=>{o.some(e=>e.type===`attributes`&&e.attributeName===a)&&(i?.disconnect(),i=null,f(()=>{p({height:0,width:0}),e.style.removeProperty(`content-visibility`),m(!1),t.current===n&&(t.current=null)},r))}),i.observe(e,{attributes:!0,attributeFilter:[a]}),()=>{i?.disconnect(),w.cancel(),t.current===n&&(n.abort(),t.current=null)}}return()=>{U.cancel(r)}},[t,n,w,a,o,c,u,d,f,p,m]),B(()=>{if(n.current!==`css-animation`)return;let e=d.current;e&&(x.current=e.style.animationName||x.current,e.style.setProperty(`animation-name`,`none`),p({height:e.scrollHeight,width:e.scrollWidth}),!S.current&&!b.current&&e.style.removeProperty(`animation-name`),u?(t.current!=null&&(t.current.abort(),t.current=null),m(!0),g(!0)):(t.current=new AbortController,f(()=>{m(!1),g(!1),t.current=null},t.current.signal)))},[t,n,u,d,f,p,m,g,v]),We(()=>{let e=U.request(()=>{S.current=!1});return()=>U.cancel(e)}),B(()=>{if(!a)return;let e=d.current;if(!e)return;let t=-1,n=-1;return u&&b.current&&(e.style.transitionDuration=`0s`,p({height:e.scrollHeight,width:e.scrollWidth}),t=U.request(()=>{b.current=!1,n=U.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})})),()=>{U.cancel(t),U.cancel(n)}},[a,u,d,p]),B(()=>{let e=d.current;e&&a&&T&&(e.setAttribute(`hidden`,`until-found`),n.current===`css-transition`&&e.setAttribute(Y.startingStyle,``))},[a,T,n,d]),G.useEffect(function(){let e=d.current;if(!e)return;function t(e){b.current=!0,h(!0),l(!0,W(Pe,e))}return e.addEventListener(`beforematch`,t),()=>{e.removeEventListener(`beforematch`,t)}},[l,d,h]),G.useMemo(()=>({props:{hidden:T,id:s,ref:E}}),[T,s,E])}var Tt=function(e){return e.accordionPanelHeight=`--accordion-panel-height`,e.accordionPanelWidth=`--accordion-panel-width`,e}({}),Et=G.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,id:a,render:o,...s}=e,{hiddenUntilFound:c,keepMounted:l}=K(),{abortControllerRef:u,animationTypeRef:d,height:f,mounted:p,onOpenChange:m,open:h,panelId:g,panelRef:_,runOnceAnimationsFinish:v,setDimensions:y,setHiddenUntilFound:b,setKeepMounted:x,setMounted:S,setOpen:C,setVisible:w,transitionDimensionRef:T,visible:E,width:D,setPanelIdState:O,transitionStatus:k}=lt(),A=r??c,j=i??l;B(()=>{if(a)return O(a),()=>{O(void 0)}},[a,O]),B(()=>{b(A)},[b,A]),B(()=>{x(j)},[x,j]),Ue({open:h&&k===`idle`,ref:_,onComplete(){h&&y({width:void 0,height:void 0})}});let{props:M}=wt({abortControllerRef:u,animationTypeRef:d,externalRef:t,height:f,hiddenUntilFound:A,id:a??g,keepMounted:j,mounted:p,onOpenChange:m,open:h,panelRef:_,runOnceAnimationsFinish:v,setDimensions:y,setMounted:S,setOpen:C,setVisible:w,transitionDimensionRef:T,visible:E,width:D}),{state:N,triggerId:P}=J(),ee=z(`div`,e,{state:G.useMemo(()=>({...N,transitionStatus:k}),[N,k]),ref:[t,_],props:[M,{"aria-labelledby":P,role:`region`,style:{[Tt.accordionPanelHeight]:f===void 0?`auto`:`${f}px`,[Tt.accordionPanelWidth]:D===void 0?`auto`:`${D}px`}},s],stateAttributesMapping:X});return j||A||!j&&p?ee:null});function Dt({className:e,...t}){return(0,q.jsx)(ot,{"data-slot":`accordion`,className:L(`flex w-full flex-col`,e),...t})}function Ot({className:e,...t}){return(0,q.jsx)(_t,{"data-slot":`accordion-item`,className:L(`not-last:border-b`,e),...t})}function kt({className:e,children:t,...n}){return(0,q.jsx)(vt,{className:`flex`,children:(0,q.jsxs)(St,{"data-slot":`accordion-trigger`,className:L(`group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground`,e),...n,children:[t,(0,q.jsx)(Ae,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden`}),(0,q.jsx)(xe,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline`})]})})}function At({className:e,children:t,...n}){return(0,q.jsx)(Et,{"data-slot":`accordion-content`,className:`overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up`,...n,children:(0,q.jsx)(`div`,{className:L(`h-(--accordion-panel-height) pt-0 pb-2.5 data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,e),children:t})})}var Z=function(e){return e.ONE_TIME=`one-time`,e.SUBSCRIPTION=`subscription`,e.RENEW=`renew`,e}({}),Q=function(e){return e.ONE_TIME=`one-time`,e.DAY=`day`,e.WEEK=`week`,e.MONTH=`month`,e.YEAR=`year`,e}({}),jt={starter_monthly:{productId:`starter_monthly`,checkoutEnabled:!0,productName:`Starter`,planName:`Starter`,description:`Starter Monthly`,type:Z.SUBSCRIPTION,priceInCents:1999,currency:`usd`,credits:16,creditsValidDays:30,plan:{name:`
1Starter`,interval:Q.MONTH,intervalCount:1}},pro_monthly:{productId:`pro_monthly`,checkoutEnabled:!1,productName:`Pro`,planName:`Pro`,description:`Pro Monthly`,type:Z.SUBSCRIPTION,priceInCents:2900,currency:`usd`,credits:5e4,plan:{name:`Pro`,interval:Q.MONTH,intervalCount:1}},enterprise_monthly:{productId:`enterprise_monthly`,checkoutEnabled:!1,productName:`Enterprise`,planName:`Enterprise`,description:`Enterprise Monthly`,type:Z.SUBSCRIPTION,priceInCents:9900,currency:`usd`,credits:5e5,plan:{name:`Enterprise`,interval:Q.MONTH,intervalCount:1}},starter_yearly:{productId:`starter_yearly`,checkoutEnabled:!0,productName:`Starter`,planName:`Starter`,description:`Starter Yearly`,type:Z.SUBSCRIPTION,priceInCents:11988,currency:`usd`,credits:192,creditsValidDays:365,plan:{name:`Starter`,interval:Q.YEAR,intervalCount:1}},pro_yearly:{productId:`pro_yearly`,checkoutEnabled:!0,productName:`Advanced`,planName:`Advanced`,description:`Advanced Yearly`,type:Z.SUBSCRIPTION,priceInCents:22788,currency:`usd`,credits:960,creditsValidDays:365,plan:{name:`Advanced`,interval:Q.YEAR,intervalCount:1}},enterprise_yearly:{productId:`enterprise_yearly`,checkoutEnabled:!0,productName:`Professional`,planName:`Professional`,description:`Professional Yearly`,type:Z.SUBSCRIPTION,priceInCents:59988,currency:`usd`,credits:2400,creditsValidDays:365,plan:{name:`Professional`,interval:Q.YEAR,intervalCount:1}},starter_lifetime:{productId:`starter_lifetime`,checkoutEnabled:!1,productName:`Starter`,planName:`Starter Lifetime`,description:`Starter Lifetime`,type:Z.ONE_TIME,priceInCents:14900,currency:`usd`,credits:1e5},pro_lifetime:{productId:`pro_lifetime`,checkoutEnabled:!1,productName:`Pro`,planName:`Pro Lifetime`,description:`Pro Lifetime`,type:Z.ONE_TIME,priceInCents:49900,currency:`usd`,credits:1e6},enterprise_lifetime:{productId:`enterprise_lifetime`,checkoutEnabled:!1,productName:`Enterprise`,planName:`Enterprise Lifetime`,description:`Enterprise Lifetime`,type:Z.ONE_TIME,priceInCents:199900,currency:`usd`,credits:1e7}};function Mt(e){return e?jt[e]??null:null}var Nt={free:{entitlement:{planId:`free`,displayName:`Free`,version:3,projectLimit:3,folderLimit:1,dynamicCodeLimit:1,trackedScansPerMonth:1e3,analyticsRetentionDays:30,exportFormats:[`png`,`svg`],apiAccess:!1,apiRequestsPerMonth:0,teamMemberLimit:1,customDomainLimit:0,customSlugs:!1,aiCreditGrant:0,bulkLimit:0},pricingProductIds:[]},starter:{entitlement:{planId:`starter`,displayName:`Starter`,version:1,projectLimit:10,folderLimit:5,dynamicCodeLimit:2,trackedScansPerMonth:1e4,analyticsRetentionDays:90,exportFormats:[`png`,`svg`],apiAccess:!1,apiRequestsPerMonth:0,teamMemberLimit:1,customDomainLimit:0,customSlugs:!0,aiCreditGrant:16,bulkLimit:0},pricingProductIds:[`starter_monthly`,`starter_yearly`,`starter_lifetime`]},advanced:{entitlement:{planId:`advanced`,displayName:`Advanced`,version:1,projectLimit:50,folderLimit:20,dynamicCodeLimit:50,trackedScansPerMonth:null,analyticsRetentionDays:365,exportFormats:[`png`,`svg`],apiAccess:!0,apiRequestsPerMonth:3e3,teamMemberLimit:2,customDomainLimit:0,customSlugs:!0,aiCreditGrant:80,bulkLimit:100},pricingProductIds:[`pro_monthly`,`pro_yearly`,`pro_lifetime`]},professional:{entitlement:{planId:`professional`,displayName:`Professional`,version:1,projectLimit:250,folderLimit:50,dynamicCodeLimit:250,trackedScansPerMonth:null,analyticsRetentionDays:730,exportFormats:[`png`,`svg`],apiAccess:!0,apiRequestsPerMonth:1e4,teamMemberLimit:5,customDomainLimit:1,customSlugs:!0,aiCreditGrant:200,bulkLimit:500},pricingProductIds:[`enterprise_monthly`,`enterprise_yearly`,`enterprise_lifetime`]}},Pt=[`starter_monthly`,`starter_yearly`,`pro_yearly`,`enterprise_yearly`];function Ft(e){return typeof e==`string`&&Pt.includes(e)}var It={month:`starter_monthly`,year:`starter_yearly`},Lt=`pro_yearly`,Rt=`enterprise_yearly`;function $(e){let t=e<0,n=Math.abs(Math.round(e)),r=Math.floor(n/100),i=n%100,a=i===0?String(r):`${r}.${String(i).padStart(2,`0`)}`;return`${t?`-`:``}$${a}`}function zt(e,t){return t===Q.YEAR?e/12:e}function Bt(e){let t=Mt(e);if(!t)throw Error(`Missing pricing catalog entry: ${e}`);return t}function Vt(e){let t=Nt[e].entitlement,n=[];return t.aiCreditGrant>0&&n.push({kind:`ai_credits`,count:t.aiCreditGrant}),t.dynamicCodeLimit!=null&&n.push({kind:`dynamic`,count:t.dynamicCodeLimit}),t.trackedScansPerMonth==null?n.push({kind:`scans_unlimited`}):n.push({kind:`scans_capped`,count:t.trackedScansPerMonth}),t.bulkLimit>0&&n.push({kind:`bulk`,count:t.bulkLimit}),t.apiAccess&&t.apiRequestsPerMonth>0&&n.push({kind:`api`,count:t.apiRequestsPerMonth}),n.push({kind:`users`,count:t.teamMemberLimit}
1),t.customDomainLimit>0&&n.push({kind:`custom_domain`,count:t.customDomainLimit}),n.push(e===`professional`?{kind:`support_premium`}:{kind:`support_standard`}),n}function Ht(e,t,n){let r=Bt(t),i=r.plan?.interval===Q.MONTH?`month`:r.plan?.interval===Q.YEAR?`year`:`none`,a=zt(r.priceInCents,r.plan?.interval),o=n.showFullYearHeadline===!0,s=o?r.priceInCents:a,c=o?`year`:`month`;return{id:e,productId:t,product:r,featured:n.featured??!1,billingToggle:!1,headlineCents:s,headlinePeriod:c,chargedCents:r.priceInCents,currency:r.currency,interval:i,features:n.features}}function Ut(e){let t=e===`month`;return[Ht(`starter`,It[e],{features:Vt(`starter`)}),Ht(`advanced`,Lt,{featured:!0,showFullYearHeadline:t,features:Vt(`advanced`)}),Ht(`professional`,Rt,{showFullYearHeadline:t,features:Vt(`professional`)})]}function Wt(e){let t=Math.abs(Math.round(e)),n=Math.floor(t/100),r=t%100;return`${n}.${String(r).padStart(2,`0`)}`}function Gt(e){if(e===Q.MONTH)return`P1M`;if(e===Q.YEAR)return`P1Y`}function Kt(e){let t=`${e.origin.replace(/\/$/,``)}/pricing`;return{"@context":`https://schema.org`,"@graph":Pt.map(n=>{let r=Bt(n),i=Gt(r.plan?.interval),a={"@type":`Offer`,url:t,priceCurrency:r.currency.toUpperCase(),price:Wt(r.priceInCents),availability:`https://schema.org/InStock`,sku:r.productId};return i&&(a.priceSpecification={"@type":`UnitPriceSpecification`,price:Wt(r.priceInCents),priceCurrency:r.currency.toUpperCase(),billingDuration:i}),{"@type":`Product`,name:r.productName,description:r.description,sku:r.productId,brand:{"@type":`Brand`,name:e.appName},offers:a}})}}var qt={stripe:`Stripe`,creem:`Creem`,paypal:`PayPal`,alipay:`Alipay`,wechat:`WeChat Pay`};function Jt({open:e,onOpenChange:t,providers:n,loadingProvider:r,onSelect:i,planName:a,price:o}){return(0,q.jsx)(rt,{open:e,onOpenChange:t,children:(0,q.jsxs)(et,{className:`sm:max-w-md`,children:[(0,q.jsxs)($e,{children:[(0,q.jsx)(tt,{children:d()}),(0,q.jsx)(nt,{children:a?o?f({plan:a,price:o}):s({plan:a}):I()})]}),(0,q.jsx)(`div`,{className:`mt-2 space-y-2`,children:n.map(e=>(0,q.jsxs)(Ee,{variant:`outline`,className:`h-12 w-full justify-start gap-3`,disabled:!!r,onClick:()=>i(e),children:[r===e?(0,q.jsx)(Fe,{className:`size-4 animate-spin`}):(0,q.jsx)(Se,{className:`size-4`}),(0,q.jsx)(`span`,{children:qt[e]})]},e))})]})})}function Yt({plans:e,processingLabel:t,loadingId:n,selectedProductId:r,onCheckout:i,billingToggle:a,planHeadingLevel:o=`h2`}){let s=o;return(0,q.jsxs)(`div`,{className:`mx-auto max-w-5xl`,children:[a?(0,q.jsx)(`div`,{className:`mb-8 flex justify-center`,children:(0,q.jsxs)(`div`,{role:`group`,"aria-label":a.groupLabel,className:`border-border bg-muted/50 inline-flex w-fit rounded-lg border p-0.5`,children:[(0,q.jsx)(`button`,{type:`button`,"aria-pressed":a.value===`month`,onClick:()=>a.onChange(`month`),className:L(`focus-visible:ring-ring/50 rounded-md px-3 py-1.5 text-xs font-medium transition-colors focus-visible:ring-3 focus-visible:outline-none`,a.value===`month`?`bg-background text-foreground shadow-sm`:`text-muted-foreground hover:text-foreground`),children:a.monthlyLabel}),(0,q.jsx)(`button`,{type:`button`,"aria-pressed":a.value===`year`,onClick:()=>
1a.onChange(`year`),className:L(`focus-visible:ring-ring/50 rounded-md px-3 py-1.5 text-xs font-medium transition-colors focus-visible:ring-3 focus-visible:outline-none`,a.value===`year`?`bg-background text-foreground shadow-sm`:`text-muted-foreground hover:text-foreground`),children:a.yearlyLabel})]})}):null,(0,q.jsx)(`div`,{className:L(`grid gap-6 pt-4`,`grid-cols-1 min-[720px]:grid-cols-3`),children:e.map(e=>{let a=n===e.id,o=e.productId===r,c=L(Te({variant:e.featured?`default`:`outline`}),`h-10 w-full rounded-lg`);return(0,q.jsxs)(`article`,{"aria-labelledby":`plan-${e.id}-name`,className:L(`relative flex min-w-0 flex-col rounded-2xl border p-6`,o?`border-primary bg-primary/5 ring-primary/40 shadow-md ring-2`:e.featured?`border-primary/40 bg-card ring-primary/25 shadow-sm ring-1`:`border-border bg-card/70`),"data-checkout-intent":o?`selected`:void 0,children:[e.badge?(0,q.jsx)(`p`,{className:`bg-primary text-primary-foreground absolute -top-3 left-1/2 -translate-x-1/2 rounded-full px-3 py-0.5 text-xs font-medium whitespace-nowrap`,children:e.badge}):null,(0,q.jsx)(s,{id:`plan-${e.id}-name`,className:`text-foreground text-sm font-medium`,children:e.name}),(0,q.jsxs)(`div`,{className:`mt-4 flex items-baseline gap-1`,children:[(0,q.jsx)(`span`,{className:`text-4xl font-semibold tracking-tight tabular-nums`,children:e.headlinePrice}),e.priceSuffix?(0,q.jsx)(`span`,{className:`text-muted-foreground text-sm`,children:e.priceSuffix}):null]}),e.billedCaption?(0,q.jsx)(`p`,{className:`text-muted-foreground mt-1 text-sm`,children:e.billedCaption}):null,e.description?(0,q.jsx)(`p`,{className:`text-muted-foreground mt-3 text-sm leading-relaxed`,children:e.description}):null,(0,q.jsxs)(`div`,{className:`mt-6 flex flex-col gap-2`,children:[e.href?(0,q.jsx)(ve,{href:e.href,className:c,children:e.buttonText}):(0,q.jsx)(Ee,{type:`button`,variant:e.featured?`default`:`outline`,className:`h-10 w-full rounded-lg`,disabled:a,"aria-busy":a,onClick:()=>i?.(e),children:a?t:e.buttonText}),e.secondaryHref&&e.secondaryButtonText?(0,q.jsx)(ve,{href:e.secondaryHref,className:L(Te({variant:`ghost`}),`h-10 w-full rounded-lg`),children:e.secondaryButtonText}):null]}),(0,q.jsx)(`ul`,{className:`mt-6 space-y-2.5`,children:e.features.map(e=>(0,q.jsxs)(`li`,{className:`flex items-start gap-2.5 text-sm`,children:[(0,q.jsx)(Ie,{className:`text-primary mt-0.5 size-4 shrink-0`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`text-foreground/90`,children:e})]},e))})]},e.id)})})]})}var Xt=[`stripe`,`creem`,`paypal`,`alipay`,`wechat`];function Zt(e){switch(e.kind){case`static_qr`:return x();case`download`:return pe();case`no_account`:return r();case`ai_credits`:return b({count:e.count});case`dynamic`:return me({count:e.count});case`scans_capped`:return O({count:e.count.toLocaleString(`en-US`)});case`scans_unlimited`:return he();case`bulk`:return fe({count:e.count});case`api`:return E({count:e.count.toLocaleString(`en-US`)});case`users`:return e.count===1?P():N({count:e.count});case`custom_domain`:return e.count===1?re():oe({count:e.count});case`support_standard`:return M();case`support_premium`:return j()}}function Qt(e){if(e.interval===`month`)return v({amount:$(e.chargedCents)});if(e.interval===`year`)return g({amount:$(e.chargedCents)})}function $t(e){let t=e.id===`starter`?l():e.id===`advanced`?n():y(),r=e.id===`starter`?C():e.id===`advanced`?ge():m();return{id:e.id,name:t,description:r,headlinePrice:$(e.headlineCents),priceSuffix:e.headlinePeriod===`year`?o():u(),billedCaption:Qt(e),badge:e.featured&&e.id===`advanced`?S():void 0,featured:e.featured,features:e.features.map(Zt),buttonText:F(),productId:e.productId??void 0,chargedPriceLabel:e.productId?$(e.chargedCents):void 0}}function en({title:e,headingLevel:n=`h1`,showFaq:r=!0}={}){let o=n,s=_e(),{data:l}=Be(),{data:u}=Ne(),d=u??{},[f,m]=(0,G.useState)(`year`),[g,v]=(0,G.useState)(!1),[y,b]=(0,G.useState)(null),[x,S]=(0,G.useState)(null),[C,E]=(0,G.useState)(null),[O,k]=(0,G.useState)(null),[j,M]=(0,G.useState)(null);(0,G.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get(`checkout`);M(Xe(e.get(`returnTo`))),Ft(t)&&(k(t),t===`starter_monthly`&&m(`month`),t===`starter_yearly`&&m(`year`))},[]);let N=(0,G.useMemo)(()=>Xt.filter(e=>d[`${e}_subscription_checkout_ready`]===`true`),[d]),P=Ut(f).map($t),F=P.find(e=>e.productId===O),re=[{q:ne(),a:A()},{q:ue(),a:ae()},{q:D(),a:ee()},{q:ce(),a:ie()}],oe=be({mutationFn:({plan:e,provider:t,returnTo:n})=>ye(`/api/payment/checkout`,{product_id:e.productId,payment_provider:t,dynamic_return_to:n}),onSuccess:e=>{if(!e?.checkout_url){V.error(te()),S(null),E(null);return}window.location.href=e.checkout_url},onError:e=>{V.error(e.message||te()),S(null),E(null)}});function I(e,t){e.productId&&(E(e.id),S(t),oe.mutate({plan:e,provider:t,returnTo:j}))}function le(e){if(!e.productId)return;if(!N.length){V.error(t());return}if(!l?.user){let t=new URLSearchParams({checkout:e.productId});j&&t.set(`returnTo`,j);let n=`/pricing?${t.toString()}#pricing`,r=encodeURIComponent(n);s.push(`/sign-in?callbackUrl=${r}`);return}let n=d.select_payment_enabled===`true`,r=d.default_payment_provider,i=r&&N.includes(r)?r:N[0];if(!i){V.error(t());return}if(n&&N.length>1){b(e),v(!0);return}I(e,i)}function fe(e){y&&I(y,e)}return(0,q.jsxs)(`section`,{id:`pricing`,className:`px-4 py-16 sm:px-6 sm:py-24`,children:[(0,q.jsxs)(`div`,{className:`mx-auto max-w-6xl`,children:[(0,q.jsxs)(`div`,{className:`mx-auto mb-12 max-w-2xl text-center sm:mb-16`,children:[(0,q.jsx)(o,{className:`text-3xl font-semibold tracking-tight sm:text-4xl`,children:e??se()}),(0,q.jsx)(`p`,{className:`text-muted-foreground mt-3 text-base leading-relaxed`,children:p()})]}),F?(0,q.jsxs)(`div`,{role:`status`,className:`border-primary/30 bg-primary/5 mx-auto mb-8 max-w-5xl rounded-xl border px-4 py-3 sm:px-5`,children:[(0,q.jsx)(`p`,{className:`text-foreground text-sm font-semibold`,children:_({plan:F.name})}),(0,q.jsx)(`p`,{className:`text-muted-foreground mt-1 text-sm leading-relaxed`,children:i()})]}):null,(0,q.jsx)(Yt,{plans:P,processingLabel:T(),loadingId:C,selectedProductId:O,onCheckout:le,billingToggle:{groupLabel:h(),monthlyLabel:c(),yearlyLabel:w(),value:f,onChange:m},planHeadingLevel:n===`h1`?`h2`:`h3`}),(0,q.jsx)(`p`,{className:`text-muted-foreground mx-auto mt-8 max-w-3xl text-sm leading-relaxed`,children:a()}
1),r?(0,q.jsxs)(`div`,{className:`mx-auto mt-16 max-w-3xl sm:mt-20`,children:[(0,q.jsx)(`h2`,{className:`text-2xl font-semibold tracking-tight sm:text-3xl`,children:de()}),(0,q.jsx)(Dt,{className:`mt-8 w-full`,children:re.map(e=>(0,q.jsxs)(Ot,{value:e.q,children:[(0,q.jsx)(kt,{className:`cursor-pointer py-6 text-left text-base font-medium hover:no-underline`,children:e.q}),(0,q.jsx)(At,{className:`text-muted-foreground pb-6 leading-relaxed`,children:e.a})]},e.q))})]}):null]}),(0,q.jsx)(Jt,{open:g,onOpenChange:e=>{v(e),e||(b(null),S(null),E(null))},providers:N,loadingProvider:x,onSelect:fe,planName:y?.name,price:y?.chargedPriceLabel})]})}export{Ot as a,At as i,Kt as n,kt as o,Dt as r,en as t};

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.