PageSourceSearch

https://aibuildershub.ai/_next/static/chunks/55767-ce508d37cee0080b.js

js aibuildershub.ai collected 2026-10-05 15:26:56 UTC 12,960 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[55767],{55767:function(e,t,o){o.d(t,{fI:function(){return i},VP:function(){return h},tv:function(){return s},m9:function(){return g},Nr:function(){return p.Nr},KF:function(){return b},dd:function(){return r},Fg:function(){return u},pm:function(){return n.pm}});var n=o(81981),a=o(2265),l=o(51385);function r(){let{type:e,data:t,isOpen:o,openModal:n,closeModal:r,setData:i,modalStack:s}=(0,l.aE)(),c=(0,a.useCallback)(t=>o&&e===t,[o,e]),d=(0,a.useCallback)((e,t)=>{n(e,t)},[n]),u=(0,a.useCallback)(e=>{i(e)},[i]),p=(0,a.useCallback)(e=>{r(),e&&setTimeout(e,300)},[r]),h=(0,a.useCallback)((e,t)=>{c(e)?p():d(e,t)},[c,d,p]),g=s.length>0,f=s.length+(o?1:0);return{type:e,data:t,isOpen:o,modalStack:s,hasOpenModal:o,hasStackedModals:g,modalDepth:f,open:d,close:p,toggle:h,updateData:u,isModalOpen:c}}function i(){let{open:e,close:t}=r(),o=(0,a.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"login";e(t)},[e]);return{openAuthModal:o,openLoginModal:()=>o("login"),openRegisterModal:()=>o("register"),close:t}}function s(){let{open:e,close:t}=r();return{openConfirmModal:(0,a.useCallback)(o=>new Promise(n=>{e("confirm",{...o,onConfirm:async()=>{try{var e;await (null===(e=o.onConfirm)||void 0===e?void 0:e.call(o)),n(!0),t()}catch(e){console.error("Confirmation error:",e),n(!1)}},onCancel:()=>{var e;null===(e=o.onCancel)||void 0===e||e.call(o),n(!1),t()}})}),[e,t])}}var c=o(25922),d=o(66749);function u(){let{theme:e,setTheme:t}=(0,d.H)(),{theme:o,setTheme:n,resolvedTheme:l,systemTheme:r}=(0,c.F)(),[i,s]=(0,a.useState)(!1);(0,a.useEffect)(()=>{s(!0)},[]),(0,a.useEffect)(()=>{i&&o&&o!==e&&t(o)},[i,o,e,t]);let u=(0,a.useCallback)(e=>{t(e),n(e)},[t,n]),p=(0,a.useCallback)(()=>{u("dark"===(l||"light")?"light":"dark")},[l,u]),h=i?l:"light",g="dark"===h,f="system"===e;return{theme:e,resolvedTheme:h,systemTheme:r,mounted:i,isDark:g,isLight:"light"===h,isSystem:f,themeClass:g?"dark":"light",oppositeTheme:g?"light":"dark",setTheme:u,toggleTheme:p}}o(78705),o(99870);var p=o(83570);function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{successMessage:t="Copied to clipboard!",errorMessage:o="Failed to copy to clipboard",showToast:l=!0,timeout:r=2e3,formatter:i}=e,[s,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(!1),[p,h]=(0,a.useState)(null),g=(0,n.pm)();(0,a.useEffect)(()=>{u("clipboard"in navigator&&"writeText"in navigator.clipboard)},[]);let f=(0,a.useCallback)(async e=>{h(null);let n=i?i(e):e;try{if(d)await navigator.clipboard.writeText(n);else{let e=document.createElement("textarea");e.value=n,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();let t=document.execCommand("copy");if(document.body.removeChild(e),!t)throw Error("Failed to copy text")}return c(n),l&&g.success(t),r>0&&setTimeout(()=>{c(null)},r),!0}catch(e){return h(e instanceof Error?e:Error("Failed to copy")),l&&g.error(o),!1}},[d,i,l,g,t,o,r]),b=(0,a.useCallback)(async()=>{h(null);try{if(!d)throw Error("Clipboard API not supported");return await navigator.clipboard.readText()}catch(e){return h(e instanceof Error?e:Error("Failed to read clipboard")),l&&g.error("Failed to read from clipboard"),null}},[d,l,g]),m=(0,a.useCallback)(e=>s===e,[s]);return{copy:f,read:b,copiedText:s,isCopied:m,isSupported:d,error:p,clear:(0,a.useCallback)(()=>{c(null),h(null)},[])}}function g(){let e=h({showToast:!1}),t=(0,n.pm)(),o=(0,a.useCallback)(async(o,n)=>{let a=await e.copy(o);return a&&t.success(n||"Copied to clipboard!"),a},[e,t]),l=(0,a.useCallback)(async(o,n)=>{try{let a=JSON.stringify(o,null,2),l=await e.copy(a);return l&&t.success(n||"JSON copied to clipboard!"),l}catch(e){return t.error("Failed to copy JSON"),!1}},[e,t]),r=(0,a.useCallback)(async(o,n)=>{let a=await e.copy(o);return a&&t.success(n||"Link copied to clipboard!"),a},[e,t]);return{copyText:o,copyJSON:l,copyURL:r,copyCode:(0,a.useCallback)(async(o,n,a)=>{let l=await e.copy(o);return l&&t.success(a||"".concat(n||"Code"," copied to clipboard!")),l}
1,[e,t]),copyEmail:(0,a.useCallback)(async(o,n)=>{let a=await e.copy(o);return a&&t.success(n||"Email copied to clipboard!"),a},[e,t]),copyWithFormat:(0,a.useCallback)(async(o,n,a)=>{let l=o;switch(n){case"uppercase":l=o.toUpperCase();break;case"lowercase":l=o.toLowerCase();break;case"title":l=o.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase());break;case"camel":l=o.replace(/[-_\s](.)/g,(e,t)=>t.toUpperCase());break;case"snake":l=o.replace(/[\s-]/g,"_").toLowerCase();break;case"kebab":l=o.replace(/[\s_]/g,"-").toLowerCase()}let r=await e.copy(l);return r&&t.success(a||"Copied to clipboard!"),r},[e,t]),...e}}var f=o(81246);function b(){let e=(0,a.useRef)(null),t=(0,a.useRef)(!1);return{preloadOnHover:(0,a.useCallback)(()=>{t.current||f._W.areToolsLoaded()||(e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{t.current||f._W.areToolsLoaded()||(console.log("[Editor Preload] Preloading EditorJS tools on hover..."),(0,f.hQ)(),t.current=!0)},200))},[]),cancelPreload:(0,a.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),preloadImmediately:(0,a.useCallback)(()=>{t.current||f._W.areToolsLoaded()||(console.log("[Editor Preload] Preloading EditorJS tools immediately..."),(0,f.hQ)(),t.current=!0)},[]),isPreloaded:()=>f._W.areToolsLoaded()}}},99870:function(e,t,o){o.d(t,{MQ:function(){return a}});var n=o(2265);function a(e,t){let{threshold:o=.1,rootMargin:a="100px",enabled:l=!0,hasMore:r=!0}=t||{},[i,s]=(0,n.useState)(!1),{ref:c}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{threshold:t=0,root:o=null,rootMargin:a="0px",freezeOnceVisible:l=!1,onChange:r,enabled:i=!0}
1=e,[s,c]=(0,n.useState)(null),[d,u]=(0,n.useState)(!1),p=(0,n.useRef)(!1),h=(0,n.useRef)(null),g=(0,n.useCallback)(e=>{let t=e[0];p.current&&l||(c(t),u(t.isIntersecting),t.isIntersecting&&l&&(p.current=!0),null==r||r(t.isIntersecting,t))},[l,r]);return(0,n.useEffect)(()=>{if(!i||!h.current||"undefined"==typeof IntersectionObserver)return;let e=h.current,n=new IntersectionObserver(g,{threshold:t,root:o,rootMargin:a});return n.observe(e),()=>{n.disconnect()}},[i,g,o,a,t]),(0,n.useEffect)(()=>{p.current=!1},[t,o,a]),{ref:h,entry:s,isIntersecting:d}}({threshold:o,rootMargin:a,enabled:l&&r&&!i,onChange:async t=>{if(t&&r&&!i){s(!0);try{await e()}finally{s(!1)}}}});return{ref:c,isLoading:i}}},81246:function(e,t,o){o.d(t,{Oe:function(){return l},_W:function(){return a},hQ:function(){return r}});class n{static getInstance(){return n.instance||(n.instance=new n),n.instance}async loadTools(){console.log("[EditorJS Tools] Starting to load tools...");let e=performance.now();try{let[t,n,a,l,r,i,s,c,d,u,p,h,g,f,b]=await Promise.all([o.e(53656).then(o.bind(o,53656)).then(e=>e.default),o.e(5713).then(o.bind(o,5713)).then(e=>e.default),o.e(46960).then(o.bind(o,46960)).then(e=>e.default),o.e(73425).then(o.bind(o,73425)).then(e=>e.default),o.e(82678).then(o.bind(o,82678)).then(e=>e.default),o.e(91874).then(o.bind(o,91874)).then(e=>e.default),o.e(76687).then(o.bind(o,76687)).then(e=>e.default),o.e(57851).then(o.bind(o,57851)).then(e=>e.default),o.e(84342).then(o.bind(o,84342)).then(e=>e.default),o.e(96625).then(o.bind(o,96625)).then(e=>e.default),o.e(83810).then(o.bind(o,83810)).then(e=>e.default),o.e(24737).then(o.bind(o,24737)).then(e=>e.default),o.e(8235).then(o.bind(o,26401)).then(e=>e.default),o.e(282).then(o.bind(o,282)).then(e=>e.default),o.e(10269).then(o.bind(o,10269)).then(e=>e.default)]),m=performance.now()-e;console.log("[EditorJS Tools] All tools loaded in ".concat(m.toFixed(2),"ms"));let C={header:{class:t,config:{levels:[1,2,3,4],defaultLevel:2},inlineToolbar:!0},list:{class:n,inlineToolbar:!0,config:{defaultStyle:"unordered"}},checklist:{class:u,inlineToolbar:!0},quote:{class:a,inlineToolbar:!0,config:{quotePlaceholder:"Enter a quote",captionPlaceholder:"Quote's author"}},code:{class:l,config:{placeholder:"Enter code here..."}},delimiter:r,inlineCode:{class:i,shortcut:"CMD+SHIFT+M"},table:{class:s,inlineToolbar:!0,config:{rows:2,cols:3}},warning:{class:c,inlineToolbar:!0,shortcut:"CMD+SHIFT+W",config:{titlePlaceholder:"Title",messagePlaceholder:"Message"}},marker:{class:d,shortcut:"CMD+SHIFT+H"},underline:{class:b,shortcut:"CMD+U"},simpleImage:{class:g,inlineToolbar:!0,config:{placeholder:"Paste image URL"}},linkTool:{class:f,config:{endpoint:"/api/blog/fetch-link-meta"}},embed:{class:p,config:{services:{youtube:!0,codesandbox:!0,codepen:!0,github:!0,twitter:!0,instagram:!0,vimeo:!0,gfycat:!0}},inlineToolbar:!0},image:{class:h,config:{captionPlaceholder:"Photo caption (optional)",buttonContent:"Select an image"}}};return this.tools=C,this.isLoaded=!0,C}catch(e){throw console.error("[EditorJS Tools] Failed to load tools:",e),e}}async getTools(e){if(this.isLoaded&&this.tools)return this.getConfiguredTools(this.tools,e);if(this.loadingPromise){let t=await this.loadingPromise;return this.getConfiguredTools(t,e)}this.loadingPromise=this.loadTools();let t=await this.loadingPromise;return this.getConfiguredTools(t,e)}getConfiguredTools(e,t){if(!(null==t?void 0:t.onImageUpload))return e;let o={...e},n=e.image.class;return o.image={class:n,config:{uploader:{uploadByFile:e=>t.onImageUpload(e),uploadByUrl:e=>Promise.resolve({success:1,file:{url:e}})},captionPlaceholder:"Photo caption (optional)",buttonContent:"Select an image"}},o}preloadTools(){this.isLoaded||this.loadingPromise||(console.log("[EditorJS Tools] Preloading tools in background..."),this.loadingPromise=this.loadTools())}areToolsLoaded(){return this.isLoaded}reset(){this.tools=null,this.loadingPromise=null,this.isLoaded=!1}constructor(){this.tools=null,this.loadingPromise=null,this.isLoaded=!1}}let a=n.getInstance();async function l(e){return a.getTools(e)}function r(){a.preloadTools()}},66749:function(e,t,o){o.d(t,{H:function(){return r}});var n=o(59625),a=o(89134);let l={theme:"system",sidebarOpen:!0,sidebarCollapsed:!1,mobileMenuOpen:!1,globalLoading:!1,notificationsPanelOpen:!1,unreadNotificationsCount:0,searchOpen:!1,compactMode:!1,showReadingProgress:!0,isLoading:!1,error:null,lastUpdated:null},r=(0,n.Ue)()((0,a.mW)((0,a.tJ)((e,t)=>({...l,setTheme:t=>e({theme:t,lastUpdated:Date.now()},!1,"setTheme"),setSidebarOpen:t=>e({sidebarOpen:t,mobileMenuOpen:!1},!1,"setSidebarOpen"),setSidebarCollapsed:t=>e({sidebarCollapsed:t},!1,"setSidebarCollapsed"),toggleSidebar:()=>e(e=>({sidebarOpen:!e.sidebarOpen,mobileMenuOpen:!1}),!1,"toggleSidebar"),toggleSidebarCollapsed:()=>e(e=>({sidebarCollapsed:!e.sidebarCollapsed}),!1,"toggleSidebarCollapsed"),setMobileMenuOpen:t=>e({mobileMenuOpen:t,notificationsPanelOpen:!1,searchOpen:!1},!1,"setMobileMenuOpen"),toggleMobileMenu:()=>e(e=>({mobileMenuOpen:!e.mobileMenuOpen,notificationsPanelOpen:!1,searchOpen:!1}),!1,"toggleMobileMenu"),setGlobalLoading:t=>e({globalLoading:t},!1,"setGlobalLoading"),setNotificationsPanelOpen:t=>e({notificationsPanelOpen:t,mobileMenuOpen:!1,searchOpen:!1},!1,"setNotificationsPanelOpen"),toggleNotificationsPanel:()=>e(e=>({notificationsPanelOpen:!e.notificationsPanelOpen,mobileMenuOpen:!1,searchOpen:!1}),!1,"toggleNotificationsPanel"),setUnreadNotificationsCount:t=>e({unreadNotificationsCount:Math.max(0,t)},!1,"setUnreadNotificationsCount"),incrementUnreadNotifications:()=>e(e=>({unreadNotificationsCount:e.unreadNotificationsCount+1}),!1,"incrementUnreadNotifications"),decrementUnreadNotifications:()=>e(e=>({unreadNotificationsCount:Math.max(0,e.unreadNotificationsCount-1)}),!1,"decrementUnreadNotifications"),clearUnreadNotifications:()=>e({unreadNotificationsCount:0},!1,"clearUnreadNotifications"),setSearchOpen:t=>e({searchOpen:t,mobileMenuOpen:!1,notificationsPanelOpen:!1},!1,"setSearchOpen"),toggleSearch:()=>{let o=!t().searchOpen;e({searchOpen:o,mobileMenuOpen:!1,notificationsPanelOpen:!1},!1,"toggleSearch"),o&&setTimeout(()=>{let e=document.querySelector("[data-search-input]");null==e||e.focus()},100)},setCompactMode:t=>e({compactMode:t,lastUpdated:Date.now()},!1,"setCompactMode"),toggleCompactMode:()=>e(e=>({compactMode:!e.compactMode,lastUpdated:Date.now()}),!1,"toggleCompactMode"),setShowReadingProgress:t=>e({showReadingProgress:t,lastUpdated:Date.now()},!1,"setShowReadingProgress"),toggleReadingProgress:()=>e(e=>({showReadingProgress:!e.showReadingProgress,lastUpdated:Date.now()}),!1,"toggleReadingProgress"),closeAllPanels:()=>e({mobileMenuOpen:!1,notificationsPanelOpen:!1,searchOpen:!1},!1,"closeAllPanels"),resetUI:()=>e({...l,lastUpdated:Date.now()},!1,"resetUI"),setLoading:t=>e({isLoading:t},!1,"setLoading"),setError:t=>e({error:t},!1,"setError")}),{name:"ui-storage",partialize:e=>({theme:e.theme,sidebarCollapsed:e.sidebarCollapsed,compactMode:e.compactMode,showReadingProgress:e.showReadingProgress}),onRehydrateStorage:e=>(e,t)=>
1{t&&(console.error("UI store hydration error:",t),null==e||e.resetUI())}}),{name:"ui-store",enabled:!1}))}}]);

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.