PageSourceSearch

https://wholecollective.net/assets/journal-BMpqOQqV.js

js wholecollective.net collected 2026-10-05 01:08:32 UTC 12,303 bytes, 1 lines download raw bytes

vendor: 7,951 bytes, line 1
1import{S as Z,C as B,D as d,E as j,F as R,G as N,H as _,I as A,J as X,K as w,N as Y,O as $,P as H,Q as G,k as f,R as J,T as q,j as o,y as ee,L as te,U as se}from"./index-Z6p7EVnF.js";var re=class extends Z{constructor(e,t){super(),this.options=t,this.#s=e,this.#i=null,this.#r=B(),this.bindMethods(),this.setOptions(t)}#s;#e=void 0;#p=void 0;#t=void 0;#n;#c;#r;#i;#m;#u;#d;#o;#l;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),W(this.#e,this.options)?this.#h():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Q(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Q(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#R(),this.#y(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,s=this.#e;if(this.options=this.#s.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof d(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!j(this.options,t)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&z(this.#e,s,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#e!==s||d(this.options.enabled,this.#e)!==d(t.enabled,this.#e)||R(this.options.staleTime,this.#e)!==R(t.staleTime,this.#e))&&this.#b();const i=this.#x();r&&(this.#e!==s||d(this.options.enabled,this.#e)!==d(t.enabled,this.#e)||i!==this.#a)&&this.#g(i)}getOptimisticResult(e){const t=this.#s.getQueryCache().build(this.#s,e),s=this.createResult(t,e);return ae(this,s)&&(this.#t=s,this.#c=this.options,this.#n=this.#e.state),s}getCurrentResult(){return this.#t}trackResult(e,t){return new Proxy(e,{get:(s,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#s.defaultQueryOptions(e),s=this.#s.getQueryCache().build(this.#s,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#t))}#h(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(N)),t}#b(){this.#R();const e=R(this.options.staleTime,this.#e);if(_.isServer()||this.#t.isStale||!A(e))return;const s=X(this.#t.dataUpdatedAt,e)+1;this.#o=w.setTimeout(()=>{this.#t.isStale||this.updateResult()},s)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(e){this.#y(),this.#a=e,!(_.isServer()||d(this.options.enabled,this.#e)===!1||!A(this.#a)||this.#a===0)&&(this.#l=w.setInterval(()=>{(this.options.refetchIntervalInBackground||Y.isFocused())&&this.#h()},this.#a))}#v(){this.#b(),this.#g(this.#x())}#R(){this.#o!==void 0&&(w.clearTimeout(this.#o),this.#o=void 0)}#y(){this.#l!==void 0&&(w.clearInterval(this.#l),this.#l=void 0)}createResult(e,t){const s=this.#e,r=this.options,i=this.#t,n=this.#n,a=this.#c,x=e!==s?e.state:this.#p,{state:c}=e;let l={...c},g=!1,h;if(t._optimisticResults){const u=this.hasListeners(),v=!u&&W(e,t),S=u&&z(e,s,t,r);(v||S)&&(l={...l,...$(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(l.fetchStatus="idle")}let{error:y,errorUpdatedAt:P,status:b}=l;h=l.data;let D=!1;if(t.placeholderData!==void 0&&h===void 0&&b==="pending"){let u;i?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(u=i.data,D=!0):u=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,u!==void 0&&(b="success",h=H(i?.data,u,t),g=!0)}if(t.select&&h!==void 0&&!D)if(i&&h===n?.data&&t.select===this.#m)h=this.#u;else try{this.#m=t.select,h=t.select(h),h=H(i?.data,h,t),this.#u=h,this.#i=null}catch(u){this.#i=u}this.#i&&(y=this.#i,h=this.#u,P=Date.now(),b="error");const C=l.fetchStatus==="fetching",I=b==="pending",k=b==="error",U=I&&C,F=h!==void 0,m={status:b,fetchStatus:l.fetchStatus,isPending:I,isSuccess:b==="success",isError:k,isInitialLoading:U,isLoading:U,data:h,dataUpdatedAt:l.dataUpdatedAt,error:y,errorUpdatedAt:P,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>x.dataUpdateCount||l.errorUpdateCount>x.errorUpdateCount,isFetching:C,isRefetching:C&&!I,isLoadingError:k&&!F,isPaused:l.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:k&&F,isStale:M(e,t),refetch:this.refetch,promise:this.#r,isEnabled:d(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const u=m.data!==void 0,v=m.status==="error"&&!u,S=O=>{v?O.reject(m.error):u&&O.resolve(m.data)},L=()=>{const O=this.#r=m.promise=B();S(O)},E=this.#r;switch(E.status){case"pending":e.queryHash===s.queryHash&&S(E);break;case"fulfilled":(v||m.data!==E.value)&&L();break;case"rejected":(!v||m.error!==E.reason)&&L();break}}return m}updateResult(){const e=this.#t,t=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#c=this.options,this.#n.data!==void 0&&(this.#d=this.#e),j(t,e))return;this.#t=t;const s=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#f.size)return!0;const n=new Set(i??this.#f);return this.options.throwOnError&&n.add("error"),Object.keys(this.#t).some(a=>{const p=a;return this.#t[p]!==e[p]&&n.has(p)})};this.#E({listeners:s()})}#S(){const e=this.#s.getQueryCache().build(this.#s,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#p=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#E(e){G.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#t)}),this.#s.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function ie(e,t){return d(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&d(t.retryOnMount,e)===!1)}function W(e,t){return ie(e,t)||e.state.data!==void 0&&Q(e,t,t.refetchOnMount)}function Q(e,t,s){if(d(t.enabled,e)!==!1&&R(t.staleTime,e)!=="static"){const r=typeof s=="function"?s(e):s;return r==="always"||r!==!1&&M(e,t)}return!1}function z(e,t,s,r){return(e!==t||d(r.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&M(e,s)}function M(e,t){return d(t.enabled,e)!==!1&&e.isStaleByTime(R(t.staleTime,e))}function ae(e,t){return!j(e.getCurrentResult(),t)}var K=f.createContext(!1),ne=()=>f.useContext(K);K.Provider;function oe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var le=f.createContext(oe()),he=()=>f.useContext(le),ce=(e,t,s)=>{const r=s?.state.error&&typeof e.throwOnError=="function"?J(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ue=e=>{f.useEffect(()=>{e.clearReset()},[e])},de=({result:e,errorResetBoundary:t,throwOnError:s,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||J(s,[e.error,r])),fe=(e,t)=>t.state.data===void 0,pe=e=>{if(e.suspense){const s=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>s(r(...i)):s(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},me=(e,t)=>e.isLoading&&e.isFetching&&!t,be=(e,t)=>e?.suspense&&t.isPending,V=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function xe(e,t,s){const r=ne(),i=he(),n=q(),a=n.defaultQueryOptions(e);
1n.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const p=n.getQueryCache().get(a.queryHash);a._optimisticResults=r?"isRestoring":"optimistic",pe(a),ce(a,i,p),ue(i);const x=!n.getQueryCache().get(a.queryHash),[c]=f.useState(()=>new t(n,a)),l=c.getOptimisticResult(a),g=!r&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(h=>{const y=g?c.subscribe(G.batchCalls(h)):N;return c.updateResult(),y},[c,g]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setOptions(a)},[a,c]),be(a,l))throw V(a,c,i);if(de({result:l,errorResetBoundary:i,throwOnError:a.throwOnError,query:p,suspense:a.suspense}))throw l.error;return n.getDefaultOptions().queries?._experimental_afterQuery?.(a,l),a.experimental_prefetchInRender&&!_.isServer()&&me(l,r)&&(x?V(a,c,i):p?.promise)?.catch(N).finally(()=>{c.updateResult()}),a.notifyOnChangeProps?l:c.trackResult(l)}function ge(e,t){return xe({...e,enabled:!0,suspense:!0,throwOnError:fe,placeholderData:void 0},re)}const T=12;function ve(e){return new Date(e+"T00:00:00").toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function Se(){const{data:e}=ge(se),[t,s]=f.useState(T),r=e.slice(0,t),i=t<e.length;return o.jsx("div",{className:"pt-32 md:pt-40 pb-24 bg-cream text-ink",children:o.jsxs("div",{className:"max-w-[1400px] mx-auto px-4 md:px-8",children:[o.jsxs("div",{className:"max-w-3xl mb-14 md:mb-20",children:[o.jsx("div",{className:"font-mono text-xs uppercase tracking-[0.2em] text-terracotta mb-5",children:"Journal"}),o.jsx("h1",{className:"text-5xl md:text-7xl font-medium leading-[1.05] tracking-tight mb-6 text-terracotta",children:"The Whole Story"}),o.jsxs("p",{className:"text-lg md:text-xl text-ink/70 leading-relaxed",children:["Reflections on business, growth, and the new economy from ",o.jsx("span",{className:"text-terracotta",children:"Holly Gottlieb"}),"."]})]}),o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",children:r.map((n,a)=>o.jsxs(ee.article,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5,delay:a%T*.04,ease:[.6,.05,.2,1]},className:"group relative bg-card/80 backdrop-blur-sm border border-border rounded-lg p-6 md:p-7 hover:shadow-paper transition-all duration-500 grain flex flex-col",children:[n.cover_image?o.jsx("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:"-mx-6 -mt-6 md:-mx-7 md:-mt-7 mb-5 block overflow-hidden rounded-t-lg aspect-[16/10] bg-ink/5",children:o.jsx("img",{src:n.cover_image,alt:"",loading:"lazy",className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-[1.03]"})}):null,o.jsx("div",{className:"font-mono text-[11px] uppercase tracking-[0.18em] text-ink/50 mb-4",children:ve(n.published_at)}),o.jsx("h2",{className:"text-xl md:text-2xl font-bold leading-snug mb-3 text-ink",children:n.title}),n.description&&o.jsx("p",{className:"text-ink/70 leading-relaxed mb-5",children:n.description}),o.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:"mt-auto inline-flex items-center gap-2 text-sm font-medium text-terracotta border-b border-terracotta/60 pb-1 self-start transition-all hover:gap-4",children:["Read on Substack ",o.jsx("span",{children:"→"})]})]},n.url))}),i&&o.jsx("div",{className:"flex justify-center mt-14",children:o.jsx("button",{onClick:()=>s(n=>n+T),className:"inline-flex items-center justify-center px-8 py-4 bg-ink text-cream font-mono text-xs uppercase tracking-[0.2em] hover:bg-terracotta transition-colors",children:"Load more →"})}),o.jsx("section",{className:"bg-paper py-20 md:py-28 grain border-t border-ink/10 mt-20",children:o.jsxs("div",{className:"max-w-[1400px] mx-auto px-4 md:px-8",children:[o.jsx("h2",{className:"text-3xl md:text-5xl font-medium mb-5",children:"Looking to hire?"}),o.jsx("p",{className:"text-ink/75 mb-8 leading-relaxed max-w-2xl text-lg",children:"If any of this resonates, we help mission-driven and values-led companies build their teams the same way — through trust, referrals, and the right fit over the fastest fit."}),o.jsx(te,{to:"/for-businesses",className:"inline-flex items-center justify-center px-8 py-4 bg-ink text-cream font-mono text-xs uppercase tracking-[0.2em] hover:bg-terracotta transition-colors",children:"See how fractional hiring works →"})]})})]})})}export{Se as component};

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.