1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6091,2118,4551],{76013:function(t,n,e){var i=e(20811);n.Z=void 0;var a=i(e(98788)),o=e(73411);n.Z=(0,a.default)((0,o.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"ReplayOutlined")},40979:function(t,n,e){var i=e(1912),a=e(73411);n.Z=(0,i.Z)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined")},28431:function(t,n,e){e.d(n,{Z:function(){return w}});var i=e(96085),a=e(78511),o=e(21628),r=e(16348),l=e(62855),d=e(56956),s=e(91270),c=e(3668),u=e(54463),g=e(82384),f=e(57658),p=e(60817),m=e(43071);function h(t){return(0,m.ZP)("MuiLoadingButton",t)}let I=(0,e(46051).Z)("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]);var y=e(73411);let x=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Z=t=>{let{loading:n,loadingPosition:e,classes:i}=t,o={root:["root",n&&"loading"],startIcon:[n&&"startIconLoading".concat((0,r.Z)(e))],endIcon:[n&&"endIconLoading".concat((0,r.Z)(e))],loadingIndicator:["loadingIndicator",n&&"loadingIndicator".concat((0,r.Z)(e))]},l=(0,d.Z)(o,h,i);return(0,a.Z)({},i,l)},v=t=>"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t&&"classes"!==t,b=(0,s.ZP)(u.Z,{shouldForwardProp:t=>v(t)||"classes"===t,name:"MuiLoadingButton",slot:"Root",overridesResolver:(t,n)=>[n.root,n.startIconLoadingStart&&{["& .".concat(I.startIconLoadingStart)]:n.startIconLoadingStart},n.endIconLoadingEnd&&{["& .".concat(I.endIconLoadingEnd)]:n.endIconLoadingEnd}]})(t=>{let{ownerState:n,theme:e}=t;return(0,a.Z)({["& .".concat(I.startIconLoadingStart,", & .").concat(I.endIconLoadingEnd)]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},"center"===n.loadingPosition&&{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),["&.".concat(I.loading)]:{color:"transparent"}},"start"===n.loadingPosition&&n.fullWidth&&{["& .".concat(I.startIconLoadingStart,", & .").concat(I.endIconLoadingEnd)]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0,marginRight:-8}},"end"===n.loadingPosition&&n.fullWidth&&{["& .".concat(I.startIconLoadingStart,", & .").concat(I.endIconLoadingEnd)]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0,marginLeft:-8}})}),P=(0,s.ZP)("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(t,n)=>{let{ownerState:e}=t;return[n.loadingIndicator,n["loadingIndicator".concat((0,r.Z)(e.loadingPosition))]]}})(t=>{let{theme:n,ownerState:e}=t;return(0,a.Z)({position:"absolute",visibility:"visible",display:"flex"},"start"===e.loadingPosition&&("outlined"===e.variant||"contained"===e.variant)&&{left:"small"===e.size?10:14},"start"===e.loadingPosition&&"text"===e.variant&&{left:6},"center"===e.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:(n.vars||n).palette.action.disabled},"end"===e.loadingPosition&&("outlined"===e.variant||"contained"===e.variant)&&{right:"small"===e.size?10:14},"end"===e.loadingPosition&&"text"===e.variant&&{right:6},"start"===e.loadingPosition&&e.fullWidth&&{position:"relative",left:-10},"end"===e.loadingPosition&&e.fullWidth&&{position:"relative",right:-10})});var w=o.forwardRef(function(t,n){let e=o.useContext(g.Z),r=(0,p.Z)(e,t),d=(0,c.i)({props:r,name:"MuiLoadingButton"}),{children:s,disabled:u=!1,id:m,loading:h=!1,loadingIndicator:I,loadingPosition:v="center",variant:w="text"}=d,L=(0,i.Z)(d,x),S=(0,l.Z)(m),j=null!=I?I:(0,y.jsx)(f.Z,{"aria-labelledby":S,color:"inherit",size:16}),k=(0,a.Z)({},d,{disabled:u,loading:h,loadingIndicator:j,loadingPosition:v,variant:w}),C=Z(k),E=h?(0,y.jsx)(P,{className:C.loadingIndicator,ownerState:k,children:j}):null;return(0,y.jsxs)(b,(0,a.Z)({disabled:u||h,id:S,ref:n},L,{variant:w,classes:C,ownerState:k,children:["end"===k.loadingPosition?s:E,"end"===k.loadingPosition?E:s]}))})},32118:function(t,n,e){e.r(n),e.d(n,{CreateComment:function(){return d}});var i=e(73411),a=e(29313),o=e(61893),r=e(4530),l=e(92501);function d(t){let{threadId:n,parentId:e,entityType:d,parentType:s,showAvatar:c=!0,editorPlaceHolder:u,enableImageUpload:g,requiredEntitlements:f,initialContent:p,onCreate:m,dashboardTaskType:h}=t,{data:I}=(0,a.Sf)();return(0,i.jsxs)(r.Z,{sx:{display:"flex",width:"100%",padding:"0 4px",gap:1},children:[c&&(0,i.jsx)(o.ZP,{profileId:null==I?void 0:I.owner,displayName:null==I?void 0:I.displayName,profileImage:null==I?void 0:I.profileImage,size:36,sx:{mx:0}}),(0,i.jsx)(l.S,{commentParentType:s,threadId:n,parentId:e,entityType:d,mode:"CREATE",editorPlaceHolder:u,enableImageUpload:g,requiredEntitlements:f,commentContent:p,onSubmitHandler:m,dashboardTaskType:h})]})}},29313:function(t,n,e){e.d(n,{HO:function(){return s},Sf:function(){return d},sD:function(){return c}});var i=e(11908),a=e(88143),o=e(10613),r=e(40195),l=e(98694);function d(){let t=(0,o.useAuthStore)().useTracked.userId(),n=(0,r.useGraphqlClient)();return(0,i.useQuery)((0,l.yV)(t,n))}function s(){let t=(0,o.useAuthStore)().useTracked.userId(),n=(0,r.useGraphqlClient)();return(0,a.useSuspenseQuery)((0,l.yV)(t,n))}function c(t){let n=(0,r.useGraphqlClient)();return(0,a.useSuspenseQuery)((0,l.JI)(t,n))}},98694:function(t,n,e){e.d(n,{JI:function(){return l},SM:function(){return o},yV:function(){return r}});var i=e(88247);let a=["bio","createdAt","displayName","profileImage.*","badges.*","totalCoinsCount","cover.*","owner","publicProfileId","socialMediaLinks.*","attributes.*","experimentMetadata.*"],o=t=>["user-profile",t];function r(t,n){return{queryKey:o({owner:null!=t?t:""}),async queryFn(){if(!t)return null;let e=await n.models.UserProfile.get({owner:null!=t?t:""},{selectionSet:a});return(0,i.S)(e.errors),e.data}}}function l(t,n){return{enabled:!!t,queryKey:o({publicProfileId:null!=t?t:""}),async queryFn(){if(!t)return null;let e=await n.models.UserProfile.listUserProfileByPublicProfileId({publicProfileId:null!=t?t:""},{selectionSet:a});return(0,i.S)(e.errors),e.data[0]}}}},61532:function(t,n,e){e.d(n,{Z:function(){return p},g:function(){return m}});var i=e(73411),a=e(49348),o=e(82248),r=e(51450),l=e(13921),d=e(33363),s=e(4530),c=e(54463),u=e(30416),g=e(21628),f=e(25875);function p(t){let{currentFiles:n,maxFiles:e,onAdd:l,children:d,multiple:s=!0}=t,{i18n:c}=(0,r.mV)(),p=(0,u.Z)(e)&&(0,u.Z)(n)?Math.max(0,e-n):void 0,m=(0,u.Z)(p)&&0===p,h=async(t,n)=>{if(!m){let i=[...t,...n.filter(t=>t.errors[0].code===f.jK.TooManyFiles).map(t=>t.file)];if((0,u.Z)(p)&&i.length>p&&(i=i.slice(0,p),a.snackbarStore.set.create("warning",c.t({id:"image-upload.max-limit",message:"You can only upload a total of {maxFiles} images",values:{maxFiles:e}}))),i.length){let t=await Promise.all(i.map(t=>(0,o.h)(t)));null==l||l(t)}}},{getRootProps:I,getInputProps:y,isDragActive:x}=(0,f.uI)({multiple:s,disabled:m,maxFiles:p,accept:{"image/jpeg":[],"image/png":[],"image/webp":[]},onDrop:h}),Z=(0,g.useCallback)(()=>I({disabled:m,isDragActive:x}),[m,x,I]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("input",{...y()}),d(Z)]})}let m=(0,g.forwardRef)((t,n)=>{let{disabled:e,...a}=t,{i18n:o}=(0,r.mV)();return(0,i.jsx)(p,{...a,children:t=>{let{isDragActive:u,...g}
1=t();return(0,i.jsx)(d.Z,{title:g.disabled&&o.t({id:"image-upload.max-limit",message:"You can only upload a total of {maxFiles} images",values:{maxFiles:a.maxFiles}}),children:(0,i.jsx)(s.Z,{children:(0,i.jsx)(c.Z,{...g,disabled:g.disabled||e,ref:t=>{"function"==typeof n?n(t):n&&(n.current=t),"function"==typeof g.ref?g.ref(t):g.ref&&(g.ref.current=t)},color:u?"primary":"inherit",variant:"text",fullWidth:!0,sx:{color:u?"primary.main":"text.secondary",borderRadius:1,height:"100%",px:2,py:1.5},startIcon:(0,i.jsx)(l.Z,{sx:{color:"inherit"}}),children:(0,i.jsx)(r.cC,{id:"image-upload.placeholder"})})})})}})});m.displayName="ImageAddItem"},86235:function(t,n,e){e.d(n,{K:function(){return a}});var i=e(63031);function a(t){let n=(0,i.Z)(t=>t.breakpoints.down("md")),e=(0,i.Z)(t=>t.breakpoints.between("md","lg"));return n?t.mobile:e?t.tablet:t.desktop}},82248:function(t,n,e){e.d(n,{h:function(){return r}});var i=e(89502),a=e(52039);async function o(t){let n=await i.Z.getDataUrlFromFile(t),e=await i.Z.loadImage(n);return{id:(0,a.Z)(),file:t,url:n,size:t.size,width:e.width,height:e.height}}async function r(t,n){return o(await (0,i.Z)(t,{maxWidthOrHeight:1920,useWebWorker:!0,...n}))}}}]);
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.