PageSourceSearch

https://app.reclaim.ai/_next/static/chunks/pages/settings/general-5174a284a43b1751.js

js reclaim.ai collected 2026-09-24 08:38:36 UTC 54,345 bytes, 1 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:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9778fe85-5d09-4617-956e-f51ed061d0ab",e._sentryDebugIdIdentifier="sentry-dbid-9778fe85-5d09-4617-956e-f51ed061d0ab")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1485],{75169:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/general",function(){return a(98518)}])},721:function(e,t,a){"use strict";a.d(t,{R:function(){return p}});var n=a(24246),r=a(85796),s=a(93850),o=a(69008),i=a(76264),l=a(38944),c=a(27378),d=a(88039),u=a(56933),m=a(90594),h=a(92736);let g=(0,o.Z)(e=>({root:{backgroundColor:"unset",transition:e.transitions.create(["background-color","border-color"],{duration:100}),width:"100%",display:"flex",flexDirection:"column",borderRadius:2*e.shape.borderRadius,padding:e.spacing(1.5,2),margin:e.spacing(2,0),"&:hover $editIcon":{color:"rgb(0 0 0 / 50%)"}},open:{backgroundColor:"var(--rai-color-background-raised)",transition:e.transitions.create(["background-color","border-color"]),borderRadius:2*e.shape.borderRadius,paddingBottom:e.spacing(2)},value:{cursor:"pointer",flex:"1",display:"flex",width:"100%",justifyContent:"space-between",[e.breakpoints.up("sm")]:{paddingRight:e.spacing(3)}},fieldLabel:{cursor:"pointer",display:"flex",width:"100%",justifyContent:"space-between"},editIcon:{color:"rgb(0 0 0 / 26%)",flexShrink:0,height:16,width:16},collapseIcon:{color:"rgb(0 0 0 / 50%)",marginRight:e.spacing(-.5)},content:{width:"100%",marginTop:e.spacing(1)},loading:{flex:"none",padding:"2px"}}),{classNamePrefix:"SmallFieldEditor"});function p(e){let{className:t,classes:a,name:o,getDisplayValue:p,label:_,description:f,children:v,childrenOverrideFn:x,displayValueOverride:j,jumpTarget:b,isLoading:S}=e,k=g({classes:a}),w=(0,d.Gc)(),y=null==w?void 0:w.watch(o),[F,T]=(0,c.useState)(new URL(window.location.href).hash==="#".concat(b)),C=(0,i.T)(e=>{var t;return p?p(e):(null==e?void 0:null===(t=e.toString)||void 0===t?void 0:t.call(e))||""}),N=(0,c.useMemo)(()=>C(y),[C,y]);return(0,n.jsxs)("div",{className:(0,l.Z)(t,k.root,{[k.open]:F}),id:b,children:[(0,n.jsxs)("div",{className:k.fieldLabel,onClick:()=>T(e=>!e),children:[(0,n.jsx)(s.Z,{variant:"h6",children:_}),S?(0,n.jsx)(h.g,{size:18,className:k.loading}):F?(0,n.jsx)(r.Z,{className:k.collapseIcon}):(0,n.jsx)(u.Z,{className:k.editIcon})]}),(0,n.jsx)(m.Z,{in:F,children:(0,n.jsxs)("div",{children:[(0,n.jsx)(s.Z,{children:f}),(0,n.jsx)("div",{className:k.content,children:x?x(y):v})]})}),(0,n.jsx)(m.Z,{in:!F,children:(0,n.jsx)("div",{onClick:()=>T(!0),className:k.value,children:(0,n.jsx)(s.Z,{variant:"body1",children:j||N})})})]})}},86233:function(e,t,a){"use strict";a.d(t,{m:function(){return _}});var n=a(24246),r=a(19304),s=a(27378),o=a(23384),i=a(63661),l=a(12223),c=a(80636),d=a(61756),u=a(73382),m=a(45261),h=a(48338);let g={CUSTOM_BLOCKING:(e,t)=>(0,n.jsxs)(n.Fragment,{children:["Custom blocking is available with the ",r.J[e].label," plan."," ",t?"You will lose this feature after your trial expires.":""," ",(0,n.jsx)(h.r,{underline:"hover",referrer:"entitlement",entitlement:"CUSTOM_BLOCKING",children:"Upgrade now"})]}),SCHEDULING_LINK_SURVEY:(e,t)=>(0,n.jsxs)(n.Fragment,{children:["Custom screening fields are available with the ",r.J[e].label," plan."," ",t?"You will lose this feature after your trial expires.":""," ",(0,n.jsx)(h.r,{underline:"hover",referrer:"entitlement",entitlement:"SCHEDULING_LINK_SURVEY",children:"Upgrade"})]}),SCHEDULING_LINK_REDIRECT:(e,t)=>(0,n.jsxs)(n.Fragment,{children:["Redirect URLs are available with the ",r.J[e].label," plan."," ",t?"You will lose this feature after your trial expires.":""," ",(0,n.jsx)(h.r,{underline:"hover",referrer:"entitlement",entitlement:"SCHEDULING_LINK_REDIRECT",children:"Upgrade now"})]}),SCHEDULER_WEEKS:(e,t)=>(0,n.jsxs)(n.Fragment,{children:["Schedule even further in the future with the ",r.J[e].label," plan."," ",(0,n.jsx)(h.r,{underline:"hover",referrer:"entitlement",entitlement:"SCHEDULER_WEEKS",children:"Upgrade now"})]})};var p=a(98957);let _=e=>{let{className:t,entitlement:a,fallbackElement:h=null,alwaysUpsell:_=!1}=e,{userTerminalEdition:f,userIsOnTrial:v}=(0,l.Y)(),{entitlementTable:x}=(0,i.Z)(),{disableUsage:j}=(0,o.W)(a),b=x&&(j||v||_),S=(0,s.useMemo)(()=>{let e;if(!b)return;let t=c.rE.length-1;for(;!e&&t>=0;){let n=c.rE[t];r.J[n].isTrial||r.J[n].isLegacy||void 0===x[n][a].nextValue||(e=x[n][a].nextEdition),t--}return e},[a,b,x]),k=!!S&&!!f&&0>(0,d.Wg)(f,S),w=(0,s.useMemo)(()=>{var e;if(!k)return;let t=(null===(e=g[a])||void 0===e?void 0:e.call(g,S,v))||"";return(0,n.jsxs)(n.Fragment,{children:[t,(0,n.jsx)(p.O,{})]})},[a,S,k,v]);return k?(0,n.jsx)(u.u,{title:w,disabled:!g[a],interactive:!0,children:(0,n.jsx)(m.M,{className:t,edition:S}
1)}):h}},12290:function(e,t,a){"use strict";a.d(t,{P:function(){return p}});var n=a(24246),r=a(57119),s=a(35744),o=a(76264),i=a(38944),l=a(88039),c=a(15561),d=a(33862),u=a(49579),m=a(97629),h=a.n(m),g=a(95483);let p=e=>{let t;let{className:a,classes:m,children:p,saveDebounceMs:_=750,notifyDebounceMs:f=1250,saveMessage:v="Your changes have been saved",errorMessage:x="There was an error saving your changes. Please try again or contact support if the problem persists",interceptors:j,handleInterceptors:b,onImmediateChange:S,onSubmit:k,onError:w}=e,y=(0,s.E)(h(),m||{}),F=(t=e.form,(0,u.O)(t,"form prop may not change"),t||(t=(0,l.cI)({defaultValues:e.defaultValues,...e.useFormExt})),t),{sendNotification:T}=(0,d.M)(f),C=(0,o.T)(async()=>(await F.trigger(),0!==Object.keys(F.formState.errors).length&&(null==w||w(F.formState.errors),!0))),N=(0,o.T)(function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];w?null==w||w(...t):T({message:x,type:"error"},{autoHideDuration:f})}),E=(0,o.T)(async()=>{try{await k(F.getValues()),T({message:v},{autoHideDuration:f})}catch(e){N(F.formState.errors)}}),Z=(0,c.N)(E,_),D=(0,c.N)(b||(()=>{}),_),I=(0,o.T)(async()=>{await C()||await E()});return(0,r.$)(F,(0,o.T)(async(e,t)=>{let{name:a}=t;await C()||(null==S||S(a,e),a&&j&&j.indexOf(a)>=0?null==D||D(a,e,{onComplete:()=>T({message:v},{autoHideDuration:f})}):Z())})),(0,n.jsx)(g.$,{className:(0,i.Z)(y.root,a),form:F,onSubmit:I,onError:w,children:p})}},97314:function(e,t,a){"use strict";a.d(t,{V:function(){return n}});let n=(0,a(27378).createContext)({variant:"normal",listenExpandState:()=>()=>void 0})},75310:function(e,t,a){"use strict";a.d(t,{k:function(){return V}});var n=a(24246),r=a(6482),s=a(89499),o=a(93897),i=a(76264),l=a(27378),c=a(84210),d=a(64742);let u=e=>{let{children:t,config:a,onChange:r}=e,s=(0,l.useRef)(),o=a&&(0,d.tk)(a),u=(0,i.T)(e=>{var t,n;if(!a)return;let o=!!(null===(n=e[a.group])||void 0===n?void 0:null===(t=n[a.quest])||void 0===t?void 0:t[a.step]);s.current!==o&&(s.current=o,r({isActive:o,data:e}))});return(0,n.jsx)(c.n,{onChange:u,retriggerDeps:[o],children:t})},m=e=>{let{children:t,onChange:a}=e,{activeQuest:r}=(0,o.P_)(),s=(0,i.T)(e=>a({...e,activeQuest:r}));return(0,n.jsx)(u,{onChange:s,config:r,children:t})};var h=a(31542),g=a(14875);let p=(0,l.memo)(e=>{let{children:t,className:a}=e,[r,s]=(0,l.useState)(),o=(0,i.T)(e=>{let{isActive:t,activeQuest:a}=e;return t&&s(a)}),c=(0,l.useMemo)(()=>document.createElement("div"),[]);return(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsx)(g.TB,{config:r,className:a}),(0,h.createPortal)((0,n.jsx)(g.f5,{children:(0,n.jsx)(m,{onChange:o,children:t})}),c)]})});var _=a(86834),f=a(96256),v=a(74876),x=a(63701),j=a(93850),b=a(24533),S=a(60189),k=a(53504),w=a(35744),y=a(30632),F=a(83495),T=a(53505),C=a(38944),N=a(88039),E=a(45174),Z=a(97314),D=a(75430),I=a.n(D),M=a(34553),R=a(21810),L=a(77929),P=a(25528);let W=(0,l.createContext)({depth:0,headerLevel:1,addablePortalRef:void 0}),B=(0,F.Gd)()([1,2,3,4,5,6]),H=e=>Math.min(e+1,6),G=e=>{if(!e)return;let t=e.match(/^h(\d)$/i);if(!t)return;let a=Number(t[1]);if(B(a))return a},O=(0,l.memo)((0,l.forwardRef)((e,t)=>{let a,{className:o,children:c,header:d,description:u,headerVariant:h,jumpTarget:g,mountOpen:F,valueDisplay:D,classes:B,mustBeAddedIf:O,mustBeAddedText:V,activeFieldNames:A,variant:U,inlineContent:z,actions:J,lsKey:Y}=e,K=(0,w.E)(I(),B||{}),{variant:Q,breakpoint:X,lsKey:q,listenExpandState:$}=(0,l.useContext)(Z.V),ee=(0,N.Gc)(),[et,ea]=(0,x.Dw)(Y&&q&&"FullpageFormSection.".concat(q,".").concat(Y,".expanded"),!!F),en=(0,l.useMemo)(()=>!O||!O(ee.getValues()),[]),er=(0,l.useRef)(null),es=(0,l.useRef)(null),eo=(0,l.useContext)(W);(0,v.UT)(er.current,"focusin",()=>ea(!0));let ei=(0,M.c)(X),el=(0,E.il)(ei,"smUp"),ec=(0,E.il)(ei,"mdUp"),[ed,eu]=(0,l.useState)(en),[em,eh]=(0,l.useState)([]),eg=!!d,{depth:ep,headerLevel:e_,addablePortalRef:ef}=eo,ev=0===ep,ex="collapse"!==(U=U||Q),ej=ev&&!ex,eb=(0,l.useRef)(!1),eS=(()=>{if(!ee)return[];let e=ee.formState.errors;return em.filter(t=>e[t])})(),ek=eS.length,ew=(0,i.T)(e=>{e&&ea(!0)});(0,l.useEffect)(()=>{let e=$(ea);return()=>e()},[$,ea]);let ey=(0,l.useMemo)(()=>(0,n.jsx)(j.Z,{component:"div",className:K.beforeFold__description,children:u}),[K.beforeFold__description,u]),eF=(0,l.useMemo)(()=>{let e=G(h),t=e_;return e?t=e:eg&&(t=H(e_)),{...eo,depth:ep+1,headerLevel:t,addablePortalRef:ev?es:ef}},[eo,ep,eg,e_,h,ev,ef]);
1return(h=h||"h".concat(e_),O&&!ed&&ef)?(0,n.jsx)(b.Z,{container:()=>ef.current,children:(0,n.jsxs)("div",{className:K.addable,children:[(0,n.jsx)(S.Z,{variant:"link",onClick:()=>eu(!0),children:V?(0,n.jsxs)(n.Fragment,{children:["+ ",V]}):(0,n.jsxs)(n.Fragment,{children:["+ Add ",d]})}),(0,n.jsx)(p,{className:K.addable__questOrb,children:c})]})}):(0,n.jsxs)("div",{className:(0,C.Z)(K.root,o,ev&&K["root--".concat(U,"TopVariant")],{[K["root--top"]]:ev,[K["root--added"]]:!!O&&!en}),ref:e=>{if(eb.current||en||!O||(eb.current=!0),t)switch(typeof t){case"function":t(e);break;case"object":t.current=e}},children:[(!!d||!!u||ej)&&(0,n.jsxs)("div",{className:(0,C.Z)(o,K.beforeFold),id:g,onClick:e=>{ex||(e.stopPropagation(),ea(!et))},children:[(0,n.jsxs)(j.Z,{component:"div",variant:h,className:K.beforeFold__header,children:[d,!!eS.length&&(0,n.jsx)(s.Z,{variant:"error",title:"There".concat(1===ek?"'s an ":" are ".concat(ek)," ").concat((0,y._6)(ek,"error")," in this section")})]}),(0,n.jsx)("div",{className:K.beforeFold__actions,children:(0,T.qU)(J,e=>(0,n.jsx)(_.s,{uiAction:e}))}),D?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k.Z,{in:!et,className:K.beforeFold__valueDisplay,children:(0,n.jsx)(j.Z,{component:"div",children:"object"==typeof D?null===D?null:"function"==typeof D[Symbol.iterator]||(0,l.isValidElement)(D)?D:(0,n.jsx)(P.J,{...D}):D})}),(0,n.jsx)(k.Z,{in:et,children:ey})]}):ey,ej&&(0,n.jsx)(r.n,{className:K.beforeFold__expandToggle,expanded:et,onClick:(e,t)=>{t.stopPropagation(),ea(e)}})]}),(a=(0,n.jsx)(W.Provider,{value:eF,children:(0,n.jsxs)("div",{className:(0,C.Z)(K.content,{[K["content--hidden"]]:ev&&!et&&ej,[K["content--top"]]:ev,[K["content--smUpTop"]]:el&&ev,[K["content--mdUpTop"]]:ec&&ev,[K["content--noCollapse"]]:ex}),ref:er,children:[c&&(0,n.jsx)("div",{className:(0,C.Z)(K.content__main,{[K["content__main--inline"]]:z}),children:l.Children.map(c,e=>{if(!(0,l.isValidElement)(e))return e;switch(e.type){case L.y:case R.m:return(0,l.cloneElement)(e,{className:(0,C.Z)(K.radioGroupControl,e.props.className)});default:return e}})}),ev&&c&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:K.content__addable,ref:es})})]})}),ev&&(a=(0,n.jsx)(f.V,{additionalActiveNames:A,onChange:eh,children:(0,n.jsx)(m,{onChange:ew,children:a})})),ej&&(a=(0,n.jsx)(k.Z,{className:K.collapse,in:et,children:a})),a)]})})),V=(0,l.forwardRef)((e,t)=>{var a;let r=null===(a=e.activeFieldNames)||void 0===a?void 0:a.join(","),s=(0,l.useMemo)(()=>e.activeFieldNames,[r]);return(0,n.jsx)(O,{...e,activeFieldNames:s,ref:t})});V.displayName="FullPageFormSection",O.displayName="FullPageFormSectionInner"},72537:function(e,t,a){"use strict";a.d(t,{S:function(){return u}});var n=a(24246),r=a(14856),s=a(76691),o=a(93850),i=a(35744),l=a(38944),c=a(80147),d=a.n(c);function u(e){let{className:t,classes:a,value:c,onChange:u,options:m,error:h,helperText:g}=e,p=(0,i.E)(d(),a||{});return(0,n.jsxs)("div",{className:(0,l.Z)("RaiMultiCheck",p.root,t),children:[(0,n.jsx)("div",{className:p.checkboxes,children:m.map(e=>{"object"!=typeof e&&(e={key:e});let{key:t,label:a}=e;return(0,n.jsx)(s.Z,{checked:!!(null==c?void 0:c[t]),className:p.checkbox,icon:(0,n.jsxs)("div",{className:p.checkboxIcon,children:[(0,n.jsx)(r.Z,{className:p.checkboxIcon__selectedCheck}),(0,n.jsx)(o.Z,{children:a||t})]}),checkedIcon:(0,n.jsxs)("div",{className:(0,l.Z)(p.checkboxIcon,p["checkboxIcon--checked"]),children:[(0,n.jsx)(r.Z,{className:p.checkboxIcon__selectedCheck}),(0,n.jsx)(o.Z,{children:a||t})]}),onChange:(e,a)=>null==u?void 0:u({...c,[t]:a})},t)})}),(g||h)&&(0,n.jsx)(o.Z,{variant:"caption",className:(0,l.Z)(p.helperText,{[p["helperText--error"]]:h}),children:g||"error"})]})}u.displayName="MultiCheck"},25528:function(e,t,a){"use strict";a.d(t,{J:function(){return l}});var n=a(24246),r=a(22741),s=a(76264),o=a(27378),i=a(88039);let l=e=>{let{watch:t,content:a,dependencies:l}=e,c=(0,o.useMemo)(()=>Array.isArray(t)?t:[t],[JSON.stringify(t)]),d=(0,i.Gc)(),u=d.watch(c),m=(0,o.useMemo)(()=>(0,r.GA)(c,(e,t)=>[e,u[t]]),[c,u]),h=(0,s.T)(a);return(0,n.jsx)(n.Fragment,{children:(0,o.useMemo)(()=>h({...d.getValues(),...m}),[m,...l||[]])})};l.displayName="RhfExtractor"},46843:function(e,t,a){"use strict";a.d(t,{r:function(){return m}});
1var n=a(24246),r=a(35744),s=a(14856),o=a(36540),i=a(50929),l=a(87193),c=a(38944),d=a(58637),u=a.n(d);let m=e=>{let{className:t,classes:a,big:d=!1,label:m,withLabel:h=!1,disabled:g,...p}=e,_=(0,r.E)(u(),a||{});return d?(0,n.jsx)(i.Z,{className:(0,c.Z)("RaiSwitch",_.root,_["root--big"],t,{[_["root--disabled"]]:!!g}),icon:(0,n.jsx)("span",{className:(0,c.Z)(_.switchIcon,_["switchIcon--disabled"]),children:(0,n.jsx)(o.Z,{color:"disabled"})}),checkedIcon:(0,n.jsx)("span",{className:(0,c.Z)(_.switchIcon,_["switchIcon--enabled"]),children:(0,n.jsx)(s.Z,{color:"inherit"})}),classes:{root:(0,c.Z)(_.root,_["root--big"]),switchBase:(0,c.Z)(_.switchBase,_["switchBase--big"])},disabled:g,...p}):h?(0,n.jsx)(l.Z,{className:(0,c.Z)("RaiSwitch",_.root,t),control:(0,n.jsx)(i.Z,{...p}),label:m,classes:{label:_.switchLabel}}):(0,n.jsx)(i.Z,{className:(0,c.Z)("RaiSwitch",_.root,t,{[_["root--disabled"]]:!!g}),disabled:g,...p})};m.displayName="Switch"},34553:function(e,t,a){"use strict";a.d(t,{c:function(){return s}});var n=a(81250),r=a(15855);let s=e=>{let t=(0,n.Z)(),a=(0,r.Z)(t.breakpoints.down("sm")),s=(0,r.Z)(t.breakpoints.down("md")),o=(0,r.Z)(t.breakpoints.down("lg")),i=(0,r.Z)(t.breakpoints.down("xl"));return e||(a?"xs":s?"sm":o?"md":i?"lg":"xl")}},46032:function(e,t,a){"use strict";a.d(t,{E:function(){return x}});var n=a(24246),r=a(88039),s=a(96504),o=a(87193),i=a(53504),l=a(69008),c=a(38944),d=a(27378),u=a(75310),m=a(30279),h=a(93850);let g=(0,l.Z)(e=>({root:{},header:{"&.MuiTypography-h4":{marginBottom:e.spacing(4),"& + $description":{marginBottom:e.spacing(4),marginTop:e.spacing(-4)}},"&.MuiTypography-h5":{marginBottom:e.spacing(3),"& + $description":{marginBottom:e.spacing(3),marginTop:e.spacing(-3)}},"&.MuiTypography-h6":{lineHeight:1.2}},description:{}}),{classNamePrefix:"FullPageFormSectionHeader"}),p=e=>{let{classes:t,className:a,header:r,description:s,headerVariant:o,jumpTarget:i}=e,l=g({classes:t});return r||s?(0,n.jsxs)(m.Z,{className:(0,c.Z)(a,l.root),id:i,children:[r&&(0,n.jsx)(h.Z,{variant:o||"h6",className:l.header,children:r}),s&&(0,n.jsx)(h.Z,{className:l.description,children:s})]}):(0,n.jsx)(n.Fragment,{})};var _=a(46843);let f=(0,l.Z)(e=>({root:{},switch:{},switchFCLabel:{background:"transparent",justifyContent:"space-between",margin:0,width:"100%"},checkedSwitch:{marginBottom:0,"& $switchFCLabel":{marginBottom:e.spacing()}},uncheckedSwitch:{marginBottom:0}}),{classNamePrefix:"FullPageFormSwitchSection"}),v=e=>{let{className:t,classes:a,FullPageFormSectionClasses:r,checked:s,header:l,headerVariant:m,description:h,children:g,SwitchProps:v,jumpTarget:x,onChange:j,...b}=e,S=f({classes:a}),[k,w]=(0,d.useState)(!1),y=(0,d.useCallback)(async e=>{w(!0),await (null==j?void 0:j(e.target.checked)),w(!1)},[j]);return(0,n.jsxs)(u.k,{className:(0,c.Z)(S.root,t,{[S.checkedSwitch]:!!g&&s,[S.uncheckedSwitch]:!!g&&!s}),classes:r,...b,children:[(0,n.jsx)(o.Z,{className:S.switchFCLabel,control:(0,n.jsx)(_.r,{color:"primary",className:S.switch,checked:s,onChange:y,big:!0,...v}),labelPlacement:"start",disabled:k,label:(0,n.jsx)(p,{header:l,jumpTarget:x,headerVariant:m,description:h})}),g&&s&&(0,n.jsx)(i.Z,{in:s,children:(0,n.jsx)(u.k,{children:g})})]})},x=e=>{let{name:t,form:a,onChange:o,...i}=e;return a=(0,s.y)(a),(0,n.jsx)(r.Qr,{name:t,control:a.control,render:e=>{let{field:{value:t,onChange:a,name:r}}=e;return(0,n.jsx)(v,{checked:t,onChange:async e=>{a(e),await (null==o?void 0:o(e))},...i,SwitchProps:{...i.SwitchProps,name:r}})}})}},84774:function(e,t,a){"use strict";a.d(t,{Q:function(){return l}});var n=a(24246),r=a(96256),s=a(88039),o=a(96504),i=a(76289);let l=e=>{let{name:t,form:a,onChange:l,label:c,...d}=e;return a=(0,o.y)(a),(0,r.H)(t),(0,n.jsx)(s.Qr,{name:t,control:a.control,render:e=>{let{field:{value:t,onChange:a,onBlur:r,name:s},fieldState:{error:o}}=e,u=(null==o?void 0:o.message)||"invalid value";return(0,n.jsx)(i.z,{value:t,name:s,onChange:(e,t)=>
1{null==l||l(e,t),a(e)},onBlur:r,label:o?u:c,error:!!o,...d})}})}},64330:function(e,t,a){"use strict";a.d(t,{t:function(){return r}});var n=a(27378);let r=e=>(0,n.useMemo)(e,[])},98518:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eZ}});var n=a(24246),r=a(28238),s=a(721),o=a(79115),i=a(64330),l=(0,a(93540).Z)([(0,n.jsx)("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),(0,n.jsx)("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),(0,n.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m4.41-6.11c-.35-.22-.82-.11-1.03.24-.74 1.17-2 1.87-3.38 1.87s-2.64-.7-3.38-1.88c-.22-.35-.68-.46-1.03-.24s-.46.68-.24 1.03C8.37 16.54 10.1 17.5 12 17.5s3.63-.97 4.65-2.58c.22-.35.11-.81-.24-1.03"},"2")],"SentimentSatisfiedRounded"),c=a(87193),d=a(76691),u=a(21777),m=a(25734),h=a(5777),g=a(60189),p=a(35744),_=a(76264),f=a(38944),v=a(27378),x=a(88039),j=a(12290),b=a(75310),S=a(46032),k=a(41633),w=a.n(k);let y=e=>{let{className:t,classes:a,userEventDisplayPreferences:r,onSubmit:k}=e,y=(0,p.E)(w(),a||{}),F=e=>({lockEmoji:e.lockEmoji,freeEmoji:e.freeEmoji,busyEmoji:e.busyEmoji,progressEmoji:e.progressEmoji,doneEmoji:e.doneEmoji,warningEmoji:e.warningEmoji,description:e.description,attribution:e.attribution,prefix:e.prefix}),T=(e,t)=>({...t,lockEmoji:e.lockEmoji,freeEmoji:e.freeEmoji,progressEmoji:e.progressEmoji,busyEmoji:e.busyEmoji,doneEmoji:e.doneEmoji,warningEmoji:e.warningEmoji,description:e.description,attribution:e.attribution,prefix:e.prefix}),C=(0,i.t)(()=>F(r)),N=(0,x.cI)({defaultValues:C}),{fireConfettiCannon:E}=(0,o.u)(),[Z,D,I,M,R,L,P,W]=N.watch(["lockEmoji","freeEmoji","busyEmoji","progressEmoji","doneEmoji","warningEmoji","description","prefix"]),B=(0,v.useMemo)(()=>{let e=[];return(D&&e.push("\uD83C\uDD93"),I&&e.push("\uD83D\uDEE1"),Z&&e.push("\uD83D\uDD12"),M&&e.push("\uD83D\uDC4D"),R&&e.push("✅"),L&&e.push("⚠️"),e.length)?"".concat(e.join(", ")," ").concat(W?"before":"after"," event title"):"None"},[I,M,R,D,Z,W,L]),H=(0,_.T)(e=>{k(T(e,r))});return(0,n.jsxs)(j.P,{className:(0,f.Z)(y.root,t),form:N,onSubmit:H,children:[(0,n.jsx)(s.R,{label:"Emojis",jumpTarget:"emojis",description:"Select the emojis you'd like to show on your Tasks, Habits, and Smart Meetings. You can also customize where in the title they should appear.",name:"emojis",displayValueOverride:B,children:(0,n.jsxs)(b.k,{children:[(0,n.jsx)(b.k,{header:"Select the emojis to show",headerVariant:"h6",children:(0,n.jsxs)("div",{className:y.emojisList,children:[(0,n.jsx)(c.Z,{label:"",className:(0,f.Z)(y.emojiControlBox,{[y["emojiControlBox--selected"]]:!!D}),control:(0,n.jsxs)("div",{className:y.emojiControlBox__content,children:[(0,n.jsx)(d.Z,{className:y.emojiControlBox__checkbox,onChange:()=>N.setValue("freeEmoji",!D),checked:D}),(0,n.jsx)("span",{className:y.emojiControlBox__emoji,children:"\uD83C\uDD93"}),"Free time"]})}),(0,n.jsx)(c.Z,{label:"",className:(0,f.Z)(y.emojiControlBox,{[y["emojiControlBox--selected"]]:!!I}),control:(0,n.jsxs)("div",{className:y.emojiControlBox__content,children:[(0,n.jsx)(d.Z,{className:y.emojiControlBox__checkbox,onChange:()=>N.setValue("busyEmoji",!I),checked:I}),(0,n.jsx)("span",{className:y.emojiControlBox__emoji,children:"\uD83D\uDEE1"}),"Busy"]})}),(0,n.jsx)(c.Z,{label:"",className:(0,f.Z)(y.emojiControlBox,{[y["emojiControlBox--selected"]]:!!Z}),control:(0,n.jsxs)("div",{className:y.emojiControlBox__content,children:[(0,n.jsx)(d.Z,{className:y.emojiControlBox__checkbox,onChange:()=>N.setValue("lockEmoji",!Z),checked:Z}),(0,n.jsx)("span",{className:y.emojiControlBox__emoji,children:"\uD83D\uDD12"}),"Locked"]})}),(0,n.jsx)(c.Z,{label:"",className:(0,f.Z)(y.emojiControlBox,{[y["emojiControlBox--selected"]]:!!M}),control:(0,n.jsxs)("div",{className:y.emojiControlBox__content,children:[(0,n.jsx)(d.Z,{className:y.emojiControlBox__checkbox,onChange:()=>N.setValue("progressEmoji",!M),checked:M}),(0,n.jsx)("span",{className:y.emojiControlBox__emoji,children:"\uD83D\uDC4D"}),"Task progress"]})}),(0,n.jsx)(c.Z,{label:"",className:(0,f.Z)(y.emojiControlBox,{[y["emojiControlBox--selected"]]:!!R}),control:(0,n.jsxs)("div",{className:y.emojiControlBox__content,children:[(0,n.jsx)(d.Z,{className:y.emojiControlBox__checkbox,onChange:()=>N.setValue("doneEmoji",!R),checked:R}),(0,n.jsx)("span",{className:y.emojiControlBox__emoji,children:"✅"}),"Completed"]})}),(0,n.jsx)(c.Z,{label:"",className:(0,f.Z)(y.emojiControlBox,{[y["emojiControlBox--selected"]]:!!L}),control:(0,n.jsxs)("div",{className:y.emojiControlBox__content,children:[(0,n.jsx)(d.Z,{className:y.emojiControlBox__checkbox,onChange:()=>N.setValue("warningEmoji",!L),checked:L}),(0,n.jsx)("span",{className:y.emojiControlBox__emoji,children:"⚠️"}),"Can't be scheduled"]})})]})}),(D||I||Z||R||L)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.k,{header:"Emojis should appear",headerVariant:"h6",children:(0,n.jsxs)(u.Z,{className:y.radioGroup,value:W,onChange:(e,t)=>
1N.setValue("prefix","true"===t),children:[(0,n.jsx)(c.Z,{className:(0,f.Z)(y.radioGroup__radio,{[y["radioGroup__radio--contained"]]:W}),classes:{label:y.radioGroup__radio__label},value:"true",control:(0,n.jsx)(m.Z,{color:"primary"}),label:"Before event title"}),(0,n.jsx)(c.Z,{className:(0,f.Z)(y.radioGroup__radio,{[y["radioGroup__radio--contained"]]:!W}),classes:{label:y.radioGroup__radio__label},value:"false",control:(0,n.jsx)(m.Z,{color:"primary"}),label:"After event title"})]})}),(0,n.jsx)(b.k,{children:(0,n.jsx)(h.Z,{severity:"info",className:y.celebrateAlert,classes:{icon:y.celebrateAlert__icon},action:(0,n.jsx)(g.Z,{variant:"text",onClick:()=>E(),children:"Celebrate"}),icon:(0,n.jsx)(l,{}),children:"Emoji settings for Calendar Sync and more coming soon..."})})]})]})}),(0,n.jsx)(s.R,{label:"Calendar event tips",jumpTarget:"eventTips",name:"description",getDisplayValue:()=>P?"Enabled":"Disabled",children:(0,n.jsx)(S.E,{name:"description",description:"Show quick tips in the description of Habits & Smart Meeting events."})})]})};y.displayName="EventDisplaySettingsForm";var F=a(57791),T=a(92736),C=a(33862),N=a(23384),E=a(71305),Z=a(23066),D=a(31435),I=a(93850),M=a(45944),R=a(32937),L=a(71774),P=a(48338),W=a(86233),B=a(77670),H=a(86874),G=a(89499);let O=(0,a(21436).L5)()({16:{label:"Optimize for being available for Habits and meetings",description:"Best for those who prefer meetings & Habits over Tasks (including at risk or overdue Tasks). Task due dates & work remaining will have little effect on how Tasks schedule relative to meetings, Habits, & other Tasks.",prioritizes:["Meetings & Habits"],deprioritizes:["Lower-priority Tasks with due dates coming up","Lower-priority Tasks with significant work remaining"]},17:{label:"Optimize for Tasks over non-Critical Habits and meetings",description:"Best for those who prefer Tasks over meetings in order to achieve deadlines. Due dates & work remaining on Tasks will strongly influence how Tasks schedule relative to meetings, Habits, & other Tasks.",prioritizes:["Tasks with due dates coming up","Tasks with significant work remaining"],deprioritizes:["Meetings & Habits with lower-than-Critical priority"]},18:{label:"Optimize for Tasks over non-Critical Habits and meetings, but ignore work remaining",description:"Best for those who prefer Tasks due soon over meetings & Habits in order to achieve deadlines. Task due dates will strongly influence how Tasks schedule relative to meetings, Habits, & other Tasks.  Work remaining will have little effect.",prioritizes:["Tasks with due dates coming up"],deprioritizes:["Meetings & Habits with lower-than-Critical priority","Lower-priority Tasks with significant work remaining"]}}),V=[16,17,18];var A=a(63661),U=a(86922),z=a(30027),J=a(18250),Y=a(53504),K=a(1602),Q=a(91608),X=a(25846),q=a(56451),$=a(22741),ee=a(17795),et=a(92024),ea=a(77755),en=a(14875),er=a(45402),es=a.n(er),eo=a(46790),ei=a(96256),el=a(96504),ec=a(59759),ed=a(72537);let eu=e=>{let{name:t,form:a,onChange:r,rules:s,helperText:o,error:i,...l}=e;a=(0,el.y)(a),(0,ei.H)(t);let c=(0,ec.FR)(null==s?void 0:s.validate,e=>{let t=Object.values(e).filter(e=>!!e).length,a=(null==s?void 0:s.min)!==void 0&&s.min||(null==s?void 0:s.minLength)!==void 0&&s.minLength;if(!1!==a)switch(typeof a){case"string":return a;case"number":if(t>=a)return!0;break;case"object":let{message:n,value:r}=a;if("number"==typeof r&&t<r)return n}let o=(null==s?void 0:s.max)!==void 0&&s.max||(null==s?void 0:s.maxLength)!==void 0&&s.maxLength;if(!1!==o)switch(typeof o){case"string":return o;case"number":if(t<=o)return!0;break;case"object":let{message:i,value:l}=o;if("number"==typeof l&&t>l)return i}});return s={...s,validate:c},(0,n.jsx)(x.Qr,{name:t,control:a.control,rules:s,render:e=>{let{field:{value:t,onChange:a,name:s},fieldState:{error:c}}=e;return(0,n.jsx)(ed.S,{value:t,onChange:e=>{a(e),null==r||r(e)},error:!!c||i,helperText:(null==c?void 0:c.message)?null==c?void 0:c.message:o,...l})}})};var em=a(17558),eh=a(21810),eg=a(92785);let ep=e=>{let{name:t,form:a,onChange:r,rules:s,interceptor:o,...i}=e;a=(0,el.y)(a),(0,ei.H)(t);
1let{field:{value:l,onChange:c}}=(0,x.bc)({name:t,control:a.control,rules:s});return(0,n.jsx)(eg.ZP,{value:l,onChange:e=>{var t,a;let n=o?"".concat(o(parseInt(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value))):null==e?void 0:null===(a=e.target)||void 0===a?void 0:a.value;e.target.value=n,c(e),null==r||r(e)},name:t,...i})};ep.displayName="RhfSlider";var e_=a(84774);let ef="Start of the day",ev="Start of the week",ex=e=>Object.entries(e).filter(e=>{let[,t]=e;return t}).map(e=>{let[t]=e;return parseInt(t)}),ej=(e,t)=>{var a,n,r;return{autoLockForMeetings:e.features.assistSettings.autoLockForMeetings||"SAME_DAY",autoLockForNonMeetings:e.features.assistSettings.autoLockForNonMeetings||"OFF",meetingStartIntervals:(0,$.jG)(e.features.availableMeetingTimes||[]),schedulerVersion:e.features.scheduler,defaultBusyStatus:e.features.rsvpSetting.calendarSync.treatNeedsActionRsvpAs,autoWorkflowSettingsCategory:e.features.taskSettings.autoWorkflowSettings.category?e.features.taskSettings.autoWorkflowSettings.category:"NOTHING",autoWorkflowSettingsDurationToWaitInMs:e.features.taskSettings.autoWorkflowSettings.durationToWaitInDays?e.features.taskSettings.autoWorkflowSettings.durationToWaitInDays*Q.Jg:3*Q.Jg,rescheduleUnstarted:!!e.features.assistSettings.rescheduleUnstarted,schedulerWindowWeeks:e.features.assistSettings.schedulerWindowWeeks||t||3,weekStart:(null===(a=e.settings)||void 0===a?void 0:a.weekStart)||0,dateFieldOrder:(null===(n=e.settings)||void 0===n?void 0:n.dateFieldOrder)||"MDY",format24HourTime:(null===(r=e.settings)||void 0===r?void 0:r.format24HourTime)||!1}},eb=(e,t)=>({...t,settings:{...t.settings,weekStart:e.weekStart,dateFieldOrder:e.dateFieldOrder,format24HourTime:e.format24HourTime},features:{...t.features,assistSettings:{...t.features.assistSettings,autoLockForMeetings:e.autoLockForMeetings,autoLockForNonMeetings:e.autoLockForNonMeetings,rescheduleUnstarted:e.rescheduleUnstarted,schedulerWindowWeeks:e.schedulerWindowWeeks},rsvpSetting:{...t.features.rsvpSetting,calendarSync:{...t.features.rsvpSetting.calendarSync,treatNeedsActionRsvpAs:e.defaultBusyStatus}},availableMeetingTimes:ex(e.meetingStartIntervals),scheduler:e.schedulerVersion,taskSettings:{...t.features.taskSettings,autoWorkflowSettings:{...t.features.taskSettings.autoWorkflowSettings,category:e.autoWorkflowSettingsCategory,durationToWaitInDays:"NOTHING"===e.autoWorkflowSettingsCategory?void 0:e.autoWorkflowSettingsDurationToWaitInMs/Q.Jg}}}}),eS=[0,15,30,45];function ek(e){switch(e){case"SAME_DAY":return ef;case"SAME_WEEK":return ev;default:return"Off"}}let ew=e=>{var t,a,r,o,l;let{className:c,classes:d,onSubmit:u,onSchedulingBehaviorSubmit:m,onRSVPSettingsSubmit:g,onWeekStartSubmit:S,onDateFieldOrderSubmit:k,onFormat24HourTimeSubmit:w,schedulerWeeksUsageLimit:y}=e,T=(0,p.E)(es(),d||{}),C=(0,U.aF)(),{entitlementTable:N}=(0,A.Z)(),E=(0,i.t)(()=>ej(C,y)),Z=(0,x.cI)({defaultValues:E}),[M,R,L,$,er,ei,el]=Z.watch(["meetingStartIntervals","autoWorkflowSettingsCategory","autoWorkflowSettingsDurationToWaitInMs","rescheduleUnstarted","autoLockForMeetings","autoLockForNonMeetings","schedulerWindowWeeks"]),ec=(0,v.useCallback)(async e=>{C&&await u(eb(e,C))},[u,C]),ed=(0,v.useMemo)(()=>{let e=8,t=Object.entries(M).filter(e=>{let[,t]=e;return!!t}).sort((e,t)=>{let[a]=e,[n]=t;return(0,ea.um)(a,n)}).map(e=>{let[t]=e;return parseInt(t)});if(t.length)return(0,X.n)(5,a=>(a>=t.length&&(a%=t.length,e++),"".concat(e,":").concat((0,q.Ni)(t[a],2))))},[M]),eg=(0,v.useMemo)(()=>{let e="";if($)e="Start Habits & Tasks manually";else{let t="",a=L/Q.Jg;switch(R){case"NOTHING":default:t="do nothing with Tasks done scheduling";break;case"REOPEN":t="add Tasks done scheduling back to calendar after ".concat(a," ").concat(1===L?"day":"days");break;case"CLOSE":t="mark any Tasks done scheduling done after ".concat(a," ").concat(1===a?"day":"days")}e="Start when scheduled, ".concat(t)}return e},[$,R,L]),ew=(0,v.useMemo)(()=>{let e="Set how far in advance you'd like to schedule your Focus Time, Smart Meetings, Habits, Tasks & Buffer Time.";return(null==C?void 0:C.edition)==="LITE"?e:(null==C?void 0:C.edition)==="LITE_V2"||(null==C?void 0:C.edition)==="LITE_V3"?e+" Calendar Sync events will schedule up to 1 week out.":e+" Calendar Sync events will schedule up to 12 months out."},[null==C?void 0:C.edition]),ey=(0,_.T)((e,t)=>{t&&("defaultBusyStatus"===e&&t.defaultBusyStatus?g({calendarSync:{treatNeedsActionRsvpAs:t.defaultBusyStatus}}):"weekStart"===e?S(t.weekStart):"dateFieldOrder"===e?k(t.dateFieldOrder):"format24HourTime"===e?w(t.format24HourTime):m({category:t.autoWorkflowSettingsCategory,durationToWaitInDays:"NOTHING"!==t.autoWorkflowSettingsCategory&&t.autoWorkflowSettingsDurationToWaitInMs?t.autoWorkflowSettingsDurationToWaitInMs/Q.Jg:void 0,rescheduleUnstarted:!!t.rescheduleUnstarted}))}),eF=(0,v.useMemo)(()=>Array.from(Array(null!=y?y:3).keys()).map(e=>e+1).map(e=>({value:e,label:e==el?(0,H.M0)(e,"week"):e})),[el,y]);return(0,n.jsxs)(j.P,{className:(0,f.Z)(T.root,c),form:Z,onSubmit:ec,interceptors:["defaultBusyStatus","rescheduleUnstarted","autoWorkflowSettingsCategory","autoWorkflowSettingsDurationToWaitInMs","weekStart","dateFieldOrder","format24HourTime"],handleInterceptors:ey,children:[(0,n.jsx)(en.TB,{popperPlacement:"left",QuestOrbProps:{offsetX:-24,offsetY:20},config:[{group:"SETTINGS",quest:"SETTINGS_OVERVIEW_2",step:"AUTO_LOCKING"}]}),(0,n.jsxs)(s.R,{label:"Scheduling window",name:"schedulerWindowWeeks",getDisplayValue:e=>(0,H.M0)(e,"week"),description:ew,children:[(0,n.jsx)("div",{className:T.schedulingWindowSlider,children:(0,n.jsx)(ep,{name:"schedulerWindowWeeks",marks:eF,min:1,step:1,max:null!=y?y:3})}),(0,n.jsx)(Y.Z,{in:12!=y&&!!N&&!!(null==C?void 0:C.edition),children:(0,n.jsx)(h.Z,{severity:"info",className:T.schedulingWindowAlert,classes:{message:T.schedulingWindowAlertMessage},children:(0,n.jsxs)(I.Z,{children:["Unlock up to ",null==N?void 0:N[null!==(o=null==C?void 0:C.edition)&&void 0!==o?o:"STARTER"].SCHEDULER_WEEKS.nextValue," weeks of future scheduling with"," ",(0,n.jsx)(W.m,{alwaysUpsell:!0,className:T.upsellBadge,entitlement:"SCHEDULER_WEEKS",fallbackElement:(0,n.jsx)(B.N,{entitlement:"SCHEDULER_WEEKS",mode:"add",className:T.upsellBadge})}),(0,n.jsx)(P.r,{referrer:"entitlement",entitlement:"SCHEDULER_WEEKS",className:T.upsellLink,variant:"outlined",children:"Upgrade now"})]})})})]}),(0,n.jsx)(s.R,{name:"weekStart",label:"Start of week",displayValueOverride:(0,et.a5)(ee.sb[null!==(l=null==C?void 0:null===(t=C.settings)||void 0===t?void 0:t.weekStart)&&void 0!==l?l:0]),className:T.fields,description:"Select the day of the week that you'd like to see as the first day on your weekly calendar. ",children:(0,n.jsx)("div",{className:T.columnContainer,children:!!(0,F.un)(C)&&(0,n.jsx)(e_.Q,{variant:"filled",label:"Start of week",size:"small",name:"weekStart","aria-label":"Start of week",items:ee.sb.map((e,t)=>({label:(0,et.a5)(e),value:t}))})})}),(0,n.jsx)(s.R,{name:"dateFieldOrder",label:"Date Format",displayValueOverride:(null==C?void 0:null===(a=C.settings)||void 0===a?void 0:a.dateFieldOrder)&&ee.s9[C.settings.dateFieldOrder].label,className:T.fields,description:"Select the date format you'd like to see in the Reclaim Planner.",children:(0,n.jsx)("div",{className:T.columnContainer,children:(0,n.jsx)(e_.Q,{variant:"filled",label:"Date Format",size:"small",name:"dateFieldOrder","aria-label":"Date Format",items:ee.Tb.map((e,t)=>({label:ee.s9[e].label,value:e}))})})}),(0,n.jsx)(s.R,{name:"format24HourTime",label:"Time Format",displayValueOverride:(null==C?void 0:null===(r=C.settings)||void 0===r?void 0:r.format24HourTime)!==void 0&&ee.pd["".concat(C.settings.format24HourTime)].example,className:T.fields,description:"Select the time format you'd like to see in the Reclaim Planner.",children:(0,n.jsx)("div",{className:T.columnContainer,children:(0,n.jsx)(e_.Q,{variant:"filled",label:"Time Format",size:"small",name:"format24HourTime","aria-label":"Time Format",items:[!0,!1].map(e=>
1({label:ee.pd["".concat(e)].example,value:e}))})})}),(0,n.jsx)(s.R,{name:"autoLockForNonMeetings",label:"Auto-lock",displayValueOverride:ek(er)===ek(ei)?"".concat((0,F.un)(C)?ek(er)+" for Smart Meetings, ":"","Focus Time, Habits & Tasks"):"".concat((0,F.un)(C)?ek(er)+" for Smart Meetings, ":"").concat(ek(ei)," for Focus Time, Habits & Tasks"),className:T.fields,description:"Automatically lock your ".concat((0,F.un)(C)?"Smart Meetings, ":"","Focus Time, Habits & Tasks to prevent your schedule from changing on short notice. Locked\n                events won't reschedule when overbooked & will show to others as busy."),children:(0,n.jsxs)("div",{className:T.columnContainer,children:[!!(0,F.un)(C)&&(0,n.jsx)(e_.Q,{variant:"filled",label:"Smart Meetings",size:"small",name:"autoLockForMeetings","aria-label":"Auto-lock for Smart Meetings",items:[{label:"Off",value:"OFF"},{label:ef,value:"SAME_DAY"},{label:ev,value:"SAME_WEEK"}]}),(0,n.jsx)(e_.Q,{variant:"filled",label:"Focus Time, Habits & Tasks",size:"small",name:"autoLockForNonMeetings","aria-label":"Auto-lock for Focus Time, Habits & Tasks",items:[{label:"Off",value:"OFF"},{label:ef,value:"SAME_DAY"},{label:ev,value:"SAME_WEEK"}]})]})}),(0,n.jsxs)(s.R,{name:"meetingStartIntervals",label:"Start time intervals for meetings",getDisplayValue:e=>{let t=ex(e);return t?t.sort(ea.Ae).map(e=>":".concat((0,q.Ni)(e,2))).join(", "):"Anytime"},description:"Select the intervals available for Reclaim when booking Scheduling Links or Smart Meetings.",jumpTarget:"intervals",children:[(0,n.jsx)(eu,{name:"meetingStartIntervals",options:eS.map(e=>({key:e,label:":".concat((0,q.Ni)(e,2))})),rules:{min:{message:"Must select at least one interval",value:1}}}),ed&&(0,n.jsx)(b.k,{header:"Example times with selection",headerVariant:"h6",children:(0,n.jsx)("div",{className:T.intervalExamples,children:ed.map(e=>(0,n.jsx)("div",{className:T.intervalExamples__example,children:e},e))})})]}),(0,n.jsx)(s.R,{label:"RSVP settings for Calendar Sync events",name:"defaultBusyStatus",getDisplayValue:e=>{switch(e){case"BUSY":return"Show synced events without an RSVP as busy";case"FREE":return"Show synced events without an RSVP as free"}},description:"Control whether to show synced events from Calendar Sync as free or busy when you haven't RSVPed to them.",children:(0,n.jsxs)(eh.m,{name:"defaultBusyStatus",className:T.radioGroup,children:[(0,n.jsx)(em.S,{value:"FREE",header:(0,n.jsxs)(n.Fragment,{children:["Show synced events without an RSVP as ",(0,n.jsx)("strong",{children:"free"}),"."]})}),(0,n.jsx)(em.S,{value:"BUSY",header:(0,n.jsxs)(n.Fragment,{children:["Show synced events without an RSVP as ",(0,n.jsx)("strong",{children:"busy"}),"."]})})]})}),(0,n.jsxs)(s.R,{name:"rescheduleUnstarted",label:(0,n.jsxs)(n.Fragment,{children:["Starting & managing done scheduling",(0,n.jsx)(G.Z,{className:T.helpTip,interactive:!0,variant:"info",title:(0,n.jsxs)(n.Fragment,{children:["Control whether Reclaim automatically reschedules Tasks & Habits when you haven't explicitly started or completed them."," ",(0,n.jsx)(D.Z,{href:"https://help.reclaim.ai/en/articles/6937489-auto-rescheduling-settings-for-tasks-and-habits",target:"_blank",rel:"noreferrer",children:"Learn more"})]})})]}),displayValueOverride:eg,jumpTarget:"tasksDoneScheduling",children:[(0,n.jsxs)(eh.m,{name:"rescheduleUnstarted","aria-label":"visibility",children:[(0,n.jsx)(em.S,{value:!1,header:"Start ".concat((0,F.un)(C)?"Habits & ":"","Tasks when scheduled"),image:!1===$&&(0,n.jsx)("img",{className:T.animation,src:"/img/start-when-scheduled.svg",alt:""}),checkedContent:(0,n.jsxs)(n.Fragment,{children:["Reclaim will assume you start your ",!!(0,F.un)(C)&&"Habits or ","Task when it's scheduled."]})}),(0,n.jsx)(em.S,{value:!0,header:"Start ".concat((0,F.un)(C)?"Habits & ":"","Tasks manually"),image:!0===$&&(0,n.jsx)("img",{className:T.animation,style:{height:150},src:"/img/start-manually.svg",alt:""}),checkedContent:(0,n.jsxs)(n.Fragment,{children:["Tell Reclaim when to start a ",!!(0,F.un)(C)&&"Habit or ","Task by manually tapping Start. If you don't start it during the event, Reclaim will assume you didn't do it & reschedule the event as soon as it can."]})})]}),(0,n.jsx)(b.k,{header:"Tasks that are done scheduling",headerVariant:"h6",children:$?(0,n.jsxs)(I.Z,{children:["This setting can only be used when Habits & Tasks are set to start when scheduled (instead of manually). You can enable ",(0,n.jsx)("em",{children:"Start Habits & Tasks when scheduled"})," above."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(eh.m,{name:"autoWorkflowSettingsCategory","aria-label":"visibility",className:T.radioGroup,children:[(0,n.jsx)(em.S,{value:"NOTHING",header:"Do nothing",children:"I will either add time to it so that it gets back on the calendar or mark it done."}),(0,n.jsxs)(em.S,{value:"REOPEN",header:"Add it back to my calendar for me until I mark it done",children:["If I don't add time to it or mark it done within"," ",L?L/Q.Jg:"{}"," ",L===Q.Jg?"day":"days",", add it back to my calendar.","REOPEN"===R&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(I.Z,{variant:"h6",className:T.durationToWaitHeader,children:"Duration to wait"}),(0,n.jsxs)("div",{className:T.inputAndDays,children:[(0,n.jsx)(eo.K,{name:"autoWorkflowSettingsDurationToWaitInMs",InputProps:{classes:{root:T.inputAndDays__durationToWaitInput}},getDurationStringOptions:{validUnits:["day"],unitDisplay:"none"},defaultUnits:[[1/0,"day"]],variant:"outlined",size:"small",rules:{validate:{minimum:e=>{if(e<Q.Jg)return"Must be at least 1 day"},wholeNumber:e=>{if(e&&e*Q.Jg%1!=0)return"Must be a whole number"},maxiumum:e=>{if(e>60*Q.Jg)return"Must be less than 60 days"}}}}),(0,n.jsx)(I.Z,{children:L===Q.Jg?"day":"days"})]})]})]}),(0,n.jsxs)(em.S,{value:"CLOSE",header:"Mark it done for me",children:["If I don't add time to it or mark it done within"," ",L?L/Q.Jg:"{}"," ",L===Q.Jg?"day":"days",", mark it done.","CLOSE"===R&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(I.Z,{variant:"h6",className:T.durationToWaitHeader,children:"Duration to wait"}),(0,n.jsxs)("div",{className:T.inputAndDays,children:[(0,n.jsx)(eo.K,{name:"autoWorkflowSettingsDurationToWaitInMs",InputProps:{classes:{root:T.inputAndDays__durationToWaitInput}},getDurationStringOptions:{validUnits:["day"],unitDisplay:"none"},defaultUnits:[[1/0,"day"]],variant:"outlined",size:"small",rules:{validate:{minimum:e=>{if(e<Q.Jg)return"Must be at least 1 day"},wholeNumber:e=>{if(e&&e*Q.Jg%1!=0)return"Must be a whole number"},maxiumum:e=>{if(e>60*Q.Jg)return"Must be less than 60 days"}}}}),(0,n.jsx)(I.Z,{children:L===Q.Jg?"day":"days"})]})]})]})]}),((null==C?void 0:C.features.taskSettings.autoWorkflowSettings.category)!==R||(null==C?void 0:C.features.taskSettings.autoWorkflowSettings.durationToWaitInDays)!==L/Q.Jg)&&(0,n.jsx)(K.Z,{children:"Changes may take a minute to appear"})]})})]}),(0,n.jsx)(s.R,{label:"Event scheduling",name:"schedulerVersion",getDisplayValue:e=>{var t;return null===(t=O[e])||void 0===t?void 0:t.label},description:"Adjust how Reclaim schedules Tasks, Habits, & meetings based on Tasks.",jumpTarget:"eventScheduling",children:(0,n.jsx)(eh.m,{name:"schedulerVersion",className:T.radioGroup,children:V.map(e=>(0,n.jsx)(em.S,{value:e,header:O[e].label,checkedContent:(0,n.jsxs)(n.Fragment,{children:[O[e].description,(0,n.jsxs)("div",{className:T.proConLists,children:[(0,n.jsxs)("div",{className:T.proConLists__pros,children:[(0,n.jsx)(I.Z,{className:T.proConLists__heading,variant:"inherit",children:"Prioritizes"}),(0,n.jsx)("ul",{children:O[e].prioritizes.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)(z.Z,{className:T.proConLists__icon,fontSize:"small"}),e]},e))})]}),(0,n.jsxs)("div",{className:T.proConLists__cons,children:[(0,n.jsx)(I.Z,{className:T.proConLists__heading,variant:"inherit",children:"Deprioritizes"}),(0,n.jsx)("ul",{children:O[e].deprioritizes.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)(J.Z,{className:T.proConLists__icon,fontSize:"small"}),e]},e))})]})]})]})},e))})})]})};var ey=a(55695),eF=a(36775),eT=a.n(eF),eC=a(42744),eN=a(80729);let eE=e=>{let{}=e,{sendNotification:t}=(0,E.z)(),{sendNotification:a}=(0,C.M)(1250),{user:s}=(0,U.ec)(),o=(0,U._y)(),{usageLimit:i,loading:l}=(0,N.W)("SCHEDULER_WEEKS"),c=(0,_.T)(async e=>{try{await (null==o?void 0:o.patchUser(e))}catch(e){throw t({message:(0,n.jsxs)(n.Fragment,{children:["There was an unexpected error updating your user settings. Please try again and"," ",(0,n.jsx)(L.u,{lead:"I'm having trouble updating my user settings...",children:"contact support"}
1)," ","if this problem persists."]})}),Error("Failed to update user scheduling settings")}}),d=(0,_.T)(async e=>{try{await r.T.users.updateEventDisplayPreferences(e)}catch(e){throw t({type:"error",message:(0,n.jsxs)(n.Fragment,{children:["There was an unexpected error updating event display settings. If this problem persists please"," ",(0,n.jsx)(L.u,{variant:"link",lead:"I'm having trouble updating event display settings...",children:"contact support"}),"."]})}),Error("Failed to update user event display preferences")}}),u=(0,_.T)(async e=>{if(!(null==s?void 0:s.id))throw Error("Could not find a valid user ID");try{await (null==o?void 0:o.updateSchedulingBehavior(e)),a({message:"Your changes have been saved"},{autoHideDuration:1250})}catch(e){throw t({message:(0,n.jsxs)(n.Fragment,{children:["There was an unexpected error updating scheduling behavior. Please try again and"," ",(0,n.jsx)(L.u,{lead:"I'm having trouble updating my scheduling behavior...",children:"contact support"})," ","if this problem persists."]})}),Error("Failed to update user scheduling behavior")}}),m=(0,_.T)(async e=>{if(!(null==s?void 0:s.id))throw Error("Could not find a valid user ID");try{await (null==o?void 0:o.updateRsvpSetting(e)),a({message:"Your changes have been saved"},{autoHideDuration:1250})}catch(e){t({message:"There was an unexpected error updating RSVP settings. Please try again and contact support if this problem persists."})}}),h=(0,_.T)(async e=>{await (null==o?void 0:o.updateWeekStart(e)),a({message:"Your changes have been saved"},{autoHideDuration:1250})}),g=(0,_.T)(async e=>{await (null==o?void 0:o.updateDateFieldOrder(e)),a({message:"Your changes have been saved"},{autoHideDuration:1250})}),p=(0,_.T)(async e=>{await (null==o?void 0:o.updateFormat24HourTime(e)),a({message:"Your changes have been saved"},{autoHideDuration:1250})});return(0,n.jsxs)(Z.C,{title:["Settings","Scheduling"],backUIAction:{action:"/settings"},children:[l?(0,n.jsx)(T.g,{}):s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ew,{className:eT().generalSettingsForm,onSubmit:c,onSchedulingBehaviorSubmit:u,onRSVPSettingsSubmit:m,onWeekStartSubmit:h,onDateFieldOrderSubmit:g,onFormat24HourTimeSubmit:p,schedulerWeeksUsageLimit:i}),!!(0,F.un)(s)&&(0,n.jsx)(y,{className:eT().eventDisplayForm,userEventDisplayPreferences:s.features.eventDisplayPreferences,onSubmit:d})]}):void 0,!!M.s&&(0,n.jsxs)(I.Z,{variant:"body2",className:eT().build,children:["Build: ",M.s," (",R.Vi,") -"," ",(0,n.jsx)(D.Z,{href:"https://updates.reclaim.ai",target:"_blank",rel:"noreferrer",underline:"hover",children:"Product updates"})]})]})};eE.displayName="GeneralSettingsPage";var eZ=(0,ey.I)(eE,(e,t,a)=>{let{user:n}=e;return!(0,eC.sZ)("assistant",n,a)},(0,eN.Bv)("settings"))},32937:function(e,t,a){"use strict";a.d(t,{Nt:function(){return r},Vi:function(){return n}});let n="production",r=()=>window.navigator.webdriver},59759:function(e,t,a){"use strict";a.d(t,{FR:function(){return s},fU:function(){return o}});var n=a(27378);let r=(e,t,a)=>{switch(typeof e){case"object":let n;if(!Object.values(e).every(e=>void 0===(n=e(t,a))||!0===n))return n;break;case"function":return e(t,a)}return!0},s=(e,t)=>(a,n)=>{let s=t(a,n);return!1!==s&&(void 0!==s&&!0!==s?s:r(e,a,n))},o=function(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{shouldUpdate:s=()=>!0,setOptions:o}=r;(0,n.useEffect)(()=>{let n=e.getValues(t);s({currentValue:n,newValue:a,field:t})&&a!==n&&e.setValue(t,a,{shouldDirty:!1,shouldTouch:!1,...o})},[a])}},9862:function(e,t,a){"use strict";var n=a(93540),r=a(24246);t.Z=(0,n.Z)((0,r.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8.29 13.29c-.39.39-1.02.39-1.41 0L5.71 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41z"}),"CheckBoxRounded")},18250:function(e,t,a){"use strict";var n=a(93540),r=a(24246);t.Z=(0,n.Z)((0,r.jsx)("path",{d:"M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1"}),"RemoveRounded")},98502:function(e,t,a){"use strict";a.d(t,{Z:function(){return p}});var n=a(27378),r=a(27794),s=a(82267),o=a(63019),i=a(37799),l=a(15832),c=a(44124),d=a(6749);function u(e){return(0,d.ZP)("MuiToolbar",e)}(0,c.Z)("MuiToolbar",["root","gutters","regular","dense"]);var m=a(24246);let h=e=>{let{classes:t,disableGutters:a,variant:n}=e;return(0,s.Z)({root:["root",!a&&"gutters",n]},u,t)},g=(0,o.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,!a.disableGutters&&t.gutters,t[a.variant]]}})((0,i.Z)(e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}}));var p=n.forwardRef(function(e,t){let a=(0,l.i)({props:e,name:"MuiToolbar"}),{className:n,component:s="div",disableGutters:o=!1,variant:i="regular",...c}=a,d={...a,component:s,disableGutters:o,variant:i},u=h(d);return(0,m.jsx)(g,{as:s,className:(0,r.Z)(u.root,n),ref:t,ownerState:d,...c})})},52165:function(e,t,a){"use strict";a.d(t,{Z:function(){return d}});var n=a(96997),r=a(24565),s=a(68102),o=a(40273),i=a(70575),l=a(84749),c=a(2184);function d(e,t,a){(0,c.Z)(2,arguments);var d,u=(0,i.Z)(e),m=(0,i.Z)(t),h=a||{},g=h.locale,p=void 0===g?s.Z:g,_=h.weekStartsOn,f=void 0===_?0:_;if(!p.localize)throw RangeError("locale must contain localize property");if(!p.formatLong)throw RangeError("locale must contain formatLong property");if(!p.formatRelative)throw RangeError("locale must contain formatRelative property");var v=(0,n.Z)(u,m);if(isNaN(v))throw RangeError("Invalid time value");d=v<-6?"other":v<-1?"lastWeek":v<0?"yesterday":v<1?"today":v<2?"tomorrow":v<7?"nextWeek":"other";var x=(0,o.Z)(u,(0,l.Z)(u)),j=(0,o.Z)(m,(0,l.Z)(m)),b=p.formatRelative(d,x,j,{locale:p,weekStartsOn:f});return(0,r.Z)(u,b,{locale:p,weekStartsOn:f})}},78067:function(e,t,a){"use strict";a.d(t,{Z:function(){return o}});var n=a(37684),r=a(77518),s=a(2184);function o(e,t){(0,s.Z)(2,arguments);var a=(0,n.Z)(t);return(0,r.Z)(e,-a)}},41633:function(e){e.exports={emojisList:"EventDisplaySettingsForm_emojisList__SjIem",emojiControlBox:"EventDisplaySettingsForm_emojiControlBox__vjwfl","emojiControlBox--selected":"EventDisplaySettingsForm_emojiControlBox--selected__WSGqN",emojiControlBox__content:"EventDisplaySettingsForm_emojiControlBox__content__Agk3y",emojiControlBox__checkbox:"EventDisplaySettingsForm_emojiControlBox__checkbox__XQnuB",emojiControlBox__emoji:"EventDisplaySettingsForm_emojiControlBox__emoji___pA0w",radioGroup:"EventDisplaySettingsForm_radioGroup__xnlnu",radioGroup__radio:"EventDisplaySettingsForm_radioGroup__radio__2PTym","radioGroup__radio--contained":"EventDisplaySettingsForm_radioGroup__radio--contained__swXlo",radioGroup__radio__label:"EventDisplaySettingsForm_radioGroup__radio__label__Btrwn",celebrateAlert__icon:"EventDisplaySettingsForm_celebrateAlert__icon__WrI6G"}},97629:function(e){e.exports={root:"AutoSubmitForm_root__Horjh"}},75430:function(e){e.exports={root:"FullPageFormSection_root__80ZX2","root--normalTopVariant":"FullPageFormSection_root--normalTopVariant__Iqew9","content--top":"FullPageFormSection_content--top__v6o7C","root--borderedTopVariant":"FullPageFormSection_root--borderedTopVariant__X_FP4","root--collapseTopVariant":"FullPageFormSection_root--collapseTopVariant___me7R","root--top":"FullPageFormSection_root--top__c_pIi","root--added":"FullPageFormSection_root--added__O9yo1","added-mount":"FullPageFormSection_added-mount__OVExy",beforeFold:"FullPageFormSection_beforeFold__IJKlX",beforeFold__header:"FullPageFormSection_beforeFold__header__eBjnx",beforeFold__actions:"FullPageFormSection_beforeFold__actions__QS5oX",beforeFold__expandToggle:"FullPageFormSection_beforeFold__expandToggle__C8ex_",beforeFold__valueDisplay:"FullPageFormSection_beforeFold__valueDisplay__Fnnz1",beforeFold__description:"FullPageFormSection_beforeFold__description__gZNjY",collapse:"FullPageFormSection_collapse__jW8IA",content:"FullPageFormSection_content__Tx4u4","content--hidden":"FullPageFormSection_content--hidden__DTH6l","content--smUpTop":"FullPageFormSection_content--smUpTop__Dy4ML","content--mdUpTop":"FullPageFormSection_content--mdUpTop__imV2Q",content__main:"FullPageFormSection_content__main__Pl5_u","content__main--inline":"FullPageFormSection_content__main--inline__tfM4y",content__addable:"FullPageFormSection_content__addable__GPgcw",addable__questOrb:"FullPageFormSection_addable__questOrb__bz58k"}},45402:function(e){e.exports={root:"GeneralSettingsForm_root__EdHGX",fullPageFormSection__content:"GeneralSettingsForm_fullPageFormSection__content___eWBP",intervalExamples:"GeneralSettingsForm_intervalExamples__8Ovlo",intervalExamples__example:"GeneralSettingsForm_intervalExamples__example__RYgl_",h6SubHeader:"GeneralSettingsForm_h6SubHeader__NvEf5",columnContainer:"GeneralSettingsForm_columnContainer__WZK2u",singleField:"GeneralSettingsForm_singleField__wv6Y2",helpTip:"GeneralSettingsForm_helpTip__w7d_7",durationToWaitHeader:"GeneralSettingsForm_durationToWaitHeader__D9IAG",inputAndDays:"GeneralSettingsForm_inputAndDays__qElSb",inputAndDays__durationToWaitInput:"GeneralSettingsForm_inputAndDays__durationToWaitInput__fRIEA",animation:"GeneralSettingsForm_animation__O2Rf_",proConLists:"GeneralSettingsForm_proConLists__NJLZ5",proConLists__pros:"GeneralSettingsForm_proConLists__pros__jcw0C",proConLists__icon:"GeneralSettingsForm_proConLists__icon__MAm5H",proConLists__cons:"GeneralSettingsForm_proConLists__cons__xpZhI",proConLists__heading:"GeneralSettingsForm_proConLists__heading__JcBKr",radioGroup:"GeneralSettingsForm_radioGroup__PkHOi",schedulingWindowSlider:"GeneralSettingsForm_schedulingWindowSlider__6L7sD",upsellLink:"GeneralSettingsForm_upsellLink__eTNPP",upsellBadge:"GeneralSettingsForm_upsellBadge__RDcuy"}},80147:function(e){e.exports={root:"MultiCheck_root__H6hwL",checkboxes:"MultiCheck_checkboxes__VqGeP",checkbox:"MultiCheck_checkbox__vPIXb",checkboxIcon:"MultiCheck_checkboxIcon__nN_C2","checkboxIcon--checked":"MultiCheck_checkboxIcon--checked__sGPsL",checkboxIcon__selectedCheck:"MultiCheck_checkboxIcon__selectedCheck__Q_UMS","helperText--error":"MultiCheck_helperText--error__8Xv3b"}},58637:function(e){e.exports={"root--disabled":"Switch_root--disabled__DF5EM","root--big":"Switch_root--big__dIH2_",switchIcon:"Switch_switchIcon__gt0D7","switchIcon--disabled":"Switch_switchIcon--disabled__YnMVL","switchIcon--enabled":"Switch_switchIcon--enabled__MpExA","switchBase--big":"Switch_switchBase--big___nRKN",switchLabel:"Switch_switchLabel__9Ecqr"}},36775:function(e){e.exports={build:"general_build__RgDeS",eventDisplayForm:"general_eventDisplayForm__Xtp_r",generalSettingsForm:"general_generalSettingsForm__Sz1GH"}}},function(e){e.O(0,[9774,4661,1283,9923,8017,2045,7689,4564,5429,9518,4983,4527,3493,2785,2395,5240,714,543,9740,3004,1643,8332,6436,8751,2209,2864,8539,3002,7788,3066,2888,179],function(){return e(e.s=75169)}),_N_E=e.O()}]);

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.