PageSourceSearch

https://slutbot.ai/_next/static/chunks/6174.61ba1059b72f5554.js

js slutbot.ai collected 2026-10-05 15:05:40 UTC 4,934 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6174],{2511:(e,t,n)=>{n.d(t,{Lj:()=>s,Tf:()=>r,Vv:()=>a,kC:()=>i,qc:()=>o});let a="slutbot-age-consent-v1",i="slutbot-age-consent";function r(){"u">typeof document&&document.documentElement.removeAttribute("data-age-gate")}function o(){try{return"1"===localStorage.getItem(a)}catch{return!1}}function s(e){return!(e.startsWith("/admin")||e.startsWith("/checkout"))&&!o()}},6174:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var a=n(5155),i=n(2115),r=n(3321),o=n(2511),s=n(8869);let l="pwa_install_dismissed";function c(){let e=(0,r.usePathname)(),[t,n]=(0,i.useState)(!1),[c,d]=(0,i.useState)(!1),[u,f]=(0,i.useState)(!1),[m,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if((0,o.qc)())return void h(!0);let e=()=>h(!0);return window.addEventListener(o.kC,e),()=>window.removeEventListener(o.kC,e)},[]),(0,i.useEffect)(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js?v=4").catch(()=>{})},[]),(0,i.useEffect)(()=>{if((0,s.AL)(),(0,s.gj)())return void(0,s.eW)();let e=()=>{(0,s.eW)(),n(!1)};return window.addEventListener("appinstalled",e),()=>window.removeEventListener("appinstalled",e)},[]),(0,i.useEffect)(()=>{let t;if(!m||e.startsWith("/admin")||(0,s.gj)()||!(0,s.fx)()||function(){try{let e=localStorage.getItem(l);if(!e)return!1;let t=Number(e);if(!Number.isFinite(t))return!0;return Date.now()<t}catch{return!1}}())return;d((0,s.ew)());let a=(0,s.RJ)(()=>{(0,s.Qg)()&&n(!0)});return(0,s.ew)()&&(t=setTimeout(()=>n(!0),2500)),()=>{a(),t&&clearTimeout(t)}},[m,e]);let p=(0,i.useCallback)(()=>{try{localStorage.setItem(l,String(Date.now()+12096e5))}catch{}n(!1),f(!1)},[]),g=(0,i.useCallback)(async()=>{let e=await (0,s.AN)();"accepted"===e?n(!1):"ios-help"===e||"unavailable"===e&&c?f(!0):"dismissed"===e&&p()},[p,c]);return t?(0,a.jsx)("div",{role:"dialog","aria-label":"Install AI SLUTBOT",className:"pointer-events-none fixed inset-x-0 bottom-0 z-[9998] pb-[var(--safe-bottom)]",children:(0,a.jsx)("div",{className:"pointer-events-auto mx-auto max-w-lg px-3 pb-3",children:(0,a.jsx)("div",{className:"rounded-2xl border border-black/10 bg-white px-4 py-3.5 shadow-2xl",children:u?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("p",{className:"text-[13px] leading-relaxed text-[#333]",children:'Tap the Share button (box with arrow) at the bottom of Safari, then tap "Add to Home Screen".'}),(0,a.jsx)("button",{type:"button",onClick:p,className:"w-full rounded-xl bg-[#ff2d78] py-2.5 text-sm font-semibold text-white transition-colors active:bg-[#ff1a6b]",children:"Got it"})]}):(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("img",{src:"/icons/icon-192.png?v=3",alt:"",width:44,height:44,className:"shrink-0 rounded-xl"}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"text-sm font-semibold leading-tight text-[#111]",children:"AI SLUTBOT"}),(0,a.jsx)("p",{className:"mt-0.5 text-[12px] text-[#666]",children:"Download App"})]}),(0,a.jsx)("button",{type:"button",onClick:g,className:"shrink-0 rounded-xl bg-[#ff2d78] px-4 py-2 text-sm font-semibold text-white transition-colors active:bg-[#ff1a6b]",children:"Install"}),(0,a.jsx)("button",{type:"button",onClick:p,"aria-label":"Dismiss",className:"flex h-8 w-8 shrink-0 items-center justify-center text-[#999] active:text-[#111]",children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,a.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})})]})})})}):null}},8869:(e,t,n)=>{n.d(t,{AL:()=>m,AN:()=>g,Qg:()=>f,RJ:()=>h,eW:()=>p,ew:()=>d,fx:()=>u,gj:()=>c});var a=n(477);let i="pwa_install_recorded",r=null,o=!1,s=new Set;function l(){for(let e of s)e()}function c(){return window.matchMedia("(display-mode: standalone)").matches||!0===navigator.standalone}function d(){return!("u"<typeof navigator)&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}function u(){return!("u"<typeof navigator)&&/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent)}function f(){return r}function m(){o||(o=!0,window.addEventListener("beforeinstallprompt",e=>
1{e.preventDefault(),r=e,l()}),window.addEventListener("appinstalled",()=>{r=null,l()}))}function h(e){return m(),s.add(e),()=>{s.delete(e)}}function p(){try{let e=(0,a.Q)();if(!e)return;let t="1"===localStorage.getItem(i),n="1"===localStorage.getItem("slutbot-signed-in"),r="1"===localStorage.getItem("pwa_install_user_linked");if(t&&(!n||r))return;fetch("/api/pwa/install",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:e})}).then(e=>{e.ok&&(localStorage.setItem(i,"1"),n&&localStorage.setItem("pwa_install_user_linked","1"))}).catch(()=>{})}catch{}}async function g(){let e=r;if(e){await e.prompt();let t=await e.userChoice;return r=null,l(),"accepted"===t.outcome&&p(),t.outcome}return d()?"ios-help":"unavailable"}}}]);

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.