PageSourceSearch

https://www.branchprompt.com/_next/static/chunks/6658-f1b88ee19dca8506.js

js branchprompt.com collected 2026-10-08 10:07:58 UTC 18,932 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6658],{5936:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var n=t(37876),a=t(71367),o=t(26809);let s=e=>{let{children:r,className:t=""}=e;return r&&"string"==typeof r?(0,n.jsx)(a.oz,{remarkPlugins:[o.A],className:"inline-markdown ".concat(t),components:{p:e=>{let{children:r}=e;return(0,n.jsx)("span",{children:r})},strong:e=>{let{children:r}=e;return(0,n.jsx)("strong",{className:"font-semibold",children:r})},em:e=>{let{children:r}=e;return(0,n.jsx)("em",{className:"italic",children:r})},code:e=>{let{children:r}=e;return(0,n.jsx)("code",{className:"bg-zinc-200 dark:bg-zinc-700 px-1 py-0.5 rounded text-xs",children:r})},h1:e=>{let{children:r}=e;return(0,n.jsx)("span",{className:"font-semibold",children:r})},h2:e=>{let{children:r}=e;return(0,n.jsx)("span",{className:"font-semibold",children:r})},h3:e=>{let{children:r}=e;return(0,n.jsx)("span",{className:"font-semibold",children:r})},h4:e=>{let{children:r}=e;return(0,n.jsx)("span",{className:"font-semibold",children:r})},h5:e=>{let{children:r}=e;return(0,n.jsx)("span",{className:"font-semibold",children:r})},h6:e=>{let{children:r}=e;return(0,n.jsx)("span",{className:"font-semibold",children:r})},ul:e=>{let{children:r}=e;return(0,n.jsx)("span",{children:r})},ol:e=>{let{children:r}=e;return(0,n.jsx)("span",{children:r})},li:e=>{let{children:r}=e;return(0,n.jsxs)("span",{children:[r," "]})},blockquote:e=>{let{children:r}=e;return(0,n.jsx)("span",{className:"italic",children:r})},a:e=>{let{children:r,href:t}=e;return(0,n.jsx)("span",{className:"text-blue-600 dark:text-blue-400 underline cursor-pointer",onClick:e=>{e.stopPropagation(),window.open(t,"_blank")},children:r})},br:()=>(0,n.jsx)("span",{children:" "}),hr:()=>(0,n.jsx)("span",{children:" "}),pre:e=>{let{children:r}=e;return(0,n.jsx)("code",{className:"bg-zinc-200 dark:bg-zinc-700 px-1 py-0.5 rounded text-xs",children:r})},img:e=>{let{alt:r}=e;return(0,n.jsxs)("span",{className:"text-zinc-400",children:["[",r||"image","]"]})}},children:r}):(0,n.jsx)("span",{className:t,children:r||"Untitled"})}},13514:e=>{e.exports={"user-card-name":"UserCard_user-card-name__i_iM3","credits-text":"UserCard_credits-text__fESRy"}},27211:(e,r,t)=>{"use strict";t.d(r,{A:()=>a});var n=t(37876);t(14232);let a=e=>{let{children:r,orientation:t="horizontal",variant:a="connected",className:o=""}=e,s="vertical"===t,d=["p-1","bg-gray-100","dark:bg-custom-bg-black","border","border-gray-200","dark:border-custom-border-dark-gray","rounded-xl","gap-1","flex","w-fit"];s?d.push("flex-col","items-center","dropdown-vertical"):d.push("flex-row","dropdown-horizontal"),"minimal"===a?(d=["bg-transparent","border-none","p-0","flex","gap-1","w-fit"],s?d.push("flex-col","items-center","dropdown-vertical"):d.push("flex-row","dropdown-horizontal")):"connected"===a&&d.push("dropdown-connected"),o&&d.push(o);let i=d.join(" ");return(0,n.jsx)("div",{className:"".concat(i," ").concat("connected"===a?"[&>button]:w-full [&>button]:justify-start [&>div>button]:w-full [&>div>button]:justify-start":""),children:r})}},30422:e=>{e.exports={dropdown:"BpDropDownWrapper_dropdown__IsJuR",trigger:"BpDropDownWrapper_trigger__vCztx",content:"BpDropDownWrapper_content__HKh83",dropdownFadeIn:"BpDropDownWrapper_dropdownFadeIn__xU8bN",bottom_start:"BpDropDownWrapper_bottom_start__gR_NX",bottom_end:"BpDropDownWrapper_bottom_end__cHB5d",top_start:"BpDropDownWrapper_top_start__qQl9J",top_end:"BpDropDownWrapper_top_end__UGviz",right_start:"BpDropDownWrapper_right_start__1PHFx",right_end:"BpDropDownWrapper_right_end__HaMo2",left_start:"BpDropDownWrapper_left_start__qHK3s",left_end:"BpDropDownWrapper_left_end__WgJig",dropdownFadeInTop:"BpDropDownWrapper_dropdownFadeInTop__IiEMV",dropdownFadeInRight:"BpDropDownWrapper_dropdownFadeInRight__68lc_",dropdownFadeInLeft:"BpDropDownWrapper_dropdownFadeInLeft__uPSQ5"}},33885:(e,r,t)=>{"use strict";t.d(r,{A:()=>l});var n=t(37876),a=t(14232),o=t(30422),s=t.n(o);let d=(0,a.createContext)(),i=e=>{let{children:r,placement:t="bottom-start",className:o=""}=e,[i,l]=(0,a.useState)(!1),c=(0,a.useRef)(null),p=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=e=>{c.current&&p.current&&!c.current.contains(e.target)&&!p.current.contains(e.target)&&l(!1)};if(i)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i]),(0,a.useEffect)(()=>{let e=e=>{"Escape"===e.key&&i&&l(!1)};if(i)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),(0,n.jsx)(d.Provider,{value:{isOpen:i,setIsOpen:l,triggerRef:c,contentRef:p,placement:t},children:(0,n.jsx)("div",{className:"".concat(s().dropdown||""," ").concat(o," z-60"),children:r})})};i.Trigger=e=>{let{children:r,className:t=""}=e,{isOpen:o,setIsOpen:i,triggerRef:l}=(0,a.useContext)(d);return(0,n.jsx)("div",{ref:l,onClick:e=>{e.preventDefault(),e.stopPropagation(),i(!o)},className:"".concat(s().trigger," ").concat(t),children:r})},i.Content=e=>{let{children:r,className:t=""}=e,{isOpen:o,contentRef:i,placement:l}
1=(0,a.useContext)(d),c=s()[l.replace("-","_")]||s().bottom_start;return o?(0,n.jsx)("div",{ref:i,className:"".concat(s().content," ").concat(c," ").concat(t),children:r}):null};let l=i},48073:(e,r,t)=>{"use strict";t.d(r,{A:()=>p});var n=t(37876),a=t(14232),o=t(48230),s=t.n(o),d=t(38203),i=t(5936),l=t(97203);let c=(0,a.memo)(e=>{let{_id:r,content:t,active:o,onClick:c,onDoubleClick:p=null,actions:g=null,isDropdownOpen:u=!1,shouldBeLink:h=!0}=e,b=(0,a.useCallback)(e=>{c&&c()},[c]),m=(0,a.useCallback)(()=>{p&&p({_id:r,title:"string"==typeof t?t:"Untitled"})},[p,r,t]);return(0,n.jsxs)("div",{className:"group h-[38px] px-3 flex items-center text-gray-900 dark:text-white font-normal leading-none tracking-normal hover:bg-gray-100 dark:hover:bg-custom-card-bg cursor-pointer transition-colors relative ".concat(o?"bg-blue-100 dark:bg-custom-card-bg":""),"data-posthog":"conversation_item_clicked","data-conversation-id":r,children:[(0,n.jsxs)(d.If,{condition:!1!==h,children:[(0,n.jsx)(d.al,{children:(0,n.jsx)(s(),{href:"/conversation/".concat(r),className:"flex-1 min-w-0 flex items-center",onClick:b,onDoubleClick:m,children:(0,n.jsx)(l.A,{placement:"top",content:(0,n.jsx)("div",{className:"max-w-xs",children:(0,n.jsx)(i.A,{children:"string"==typeof t?(null==t?void 0:t.length)>140?"".concat(null==t?void 0:t.slice(0,140),"..."):t||"Untitled":"Content"})}),className:"flex-1 min-w-0 overflow-hidden",children:(0,n.jsx)("div",{className:"truncate pointer-events-none w-full",children:"string"==typeof t?(0,n.jsx)(i.A,{className:"truncate",children:t||"Untitled"}):(0,n.jsx)("div",{className:"truncate",children:t||(0,n.jsx)("span",{children:"Untitled"})})})})})}),(0,n.jsx)(d._I,{children:(0,n.jsx)("div",{className:"flex-1 min-w-0 flex items-center",onClick:b,onDoubleClick:m,children:(0,n.jsx)(l.A,{placement:"top",content:(0,n.jsx)("div",{className:"max-w-xs",children:(0,n.jsx)(i.A,{children:"string"==typeof t?(null==t?void 0:t.length)>140?"".concat(null==t?void 0:t.slice(0,140),"..."):t||"Untitled":"Content"})}),className:"flex-1 min-w-0 overflow-hidden",children:(0,n.jsx)("div",{className:"truncate pointer-events-none w-full",children:"string"==typeof t?(0,n.jsx)(i.A,{className:"truncate",children:t||"Untitled"}):(0,n.jsx)("div",{className:"truncate",children:t||(0,n.jsx)("span",{children:"Untitled"})})})})})})]}),(0,n.jsx)(d.If,{condition:g,children:(0,n.jsx)(d.al,{children:(0,n.jsx)("div",{className:"transition-all duration-150 flex-shrink-0 ".concat(u?"w-6 ml-0.5 opacity-100":"md:w-0 md:ml-0 md:opacity-0 md:group-hover:w-6 md:group-hover:ml-0.5 md:group-hover:opacity-100 w-6 ml-0.5 opacity-100"),onClick:e=>{e.stopPropagation&&e.stopPropagation()},children:(0,n.jsx)("div",{className:"w-full flex justify-end",children:g})})})})]})},(e,r)=>e._id===r._id&&e.content===r.content&&e.active===r.active&&e.isDropdownOpen===r.isDropdownOpen&&e.shouldBeLink===r.shouldBeLink);c.displayName="ConversationItem";let p=c},56082:(e,r,t)=>{"use strict";t.d(r,{A:()=>c});var n=t(37876),a=t(14232),o=t(80395),s=t(38203),d=t(61150),i=t(13514),l=t.n(i);let c=e=>{let{user:r,onSignOut:t,onCreditsClick:i,onProfileClick:c,className:p="",collapsed:g=!1,credits:u=0,hasAeStudioEmail:h=!1,clickable:b=!1,showBadge:m=!1}=e,x=(0,a.useMemo)(()=>{if(r){var e,t,n,a;let o=(null==r?void 0:r.firstName)||"",s=(null==r?void 0:r.lastName)||"";return o&&s?"".concat(o[0]).concat(s[0]).toUpperCase():o?o[0].toUpperCase():(null==r?void 0:r.username)?r.username[0].toUpperCase():(null==r?void 0:null===(a=r.emailAddresses)||void 0===a?void 0:null===(n=a[0])||void 0===n?void 0:null===(t=n.emailAddress)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.toUpperCase())||"?"}return"?"},[r]);return(0,n.jsxs)("div",{className:"bg-custom-bg-black border border-gray-200 dark:border-custom-border-gray rounded-[12px] p-1 flex items-center justify-between ".concat(g?"w-fit":"w-full"," ").concat(b?"cursor-pointer hover:opacity-90":""," transition-opacity ").concat(p),children:[(0,n.jsxs)("div",{className:"relative w-10 h-10 rounded-md flex items-center justify-center",children:[(0,n.jsxs)(s.If,{condition:null==r?void 0:r.imageUrl,children:[(0,n.jsx)(s.al,{children:(0,n.jsx)("img",{src:null==r?void 0:r.imageUrl,alt:"Profile",className:"w-10 h-10 rounded-md object-cover pointer-events-none"})}),(0,n.jsx)(s._I,{children:(0,n.jsx)("div",{className:"w-10 h-10 rounded-md bg-indigo-600 flex items-center justify-center pointer-events-none",children:(0,n.jsx)("span",{className:"font-medium text-white",children:x})})})]}),(0,n.jsx)(s.If,{condition:m,children:(0,n.jsx)(s.al,{children:(0,n.jsx)("span",{className:"absolute -top-0.5 -right-0.5 w-2.5 h-2.5 rounded-full bg-blue-500 ring-2 ring-custom-bg-black pointer-events-none","aria-hidden":"true"})})})]}),(0,n.jsx)(s.If,{condition:!g,children:(0,n.jsxs)(s.al,{children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1 flex-1 min-w-0 ml-2 pointer-events-none",children:[(0,n.jsx)("div",{className:l()["user-card-name"],children:(null==r?void 0:r.firstName)||(null==r?void 0:r.username)||"User"}),(0,n.jsxs)(s.If,{condition:!h,children:[(0,n.jsx)(s.al,{children:(0,n.jsx)("div",{onClick:i,className:"".concat(l()["credits-text"]," font-normal leading-none tracking-normal truncate text-left"),"data-posthog":"user_card_credits_clicked",children:u>0?"".concat(u," credits"):"No credits"})}),(0,n.jsx)(s._I,{children:(0,n.jsx)("div",{className:"".concat(l()["credits-text"]," font-normal leading-none tracking-normal truncate"),children:"Enterprise Plan"})})]})]}),(0,n.jsx)(d.A,{variation:"default",onClick:e=>{e.stopPropagation(),t()},className:"w-10 h-10 p-2 pointer-events-auto",dataPosthog:"user_card_logout_clicked",children:(0,n.jsx)(o.A,{size:18,className:"pointer-events-none"})})]})})]})}},61150:(e,r,t)=>{"use strict";t.d(r,{A:()=>
1o});var n=t(37876);t(14232);var a=t(62663);let o=e=>{let{children:r,variation:t="default",className:o="",largeText:s=!1,tiny:d=!1,tooltip:i,dataPosthog:l,type:c="button",disabled:p=!1,isActive:g,onToggleSidebar:u,onSearchClick:h,isSidebarOpen:b,...m}=e,x=["bpBtn","font-medium","leading-none","tracking-tight","flex","items-center","justify-center","border","transition-all","duration-300","ease-in-out","px-2","py-2"],f={default:["bg-gray-100","dark:bg-custom-card-bg","border-gray-200","dark:border-custom-card-bg","text-gray-900","dark:text-white","hover:bg-gray-200","dark:hover:brightness-150"],primary:["bg-bp-primary-color","border-bp-primary-color","text-custom-bg-black","hover:brightness-125","disabled:bg-[#865991]","disabled:border-[#865991]","disabled:text-white","disabled:hover:brightness-100","disabled:cursor-not-allowed","disabled:opacity-100"],secondary:["bg-gray-200","dark:bg-custom-primary-gray","border-gray-300","dark:border-custom-primary-gray","text-gray-900","dark:text-white","hover:bg-gray-300","dark:hover:brightness-125"],success:["bg-green-600","border-green-600","text-white","hover:bg-green-700","dark:bg-green-700","dark:border-green-700","dark:hover:bg-green-800"],danger:["bg-red-600","border-red-600","text-white","hover:bg-red-700","dark:bg-red-700","dark:border-red-700","dark:hover:bg-red-800"],warning:["bg-yellow-500","border-yellow-500","text-white","hover:bg-yellow-600","dark:bg-yellow-600","dark:border-yellow-600","dark:hover:bg-yellow-700"],warn:["bg-yellow-400","border-yellow-400","text-gray-900","hover:bg-yellow-500","dark:bg-yellow-500","dark:border-yellow-500","dark:text-gray-900","dark:hover:bg-yellow-600"],shadowed:["bg-gray-100","dark:bg-custom-card-bg","border-gray-200","dark:border-custom-border-gray","text-gray-900","dark:text-white","shadow-lg","hover:bg-gray-200","dark:hover:brightness-150"],transparent:["border-transparent","text-gray-900","dark:text-white","hover:bg-gray-100","dark:hover:bg-zinc-900","disabled:opacity-100"],"nav-active":["bg-gray-200","dark:bg-custom-card-bg","border-gray-300","dark:border-custom-card-bg","text-gray-900","dark:text-white","hover:bg-gray-300","dark:hover:brightness-125"],"nav-inactive":["bg-gray-100","dark:bg-custom-sidebar-bg","border-gray-200","dark:border-custom-sidebar-bg","text-gray-900","dark:text-white","hover:bg-gray-200","dark:hover:brightness-125"]};x=[...x,...f[t]||f.default],p&&(x=[...x=x.filter(e=>!e.startsWith("hover:")&&!e.includes("brightness-")&&!e.startsWith("bg-")&&!e.startsWith("border-")&&!e.startsWith("text-")&&!e.startsWith("dark:bg-")&&!e.startsWith("dark:border-")&&!e.startsWith("dark:text-")&&!e.startsWith("dark:hover:")),"bg-gray-300","dark:bg-gray-600","border-gray-300","dark:border-gray-600","text-gray-500","dark:text-gray-400","cursor-not-allowed","opacity-60"]),s&&x.push("text-base"),d&&(x=["rounded-md","flex","items-center","justify-center","border","transition-all","duration-300","ease-in-out","w-6","h-6","aspect-square","bg-gray-200","dark:bg-custom-border-dark-gray","border-gray-300","dark:border-custom-border-dark-gray","text-gray-900","dark:text-white","p-0","hover:bg-gray-300","dark:hover:brightness-150"]),p&&(x=[...x=x.filter(e=>!e.startsWith("hover:")&&!e.includes("brightness-")&&!e.startsWith("bg-")&&!e.startsWith("border-")&&!e.startsWith("text-")&&!e.startsWith("dark:bg-")&&!e.startsWith("dark:border-")&&!e.startsWith("dark:text-")&&!e.startsWith("dark:hover:")),"bg-gray-300","dark:bg-gray-600","border-gray-300","dark:border-gray-600","text-gray-500","dark:text-gray-400","cursor-not-allowed","opacity-60"]);let v=[...x,o].filter(Boolean).join(" "),y={...m,type:c,disabled:p,...l&&{"data-posthog":l}},w=(0,n.jsx)("button",{className:v,...y,children:r});return i?(0,n.jsx)(a.A,{content:i,delay:[0,0],placement:"bottom",children:w}):w}},62663:(e,r,t)=>{"use strict";t.d(r,{A:()=>d});var n=t(37876),a=t(14232),o=t(73184);t(97305),t(68777);var s=t(70672);let d=e=>{let{children:r,content:t,disabled:d=!1,placement:i="top",delay:l=[300,0],visible:c,type:p="default",...g}=e,[u,h]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{h(!0)},[]),d||!u)return r;let b="error"===p?(0,n.jsxs)("div",{className:"flex items-center gap-3.5",children:[(0,n.jsx)("div",{className:"error-icon-container flex items-center justify-center bg-gradient-to-br from-[#8B0000] to-[#660000] rounded-full p-1.5 w-[36px] h-[36px] shadow-[0_2px_4px_rgba(0,0,0,0.3)]",children:(0,n.jsx)(s.A,{size:22,strokeWidth:2.5,className:"text-white"})}),(0,n.jsx)("span",{className:"flex-1",children:t})]}):t,{theme:m,className:x}=(()=>{switch(p){case"error":return{theme:"custom",className:"tooltip-error"};case"blue":return{theme:"blue",className:"tooltip-blue"};case"brand":return{theme:"custom",className:"tooltip-brand"};default:return{theme:"light",className:""}}})(),f={content:b,placement:i,animation:"shift-away",arrow:!0,delay:l,duration:[200,100],appendTo:"parent",zIndex:9999,touch:!1,visible:void 0!==c?c:void 0,className:x,theme:m,maxWidth:300,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",options:{padding:{top:10,bottom:10,left:5,right:5}}},{name:"offset",options:{offset:[0,10]}}]}};return(0,n.jsx)(o.Ay,{...f,...g,children:r})}},67901:(e,r,t)=>{"use strict";let n;t.d(r,{A:()=>s});var a=t(37876);t(14232);var o=t(38203);try{n=t(93446)}catch(e){n={container:"flex items-center gap-2",centered:"justify-center w-full",spinner:"border-2 border-transparent border-t-bp-primary-color roun
1ded-full animate-spin flex-shrink-0",spinnerTiny:"border-4 border-transparent border-t-bp-primary-color rounded-full animate-spin flex-shrink-0",label:"text-bp-primary-color font-medium"}}let s=e=>{let{size:r=32,className:t="",label:s,center:d=!1,tiny:i=!1,color:l}=e,c=i?14:r,p=i?n.spinnerTiny:n.spinner,g="".concat(n.container," ").concat(d?n.centered:""," ").concat(t);return(0,a.jsxs)("div",{className:g,children:[(0,a.jsx)("div",{className:l?"":p,style:l?{width:c,height:c,borderRadius:"50%",background:i?"conic-gradient(from 0deg, ".concat(l," 0deg, ").concat(l," 320deg, transparent 320deg, transparent 360deg)"):"conic-gradient(from 0deg, ".concat(l," 0deg, ").concat(l," 330deg, transparent 330deg, transparent 360deg)"),mask:i?"radial-gradient(closest-side, transparent 75%, black 76%)":"radial-gradient(closest-side, transparent 85%, black 86%)",WebkitMask:i?"radial-gradient(closest-side, transparent 75%, black 76%)":"radial-gradient(closest-side, transparent 85%, black 86%)",animation:"spin 1s linear infinite",flexShrink:0}:{width:c,height:c},role:"status","aria-label":s||"Loading"}),(0,a.jsx)(o.If,{condition:s,children:(0,a.jsx)(o.al,{children:(0,a.jsx)("span",{className:l?"":n.label,style:l?{color:l}:{},children:s})})})]})}},88947:(e,r,t)=>{"use strict";t.d(r,{A:()=>a});var n=t(37876);t(14232);let a=e=>{let{children:r,orientation:t="horizontal",variant:a="connected",className:o=""}=e,s=["flex","gap-1","w-fit","bp-toggle-group","p-1","bg-gray-100","border","border-gray-200","dark:bg-custom-bg-black","dark:border-custom-border-dark-gray","rounded-[11px]"];"vertical"===t?s.push("flex-col","items-center","toggle-group-vertical"):s.push("flex-row","toggle-group-horizontal");let d=[...s,o].filter(Boolean).join(" ");return(0,n.jsx)("div",{className:d,children:r})}},93446:e=>{e.exports={container:"BpLoading_container__BpAUW",centered:"BpLoading_centered__o2zAE",spinner:"BpLoading_spinner__QTRS5",spin:"BpLoading_spin__BqsoA",spinnerTiny:"BpLoading_spinnerTiny__zIs_5",label:"BpLoading_label__qQkwA"}},97203:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var n=t(37876),a=t(14232),o=t(73184);t(97305),t(68777);let s=e=>{let{children:r,content:t,disabled:s=!1,placement:d="right",delay:i=[300,0],...l}=e,[c,p]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{p(!0)},[]),s||!c)return r;let g={content:t,placement:d,animation:"shift-away",arrow:!1,delay:i,theme:"sidebar-tooltip",duration:[200,100],appendTo:"parent",zIndex:9999,touch:!1,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",options:{padding:{top:10,bottom:10,left:5,right:5}}},{name:"offset",options:{offset:[0,10]}}]}};return(0,n.jsx)(o.Ay,{...g,...l,children:r})}}}]);

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.