PageSourceSearch

https://venue.ink/assets/B2qQPhNq.js

js venue.ink collected 2026-09-24 09:51:38 UTC 24,335 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0d059-0dc8-0000-0784-6ee3765120be";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="144ffeec-049c-5b3e-ad33-121454174418")}catch(e){}}();import{j as l,r as $}from"./1_rjLJJT.js";import{c as M,am as ke,u as oe,t as D,B,T as L,U as Fe,O as Le,cy as Ue,ap as Ge,ae as Oe,af as Te,k as He,C as $e,d1 as pe,F as Be,bG as Me,a7 as Ce}from"./BzLaZ4LI.js";import{u as Ve,I as We}from"./BcIS_HcJ.js";import{u as Qe}from"./BQ7t1Mvm.js";import{a as Ze}from"./D8LmYlJY.js";import{a as Ke}from"./Djl_N3a_.js";import{L as ve}from"./C8-fNhk4.js";import{R as Ye,a as qe}from"./9r5vtoby.js";import{e as re,d as ce,b as we,g as de,S as ue,a as fe,h as Je}from"./eOhqpjg0.js";import{C as Xe}from"./B7eBE0o_.js";import{u as es,a as ss,P as ls,f as ge}from"./BEc5voS0.js";import{a as Ne,b as Ie,c as _e,D as Ae,e as Ee,d as Pe}from"./CqYXRKlk.js";import{v as Re,F as ts,k as me,D as ze}from"./CF1GVhvA.js";import"./CJi0kXOi.js";import"./BiUYuhao.js";import"./BnWyCVyG.js";import"./ZgsKuwYg.js";import"./CwRjIYSi.js";import"./CZEInz57.js";import"./BkkCmsdY.js";import"./CGkMmlqZ.js";import"./BJkpDQtF.js";function De(s){const e=M.c(9),{className:t,size:h,style:c}=s,m=h===void 0?24:h;let n,i,o,u,f;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx("rect",{x:"3",y:"5",width:"26",height:"24",rx:"5",fill:"white",stroke:"#E5E5E5",strokeWidth:"1"}),i=l.jsx("path",{d:"M3 11C3 7.68629 5.68629 5 9 5H23C26.3137 5 29 7.68629 29 11V11.5H3V11Z",fill:"#5AC8FA"}),o=l.jsx("rect",{x:"9.5",y:"3",width:"2",height:"5",rx:"1",fill:"#8E8E93"}),u=l.jsx("rect",{x:"20.5",y:"3",width:"2",height:"5",rx:"1",fill:"#8E8E93"}),f=l.jsx("path",{d:"M21.2 23.5H12.1C10.11 23.5 8.5 21.9 8.5 19.93C8.5 18.2 9.74 16.76 11.39 16.43C11.7 14.18 13.65 12.45 16 12.45C17.97 12.45 19.67 13.66 20.36 15.37C20.62 15.31 20.9 15.28 21.2 15.28C23.46 15.28 25.3 17.12 25.3 19.39C25.3 21.66 23.46 23.5 21.2 23.5Z",fill:"#3693F3"}),e[0]=n,e[1]=i,e[2]=o,e[3]=u,e[4]=f):(n=e[0],i=e[1],o=e[2],u=e[3],f=e[4]);let r;return e[5]!==t||e[6]!==m||e[7]!==c?(r=l.jsxs("svg",{width:m,height:m,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,style:c,children:[n,i,o,u,f]}),e[5]=t,e[6]=m,e[7]=c,e[8]=r):r=e[8],r}function ns(s){const e=M.c(47),{onHidden:t}=s,{toast:h}=ke(),{personId:c}=oe(),m=D.useUtils(),n=!!c;let i;e[0]!==n?(i={enabled:n},e[0]=n,e[1]=i):i=e[1];const{data:o,isLoading:u,isError:f}=D.getPersonSettings.useQuery(c,i);let r;e[2]!==c?(r={personId:c},e[2]=c,e[3]=r):r=e[3];const a=o?.hasICloudCalendarSync===!0;let d;e[4]!==a?(d={enabled:a},e[4]=a,e[5]=d):d=e[5];const{data:x,isLoading:p,isError:C}=D.iCloudCalendar.getICloudCalendars.useQuery(r,d),[g,j]=$.useState(!0);let w;e[6]!==t?(w=()=>{t(),j(!1)},e[6]=t,e[7]=w):w=e[7];const b=w;let W;e[8]!==b||e[9]!==h||e[10]!==m?(W={onSuccess:async()=>{await m.iCloudCalendar.getICloudCalendars.invalidate(),await m.getPersonSettings.invalidate(),h({title:"New calendar selected",description:"Your appointments will now be added to this calendar"}),b()}},e[8]=b,e[9]=h,e[10]=m,e[11]=W):W=e[11];const{mutateAsync:F}=D.iCloudCalendar.updateWriteICloudCalendarUrl.useMutation(W),[R,O]=$.useState("");let T,S;e[12]!==x?(T=()=>{const U=x?.find(is);U&&O(U.url)},S=[x],e[12]=x,e[13]=T,e[14]=S):(T=e[13],S=e[14]),$.useEffect(T,S);let G;e[15]===Symbol.for("react.memo_cache_sentinel")?(G=l.jsx(re,{children:l.jsx(ce,{children:"Add to calendar"})}),e[15]=G):G=e[15];let N;e[16]!==p||e[17]!==u?(N=(u||p)&&l.jsx("div",{className:"text-ink-black",children:"Loading calendars..."}),e[16]=p,e[17]=u,e[18]=N):N=e[18];let A;e[19]!==f||e[20]!==C?(A=(C||f)&&l.jsx("div",{className:"text-ink-destructive",children:"Error getting calendars"}),e[19]=f,e[20]=C,e[21]=A):A=e[21];let y;e[22]!==x||e[23]!==C||e[24]!==p||e[25]!==R?(y=!p&&!C&&x?.length&&l.jsx(Ye,{value:R,onValueChange:O,children:l.jsx("div",{className:"flex flex-col gap-6",children:x.map(as)})}),e[22]=x,e[23]=C,e[24]=p,e[25]=R,e[26]=y):y=e[26];let I;e[27]!==N||e[28]!==A||e[29]!==y?(I=l.jsx(we,{className:"flex-1 py-10 px-6 flex flex-col",children:l.jsxs("div",{className:"flex flex-col gap-4 items-start",children:[N,A,y]})}),e[27]=N,e[28]=A,e[29]=y,e[30]=I):I=e[30];let k;e[31]!==b?(k=l.jsx(B,{variant:"secondary",className:"px-6 h-10",onClick:b,children:"Cancel"}),e[31]=b,e[32]=k):k=e[32];let _;e[33]!==c||e[34]!==F||e[35]!==R?(_=l.jsx(B,{className:"px-6 h-10",onClick:async()=>{await F({personId:c,calendarUrl:R||null,pushedEventBehaviour:"KEEP"})},children:"Apply"}),e[33]=c,e[34]=F,e[35]=R,e[36]=_):_=e[36];let v;e[37]!==k||e[38]!==_?(v=l.jsxs(de,{className:"flex flex-row justify-between py-4 px-6",children:[k,_]}),e[37]=k,e[38]=_,e[39]=v):v=e[39];let z;e[40]!==I||e[41]!==v?(z=l.jsxs(ue,{side:"bottom",className:"flex flex-col",children:[G,I,v]}),e[40]=I,e[41]=v,e[42]=z):z=e[42];let E;return e[43]!==b||e[44]!==g||e[45]!==z?(E=l.jsx(fe,{open:g,onOpenChange:b,children:z}),e[43]=b,e[44]=g,e[45]=z,e[46]=E):E=e[46],E}function as(s){const{url:e,name:t}=s;return l.jsxs("label",{className:"flex flex-row items-center gap-4",children:[l.jsx(qe,{id:e,value:e}),l.jsx(ve,{className:"break-all",children:t})]},e)}function is(s){return s.isWrite}function os(s){const e=M.c(51),{onHidden:t}=s,{personId:h}=oe(),c=!!h;let m;e[0]!==c?(m={enabled:c},e[0]=c,e[1]=m):m=e[1];const{data:n,isLoading:i}=D.getPersonSettings.useQuery(h,m);let o;e[2]!==h?(o={personId:h},e[2]=h,e[3]=o):o=e[3];const u=n?.hasICloudCalendarSync===!0;let f;e[4]!==u?(f={enabled:u},e[4]=u,e[5]=f):f=e[5];const{data:r,isLoading:a,isError:d}=D.iCloudCalendar.getICloudCalendars.useQuery(o,f),x=D.useUtils();let p;e[6]!==x?(p={onSuccess:async()=>{await x.getPersonSettings.invalidate()}},e[6]=x,e[7]=p):p=e[7];const{mutateAsync:C}=D.iCloudCalendar.updateReadICloudCalendarUrls.useMutation(p);let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=[],e[8]=g):g=e[8];const[j,w]=$.useState(g),[b,W]=$.useState(!0);let F,R;e[9]!==r?(F=()=>{const P=(r??[]).filter(cs).map(rs);w(P)},R=[r],e[9]=r,e[10]=F,e[11]=R):(F=e[10],R=e[11]),$.useEffect(F,R);let O;e[12]===Symbol.for("react.memo_cache_sentinel")?(O=(P,V)=>{w(K=>{const Z=K.filter(Y=>Y!==P);return V?[...Z,P]:Z})},e[12]=O):O=e[12];const T=O;let S;e[13]!==h||e[14]!==C||e[15]!==j?(S=async()=>{await C({personId:h,calendarUrls:j}),W(!1)},e[13]=h,e[14]=C,e[15]=j,e[16]=S):S=e[16];const G=S;let N;e[17]!==t||e[18]!==b?(N=()=>{b||t()},e[17]=t,e[18]=b,e[19]=N):N=e[19];let A;e[20]===Symbol.for("react.memo_cache_sentinel")?(A=l.jsx(re,{children:l.jsx(ce,{children:"Check for c
1onflicts"})}),e[20]=A):A=e[20];let y;e[21]!==a||e[22]!==i?(y=(i||a)&&l.jsx("div",{className:"text-ink-black-600",children:"Loading calendars..."}),e[21]=a,e[22]=i,e[23]=y):y=e[23];let I;e[24]!==d?(I=d&&l.jsx("div",{className:"text-ink-destructive",children:"Error loading calendars"}),e[24]=d,e[25]=I):I=e[25];let k;e[26]!==n?.hasICloudCalendarSync||e[27]!==i?(k=!n?.hasICloudCalendarSync&&!i&&l.jsx(L,{size:"sm",className:"text-ink-black",children:"Connect iCloud Calendar to choose which calendars to check for conflicts."}),e[26]=n?.hasICloudCalendarSync,e[27]=i,e[28]=k):k=e[28];let _;e[29]!==r||e[30]!==n?.hasICloudCalendarSync||e[31]!==j?(_=!!n?.hasICloudCalendarSync&&l.jsx(l.Fragment,{children:(r??[]).map(P=>l.jsxs("label",{className:"flex flex-row gap-2",children:[l.jsx(Xe,{checked:j.includes(P.url),onChangeChecked:V=>{T(P.url,V)}}),l.jsx(ve,{className:"break-all",children:P.name})]},P.url))}),e[29]=r,e[30]=n?.hasICloudCalendarSync,e[31]=j,e[32]=_):_=e[32];let v;e[33]!==y||e[34]!==I||e[35]!==k||e[36]!==_?(v=l.jsxs(we,{className:"flex-1 py-10 px-6 flex flex-col gap-6",children:[y,I,k,_]}),e[33]=y,e[34]=I,e[35]=k,e[36]=_,e[37]=v):v=e[37];let z;e[38]===Symbol.for("react.memo_cache_sentinel")?(z=l.jsx(Je,{asChild:!0,children:l.jsx(B,{variant:"secondary",children:"Cancel"})}),e[38]=z):z=e[38];let E;e[39]!==G||e[40]!==n?.hasICloudCalendarSync?(E=!!n?.hasICloudCalendarSync&&l.jsx(B,{variant:"primary",onClick:G,children:"Apply"}),e[39]=G,e[40]=n?.hasICloudCalendarSync,e[41]=E):E=e[41];let U;e[42]!==E?(U=l.jsxs(de,{className:"flex flex-row justify-between py-4 px-6",children:[z,E]}),e[42]=E,e[43]=U):U=e[43];let H;e[44]!==N||e[45]!==v||e[46]!==U?(H=l.jsxs(ue,{side:"bottom",className:"flex flex-col",onAnimationEndCapture:N,children:[A,v,U]}),e[44]=N,e[45]=v,e[46]=U,e[47]=H):H=e[47];let Q;return e[48]!==b||e[49]!==H?(Q=l.jsx(fe,{open:b,onOpenChange:W,children:H}),e[48]=b,e[49]=H,e[50]=Q):Q=e[50],Q}function rs(s){return s.url}function cs(s){return s.isRead}const ds="https://support.apple.com/en-us/102654",us="https://account.apple.com",fs=/^[a-z]{4}-[a-z]{4}-[a-z]{4}-[a-z]{4}$/i;function je(s){return fs.test(s.trim())}function xs({onHidden:s}){const{toast:e}=ke(),{personId:t}=oe(),h=D.useUtils(),[c,m]=$.useState(!0),n=()=>{s(),m(!1)},{mutateAsync:i,isPending:o}=D.iCloudCalendar.enableICloudCalendarSync.useMutation(),u=es({defaultValues:{username:"",appSpecificPassword:""},onSubmit:async({value:a})=>{try{const{success:d}=await i({personId:t,username:a.username.trim(),appSpecificPassword:a.appSpecificPassword.trim()});if(!d)throw new Error("Invalid credentials");await h.getPersonSettings.invalidate(),n()}catch{e({title:"Couldn’t enable iCloud sync",description:"Double-check your Apple ID and app-specific password, then try again.",variant:"error"})}}}),f=ss(u.store,a=>a.values),r=f.username.trim().length>0&&je(f.appSpecificPassword);return l.jsx(fe,{open:c,onOpenChange:n,children:l.jsxs(ue,{side:"bottom",children:[l.jsx(re,{children:l.jsx(ce,{children:"Connect iCloud Calendar"})}),l.jsxs("form",{onSubmit:a=>{a.preventDefault(),u.handleSubmit()},children:[l.jsxs("div",{className:"py-10 px-6 flex flex-col gap-8",children:[l.jsxs("div",{className:"flex flex-row items-center gap-3",children:[l.jsx("div",{className:"size-12 rounded-xl bg-ink-header-tabs flex items-center justify-center shrink-0",children:l.jsx(De,{size:24})}),l.jsx(L,{size:"base",className:"text-ink-black",children:"Connect your iCloud Calendar to automatically block time and avoid conflicts."})]}),l.jsxs("div",{className:"flex flex-col gap-4",children:[l.jsx(u.AppField,{name:"username",validators:{onBlur:({value:a})=>a.trim()?void 0:{message:"Enter your Apple ID"}},children:a=>l.jsx(a.TextField,{fullWidth:!0,label:"Apple ID",placeholder:"[email protected]",type:"email"})}),l.jsx(u.Field,{name:"appSpecificPassword",validators:{onBlur:({value:a})=>{if(!a)return{message:"Enter an app-specific password"};if(!je(a))return{message:"This doesn’t look right. App-specific passwords look like xxxx-xxxx-xxxx-xxxx — not your normal Apple ID password."}}},children:a=>l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx(ls,{fullWidth:!0,defaultVisible:!0,label:"App-specific password",placeholder:"xxxx-xxxx-xxxx-xxxx",value:a.state.value,onChangeValue:d=>a.handleChange(d),onBlur:a.handleBlur,invalid:ge(a).length>0}),l.jsx(Fe,{errors:ge(a)})]})})]}),l.jsxs("div",{className:"border border-ink-black-200 rounded-xl p-4 flex flex-col gap-3",children:[l.jsx(L,{size:"sm",variant:"heading",children:"How to generate an app-specific password"}),l.jsxs("ol",{className:"flex flex-col gap-2 list-decimal pl-4",children:[l.jsx("li",{children:l.jsxs(L,{size:"sm",className:"text-ink-black",children:["Sign in to your Ap
1ple Account at"," ",l.jsx("a",{href:us,target:"_blank",rel:"noreferrer",className:"underline",children:"account.apple.com"}),"."]})}),l.jsx("li",{children:l.jsx(L,{size:"sm",className:"text-ink-black",children:"In the “Sign-In and Security” section, select “App-Specific Passwords”."})}),l.jsx("li",{children:l.jsx(L,{size:"sm",className:"text-ink-black",children:"Select “Generate an app-specific password” and follow the steps on your screen."})}),l.jsx("li",{children:l.jsx(L,{size:"sm",className:"text-ink-black",children:"Enter your Apple ID above and paste the generated password."})})]}),l.jsx(L,{size:"sm",className:"text-ink-black-600",children:"The password is 16 letters shown as xxxx-xxxx-xxxx-xxxx. It’s not your normal Apple ID password."}),l.jsx("a",{href:ds,target:"_blank",rel:"noreferrer",children:l.jsx(L,{size:"sm",className:"text-ink-black underline",children:"View Apple’s instructions"})})]})]}),l.jsxs(de,{className:"flex flex-row justify-between py-4 px-6",children:[l.jsx(B,{variant:"secondary",onClick:n,children:"Cancel"}),l.jsx(B,{submit:!0,disabled:!r||o,children:o?"Connecting...":"Connect"})]})]})]})})}function be({isConnected:s,isDisabled:e}){return e?"reconnect":s?"synced":"setup"}function hs(s){switch(s){case"synced":return"Synced";case"reconnect":return"Reconnect";case"setup":return"Set up"}}function ms(){const s=M.c(75),{personId:e,handle:t,isLoading:h}=oe(),c=Le(),m=Ue(),[n,i]=$.useState(null),[o,u]=$.useState(null);let f;s[0]!==c||s[1]!==t||s[2]!==e?(f=c("setupGoogleCalendar",{personId:e,handle:t}),s[0]=c,s[1]=t,s[2]=e,s[3]=f):f=s[3];let r;s[4]!==e||s[5]!==f?(r={action:"calendar",additionalState:{personId:e,redirect:f}},s[4]=e,s[5]=f,s[6]=r):r=s[6];const a=Ve(r);let d;s[7]!==c||s[8]!==t||s[9]!==e?(d=c("setupGoogleCalendar",{personId:e,handle:t}),s[7]=c,s[8]=t,s[9]=e,s[10]=d):d=s[10];let x;s[11]!==e||s[12]!==d?(x={action:"calendar",additionalState:{personId:e,redirect:d}},s[11]=e,s[12]=d,s[13]=x):x=s[13];const[p,C]=Qe(x),g=!!e;let j;s[14]!==g?(j={enabled:g},s[14]=g,s[15]=j):j=s[15];const{data:w,isLoading:b}=D.getPersonSettings.useQuery(e,j),{isEnabled:W}=Ge("icloud-calendar-sync",e);if(h)return null;if(!e){let q;return s[16]===Symbol.for("react.memo_cache_sentinel")?(q=l.jsx(Oe,{code:Te.hookUseProviderFromRoute}),s[16]=q):q=s[16],q}const F=W===!0,R=w?.hasGoogleCalendarRefreshToken===!0,O=w?.googleCalendarDisabled===!0;let T;s[17]!==R||s[18]!==O?(T=be({isConnected:R,isDisabled:O}),s[17]=R,s[18]=O,s[19]=T):T=s[19];const S=T,G=w?.hasICloudCalendarSync===!0,N=w?.icloudCalendarDisabled===!0;let A;s[20]!==N||s[21]!==G?(A=be({isConnected:G,isDisabled:N}),s[20]=N,s[21]=G,s[22]=A):A=s[22];const y=A,I=S!=="synced"&&m;let k;s[23]!==a||s[24]!==p||s[25]!==C?(k=()=>{if(p){C();return}window.location.assign(a)},s[23]=a,s[24]=p,s[25]=C,s[26]=k):k=s[26];const _=k;let v;s[27]!==S||s[28]!==_?(v=()=>{if(S==="synced"){i({kind:"config",provider:"google"});return}_()},s[27]=S,s[28]=_,s[29]=v):v=s[29];const z=v;let E;s[30]!==y?(E=()=>{if(y==="synced"){i({kind:"config",provider:"icloud"});return}i({kind:"icloud-connect"})},s[30]=y,s[31]=E):E=s[31];const U=E;let H;s[32]===Symbol.for("react.memo_cache_sentinel")?(H=l.jsx(He,{backHref:"..",className:"border-b-transparent"}),s[32]=H):H=s[32];let Q;s[33]===Symbol.for("react.memo_cache_sentinel")?(Q=l.jsx(L,{size:"2xl",variant:"heading",children:"Calendar sync"}),s[33]=Q):Q=s[33];let P;s[34]!==I||s[35]!==S||s[36]!==z||s[37]!==U||s[38]!==y||s[39]!==b||s[40]!==F?(P=l.jsx($e,{children:l.jsxs("div",{className:"flex flex-col gap-8 p-5",children:[Q,b?l.jsx(gs,{}):l.jsxs("div",{className:"flex flex-col",children:[I?l.jsx(We,{triggerAsChild:!0,children:l.jsx(ie,{icon:l.jsx(pe,{size:24}),name:"Google Calendar",status:S,isLast:!F})}):l.jsx(ie,{icon:l.jsx(pe,{size:24}),name:"Google Calendar",status:S,onClick:z,isLast:!F}),F&&l.jsx(ie,{icon:l.jsx(De,{size:24}),name:"iCloud Calendar",status:y,onClick:U,isLast:!0})]})]})}),s[34]=I,s[35]=S,s[36]=z,s[37]=U,s[38]=y,s[39]=b,s[40]=F,s[41]=P):P=s[41];let V;s[42]!==n?.kind?(V=n?.kind==="icloud-connect"&&l.jsx(xs,{onHidden:()=>i(null)}),s[42]=n?.kind,s[43]=V):V=s[43];let K;s[44]!==n?(K=n?.kind==="config"&&n.provider==="google"&&l.jsx(ye,{title:"Google Calendar",onCheckConflicts:()=>i({kind:"conflicts",provider:"google"}),onAddToCalendar:()=>i({kind:"add",provider:"google"}),onRemove:()=>{i(null),u("google")},onHidden:()=>i(null)}),s[44]=n,s[45]=K):K=s[45];let Z;s[46]!==n?(Z=n?.kind==="config"&&n.provider==="icloud"&&l.jsx(ye,{title:"iCloud Calendar",onCheckConflicts:()=>i({kind:"conflicts",provider:"icloud"}),onAddToCalendar:()=>i({kind:"add",provider:"icloud"}),onRemove:()=>{i(null),u("icloud")},onHidden:()=>i(null)}),s[46]=n,s[47]=Z):Z=s[47];let Y;s[48]!==n?(Y=n?.kind==="conflicts"&&n.provider==="google"&&l.jsx(Ke,{onHidden:()=>i(null)}),s[48]=n,s[49]=Y):Y=s[49];let J;s[50]!==n?(J=n?.kind==="conflicts"&&n.provider==="icloud"&&l.jsx(os,{onHidden:()=>i(null)}),s[50]=n,s[51]=J):J=s[51];let X;s[52]!==n?(X=n?.kind==="add"&&n.provider==="google"&&l.jsx(Ze,{onHidden:()=>i(null)}),s[52]=n,s[53]=X):X=s[53];let ee;s[54]!==n?(ee=n?.kind==="add"&&n.provider==="icloud"&&l.jsx(ns,{onHidden:()=>i(null)}),s[54]=n,s[55]=ee):ee=s[55];const xe=o==="google";let te;s[56]===Symbol.for("react.memo_cache_sentinel")?(te=q=>u(q?"google":null),s[56]=te):te=s[56];let se;s[57]!==e||s[58]!==xe?(se=l.jsx(ps,{open:xe,onOpenChange:te,personId:e}),s[57]=e,s[58]=xe,s[59]=se):se=s[59];const he=o==="icloud";let ne;s[60]===Symbol.for("react.memo_cache_sentinel")?(ne=q=>
1u(q?"icloud":null),s[60]=ne):ne=s[60];let le;s[61]!==e||s[62]!==he?(le=l.jsx(Cs,{open:he,onOpenChange:ne,personId:e}),s[61]=e,s[62]=he,s[63]=le):le=s[63];let ae;return s[64]!==P||s[65]!==V||s[66]!==K||s[67]!==Z||s[68]!==Y||s[69]!==J||s[70]!==X||s[71]!==ee||s[72]!==se||s[73]!==le?(ae=l.jsxs(Be,{headerSlot:H,children:[P,V,K,Z,Y,J,X,ee,se,le]}),s[64]=P,s[65]=V,s[66]=K,s[67]=Z,s[68]=Y,s[69]=J,s[70]=X,s[71]=ee,s[72]=se,s[73]=le,s[74]=ae):ae=s[74],ae}const ie=$.forwardRef((s,e)=>{const t=M.c(23);let h,c,m,n,i;t[0]!==s?({icon:h,name:m,status:i,isLast:c,...n}=s,t[0]=s,t[1]=h,t[2]=c,t[3]=m,t[4]=n,t[5]=i):(h=t[1],c=t[2],m=t[3],n=t[4],i=t[5]);const o=`flex items-center gap-4 py-5 w-full text-left ${c?"":"border-b border-ink-black/10"}`;let u;t[6]!==h?(u=l.jsx("div",{className:"size-12 rounded-xl bg-ink-header-tabs flex items-center justify-center shrink-0",children:h}),t[6]=h,t[7]=u):u=t[7];let f;t[8]!==m?(f=l.jsx(L,{size:"lg",variant:"heading",className:"flex-1 min-w-0 truncate",children:m}),t[8]=m,t[9]=f):f=t[9];const r=i==="reconnect"?"text-ink-caution":"text-ink-black-600";let a;t[10]!==i?(a=hs(i),t[10]=i,t[11]=a):a=t[11];let d;t[12]!==r||t[13]!==a?(d=l.jsx(L,{size:"sm",className:r,children:a}),t[12]=r,t[13]=a,t[14]=d):d=t[14];let x;t[15]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx(Re,{className:"size-5 shrink-0 text-ink-black dark:text-ink-white"}),t[15]=x):x=t[15];let p;return t[16]!==n||t[17]!==e||t[18]!==o||t[19]!==u||t[20]!==f||t[21]!==d?(p=l.jsxs("button",{ref:e,type:"button",className:o,...n,children:[u,f,d,x]}),t[16]=n,t[17]=e,t[18]=o,t[19]=u,t[20]=f,t[21]=d,t[22]=p):p=t[22],p});
1ie.displayName="CalendarProviderRow";function ye(s){const e=M.c(25),{title:t,onCheckConflicts:h,onAddToCalendar:c,onRemove:m,onHidden:n}=s,[i,o]=$.useState(!0);let u;e[0]!==n?(u=()=>{n(),o(!1)},e[0]=n,e[1]=u):u=e[1];const f=u;let r;e[2]!==t?(r=l.jsx(re,{children:l.jsx(ce,{children:t})}),e[2]=t,e[3]=r):r=e[3];let a;e[4]!==h?(a=l.jsx(Se,{icon:ts,label:"Check for conflicts",subtext:"Select which calendars to check for conflicts",onClick:h,isLast:!1}),e[4]=h,e[5]=a):a=e[5];let d;e[6]!==c?(d=l.jsx(Se,{icon:Me,label:"Add to calendar",subtext:"Select which calendar to add appointments",onClick:c,isLast:!0}),e[6]=c,e[7]=d):d=e[7];let x;e[8]!==a||e[9]!==d?(x=l.jsxs("div",{className:"px-5 py-2 flex flex-col",children:[a,d]}),e[8]=a,e[9]=d,e[10]=x):x=e[10];let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsx(me,{className:"size-4"}),e[11]=p):p=e[11];let C;e[12]!==t?(C=l.jsxs("span",{className:"flex items-center gap-2",children:[p,"Remove ",t]}),e[12]=t,e[13]=C):C=e[13];let g;e[14]!==m||e[15]!==C?(g=l.jsx(de,{className:"flex px-6 py-4",children:l.jsx(B,{variant:"destructive",className:"w-full",onClick:m,children:C})}),e[14]=m,e[15]=C,e[16]=g):g=e[16];let j;e[17]!==r||e[18]!==x||e[19]!==g?(j=l.jsxs(ue,{side:"bottom",children:[r,x,g]}),e[17]=r,e[18]=x,e[19]=g,e[20]=j):j=e[20];let w;return e[21]!==f||e[22]!==i||e[23]!==j?(w=l.jsx(fe,{open:i,onOpenChange:f,children:j}),e[21]=f,e[22]=i,e[23]=j,e[24]=w):w=e[24],w}function Se(s){const e=M.c(17),{icon:t,label:h,subtext:c,onClick:m,isLast:n}=s,i=`flex items-center justify-between gap-5 py-5 text-left ${n?"":"border-b border-ink-black/10"}`;let o;e[0]!==t?(o=l.jsx(t,{className:"size-6 shrink-0 text-ink-black dark:text-ink-white"}),e[0]=t,e[1]=o):o=e[1];let u;e[2]!==h?(u=l.jsx(L,{size:"lg",variant:"heading",children:h}),e[2]=h,e[3]=u):u=e[3];let f;e[4]!==c?(f=l.jsx(L,{size:"sm",inactive:!0,className:"truncate",children:c}),e[4]=c,e[5]=f):f=e[5];let r;e[6]!==u||e[7]!==f?(r=l.jsxs("div",{className:"flex flex-col gap-1.5 min-w-0",children:[u,f]}),e[6]=u,e[7]=f,e[8]=r):r=e[8];let a;e[9]!==o||e[10]!==r?(a=l.jsxs("div",{className:"flex items-center gap-5 flex-1 min-w-0",children:[o,r]}),e[9]=o,e[10]=r,e[11]=a):a=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx(Re,{className:"size-6 shrink-0 text-ink-black dark:text-ink-white"}),e[12]=d):d=e[12];let x;return e[13]!==m||e[14]!==i||e[15]!==a?(x=l.jsxs("button",{type:"button",onClick:m,className:i,children:[a,d]}),e[13]=m,e[14]=i,e[15]=a,e[16]=x):x=e[16],x}function ps(s){const e=M.c(25),{personId:t,open:h,onOpenChange:c}=s,m=D.useUtils();let n;e[0]!==m?(n={onSuccess:async()=>{await m.getPersonSettings.invalidate()}},e[0]=m,e[1]=n):n=e[1];const{mutateAsync:i,isPending:o}=D.googleCalendar.disableGoogleCalendarSync.useMutation(n);let u;e[2]!==i||e[3]!==c||e[4]!==t?(u=async()=>{await i({personId:t}),c(!1)},e[2]=i,e[3]=c,e[4]=t,e[5]=u):u=e[5];const f=u;let r;e[6]!==o||e[7]!==c?(r=j=>{o||c(j)},e[6]=o,e[7]=c,e[8]=r):r=e[8];let a;e[9]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsxs(Ne,{children:[l.jsx(Ie,{children:"Remove Google calendar?"}),l.jsx(_e,{children:"This will remove all synced blocks from your calendar."})]}),e[9]=a):a=e[9];let d;e[10]!==o?(d=l.jsx(ze,{asChild:!0,children:l.jsx(B,{variant:"secondary",disabled:o,children:"Cancel"})}),e[10]=o,e[11]=d):d=e[11];let x;e[12]!==o?(x=o?"Removing...":l.jsxs("span",{className:"flex items-center gap-2",children:[l.jsx(me,{className:"size-4"}),"Remove"]}),e[12]=o,e[13]=x):x=e[13];let p;e[14]!==f||e[15]!==o||e[16]!==x?(p=l.jsx(B,{variant:"destructive",onClick:f,disabled:o,children:x}),e[14]=f,e[15]=o,e[16]=x,e[17]=p):p=e[17];let C;e[18]!==d||e[19]!==p?(C=l.jsxs(Ae,{showClose:!1,children:[a,l.jsxs(Ee,{children:[d,p]})]}),e[18]=d,e[19]=p,e[20]=C):C=e[20];let g;return e[21]!==h||e[22]!==r||e[23]!==C?(g=l.jsx(Pe,{open:h,onOpenChange:r,children:C}),e[21]=h,e[22]=r,e[23]=C,e[24]=g):g=e[24],g}function Cs(s){const e=M.c(25),{personId:t,open:h,onOpenChange:c}=s,m=D.useUtils();let n;e[0]!==m?(n={onSuccess:async()=>{await m.getPersonSettings.invalidate()}},e[0]=m,e[1]=n):n=e[1];const{mutateAsync:i,isPending:o}=D.iCloudCalendar.disableICloudCalendarSync.useMutation(n);let u;e[2]!==i||e[3]!==c||e[4]!==t?(u=async()=>{await i({personId:t,pushedEventBehaviour:"DELETE"}),c(!1)},e[2]=i,e[3]=c,e[4]=t,e[5]=u):u=e[5];const f=u;let r;e[6]!==o||e[7]!==c?(r=j=>{o||c(j)},e[6]=o,e[7]=c,e[8]=r):r=e[8];let a;e[9]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsxs(Ne,{children:[l.jsx(Ie,{children:"Remove iCloud calendar?"}),l.jsx(_e,{children:"This will remove all synced blocks from your calendar."})]}),e[9]=a):a=e[9];let d;e[10]!==o?(d=l.jsx(ze,{asChild:!0,children:l.jsx(B,{variant:"secondary",disabled:o,children:"Cancel"})}),e[10]=o,e[11]=d):d=e[11];let x;e[12]!==o?(x=o?"Removing...":l.jsxs("span",{className:"flex items-center gap-2",children:[l.jsx(me,{className:"size-4"}),"Remove"]}),e[12]=o,e[13]=x):x=e[13];let p;e[14]!==f||e[15]!==o||e[16]!==x?(p=l.jsx(B,{variant:"destructive",onClick:f,disabled:o,children:x}),e[14]=f,e[15]=o,e[16]=x,e[17]=p):p=e[17];let C;e[18]!==d||e[19]!==p?(C=l.jsxs(Ae,{showClose:!1,children:[a,l.jsxs(Ee,{children:[d,p]})]}),e[18]=d,e[19]=p,e[20]=C):C=e[20];let g;return e[21]!==h||e[22]!==r||e[23]!==C?(g=l.jsx(Pe,{open:h,onOpenChange:r,children:C}),e[21]=h,e[22]=r,e[23]=C,e[24]=g):g=e[24],g}function gs(){const s=M.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsx(Ce,{className:"h-16 w-full"}),l.jsx(Ce,{className:"h-16 w-full"})]}),s[0]=e):e=s[0],e}function Hs(){const s=M.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(ms,{}),s[0]=e):e=s[0],e}export{Hs as default};
2
3//# chunkId=144ffeec-049c-5b3e-ad33-121454174418

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.