PageSourceSearch

https://saasrock.com/assets/root-Dvf0_tjg.js

js saasrock.com collected 2026-10-03 23:09:55 UTC 17,202 bytes, 8 lines download raw bytes

1import{r as o,o as M,l as A,j as e,i as F,c as x,k as v,L as w,g as E,d as P,w as O,a as R,u as B,O as W,f as _,M as H,q as z,S as q,s as $}from"./chunk-EPOLDU6W-CffQmu0Y.js";import{u as h}from"./useRootData-dQvq1aFp.js";import{u as g}from"./useTranslation-DiMRLYFC.js";import{K as U}from"./transition-DRR3lWIp.js";import{c as j,a as K,A as k,C as T}from"./AnalyticsHelper-CvbUgHuE.js";import{O as Y}from"./OpenModal-Bfe8SuB0.js";import{C as V}from"./CookieConsentSettings-CZULWusk.js";import{B as C}from"./button-BUkg7Ba3.js";import{c as N}from"./clsx-B-dksMZM.js";import{S as X}from"./ServerError-Dj5gPSjt.js";import{B as G}from"./BannerBlock-Dkkb2oZh.js";import{F as J}from"./index-mBvlgklh.js";import{$ as Q}from"./index-B0kpdqHN.js";import"./context-yRbwE_Hb.js";import"./keyboard-CUKk1vEI.js";import"./portal-CW21RI9f.js";import"./focus-management-C8sj6Fjc.js";import"./index-DQwl3jVv.js";import"./dialog-BL2AjFu7.js";import"./use-event-listener-CnXxfuAF.js";import"./use-inert-others-DR3shfoa.js";import"./use-tab-direction-C9Vb7AEc.js";import"./hidden-CVKIA8aF.js";import"./description-NPejS93j.js";import"./active-element-history-CbdgEyWp.js";import"./InputCheckbox-5Ug2MnJE.js";import"./EntityIcon-C6zAMq3P.js";import"./HintTooltip-CIUqaBvE.js";import"./tooltip-CB8PAzP4.js";import"./index-5cU7UBvY.js";import"./index-IGPF80DV.js";import"./index-Djt6Jnzs.js";import"./index-CdxEhO_Q.js";import"./index-BC0FfRFo.js";import"./floating-ui.react-dom-CBEGqpWU.js";import"./utils-BykweIWy.js";import"./checkbox-BA4wZy06.js";import"./index-B17hQMNb.js";import"./check-9tEKfxgZ.js";import"./createLucideIcon-CR2ZdLJJ.js";import"./useFocusRing-BxugBIFH.js";import"./use-resolve-button-type-BVC0qs4o.js";import"./form-fields-CY9MzSJv.js";import"./label-kwgGvMEU.js";import"./bugs-D5tECy-l.js";import"./Page404-EGJSpDtL.js";import"./FooterBlock-ClaZ1jtZ.js";import"./defaultFooter-alwvDFeZ.js";import"./defaultSocials-Jy87fCT3.js";import"./LocaleSelector-DAHkwzA1.js";import"./icon-dark-vFuyYMfn.js";import"./ButtonEvent-BTSa1obs.js";import"./LinkOrAhref-fwgr0WNg.js";import"./i18n-CIxyWrs_.js";import"./dropdown-menu-BYWVqAAB.js";import"./index-DidXqSUl.js";import"./index-BwWP4nMT.js";import"./Combination-C7Mv8ldb.js";import"./ThemeSelector-vXaeD9Si.js";import"./defaultThemes-BW9kzghM.js";import"./select-CmbPIVV_.js";import"./index-BdQq_4o_.js";import"./chevron-down-BSGoToNw.js";import"./Logo-Dg7Ep8ID.js";import"./logo-dark-Cz9R4So2.js";import"./401-C3Rnnhld.js";import"./ExternalLinkEmptyIcon-DUiFjnOw.js";import"./GitHubIcon-BcauvVnd.js";import"./ColorBackgroundUtils-BWjyhLnI.js";import"./Colors-DPpFZLtm.js";import"./ColorTextUtils-e0tqugpV.js";import"./MegaphoneIcon-BbwWudyL.js";import"./XIcon-XfJuH-r8.js";import"./defaultBanner-BMd9DoqF.js";var b={exports:{}};(function(t,s){(function(n,i){i(s,o)})(M,function(n,i){const a={delay:500,minDuration:200};function r(c,l){l=Object.assign({},a,l);const[d,p]=i.useState("IDLE"),m=i.useRef(null);return i.useEffect(()=>{c&&d==="IDLE"&&(clearTimeout(m.current),m.current=setTimeout(()=>{if(!c)return p("IDLE");m.current=setTimeout(()=>{p("EXPIRE")},l.minDuration),p("DISPLAY")},l.delay),p("DELAY")),!c&&d!=="DISPLAY"&&(clearTimeout(m.current),p("IDLE"))},[c,d,l.delay,l.minDuration]),i.useEffect(()=>()=>clearTimeout(m.current),[]),d==="DISPLAY"||d==="EXPIRE"}n.default=r,n.defaultOptions=a,n.useSpinDelay=r})})(b,b.exports);var Z=b.exports;let S=!1;function ee({loading:t}){const{t:s}=g(),n=A(),[,i]=o.useState([]),[a,r]=o.useState(""),c=Z.useSpinDelay(!!(n.state!=="idle"||t),{delay:400,minDuration:1e3});o.useEffect(()=>{if(n.location?.pathname==="/"||n.state==="idle")return;n.state==="loading"&&i(te),n.state==="submitting"&&i(se);const d=setInterval(()=>{i(([p,...m])=>[...m,p])},2e3);return()=>clearInterval(d)},[a,n.state]),o.useEffect(()=>{S||n.state!=="idle"&&r(n.location.pathname)},[n]),o.useEffect(()=>{S=!1},[]);const l=n.state==="loading"?s("shared.loading"):s("shared.processing");return e.jsx("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 z-50 flex items-end px-4 py-6 sm:p-6",children:e.jsx("div",{className:"flex w-full flex-col items-center space-y-4 sm:items-end",children:e.jsx(U,{show:c,as:o.Fragment,enter:"transform ease-
1out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-4",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:e.jsx("div",{className:"bg-background ring-opacity-5 pointer-events-auto w-64 max-w-sm overflow-hidden rounded-lg p-2 shadow-lg ring-1 ring-black",children:e.jsx("div",{className:"space-y-2 pt-2 pb-2 text-center",children:e.jsxs("div",{className:"flex h-auto w-full items-center space-x-4 px-3 text-center",children:[e.jsx("div",{className:"loader border-border h-10 w-10 shrink-0 rounded-full border-4 border-t-4 text-left ease-linear",style:{borderTopColor:"var(--foreground)",animation:"spinner 1.5s linear infinite"}}),e.jsxs("div",{className:"text-muted-foreground flex flex-col truncate",children:[e.jsxs("div",{className:"text-left",children:[l,"..."]}),n.location?.pathname&&e.jsxs("div",{className:"text-muted-foreground truncate text-left text-xs lowercase",children:[s("shared.path"),": ",n.location?.pathname]})]})]})})})})})})}const te=["loading","checking cdn","checking cache","fetching from db","compiling mdx","updating cache","transfer"],se=["packaging","zapping","validating","processing","calculating","computing","computering"];function ne(){const{t}=g(),s=F(),n=x(),i=s.state==="submitting",{userSession:a,appConfiguration:r}=h(),[c]=v(),[l,d]=o.useState(j.requiresCookieConsent(a,c)),[p,m]=o.useState(!1);if(o.useEffect(()=>{d(j.requiresCookieConsent(a,c))},[a,c]),!r.cookies.enabled)return null;function u(y){const f=j.getUpdateCookieConsentForm({selectedCookies:y,location:n,searchParams:c});s.submit(f,{method:"post",action:"/",preventScrollReset:!0})}return e.jsx(e.Fragment,{children:l&&e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"fixed inset-x-0 bottom-0 z-30 pb-2 sm:pb-5",children:e.jsx("div",{className:"mx-auto max-w-5xl px-2 sm:px-6 lg:px-8",children:e.jsx("div",{className:"bg-background border-border text-foreground rounded-lg border p-2 shadow-lg sm:p-3",children:e.jsxs("div",{className:"flex flex-col items-center justify-between space-y-2 sm:flex-row sm:space-y-0",children:[e.jsxs("div",{className:"flex items-start space-x-2",children:[e.jsx("div",{className:"bg-primary rounded-full p-1",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"text-primary-foreground h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M2.166 4.999A11.954 11.954 0 0010 1.944 11.954 11.954 0 0017.834 5c.11.65.166 1.32.166 2.001 0 5.225-3.34 9.67-8 11.317C5.34 16.67 2 12.225 2 7c0-.682.057-1.35.166-2.001zm11.541 3.708a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-foreground font-medium",children:[e.jsxs("span",{className:"md:hidden",children:[" ",t("cookies.titleSmall")," "]}),e.jsxs("span",{className:"hidden md:inline",children:[" ",t("cookies.title")," "]})]}),e.jsxs("p",{className:"text-muted-foreground text-sm font-light",children:[e.jsxs("span",{className:"md:hidden",children:[t("cookies.descriptionSmall")," ",e.jsx(w,{to:"/privacy-policy",className:"underline",children:t("shared.learnMore")}),"."," "]}),e.jsxs("span",{className:"hidden md:inline",children:[" ",t("cookies.description")," ",e.jsx(w,{to:"/privacy-policy",className:"underline",children:t("shared.learnMore")})," "]})]})]})]}),e.jsx("div",{className:"border-border w-full border border-t sm:hidden"}),e.jsxs("div",{className:"flex w-full shrink-0 flex-col space-y-2 sm:mt-0 sm:w-auto sm:flex-row sm:space-x-2 sm:space-y-0",children:[e.jsxs(C,{variant:"outline",type:"button",onClick:()=>m(!0),children:[" ",t("cookies.settings")," "]}),e.jsx(C,{disabled:i,onClick:()=>{u(K),d(!1)},children:t("cookies.accept")})]})]})})})}),p&&e.jsx(Y,{onClose:()=>m(!1),children:e.jsx(V,{})})]})})}function re(){const{t}=g();return e.jsxs("div",{className:"flex h-screen flex-col items-center justify-center space-y-2",children:[e.jsx("h1",{className:"text-4xl font-bold",children:t("shared.maintenance.title")}),e.jsx("p",{className:"text-xl",children:t("shared.maintenance.description")}),e.jsx(w,{to:".",className:"text-muted-foreground dark:text-muted-foreground text-sm underline",children:t("shared.clickHereToTryAgain")})]})}function ae({flag:t,children:s}){let n=x();const i=h(),a=E();return o.useEffect(()=>{async function r(){const c=a.find(l=>l.pathname==n.pathname);k.addEvent({url:n.pathname,route:c?.id,rootData:i,action:t,category:"featureFlag",label:"",value:""})}i?.featureFlags.includes(t)&&r()},[t]),e.jsx(o.Fragment,{children:s})}const ie=o.createContext(void 0),oe={setTheme:t=>{},themes:[]},ce=()=>{var t;return(t=o.useContext(ie))!==null&&t!==void 0?t:oe},le=({...t})=>{const{theme:s="system"}=ce();return e.jsx(Q,{theme:s,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})};function de(t){let{i18n:s}=g();o.useEffect(()=>{s.language!==t&&s.changeLanguage(t)},[t,s])}let D=!0;function me(){let[t,s]=o.useState(()=>!D);return o.useEffect(()=>{D=!1,s(!0)},[]),t}const pe=["/","/changelog","/blog*","/docs/*","/terms-and-conditions","/
1privacy-policy","/components*","/tutorials*","/build*","/core-vs*","/the-*","/svelte*","/showcase*"];function ue(t){return t.startsWith("/admin")||t.startsWith("/app")?!1:pe.some(s=>s.includes("*")?t.startsWith(s.split("*")[0]):t===s)}function he({letter:t}){const{i18n:s}=g(),n=h(),i=P(),a=x(),r=E(),[c]=v(),l=c.get("screenshotMode")==="true",d=ue(a.pathname);return l?null:(o.useEffect(()=>{function p(m){const y=document.activeElement?.closest("#newsletter-form")!==null;if(m.key.toLowerCase()===t.toLowerCase()&&!y&&d){const f=r.find(I=>I.pathname==a.pathname);k.addEvent({url:a.pathname,route:f?.id,rootData:n,action:"shortcut",category:"pressTo",label:"Press B to Buy",value:"/pricing"}),i("/pricing")}}return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[i,a.pathname,d,r,n]),e.jsx(o.Fragment,{children:d&&e.jsx(w,{to:"/pricing",className:"fixed right-6 top-40 z-10 hidden select-none rounded-md border border-gray-300 bg-white p-2 text-black opacity-70 shadow-sm hover:bg-gray-50 lg:block dark:border-gray-900 dark:bg-gray-800 dark:text-white",children:s.language==="es"?e.jsxs("span",{children:["Presiona ",e.jsx("strong",{children:t})," para comprar"]}):s.language==="de"?e.jsxs("span",{children:["Drücken Sie ",e.jsx("strong",{children:t})," jederzeit, um zu kaufen"]}):s.language==="fr"?e.jsxs("span",{children:["Appuyez sur ",e.jsx("strong",{children:t})," à tout moment pour acheter"]}):e.jsxs("span",{children:["Press ",e.jsx("strong",{children:t})," anytime to buy"]})})}))}const fe=({scripts:t})=>(o.useEffect(()=>{if(t?.head){const s=document.createElement("div");s.innerHTML=t.head,Array.from(s.childNodes).forEach(n=>{if(n.nodeType===Node.ELEMENT_NODE){const i=document.createElement("script");Array.from(n.attributes).forEach(a=>{i.setAttribute(a.name,a.value)}),i.innerHTML=n.innerHTML,document.head.appendChild(i)}})}if(t?.body){const s=document.createElement("div");s.innerHTML=t.body,Array.from(s.childNodes).forEach(n=>{if(n.nodeType===Node.ELEMENT_NODE){const i=document.createElement("script");Array.from(n.attributes).forEach(a=>{i.setAttribute(a.name,a.value)}),i.innerHTML=n.innerHTML,document.body.appendChild(i)}})}},[t]),null);function ge(){const s=h().appConfiguration?.affiliates;return!s||!s.provider||!s.provider.rewardfulApiKey?null:e.jsxs(o.Fragment,{children:[e.jsx("script",{async:!0,id:"rewardful-init",dangerouslySetInnerHTML:{__html:"(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');"}}),e.jsx("script",{async:!0,src:"https://r.wdfl.co/rw.js","data-rewardful":s.provider.rewardfulApiKey})]})}const xe=["/app","/admin","/crisp"],ye=["/admin","/app"];function je(){const t=h(),s=x(),[n]=v();return n.get("screenshotMode")==="true"||o.useEffect(()=>{let a=j.hasConsent(t.userSession,T.FUNCTIONAL)||xe.some(r=>s.pathname.startsWith(r));if(t.chatWebsiteId&&!t.debug&&a&&!window.$crisp){window.$crisp=[],window.CRISP_WEBSITE_ID=t.chatWebsiteId;const r=document,c=r.createElement("script");c.src="https://client.crisp.chat/l.js",c.async=!0,r.getElementsByTagName("head")[0].appendChild(c)}if(window.$crisp&&ye.some(r=>s.pathname.startsWith(r)))try{window.$crisp.push(["do","chat:hide"])}catch{}},[t.userSession.cookies,t.chatWebsiteId,s.pathname]),null}function we(){const t=h(),s=x();return!t.appConfiguration?.analytics.enabled||["/app/","/admin/"].some(n=>s.pathname.startsWith(n))?null:e.jsxs(e.Fragment,{children:[t.appConfiguration?.analytics.simpleAnalytics&&e.jsxs(e.Fragment,{children:[e.jsx("script",{async:!0,defer:!0,src:"https://scripts.simpleanalyticscdn.com/latest.js"}),e.jsx("noscript",{children:e.jsx("img",{src:"https://queue.simpleanalyticscdn.com/noscript.gif",alt:"privacy-friendly-simpleanalytics",referrerPolicy:"no-referrer-when-downgrade"})})]}),t.appConfiguration?.analytics.plausibleAnalytics&&e.jsx(e.Fragment,{children:e.jsx("script",{defer:!0,"data-domain":t.domainName,src:"https://plausible.io/js/script.js"})}),j.hasConsent(t.userSession,T.ADVERTISEMENT)&&e.jsx(e.Fragment,{children:t.appConfiguration?.analytics.googleAnalyticsTrackingId&&e.jsxs(e.Fragment,{children:[e.jsx("script",{async:!0,src:`https://www.googletagmanager.com/gtag/js?i
1d=${t.appConfiguration?.analytics.googleAnalyticsTrackingId}`}),e.jsx("script",{async:!0,id:"gtag-init",dangerouslySetInnerHTML:{__html:`
2                window.dataLayer = window.dataLayer || [];
3                function gtag(){dataLayer.push(arguments);}
4                gtag('js', new Date());
5                gtag('config', '${t.appConfiguration?.analytics.googleAnalyticsTrackingId}', {
6                  page_path: window.location.pathname,
7                });
8              `}})]})})]})}const zt={i18n:"translations"},qt=({data:t})=>t?.metatags??[];function L({children:t,lang:s="en",dir:n="ltr"}){const{t:i}=g();me();const a=x(),r=h(),[c,l]=o.useState(""),d=E(),p=_(),[m]=v();return o.useEffect(()=>{if(c==a.pathname)return;const u=d.find(f=>f.pathname==a.pathname);l(a.pathname);async function y(){let f=m?"?"+m.toString():"";k.addPageView({url:a.pathname+f,route:u?.id,rootData:r})}y()},[c,a,r,p]),e.jsxs("html",{lang:s,dir:n,className:N(r.userSession?.lightOrDarkMode==="dark"&&"dark",!1),children:[e.jsxs("head",{children:[e.jsx(H,{}),r.appConfiguration?.branding?.favicon?e.jsx("link",{rel:"icon",href:r.appConfiguration?.branding?.favicon}):e.jsxs(e.Fragment,{children:[e.jsx("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/android-icon-192x192.png"}),e.jsx("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),e.jsx("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/favicon-96x96.png"}),e.jsx("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"})]}),e.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),e.jsx("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),!r.debug&&!r.authenticated&&!["/app/","/admin/"].some(u=>a.pathname.startsWith(u))&&e.jsx("script",{src:"https://salespopup.io/api/script.js?website=saasrock.com",async:!0,defer:!0}),r.appConfiguration?.reviews?.trustpilot&&e.jsx("script",{type:"text/javascript",src:"//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js",async:!0}),r.appConfiguration?.auth.recaptcha.enabled&&e.jsx("script",{src:"https://www.google.com/recaptcha/api.js",async:!0,defer:!0}),e.jsx(ge,{}),e.jsx(z,{})]}),e.jsxs("body",{className:N(`theme-${r.theme}`,r.theme?.endsWith("-scaled")?"theme-scaled":"","bg-background font-sans antialiased"),children:[r.impersonatingSession&&e.jsx(G,{item:{style:"top",text:i("account.session.impersonating",{0:r.impersonatingSession.toUser.email,1:r.impersonatingSession.fromUser.email}),cta:[{text:i("account.session.logout"),href:"/logout"}]}}),r.featureFlags?.includes("maintenance")&&!a.pathname.startsWith("/admin")&&!a.pathname.startsWith("/login")?e.jsx(ae,{flag:"maintenance",children:e.jsx(re,{})}):t,r.featureFlags?.includes("Press B to Buy")&&e.jsx(he,{letter:"B"}),!r.debug&&e.jsx("script",{type:"text/javascript",id:"hs-script-loader",async:!0,defer:!0,src:"//js.hs-scripts.com/44777171.js"}),e.jsx(je,{}),e.jsx(we,{}),!["app/","admin/"].some(u=>a.pathname.startsWith(`/${u}`))&&e.jsx(ne,{}),e.jsx(ee,{}),e.jsx(q,{}),e.jsx($,{})]})]},r.userSession?.lng)}function ve(){const{locale:t}=B(),{i18n:s}=g(),n=h();return de(t),e.jsxs(L,{lang:t,dir:s.dir(),children:[e.jsx(W,{}),e.jsx(J,{}),e.jsx(le,{}),e.jsx(fe,{scripts:n.appConfiguration?.scripts})]})}const $t=O(ve),Ut=R(function(){return e.jsx(L,{children:e.jsx("div",{className:"mx-auto p-12 text-center",children:e.jsx(X,{})})})});export{Ut as ErrorBoundary,$t as default,zt as handle,qt as meta};

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.