PageSourceSearch

https://www.trybased.com/static/js/4140.8e9e0f86.chunk.js

js trybased.com collected 2026-10-02 01:47:00 UTC 3,209 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkknowledge_base_saas=self.webpackChunkknowledge_base_saas||[]).push([[4140],{44140(n,t,e){e.r(t),e.d(t,{default:()=>g});var i=e(5544),r=e(65043),a=e(47874),s=e(47081),o=e(28004),l=e(99218),c=e(96822),d=e(67898),u=e(70579);function g(){const n=(0,a.zy)(),t=(0,r.useState)(null),e=(0,i.A)(t,2),g=e[0],v=e[1],p=(0,r.useRef)(null),f=(0,r.useCallback)(async()=>{if((0,l.rl)(n.pathname))return void v(!1);const t=c.j2.currentUser;if(null===t||void 0===t||!t.uid)return void v(!1);const e=(0,s.getSelectedOrganizationId)();if(e){if(p.current!==e)try{const n=await(0,o.n)(e),t=(0,l.yN)(n);p.current=e,v(t)}catch(i){p.current=e,v(!1)}}else v(!1)},[n.pathname]);return(0,r.useEffect)(()=>{let n=!1;const t=async()=>{n||await f()},e=(0,d.hg)(c.j2,()=>{t()});return t(),()=>{n=!0,e()}},[f]),(0,r.useEffect)(()=>{const n=n=>{var t;const e=(null===n||void 0===n||null===(t=n.detail)||void 0===t?void 0:t.organizationId)||(0,s.getSelectedOrganizationId)();e&&e!==p.current&&(p.current=null,f())};return window.addEventListener("organizationChanged",n),()=>window.removeEventListener("organizationChanged",n)},[f]),null===g?(0,u.jsx)(a.sv,{}):g&&!(0,l.rl)(n.pathname)?(0,u.jsx)(a.C5,{to:"/",replace:!0}):(0,u.jsx)(a.sv,{})}},28004(n,t,e){e.d(t,{L:()=>l,n:()=>c});var i=e(89379),r=e(55472),a=e(96822),s=e(47081),o=e(1862);async function l(n){if(null===n||void 0===n||!n.id)return n;try{var t,e,s,l,c,d,u;const o=await(0,r.getDoc)((0,r.doc)(a.db,"organizations",n.id));if(!o.exists())return n;const g=o.data()||{},v=g.settings||{};return(0,i.A)((0,i.A)({},n),{},{slug:g.slug||n.slug||null,type:g.type||n.type||"standard",parentOrganizationId:null!==(t=null!==(e=g.parentOrganizationId)&&void 0!==e?e:n.parentOrganizationId)&&void 0!==t?t:null,settings:(0,i.A)((0,i.A)({},n.settings||{}),{},{clientLoginExperience:null!==(s=v.clientLoginExperience)&&void 0!==s?s:null===(l=n.settings)||void 0===l?void 0:l.clientLoginExperience,clientSearchWorkspaceIds:null!==(c=v.clientSearchWorkspaceIds)&&void 0!==c?c:null===(d=n.settings)||void 0===d?void 0:d.clientSearchWorkspaceIds,branding:(0,i.A)((0,i.A)({},(null===(u=n.settings)||void 0===u?void 0:u.branding)||{}),v.branding||{})})})}catch(g){return(0,o.gg)("[clientLogin] Firestore settings merge failed:",(null===g||void 0===g?void 0:g.message)||g),n}}async function c(n){if(!n)return null;const t=await(0,s.getUserOrganizationData)(n,!0);return t?l(t):null}},99218(n,t,e){function i(n){var t;return!!n&&("search_only"===(null===(t=n.settings)||void 0===t?void 0:t.clientLoginExperience)&&!("client"!==n.type&&!n.parentOrganizationId))}function r(n){var t;if(!i(n))return[];const e=null===(t=n.settings)||void 0===t?void 0:t.clientSearchWorkspaceIds;return Array.isArray(e)?e.map(n=>String(n).trim()).filter(Boolean):[]}function a(n){return!(!n||"string"!==typeof n)&&("/"===n||("/auth"===n||"/authpage"===n||(!!n.startsWith("/join/")||("/terms-of-service"===n||"/privacy-policy"===n||"/electronic-signatures"===n||(!!n.startsWith("/shared/")||(!!n.startsWith("/shared-signed/")||(!!n.startsWith("/sign/")||!(!n.startsWith("/doc/")||!n.endsWith("/fill")))))))))}e.d(t,{r1:()=>r,rl:()=>a,yN:()=>i})}}]);
2//# sourceMappingURL=4140.8e9e0f86.chunk.js.map

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.