PageSourceSearch

https://interactor.ai/_next/static/chunks/pages/user/notifications-f8ef927f271b5ec3.js

js interactor.ai collected 2026-10-05 12:26:10 UTC 29,804 bytes, 1 lines download raw bytes

1try{!function(){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]="0949231f-0751-4727-b0ba-371457f6ff6e",e._sentryDebugIdIdentifier="sentry-dbid-0949231f-0751-4727-b0ba-371457f6ff6e")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8615,6532,5337,4609],{28031:function(e,t,r){"use strict";r.d(t,{k:function(){return d}});var n=r(2784),o=r(71860),i=r(31458),s=r(52322);let l=e=>{let{color:t="black",size:r=24,...n}=e;return(0,s.jsxs)(o.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,s.jsx)(o.Cd,{cx:"12",cy:"12",r:"10",stroke:t}),(0,s.jsx)(o.y$,{d:"M12 16v-4",stroke:t}),(0,s.jsx)(o.y$,{d:"M12 8h.01",stroke:t})]})};l.displayName="Info";let d=(0,n.memo)((0,i.H)(l))},62031:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/notifications",function(){return r(97760)}])},17616:function(e,t,r){"use strict";r.d(t,{A2:function(){return d},Jb:function(){return a},KH:function(){return o},Pi:function(){return c},Rd:function(){return i},SY:function(){return l},gb:function(){return s}});var n=r(24265);let o=5,i=1,s=44,l=2,d=n.RS,a=n.Pk,c=a+2*l+2*o+i},58932:function(e,t,r){"use strict";r.d(t,{R:function(){return j}});var n,o,i=r(52322),s=r(54017),l=r(9055),d=r(51744),a=r(62750);let c=["xxs","xs","gtXs","gtSm","gtMd","gtLg","other"],u={xxs:"sheet",xs:"sheet",gtXs:"modal",gtSm:"modal",gtMd:"modal",gtLg:"modal",other:"modal"};(n=o||(o={})).FIT="fit",n.FULL="full";let f={fit:{snapPointsMode:"fit",isFrameAnchorDisabled:!0,snapPoints:void 0},full:{snapPoints:[65]}},h={fit:{alertDialogContentProps:{f:1,p:0,pb:0}},full:{marginHorizontal:30,alertDialogContentProps:{f:1,p:0,pb:0,my:30,overflow:"hidden",h:"calc(100% - ".concat(30,"px * 2)"),w:"calc(100% - ".concat(30,"px * 2)"),maw:.75*a.jk,mah:.5*a.jk,minWidth:"unset",$gtXs:{maw:.75*a.jk,mah:.66*a.jk}}}};var g=r(2784),p=r(66686),m=r(80767),x=r(6983);let b=e=>{let t;let r={...u,...e},n=(0,x.d)();return c.forEach(e=>{let o="other"===e;(o&&!t||!o&&n[e])&&(t=r[e]||t)}),null!=t||(t="modal"),{dialogType:t}},v=e=>{let{view:t,onDialogTypeChange:r,isOpen:n,shouldHideContentInitially:o}=e,{dialogType:i}=b(t),s=(0,p.V)(n,m.o);return(0,g.useEffect)(()=>{null==r||r(i)},[i,r]),{dialogType:i,isContentHidden:o&&!s}},j=e=>{let{view:t,children:r,modal:n,sheet:a,isOpen:c,setIsOpen:u,frameAnchorId:g,portalAnchorId:p,hasMask:m=!0,hasBlur:x=!0,size:b=o.FULL,onDialogTypeChange:j,zIndex:k,shouldHideContentInitially:y}=e,{dialogType:_,isContentHidden:S}=v({view:t,onDialogTypeChange:j,isOpen:c,shouldHideContentInitially:y});return"sheet"===_?(0,i.jsx)(d.y,{open:c,onClose:()=>u(!1),frameAnchorId:g,withMask:m,hasBlur:x,zIndex:k,...f[b],...a,children:(0,i.jsx)(s._,{isHidden:S,children:r})}):(0,i.jsx)(l.u,{isOpen:c,setIsOpen:u,anchorId:g,portalAnchorId:p,hasMask:m,hasBlur:x,...h[b],...n,children:(0,i.jsx)(s._,{isHidden:S,children:r})})}},24883:function(e,t,r){"use strict";r.d(t,{X:function(){return l}});var n=r(52322),o=r(89828),i=r(36728),s=r(16872);let l=e=>{let{onPress:t,...r}=e,{back:l}=(0,i.c)();return(0,n.jsx)(s.$,{p:0,onPress:e=>{if(t){t(e);return}l()},backgroundColor:"transparent",...r,children:(0,n.jsx)(o.w,{size:24})})}},86999:function(e,t,r){"use strict";r.d(t,{W:function(){return h}});var n=r(52322),o=r(28031),i=r(63955),s=r(37288),l=r(40175),d=r(78501),a=r(41198),c=r(69876),u=r(3884),f=r(54017);let h=e=>{let{name:t,label:r,placeholder:h,labelTooltip:g,...p}=e,{fieldState:m}=(0,i.bc)({name:t}),{error:x}=m;return(0,n.jsxs)(s.FA,{gap:6,children:[(0,n.jsx)(f._,{isHidden:!r,children:(0,n.jsxs)(s.sL,{gap:8,ai:"center",children:[(0,n.jsx)(u.M,{text:null!=r?r:""}),(0,n.jsx)(f._,{isHidden:!g,children:(0,n.jsxs)(l.u,{children:[(0,n.jsx)(l.u.Trigger,{cur:"pointer",children:(0,n.jsx)(o.k,{size:12,color:"$textMuted"})}
1),(0,n.jsx)(l.u.Content,{bg:"$interactorSystemMessageBackground",children:(0,n.jsx)(a.x,{children:g})})]})})]})}),(0,n.jsx)(d.t,{type:c.EB.Text,name:t,placeholder:h,...p}),(0,n.jsx)(f._,{isHidden:!(null==x?void 0:x.message),children:(0,n.jsx)(a.x,{fos:16,col:"$danger",children:null==x?void 0:x.message})})]})}},24265:function(e,t,r){"use strict";r.d(t,{AY:function(){return i},Pk:function(){return o},RS:function(){return n},hy:function(){return s}});let n=8,o=40,i=12,s=55},18909:function(e,t,r){"use strict";r.d(t,{A:function(){return u}});var n=r(52322),o=r(47246),i=r(30813),s=r(20800),l=r(54017),d=r(32631),a=r(67477),c=r(69807);let u=e=>{var t;let{editMode:r,onPress:u,item:f}=e,h=(0,o.Fg)(),g=!(null===(t=null==f?void 0:f.isDeletable)||void 0===t||t)||r!==c.Gt.EDITING,p=r!==c.Gt.VIEWING,m=g?"none":"circle-minus";return m=p?m:"chevron-right",(0,n.jsx)(i.G7,{minWidth:30,minHeight:35,jc:"center",ai:"flex-end",children:(0,n.jsx)(s.M,{exitBeforeEnter:!0,children:(0,n.jsxs)(i.G7,{animation:"quick",enterStyle:{opacity:0},exitStyle:{opacity:0},children:[(0,n.jsx)(l._,{isHidden:g,children:(0,n.jsx)(i.G7,{onPress:u,children:(0,n.jsx)(a.r,{color:h.dangerContrast.get()})})}),(0,n.jsx)(l._,{isHidden:p,children:(0,n.jsx)(d.X,{})})]},m)})})}},24609:function(e,t,r){"use strict";r.d(t,{M:function(){return S}});var n=r(52322),o=r(32624),i=r(70411),s=r(2784),l=r(47246),d=r(16505),a=r(92247),c=r(30813),u=r(55150),f=r(37288),h=r(18137);let g=e=>"string"==typeof e?e.replace(/[\r\n]+/g," "):e;var p=r(54017),m=r(41198),x=r(53966),b=r(32576),v=r(11556),j=r(69807),k=r(18909),y=r(83522);let _=e=>{let{date:t}=e,{convertDateToLabel:r}=(0,y.X)(),o=r(new Date(t)),{t:i}=(0,h.$)("common");return(0,n.jsx)(c.G7,{py:5,children:(0,n.jsx)(m.x,{fontSize:14,color:"$textMutedContrast",children:"".concat(i("updated")," ").concat(o)})})},S=e=>{let{items:t,editMode:r=j.Gt.VIEWING,newItemTitle:y,isReorderDisabled:S,onIconPress:I,onItemPress:E,onNewItemPress:$,onReorder:C,previewKey:T,titleKey:w="title",subtitleKey:R,isLoading:B,showUpdatedStatus:P,ActionIconComponent:G=k.A,subtitleIcon:H,subtitleUnits:L,getSubtitle:N}=e,D=t.some(e=>void 0!==e.onPress),z=r===j.Gt.VIEWING&&!E&&!D,[F,M]=(0,s.useState)(1),{t:A}=(0,h.$)("common"),O=r===j.Gt.EDITING,W=(0,l.Fg)(),U=e=>{var t;null===(t=e.onPress)||void 0===t||t.call(e),null==E||E(e)};return(0,n.jsxs)(d.gF,{alignSelf:"center",bordered:!0,width:"100%",size:"$5",borderRadius:10,overflow:"hidden",children:[!!$&&(0,n.jsx)(d.gF.Item,{children:(0,n.jsx)(a.HC,{hoverTheme:!0,pressTheme:!0,bg:"$cardBackground",minHeight:55,style:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:0,borderBottomRightRadius:0},hoverStyle:{backgroundColor:"$cardBackgroundHover"},pressStyle:{backgroundColor:"$cardBackgroundPress"},title:(0,n.jsxs)(c.G7,{fd:"row",jc:"center",ai:"center",gap:10,cur:"pointer",children:[(0,n.jsx)(v.p,{color:W.brand.get(),disabled:O,disabledStyle:{color:W.textMutedContrast.get()}}),(0,n.jsx)(m.x,{disabled:O,disabledStyle:{color:"$textMutedContrast"},color:"$brand",children:null!=y?y:A("options_list.add_item_button")})]}),onPress:$,disabled:O})}),B&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{borderColor:"$cardSeparator"}),(0,n.jsx)(c.G7,{padding:15,paddingHorizontal:16,bg:"$cardBackground",borderWidth:0,borderBottomLeftRadius:8,borderBottomRightRadius:8,children:(0,n.jsx)(x.P,{w:"20%",h:25,bg:"$backgroundPlaceholder"})})]}),!B&&(0,n.jsx)(o.M,{values:t,onReorder:e=>{O&&C&&M(C(e,F))},axis:"y",children:t.map((e,o)=>{var s,l,h,x,v;let k=null!==(s=e.ActionIconComponent)&&void 0!==s?s:G,y=0===o&&!$,E=o===t.length-1,C={borderColor:e.error?"$danger":"transparent",borderWidth:1,borderTopLeftRadius:y?10:0,borderTopRightRadius:y?10:0,borderBottomLeftRadius:E?10:0,borderBottomRightRadius:E?10:0},{isHighlighted:B,isPressable:D=!0}=e,F=null!==(h=null!==(l=null==N?void 0:N(e))&&void 0!==l?l:e.subTitle)&&void 0!==h?h:R?e[R]:void 0,{titleNode:A,subTitleNode:W}=e,V=!z&&D;return(0,n.jsx)(i.e,{drag:O&&!S,value:e,onDragStart:()=>M(o),style:{display:"block",position:"relative"},as:"div",children:(0,n.jsxs)(d.gF.Item,{children:[$||0!==o?(0,n.jsx)(u.Z,{borderColor:"$cardSeparator"}
1):null,(0,n.jsx)(a.HC,{...C,bg:B?"$cardBackgroundHighlighted":"$cardBackground",hoverTheme:V,pressTheme:V,minHeight:55,onPress:r===j.Gt.VIEWING?()=>U(e):void 0,flexDirection:"column",ai:"stretch",pl:25,pr:8,py:10,hoverStyle:V?{...C,backgroundColor:B?"$cardBackgroundHighlighted":"$cardBackgroundHover"}:void 0,pressStyle:V?{...C,backgroundColor:B?"$cardBackgroundHighlighted":"$cardBackgroundPress"}:void 0,children:(0,n.jsxs)(c.G7,{fd:"row",jc:"space-between",ai:T?"flex-start":"center",f:1,pt:3,gap:12,children:[(0,n.jsx)(c.G7,{display:O&&!S?"flex":"none",children:(0,n.jsx)(b.M,{})}),(0,n.jsx)(c.G7,{gap:10,flexGrow:0,flexShrink:1,flexBasis:"auto",alignSelf:"center",fd:"row",children:(0,n.jsxs)(f.FA,{gap:5,flexShrink:1,flexGrow:1,children:[(0,n.jsxs)(c.G7,{gap:3,children:[A||(0,n.jsxs)(f.sL,{gap:10,ai:"center",children:[e.titleLeftIcon,(0,n.jsxs)(m.x,{numberOfLines:2,fontSize:16,color:"$textMuted",children:[(0,n.jsx)(m.x,{color:"$textContrast",children:e[w]}),T&&(0,n.jsxs)(n.Fragment,{children:[" - ",g(e[T])]})]}),e.titleRightIcon]}),P&&e.updatedAt&&(0,n.jsx)(_,{date:e.updatedAt})]}),(0,n.jsx)(p._,{isHidden:!F&&!W,children:W||(0,n.jsxs)(f.sL,{ai:"center",children:[(0,n.jsx)(p._,{isHidden:!H,children:(0,n.jsx)(c.G7,{mr:5,children:H})}),(0,n.jsx)(m.x,{color:"$textMuted",children:F}),(0,n.jsx)(p._,{isHidden:!L,children:(0,n.jsx)(m.x,{ml:2,color:"$textMuted",children:L})})]})})]})}),(0,n.jsx)(f.sL,{f:1,fb:24,ai:"center",jc:"flex-end",children:e.actionIconNode||(0,n.jsx)(k,{item:e,editMode:r,onPress:t=>{t.stopPropagation(),null==I||I(e,o)}})})]})})]})},null!==(v=null!==(x=e.id)&&void 0!==x?x:e.key)&&void 0!==v?v:e.title)})})]})}},61076:function(e,t,r){"use strict";r.d(t,{M:function(){return h}});var n=r(52322),o=r(2784),i=r(47246),s=r(92552),l=r(30813);let d=(0,s.z)(l.G7,{pos:"absolute",zi:1,animation:"instantly",variants:{isHorizontal:{false:{h:3,left:0,right:0},true:{w:3,top:0,bottom:0}}}});var a=r(36383),c=r(58629);let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{isHorizontal:r}=t,[n,i]=(0,o.useState)(!0),[s,l]=(0,o.useState)(!0),d=(0,o.useCallback)(()=>{let t=e.current;if(!t)return;let n=r?t.scrollLeft:t.scrollTop,o=r?t.clientWidth:t.clientHeight,s=r?t.scrollWidth:t.scrollHeight;i(n<=1),l(n+o>=s-1)},[]);return(0,a.yU)({ref:e,onResize:d}),(0,o.useEffect)(()=>{let t=e.current;if(!t){c.kg.warn("Did you correctly provide ref to scroll component?");return}return t.addEventListener("scroll",d),d(),()=>{t.removeEventListener("scroll",d)}},[e]),{isTopCreaseHidden:n,isBottomCreaseHidden:s}},f=e=>{let{children:t,scrollRef:r,topCrease:o,bottomCrease:s,crease:l,isHorizontal:a,maxOpacity:c=1,creaseSize:f=3}=e,{topCreaseGradient:h,bottomCreaseGradient:g,leftCreaseGradient:p,rightCreaseGradient:m}=(0,i.Fg)(),{isTopCreaseHidden:x,isBottomCreaseHidden:b}=u(r,{isHorizontal:a}),v=a?p:h,j=a?m:g;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d,{...l,...o,isHorizontal:!!a,opacity:x?0:c,...a?{left:0}:{top:0},style:{background:v.get(),...null==o?void 0:o.style},h:a?void 0:f,w:a?f:void 0}),t,(0,n.jsx)(d,{...l,...s,isHorizontal:!!a,opacity:b?0:c,...a?{right:0}:{bottom:0},style:{background:j.get(),...null==s?void 0:s.style},h:a?void 0:f,w:a?f:void 0})]})},h=e=>{let{isDisabled:t,children:r,...o}=e;return t?r:(0,n.jsx)(f,{...o,children:r})}},51744:function(e,t,r){"use strict";r.d(t,{d:function(){return b},y:function(){return v}});var n=r(52322),o=r(2784),i=r(47246),s=r(46094),l=r(96496),d=r(62750),a=r(29171),c=r(49216),u=r(52279),f=r(43224),h=r(29577),g=r(55321);let p=e=>{let{frameMarginHorizontal:t=d.Wd}=e;return{frameId:(0,o.useId)(),frameMarginHorizontal:t}};var m=r(22936);let x=e=>{let{open:t,frameAnchorId:r=f.D$}=e,n=(0,o.useId)();return(0,m.v)({anchor:r,target:n,shouldBeCenteredVertically:!1,shouldBeCenteredHorizontally:!0},[t]),{frameId:n}},b="quick",v=e=>{let{children:t,backgroundColor:r="$mainBackground",snapPointsMode:m="percent",snapPoints:v=[100],open:j,withMask:k,onClose:y,onOpenChange:_,isFrameAnchorDisabled:S,frameAnchorId:I=f.D$,frameMarginHorizontal:E=d.Wd,onOpenAnimationFinished:$,onCloseAnimationFinished:C,hasBlur:T=!1,zIndex:w=c.y$,...R}=e,B=(0,i.Fg)(),P=(0,s.d)().width,G=(0,o.useMemo)(()=>
1{let e=document.querySelector("#".concat(I));return e?e.getBoundingClientRect().width:d.jk},[I,P]),H=e=>{e||null==y||y(),null==_||_(e)},{frameId:L}=(S?p:x)(e),{isInitialRender:N}=(0,u.c)();(0,o.useEffect)(()=>!j&&N?void 0:j?(0,g.L)(()=>null==$?void 0:$(),h.n[b]):(0,g.L)(()=>null==C?void 0:C(),h.n[b]),[j]);let D={style:{height:"100%"}};return(0,n.jsx)(l.yo,{forceRemoveScrollEnabled:!a.s&&void 0,snapPoints:"fit"===m?void 0:v,snapPointsMode:m,dismissOnSnapToBottom:!0,modal:!0,zIndex:w,animation:b,portalProps:k?{enterStyle:{backgroundColor:"$backdropClosed"},exitStyle:{backgroundColor:"$backdropClosed"},style:{...D.style,transition:"all .3s ease-in",backdropFilter:j&&T?B.backdropBlurFilter.get():"none",WebkitBackdropFilter:j&&T?B.backdropBlurFilter.get():"none"},backgroundColor:j?"$backdrop":"$backdropClosed",pointerEvents:j?"auto":"none",onPress:e=>{e.stopPropagation(),null==H||H(!1)}}:D,disableDrag:!0,open:j,onOpenChange:H,...R,children:(0,n.jsx)(l.yo.Frame,{id:L,$gtSm:{w:G-2*E,mx:"auto"},backgroundColor:r,onPress:e=>{e.stopPropagation()},children:t})})}},64300:function(e,t,r){"use strict";r.d(t,{r:function(){return d}});var n=r(92552),o=r(30813),i=r(67179);let s=(0,n.z)(o.Kq,{width:44,height:28,padding:2,borderRadius:20,cursor:"pointer",variants:{checked:{true:{backgroundColor:"$switchBackgroundChecked"},false:{backgroundColor:"$switchBackground"}}},defaultVariants:{checked:!1}}),l=(0,n.z)(o.Kq,{width:24,height:24,backgroundColor:"$switchThumbBackground",borderRadius:20,animation:"instantly"}),d=(0,i.r)({Frame:s,Thumb:l})},43865:function(e,t,r){"use strict";r.d(t,{T:function(){return i}});var n=r(52322),o=r(64300);let i=e=>{let{isChecked:t,onCheckedChange:r}=e;return(0,n.jsx)(o.r,{unstyled:"false",checked:t,onCheckedChange:r,onPress:e=>e.stopPropagation(),children:(0,n.jsx)(o.r.Thumb,{})})}},24911:function(e,t,r){"use strict";r.d(t,{x:function(){return s}});var n=r(2784),o=r(98216);let i=()=>{r.e(237).then(r.bind(r,40237))},s=()=>{let e=(0,o.x_)();return(0,n.useEffect)(i,[]),e}},52279:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(2784);let o=()=>{let e=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{e.current=!1},[]),{isInitialRender:e.current}}},26683:function(e,t,r){"use strict";r.d(t,{O:function(){return l}});var n=r(2784),o=r(34626),i=r(36728);let s=new Set,l=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{prefetch:r}=(0,i.c)(),l=e.filter(Boolean).sort().join("|"),d=(0,o.J)(e);(0,n.useEffect)(()=>{t&&d.current.forEach(e=>{!e||s.has(e)||(s.add(e),r(e))})},[l,t])}},67477:function(e,t,r){"use strict";r.d(t,{r:function(){return n}});let n=r(73992).S},32576:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});let n=r(17038).u},67551:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});let n=r(6767).I},11556:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});let n=r(68604).v},77348:function(e,t,r){"use strict";r.d(t,{Sm:function(){return i},jb:function(){return o}});let n="env(safe-area-inset-bottom, 0px)",o=e=>"calc(".concat(e,"px + ").concat(n,")"),i=e=>"max(".concat(e,"px, ").concat(n,")")},41285:function(e,t,r){"use strict";r.d(t,{H:function(){return s}});var n=r(52322),o=r(18137),i=r(11811);let s=e=>{let{onPress:t}=e,{t:r}=(0,o.$)("common");return(0,n.jsx)(i.z,{m:0,p:1,variant:"cancel",onPress:t,fontSize:16,children:r("cancel")})}},46043:function(e,t,r){"use strict";r.d(t,{i:function(){return a}});var n=r(52322),o=r(18137),i=r(11811),s=r(87494),l=r(69807);let d=e=>{let{onPress:t,editMode:r,onSubmit:n}=e;return{pressHandler:async e=>{null==t||t(e),r===l.Gt.EDITING&&await (null==n?void 0:n())}}},a=e=>{let{t}=(0,o.$)("common"),{onPress:r,editMode:a=l.Gt.VIEWING,saveTitle:c=t("save"),onSubmit:u,size:f,color:h,disabled:g,isLoading:p}=e,{pressHandler:m}=d({editMode:a,onPress:r,onSubmit:u}),x=a===l.Gt.EDITING?c:t("edit"),b=p?(0,n.jsx)(s.$,{}):x;return(0,n.jsx)(i.z,{px:2,disabled:g||p,disabledStyle:{opacity:.5},variant:a===l.Gt.EDITING?"link":"cancel",size:f,onPress:m,fontSize:16,minWidth:50,...h?{color:h}:null,children:b})}},69807:function(e,t,r){"use strict";var n,o,i,s,l,d,a,c;r.d(t,{BN:function(){return s},Gt:function(){return o},Ly:function(){return n},ZV:function(){return i}}),(l=n||(n={})).SHINING="shining",l.ANIMATED_ELLIPSIS="animated_ellipsis",(d=o||(o={})).EDITING="editing",d.VIEWING="viewing",(a=i||(i={})).TITLE="TITLE",a.CONTENT="CONTENT",a.SHORT_DESCRIPTION="SHORT_DESCRIPTION",(c=s||(s={})).STATUS="STATUS",c.FORM_EDITING="FORM_EDITING"},46768:function(e,t,r){"use strict";r.d(t,{r:function(){return h}});var n=r(52322),o=r(2784),i=r(30813),s=r(65457),l=r(37288),d=r(58367),a=r(24883),c=r(96826),u=r(61076),f=r(41198);let h=e=>{let{children:t,body:r,backAction:h,background:g="$goBackLayoutDefaultBackgroun
1d",action:p=null,pb:m=16,onScroll:x,scrollEventThrottle:b,scrollViewId:v,scrollRef:j,isScrollEnabled:k,onLayout:y,gap:_=10,isWithoutScroll:S=!1,...I}=e,E=(0,o.useRef)(null);return(0,n.jsx)(c.d,{leftAction:h||(0,n.jsx)(a.X,{}),rightAction:p,background:g,...I,children:S?(0,n.jsxs)(i.G7,{f:1,children:[void 0!==r&&(0,n.jsx)(f.x,{marginBottom:6,children:r}),t]}):(0,n.jsx)(u.M,{scrollRef:E,crease:{mx:-16},isDisabled:!0,children:(0,n.jsx)(s.p,{scrollEnabled:k,mx:-16,pb:m,onScroll:x,scrollEventThrottle:b,id:v,ref:e=>{(0,d.k)(E,e),(0,d.k)(j,e)},onLayout:y,children:(0,n.jsxs)(l.FA,{p:16,gap:_,children:[void 0!==r&&(0,n.jsx)(f.x,{marginBottom:6,children:r}),t]})})})})}},47319:function(e,t,r){"use strict";r.d(t,{K:function(){return H}});var n,o,i=r(52322),s=r(63955),l=r(47994),d=r(37288),a=r(77348),c=r(58932),u=r(11811),f=r(16872),h=r(78501),g=r(54017),p=r(41198),m=r(69876),x=r(69063),b=r(6812),v=r(2784);let j=(0,r(14926).V)({client:()=>window.location.href,server:()=>void 0}),k=()=>{if("undefined"!=typeof navigator)return navigator.userAgent};var y=r(18137),_=r(24911),S=r(58629);let{createSendUserFeedbackMailMutation:I}=(0,r(94241).e)("mutation","sendUserFeedbackMail"),E=(0,r(314)._)("sendUserFeedbackMail",I({isSent:!0}));(n=o||(o={})).BUG="bug",n.BAD_RESULT="bad_result",n.GOOD_RESULT="good_result",n.IDEA="idea",n.OTHER="other";let $=[o.BUG,o.BAD_RESULT,o.GOOD_RESULT,o.IDEA,o.OTHER],C={category:void 0,details:""},T=()=>{let{t:e}=(0,y.$)("user"),t={[o.BUG]:e("user_feedback_modal.form.category.bug"),[o.BAD_RESULT]:e("user_feedback_modal.form.category.bad_result"),[o.GOOD_RESULT]:e("user_feedback_modal.form.category.good_result"),[o.IDEA]:e("user_feedback_modal.form.category.idea"),[o.OTHER]:e("user_feedback_modal.form.category.other")};return{getFeedbackCategoryLabel:e=>t[e]}};var w=r(48601);let R=()=>{let{t:e}=(0,y.$)("user");return w.Ry().shape({category:w.nK().oneOf([...$]).required(e("user_feedback_modal.errors.feedback_type_required")),details:w.Z_().trim().required(e("user_feedback_modal.form.details.required"))})},B=e=>{var t,r;let{isOpen:n,setIsOpen:o}=e,[i,l]=(0,v.useState)(null),{t:d}=(0,y.$)("user"),{show:a}=(0,_.x)(),{sendUserFeedbackMail:c}=E(),u=R(),{getFeedbackCategoryLabel:f}=T(),h=(0,s.cI)({defaultValues:C,mode:"onChange",resolver:(0,b.X)(u)}),{reset:g}=h,p=(0,s.qo)({control:h.control,defaultValue:C.category,name:"category"}),m=(0,s.qo)({control:h.control,defaultValue:C.details,name:"details"}),x=e=>{l(null),p!==e&&h.setValue("category",e,{shouldDirty:!0,shouldValidate:!0})},I=$.map(e=>({key:e,label:f(e),isSelected:p===e,onPress:()=>{x(e)}})),w=async e=>{if(l(null),!e.category){h.setError("category",{message:d("user_feedback_modal.errors.feedback_type_required"),type:"required"});return}let t=await c.request({input:{categories:[f(e.category)],details:e.details.trim(),pageUrl:j(),userAgent:k()}});if(!(null==t?void 0:t.isSent)){l(d("user_feedback_modal.feedback.send_error"));return}g(C),o(!1),a(d("user_feedback_modal.feedback.sent"))},B=h.handleSubmit(async e=>{try{await w(e)}catch(e){S.kg.error(e),l(d("user_feedback_modal.feedback.send_error"))}});(0,v.useEffect)(()=>{if(n){l(null);return}g(C)},[n,g]);let P=null===(t=h.formState.errors.category)||void 0===t?void 0:t.message,G=null===(r=h.formState.errors.details)||void 0===r?void 0:r.message;i&&(G=i);let H=c.loading;return{categoryItems:I,categoryHelperMessage:P,closeHandler:()=>{o(!1)},detailsHelperMessage:G,isSubmitDisabled:H||0===m.trim().length,isSubmitting:H,methods:h,submitHandler:B,t:d}},P=h.t,G=(0,a.Sm)(18),H=e=>{let{isOpen:t,setIsOpen:r}=e,{categoryItems:n,categoryHelperMessage:o,closeHandler:a,detailsHelperMessage:h,isSubmitDisabled:b,isSubmitting:v,methods:j,submitHandler:k,t:y}=B(e);return(0,i.jsx)(s.RV,{...j,children:(0,i.jsx)(c.R,{isOpen:t,setIsOpen:r,size:"fit",modal:{maxWidth:460,minWidth:"unset",marginHorizontal:16,alertDialogContentProps:{overflow:"hidden",p:0,pb:0,w:"calc(100vw - 32px)"}},sheet:{snapPointsMode:"fit"},shouldHideContentInitially:!0,children:(0,i.jsx)(l.l0,{onSubmit:k,children:(0,i.jsxs)(d.FA,{p:18,gap:16,bg:"$modalPanelContainer",br:10,w:"100%",$xs:{borderBottomLeftRadius:0,borderBottomRightRadius:0},$xxs:{p:14,gap:12,borderBottomLeftRadius:0,borderBottomRightRadius:0},style:{paddingBottom:G},children:[(0,i.jsxs)(d.sL,{jc:"space-between",ai:"center",gap:12,children:[(0,i.jsx)(p.x,{fontSize:20,fontWeight:"700",lineHeight:28,flex:1,$xxs:{fontSize:18},children:y("user_feedback_modal.title")}),(0,i.jsx)(u.z,{shape:"circle",variant:"neutral",onPress:a,icon:(0,i.jsx)(x.T,{size:18}),size:32})]}),(0,i.jsx)(d.sL,{fw:"wrap",gap:6,rowGap:6,children:n.map(e=>(0,i.jsx)(f.$,{h:30,borderRadius:16,px:10,py:0,borderWidth:1,borderColor:e.isSelected?"$brand":"transparent",backgroundColor:e.isSelected?"$backgroundBrand":"$toggleBackgroun
1dForGrayBackground",onPress:e.onPress,pressStyle:{backgroundColor:e.isSelected?"$backgroundBrandHover":"$togglePressBackgroundForGrayBackground",borderColor:e.isSelected?"$brand":"transparent"},hoverStyle:{backgroundColor:e.isSelected?"$backgroundBrandHover":"$toggleHoverBackgroundForGrayBackground",borderColor:e.isSelected?"$brand":"transparent"},children:(0,i.jsx)(p.x,{color:e.isSelected?"$brand":"$textMutedContrast",fontSize:14,fontWeight:"500",lineHeight:18,children:e.label})},e.key))}),(0,i.jsx)(g._,{isHidden:!o,children:(0,i.jsx)(p.x,{color:"$dangerContrast",fontSize:14,children:o})}),(0,i.jsxs)(d.FA,{gap:6,children:[(0,i.jsx)(P,{name:"details",type:m.EB.Textarea,placeholder:y("user_feedback_modal.form.details.placeholder"),textAreaMinHeight:124,isDisabled:v}),(0,i.jsx)(g._,{isHidden:!h,children:(0,i.jsx)(p.x,{color:"$dangerContrast",fontSize:14,children:h})})]}),(0,i.jsx)(l.l0.Trigger,{asChild:!0,children:(0,i.jsx)(u.z,{type:"submit",variant:"primary",disabled:b,isLoading:v,loadingAnimation:"spinning",w:"100%",h:46,$xxs:{h:42},children:y("user_feedback_modal.actions.submit")})})]})})})})}},19671:function(e,t,r){"use strict";r.d(t,{z:function(){return a}});var n=r(29118),o=r(314),i=r(27758);let{createEditUserMutation:s}=(0,r(94241).e)("mutation","editUser"),l=s({user:{email:!0,firstName:!0,id:!0,lastName:!0,phone:!0}}),d=(0,o._)("editUser",l),a=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{getIdentity:r}=(0,i.j)({fetchPolicy:"cache-only"}),o=null===(e=r.data)||void 0===e?void 0:e.identity;return d({optimisticResponse:e=>{let{input:t}=e;return{response:{__typename:"EditUserOutput",user:{__typename:"UserObject",...o,...(0,n.Y)(t)}}}},update:(e,t)=>{var n;let o=null===(n=t.data)||void 0===n?void 0:n.response.user;o&&r.updateIdentity({...o})},...t})}},69206:function(e,t,r){"use strict";r.d(t,{x:function(){return o}});let{createCurrentUserQuery:n}=(0,r(94241).e)("query","currentUser",!0),o=(0,r(74609).g)("currentUser",n({user:{id:!0,email:!0,accountEmail:!0,phone:!0,firstName:!0,lastName:!0}}))},97760:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return L}});var n=r(52322),o=r(63955),i=r(37288),s=r(30813),l=r(86999),d=r(24609),a=r(50784),c=r(69876),u=r(6619),f=r(41285),h=r(46043),g=r(3884),p=r(69807),m=r(46768),x=r(43865),b=r(94241);let{createUpdateNotificationPreferencesMutation:v}=(0,b.e)("mutation","updateNotificationPreferences"),j=(0,r(314)._)("updateNotificationPreferences",v({preferences:{id:!0,topic:!0,userId:!0,interactorId:!0,isEnabled:!0}})),k=e=>{var t;let{topic:r}=e,{field:n}=(0,o.bc)({name:r}),{updateNotificationPreferences:i}=j(),s=null===(t=n.value)||void 0===t||t;return{toggle:()=>{n.onChange(!s),i.request({input:{preferences:[{topic:r,isEnabled:!s}]}})},isChecked:s}},y=e=>{let{isChecked:t,toggle:r}=k(e);return(0,n.jsx)(x.T,{isChecked:t,onCheckedChange:r})};var _=r(6812),S=r(2784);let{createCommonNotificationPreferencesQuery:I}=(0,b.e)("query","commonNotificationPreferences"),E=(0,r(74609).g)("commonNotificationPreferences",I({preferences:{id:!0,topic:!0,userId:!0,interactorId:!0,isEnabled:!0}}));var $=r(18137),C=r(36728),T=r(85853),w=r(19671),R=r(69206),B=r(48601);let P=B.Ry({email:B.Z_().email().required()}),G=()=>{var e,t,r;let{t:n}=(0,$.$)("user"),{t:i}=(0,$.$)("common"),{getCurrentUser:s}=(0,R.x)(),{editUser:l}=(0,w.z)(),{back:d}=(0,C.c)(),{getCommonNotificationPreferences:a}=E({variables:{input:{}}}),c=null!==(r=null===(e=a.data)||void 0===e?void 0:e.preferences)&&void 0!==r?r:[],u=Object.fromEntries(c.map(e=>[e.topic,e.isEnabled])),f=()=>{d(T.x.User.account())},h=(0,o.cI)({resolver:(0,_.X)(P),defaultValues:{...u,email:""}}),g=null===(t=s.data)||void 0===t?void 0:t.user.email;return(0,S.useEffect)(()=>{g&&h.resetField("email",{defaultValue:g,keepDirty:!1,keepError:!1,keepTouched:!1})},[g]),(0,S.useEffect)(()=>{a.loading||c.forEach(e=>{h.resetField(e.topic,{defaultValue:e.isEnabled})})},[a.loading]),{cancelPressHandler:()=>{f()},submitHandler:h.handleSubmit(e=>{let{email:t}=e;l.request({input:{email:t}}),f()}),currentEmail:g,methods:h,tUser:n,tCommon:i}},H=(0,u.Q)(()=>{let{methods:e,submitHandler:t,currentEmail:r,tUser:u,tCommon:x,c
1ancelPressHandler:b}=G();return(0,n.jsx)(m.r,{title:u("notifications_settings.title"),backAction:(0,n.jsx)(f.H,{onPress:b}),action:(0,n.jsx)(h.i,{editMode:p.Gt.EDITING,onSubmit:t}),gap:16,shouldTrimTitle:!0,isWithoutScroll:!0,background:"$networkMembersHeaderBackground",children:(0,n.jsx)(i.FA,{gap:16,f:1,pt:16,children:(0,n.jsx)(o.RV,{...e,children:(0,n.jsx)(i.sL,{gap:16,children:(0,n.jsxs)(s.G7,{f:1,children:[(0,n.jsx)(l.W,{type:c.EB.Email,name:"email",label:u("notifications_settings.send_owner_notifications_to"),placeholder:u("form.email.placeholder",{ns:"common"}),initialValue:r}),(0,n.jsx)(a.l,{fos:15,mt:10,children:u("notifications_settings.email_usage_description")}),(0,n.jsxs)(s.G7,{mt:24,children:[(0,n.jsx)(g.M,{text:x("notification_preferences.email.title"),mb:6}),(0,n.jsx)(d.M,{items:[{title:x("notification_preferences.email.new_message_from_customer"),actionIconNode:(0,n.jsx)(y,{topic:c.lJ.NewMessageFromCustomer})}]})]})]})})})})})});var L=(0,r(47196).v)(H)},56778:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(2784);let o=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,n.useEffect)(()=>{let r=setTimeout(e,t);return()=>{clearTimeout(r)}},r)}},40175:function(e,t,r){"use strict";r.d(t,{u:function(){return v}});var n=r(87578),o=r(41678),i=r(50673),s=r(72992),l=r(92786),d=r(90251),a=r(69971),c=r(42474),u=r(2784),f=r(52322);let h="tooltip",g=a.q4.extractable(u.forwardRef(({__scopeTooltip:e,...t},r)=>{let n=(0,a.GK)(e||h),o=t.padding??t.size??n.size??(0,s.ap)("$true",{shift:-2});return(0,f.jsx)(d.yk,{__scopePopover:e||h,componentName:"Tooltip",disableRemoveScroll:!0,disableFocusScope:!0,...!t.unstyled&&{padding:o},ref:r,...t})})),p=u.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e;return(0,f.jsx)(d.QH,{__scopePopper:r||h,componentName:"Tooltip",ref:t,...n})}),m=u.forwardRef(function(e,t){let{children:r,delay:l,restMs:g=typeof l>"u"?500:"number"==typeof l?l:0,onOpenChange:p,focus:m,open:x,disableAutoCloseOnScroll:b,__scopeTooltip:v,...k}=e,y=u.useRef(null),[_,S]=u.useState(!1),{delay:I,setCurrentId:E}=(0,n.tj)(),$=l??I,[C,T]=(0,c.T)({prop:x,defaultProp:!1,onChange:p}),w=e.groupId,R=(0,o.z)(e=>{e&&E(w),T(e)});u.useEffect(()=>{if(!C||b||typeof document>"u")return;let e=()=>{T(!1)};return document.documentElement.addEventListener("scroll",e),()=>{document.documentElement.removeEventListener("scroll",e)}},[C,b]);let B=u.useCallback(e=>{let t=(0,n.YF)({...e,open:C,onOpenChange:R}),{getReferenceProps:r,getFloatingProps:o}=(0,n.NI)([(0,n.XI)(t.context,{delay:$,restMs:g}),(0,n.KK)(t.context,m),(0,n.qs)(t.context,{role:"tooltip"}),(0,n.bQ)(t.context),(0,n.Qu)(t.context,{id:w})]);return{...t,open:C,getReferenceProps:r,getFloatingProps:o}},[w,$,C,g,m?JSON.stringify(m):0]),P=u.useCallback(()=>S(!0),[]),G=u.useCallback(()=>S(!1),[]),H=u.useId(),L=e.unstyled?null:(0,s.ap)("$true",{shift:-2,bounds:[0]});return(0,f.jsx)(i.A4.Provider,{value:B,children:(0,f.jsx)(a.rD,{__scopePopper:v||h,size:L?.key,allowFlip:!0,stayInFrame:!0,...k,children:(0,f.jsx)(d.m_.Provider,{contentId:H,triggerRef:y,sheetBreakpoint:!1,open:C,scope:v||h,onOpenChange:T,onOpenToggle:j,hasCustomAnchor:_,onCustomAnchorAdd:P,onCustomAnchorRemove:G,children:r})})})}),x=u.forwardRef(function(e,t){let{__scopeTooltip:r,...n}=e;return(0,f.jsx)(d.xo,{...n,__scopePopover:r||h,ref:t})}),b=u.forwardRef(function(e,t){let{__scopeTooltip:r,...n}=e;return(0,f.jsx)(d.tW,{...n,__scopePopover:r||h,ref:t})}),v=(0,l.$e)(m,{Anchor:b,Arrow:p,Content:g,Trigger:x}),j=()=>{}}},function(e){e.O(0,[6425,4403,8753,7455,1800,5029,4232,8981,5281,1129,9334,4208,9138,9344,6577,6974,2066,199,25,8905,6870,244,9362,8501,150,2888,9774,179],function(){return e(e.s=62031)}),_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.