PageSourceSearch

https://www.stickermule.com/core/_next/static/chunks/16-642f27e3c91f71bf.js

js stickermule.com collected 2026-10-01 07:45:44 UTC 41,653 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16],{91850:function(e,t,n){n.d(t,{G:function(){return i}});let i=20},60310:function(e,t,n){n.d(t,{vV:function(){return i.v},ye:function(){return useProSubscriptionCheckoutUrl},AL:function(){return useUserCommentsTotalCount}}),n(43321);var i=n(48681);n(39758);var o=n(82729),a=n(68806),r=n(6812),l=n(36225),s=n(91850);function _templateObject(){let e=(0,o._)(["\n  query GetCommentsTotalCountQuery(\n    $resourceType: CommentableResourceType!\n    $resourceId: String!\n    $limit: Int!\n  ) {\n    getComments(\n      resourceType: $resourceType\n      resourceId: $resourceId\n      limit: $limit\n    ) {\n      totalCount\n    }\n  }\n"]);return _templateObject=function(){return e},e}let c=(0,a.Ps)(_templateObject()),useUserCommentsTotalCount=e=>{var t;let{variables:n}=e,{data:i,loading:o}=(0,r.a)(c,{context:{clientName:l.Jc},variables:{...n,limit:s.G},ssr:!1});return{totalCount:(null==i?void 0:null===(t=i.getComments)||void 0===t?void 0:t.totalCount)||0,loading:o}};function useProSubscriptionCheckoutUrl_templateObject(){let e=(0,o._)(["\n  query PRO_SUBSCRIPTION_CHECKOUT_URL_QUERY {\n    proSubscriptionCheckoutUrl\n  }\n"]);return useProSubscriptionCheckoutUrl_templateObject=function(){return e},e}n(20238);let d=(0,a.Ps)(useProSubscriptionCheckoutUrl_templateObject()),useProSubscriptionCheckoutUrl=function(){let{skip:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{skip:!1};return(0,r.a)(d,{context:{clientName:l.bd},skip:e,ssr:!1})};n(45551)},39758:function(e,t,n){n.d(t,{VR:function(){return isTooManyRequestsError},s9:function(){return useAddUserComment}});var i=n(82729),o=n(68806),a=n(50319),r=n(36225),l=n(91850),s=n(43321);function _templateObject(){let e=(0,i._)(["\n  mutation ADD_COMMENT_MUTATION(\n    $resourceType: CommentableResourceType!\n    $resourceId: String!\n    $text: String!\n    $recaptchaToken: String\n  ) {\n    addComment(\n      resourceType: $resourceType\n      resourceId: $resourceId\n      text: $text\n      recaptchaToken: $recaptchaToken\n    ) {\n      id\n      text\n      user {\n        id\n        name\n        isIdentityVerified\n        isMilitaryVerified\n        isProUser\n        avatarUrl\n        vanityName\n      }\n      createdAt\n      hiddenAt\n      deletedAt\n    }\n  }\n"]);return _templateObject=function(){return e},e}let c=(0,o.Ps)(_templateObject()),isTooManyRequestsError=e=>{var t,n,i,o;return(null===(i=null===(o=null==e?void 0:e.networkError)||void 0===o?void 0:o.result)||void 0===i?void 0:null===(n=i.errors)||void 0===n?void 0:null===(t=n[0].extensions)||void 0===t?void 0:t.code)==="TOO_MANY_REQUESTS"},useAddUserComment=()=>(0,a.D)(c,{context:{clientName:r.Jc},update:(e,t,n)=>{var i;(null===(i=t.data)||void 0===i?void 0:i.addComment)&&e.updateQuery({query:s.t,variables:{limit:l.G,resourceId:n.variables.resourceId,resourceType:n.variables.resourceType}},e=>({getComments:{items:[t.data.addComment,...e.getComments.items],totalCount:e.getComments.totalCount+1}}))}})},20238:function(e,t,n){n.d(t,{Y:function(){return useDeleteUserComment}});var i=n(82729),o=n(68806),a=n(50319),r=n(36225),l=n(43321),s=n(91850);function _templateObject(){let e=(0,i._)(["\n  mutation DELTE_COMMENT_MUTATION($id: ID!) {\n    deleteComment(id: $id)\n  }\n"]);return _templateObject=function(){return e},e}let c=(0,o.Ps)(_templateObject()),useDeleteUserComment=(e,t)=>(0,a.D)(c,{context:{clientName:r.Jc},update:(n,i,o)=>{let{variables:a}=o;i.data.deleteComment&&n.updateQuery({query:l.t,variables:{limit:s.G,resourceId:e,resourceType:t}},e=>{let t=e.getComments.items.filter(e=>e.id!==a.id);return{getComments:{items:t,totalCount:e.getComments.totalCount>0?e.getComments.totalCount-1:0}}})}})},48681:function(e,t,n){n.d(t,{v:function(){return useFormatRelativeDate}});var i=n(2031),o=n(35354),a=n(27670);let useFormatRelativeDate=()=>{let{locale:e}=(0,o.bU)(),{t}=(0,i.$)(),{language:n}=a.nD[e];return function(e){var i;let{style:o="long"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=new Intl.RelativeTimeFormat(n,{numeric:"always",style:o}),r=new Date,l=Math.floor((e.getTime()-r.getTime())/1e3);if(1>Math.abs(l))return t("Now").toLocaleLowerCase();let s=[{max:60,divisor:1,unit:"second"},{max:3600,divisor:60,unit:"minute"},{max:86400,divisor:3600,unit:"hour"},{max:604800,divisor:86400,unit:"day"},{max:2592e3,divisor:604800,unit:"week"},{max:31536e3,divisor:2592e3,unit:"month"},{max:1/0,divisor:31536e3,unit:"year"}],{unit:c,divisor:d}=null!==(i=s.find(e=>{let{max:t}=e;return Math.abs(l)<t}))&&void 0!==i?i:s[s.length-1];return a.format(Math.round(l/d),c)}}},45551:function(e,t,n){n.d(t,{z:function(){return useUpdateUserCommentVisibility}});var i=n(82729),o=n(68806),a=n(50319),r=n(36225);
1function _templateObject(){let e=(0,i._)(["\n  mutation UPDATE_USER_COMMENT_VISIBILITY_MUTATION(\n    $id: ID!\n    $isHidden: Boolean!\n  ) {\n    updateCommentVisibility(id: $id, isHidden: $isHidden) {\n      id\n      hiddenAt\n    }\n  }\n"]);return _templateObject=function(){return e},e}let l=(0,o.Ps)(_templateObject()),useUpdateUserCommentVisibility=()=>(0,a.D)(l,{context:{clientName:r.Jc}})},43321:function(e,t,n){n.d(t,{R:function(){return useUserComments},t:function(){return d}});var i=n(82729),o=n(68806),a=n(6812),r=n(1644),l=n(67294),s=n(36225),c=n(91850);function _templateObject(){let e=(0,i._)(["\n  query GetCommentsQuery(\n    $resourceType: CommentableResourceType!\n    $resourceId: String!\n    $limit: Int!\n    $offset: Int\n  ) {\n    getComments(\n      resourceType: $resourceType\n      resourceId: $resourceId\n      limit: $limit\n      offset: $offset\n    ) {\n      items {\n        id\n        text\n        user {\n          id\n          name\n          isIdentityVerified\n          isMilitaryVerified\n          isProUser\n          avatarUrl\n          vanityName\n        }\n        createdAt\n        hiddenAt\n        deletedAt\n      }\n      totalCount\n    }\n  }\n"]);return _templateObject=function(){return e},e}let d=(0,o.Ps)(_templateObject()),useUserComments=e=>{var t,n;let[i,o]=(0,l.useState)(null),{data:m,fetchMore:x,networkStatus:u,...b}=(0,a.a)(d,{context:{clientName:s.Jc},variables:{...e,limit:c.G},notifyOnNetworkStatusChange:!0,ssr:!1}),p=(null==m?void 0:null===(t=m.getComments)||void 0===t?void 0:t.items)||[],f=(null==m?void 0:null===(n=m.getComments)||void 0===n?void 0:n.totalCount)||0,loadMore=async()=>{o(null);try{await x({variables:{offset:p.length},updateQuery:(e,t)=>{let{fetchMoreResult:n}=t;return 0===n.getComments.items.length?e:{...e,getComments:{...e.getComments,totalCount:n.getComments.totalCount,items:[...e.getComments.items,...n.getComments.items]}}}})}catch(e){o(e)}};return{...b,loadMore,loadMoreError:i,isLoading:u===r.Ie.loading||u===r.Ie.refetch,isLoadingMore:u===r.Ie.fetchMore,totalCount:f,hasMore:p.length<f,data:p}}},82412:function(e,t,n){n.d(t,{Ej:function(){return J},_d:function(){return UserCommentsSection}});var i=n(85893),o=n(5379),a=n.n(o),r=n(2031),l=n(67294),s=n(89450),c=n(63246),d=n(70082),m=n(24094),x=n(59348),u=n(76519),b=n(49041),p=n(94184),f=n.n(p),g=n(65150),y=n(12080),h=n(52874),v=n(55761),k=n(81750),j=n(72407),w=n(18449),_=n(64666);let UserCommentForm=e=>{let{isGuest:t,canUserPostComment:n,onSubmit:o,isLoading:c,submitError:d,onSignUpClick:m,onUpgradeToProClick:x}=e,{t:u}=(0,r.$)(),{space:b,colors:p}=(0,s.k)(),{maxCharactersValidator:C}=(0,g.t)(),z=(0,y.M)(),[U,M]=(0,l.useState)(!1),[N,S]=(0,l.useState)(""),[T,q]=(0,l.useState)(!1),O=N.trim(),I=O.length>=240?0:240-O.length,E=O.length>240,handleSubmit=async(e,t)=>{let n=await o(t.comment);n&&(M(!1),S(""),q(!1))},A=c?(0,i.jsx)(j.z,{variant:"uiAccent",isFullWidth:!0,loading:!0,children:u("Post_comment")}):t?(0,i.jsx)(j.z,{onClick:m,variant:"uiAccent",isFullWidth:!0,children:u("Sign_up_to_post")}):n?(0,i.jsx)(j.z,{disabled:!T,type:"submit",variant:"uiAccent",isFullWidth:!0,children:u("Post_comment")}):(0,i.jsx)(j.z,{onClick:x,variant:"uiAccent",isFullWidth:!0,children:u("Upgrade_to_Pro_to_post")});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(h.l0,{onSubmit:handleSubmit,children:[(0,i.jsx)(h.gN,{label:(0,i.jsx)(v._,{htmlFor:z,children:u("Leave_a_comment")}),margin:"0",children:(0,i.jsx)(k.K,{id:z,name:"comment",onChange:(e,t)=>
1{S(e.target.value),q(t)},onFocus:()=>M(!0),placeholder:u("Share_your_thoughts_or_inquiries"),rows:3,validators:[C(240)],value:N,required:!0})}),(0,i.jsx)("div",{className:a().dynamic([["659125f8603a82f7",[b["5x"],b["2x"],p.neutral.fgMuted,p.danger.standalone.resting,b["3x"]]]])+" "+(f()("collapsible",{isCollapsed:!U})||""),children:(0,i.jsx)("div",{className:a().dynamic([["659125f8603a82f7",[b["5x"],b["2x"],p.neutral.fgMuted,p.danger.standalone.resting,b["3x"]]]])+" collapsibleContentWrapper",children:(0,i.jsxs)("div",{className:a().dynamic([["659125f8603a82f7",[b["5x"],b["2x"],p.neutral.fgMuted,p.danger.standalone.resting,b["3x"]]]])+" collapsibleContent",children:[(0,i.jsx)(w.P,{className:f()("charactersLeft",{hasError:E}),margin:"0",children:u("{count}_characters_left",{count:I})}),d&&(0,i.jsx)(h.Xq,{margin:"0",children:u("errors.generic_try_again_support")}),(0,i.jsx)("div",{className:a().dynamic([["659125f8603a82f7",[b["5x"],b["2x"],p.neutral.fgMuted,p.danger.standalone.resting,b["3x"]]]])+" submitButtonWrapper",children:A}),(0,i.jsx)(_.i,{})]})})})]}),(0,i.jsx)(a(),{id:"659125f8603a82f7",dynamic:[b["5x"],b["2x"],p.neutral.fgMuted,p.danger.standalone.resting,b["3x"]],children:".collapsible.__jsx-style-dynamic-selector{display:grid;grid-template-rows:1fr;-webkit-transition:all 250ms ease-in-out;-moz-transition:all 250ms ease-in-out;-o-transition:all 250ms ease-in-out;transition:all 250ms ease-in-out;opacity:1}.collapsible.isCollapsed.__jsx-style-dynamic-selector{grid-template-rows:0fr;opacity:0}.collapsibleContentWrapper.__jsx-style-dynamic-selector{overflow:hidden}.collapsibleContent.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:".concat(b["5x"],";margin-top:").concat(b["2x"],"}.collapsibleContent.__jsx-style-dynamic-selector .charactersLeft{color:").concat(p.neutral.fgMuted,"}.collapsibleContent.__jsx-style-dynamic-selector .charactersLeft.hasError{color:").concat(p.danger.standalone.resting,"}.submitButtonWrapper.__jsx-style-dynamic-selector{padding-bottom:").concat(b["3x"],"}")})]})},Heading=e=>{let{level:t,children:n}=e,{fontSizes:o}=(0,s.k)();return"h3"===t?(0,i.jsx)(w.H3,{fontSize:o.mobile.heading.md,fontSizeMediumUp:o.desktop.heading.lg,margin:"0",children:n}):(0,i.jsx)(w.H4,{fontSize:o.mobile.heading.md,fontSizeMediumUp:o.desktop.heading.sm,margin:"0",children:n})};var C=n(60310),z=n(44771);let Container=e=>{let{children:t,isLoading:n}=e,{space:o}=(0,s.k)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:a().dynamic([["c991df07060a5bc",[o["8x"],o["5x"],o["5x"]]]])+" "+(f()("container",{isLoading:n})||""),children:t}),(0,i.jsx)(a(),{id:"c991df07060a5bc",dynamic:[o["8x"],o["5x"],o["5x"]],children:".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:".concat(o["8x"]," ").concat(o["5x"],";gap:").concat(o["5x"],"}.container.isLoading.__jsx-style-dynamic-selector{min-height:196px}")})]})},TextWrapper=e=>{let{children:t}=e,{mediaQueries:n,layout:o}=(0,s.k)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:a().dynamic([["3ae1deb665da467c",[o.mobile.gap.sm,n.mediumUp,o.desktop.gap.sm]]])+" textWrapper",children:t}),(0,i.jsx)(a(),{id:"3ae1deb665da467c",dynamic:[o.mobile.gap.sm,n.mediumUp,o.desktop.gap.sm],children:".textWrapper.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:".concat(o.mobile.gap.sm,"}@media ").concat(n.mediumUp,"{.textWrapper.__jsx-style-dynamic-selector{gap:").concat(o.desktop.gap.sm,"}}")})]})},UserCommentsList=e=>{let{comments:t,hasMore:n,isLoading:o,isLoadingMore:l,onLoadMoreClick:c,onRetryInitialLoadClick:d,renderComment:m,error:x,loadMoreError:u}=e,{t:b}=(0,r.$)(),{space:p,fontSizes:f}=(0,s.k)();return o?(0,i.jsx)(Container,{isLoading:!0,children:(0,i.jsx)(z.LoadingSpinner,{size:32})}):x?(0,i.jsxs)(Container,{children:[(0,i.jsxs)(TextWrapper,{children:[(0,i.jsx)(w.H4,{fontSize:f.de
1sktop.heading.sm,margin:"0",children:b("user_comments.Failed_to_load_comments")}),(0,i.jsx)(w.P,{margin:"0",children:b("errors.generic_try_again")})]}),(0,i.jsx)(j.z,{onClick:d,size:"sm",variant:"neutral",children:b("Try_again")})]}):0===t.length?(0,i.jsxs)(Container,{children:[(0,i.jsx)("img",{alt:"",height:56,src:"/core/_next/static/shared/frontend/components/UserCommentsSection/assets/empty-state.411d157d636b24ff.svg"}),(0,i.jsxs)(TextWrapper,{children:[(0,i.jsx)(w.H4,{fontSize:f.desktop.heading.sm,margin:"0",children:b("user_comments.No_comments_yet")}),(0,i.jsx)(w.P,{margin:"0",children:b("user_comments.no_comments_text")})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:a().dynamic([["7aa5590e493e245d",[p["5x"],p["2x"]]]])+" container",children:[(0,i.jsx)("div",{className:a().dynamic([["7aa5590e493e245d",[p["5x"],p["2x"]]]]),children:t.map(e=>m(e))}),n&&(0,i.jsxs)("div",{className:a().dynamic([["7aa5590e493e245d",[p["5x"],p["2x"]]]])+" actions",children:[u&&(0,i.jsx)(w.P,{margin:"0",children:b("user_comments.load_more_error")}),(0,i.jsx)(j.z,{loading:l,onClick:c,size:"sm",variant:"neutral",children:b(u?"Try_again":"Load_more")})]})]}),(0,i.jsx)(a(),{id:"7aa5590e493e245d",dynamic:[p["5x"],p["2x"]],children:".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:".concat(p["5x"],"}.actions.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start;gap:").concat(p["2x"],"}")})]})};var U=n(41664),M=n.n(U),N=n(35354),S=n(86240),T=n(37183),q=n(78778),O=n(57042),I=n(72735),E=n(13564),A=n(73324),L=n(35800),P=n(73935),R=n(76205),$=n(41353),F=n(62728);let DropdownMenu=e=>{let{anchor:t,align:n="left",children:o,onClose:r}=e,{zIndexes:c,radius:d,size:m,colors:x}=(0,s.k)(),u=(0,l.useRef)(),b=(0,l.useRef)({}),[p,f]=(0,l.useState)(!1),[g,y]=(0,l.useState)(null),[h,v]=(0,l.useState)({top:0,left:0});(0,R.N)(p,()=>r(),u),(0,$.x)([[["Escape"],()=>handleEscape()],[["ArrowUp"],()=>focusPreviousChild()],[["ArrowDown"],()=>focusNextChild({loop:!1})],[["Tab"],()=>focusNextChild({loop:!0})]]);let handleEscape=()=>{r(),t.focus()},focusPreviousChild=()=>{null===g?y(0):g>0&&y(g-1)},focusNextChild=e=>{let{loop:t}=e;null===g?y(0):g<Object.keys(b.current).length-1?y(g+1):t&&y(0)},k=(0,l.useCallback)(()=>{if(!u.current)return;let e=t.getBoundingClientRect(),i=u.current.getBoundingClientRect(),o=e.top+e.height+5;if("right"===n){let t=e.right-i.width;v({top:o,left:t<10?10:t});return}let a=e.left+i.width,r=document.documentElement.clientWidth-a,l=r<10?e.left+r-10:e.left;v({top:o,left:l})},[t,n]);(0,l.useEffect)(()=>{var e;null!==g&&(null===(e=b.current[g])||void 0===e||e.focus())},[g]),(0,l.useEffect)(()=>(document.addEventListener("scroll",k),window.addEventListener("resize",k),()=>{document.removeEventListener("scroll",k),window.removeEventListener("resize",k)}),[t,k]),(0,F.L)(()=>{k()},[k,p]),(0,l.useEffect)(()=>{var e;f(!0),null===(e=u.current)||void 0===e||e.focus()},[]);let j=(0,l.useRef)(null);return((0,l.useEffect)(()=>{t&&(j.current=t.closest("[data-global-layer]"))},[t,p]),j.current)?(0,i.jsx)(i.Fragment,{children:(0,P.createPortal)((0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:u,role:"menu",style:{...h},tabIndex:-1,className:a().dynamic([["6d62a6cac71aa57f",[c.flyOutPanels,d.xs,m["40x"],m["80x"],m["4x"],x.neutral.shadow]]])+" menu",children:l.Children.toArray(o).filter(l.isValidElement).map((e,t)=>(0,l.cloneElement)(e,{key:e.key,ref:e=>{b.current[t]=e},role:"menuitem"}))}),(0,i.jsx)(a(),{id:"6d62a6cac71aa57f",dynamic:[c.flyOutPanels,d.xs,m["40x"],m["80x"],m["4x"],x.neutral.shadow],children:".menu.__jsx-style-dynamic-selector{position:fixed;overflow:hidden;z-index:".concat(c.flyOutPanels,";-webkit-border-radius:").concat(d.xs,";-moz-border-radius:").concat(d.xs,";border-radius:").concat(d.xs,";background:white;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-width:").concat(m["40x"],";max-width:").concat(m["80x"],";-webkit-box-shadow:0px 2px ").concat(m["4x"]," ").concat(x.neutral.shadow,";-moz-box-shadow:0px 2px ").concat(m["4x"]," ").concat(x.neutral.shadow,";box-shadow:0px 2px ").concat(m["4x"]," ").concat(x.neutral.shadow,";outline:none}")})]}),j.current)}):null};var D=n(59361),H=n(39884);let V="26px",W=(0,l.forwardRef)((e,t)=>{let{isMenuOpen:n,onClick:o}=e,{t:l}=(0,r.$)(),{radius:c,colors:d,size:m}=(0,s.k)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D.u,{align:"center",content:l("Show_options"),hoverDelay:300,isVisibleOnFocus:!n,isVisibleOnHover:!n,position:"bottom",children:(0,i.jsx)("button",{ref:t,"aria-label":l("Show_options"),onClick:o,type:"button",className:a().dynamic([["1fe45b91ca53221d",[V,V,d.neutral.fg,c.button.default,d.neutral.bg,d.neutral.bgHover,d.neutral.bgActive]]])+" "+(f()({isMenuOpen:n})||""),children:(0,i.jsx)(H.w,{size:parseInt(m["3xA"],10)})})}),(0,i.jsx)(a(),{id:"1fe45b91ca53221d",dynamic:[V,V,d.neutral.fg,c.button.default,d.neutral.bg,d.neutral.bgHover,d.neutral.bgActive],children:"button.__jsx-style-dynamic-selector{width:".concat(V,";height:").concat(V,";cursor:pointer;color:").concat(d.neutral.fg,";-webkit-border-radius:").concat(c.button.default,";-moz-border-radius:").concat(c.button.default,";border-radius:").concat(c.button.default,";background:").concat(d.neutral.bg,";display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;
1-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}button.__jsx-style-dynamic-selector:hover,button.__jsx-style-dynamic-selector:focus{background:").concat(d.neutral.bgHover,"}.isMenuOpen.__jsx-style-dynamic-selector,.isMenuOpen.__jsx-style-dynamic-selector:hover,.isMenuOpen.__jsx-style-dynamic-selector:focus{background:").concat(d.neutral.bgActive,"}")})]})});W.displayName="DropdownMenuButton";let B=(0,l.forwardRef)((e,t)=>{let{children:n,isLoading:o,...r}=e,{space:l}=(0,s.k)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{...r,ref:t,disabled:o,type:"button",className:a().dynamic([["fe4bfcc3cbb401b3",[l["3x"],l["4x"],l["3x"]]]])+" "+(r&&null!=r.className&&r.className||""),children:o?(0,i.jsx)(z.LoadingSpinner,{size:16}):n}),(0,i.jsx)(a(),{id:"fe4bfcc3cbb401b3",dynamic:[l["3x"],l["4x"],l["3x"]],children:"button.__jsx-style-dynamic-selector{padding:".concat(l["3x"]," ").concat(l["4x"],";display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:").concat(l["3x"],";cursor:pointer}")})]})});B.displayName="DropdownMenuOptionButton";let UserComment=e=>{let{comment:t,shouldShowDeleteOption:n,shouldShowHideOption:o,isLoadingUpdateVisibility:c,onDeleteOptionClick:m,onUpdateVisibilityOptionClick:x}=e,{space:u,layout:b,mediaQueries:p}=(0,s.k)(),{localizePath:g}=(0,N.bU)(),{t:y}=(0,r.$)(),h=(0,C.vV)(),[v,k]=(0,l.useState)(!1),j=(0,l.useRef)(),w=(0,l.useRef)(),_=(0,l.useRef)(),z=!!t.hiddenAt,handleUpdateVisibilityClick=async()=>{let e=await x();e&&k(!1)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:a().dynamic([["d6fd07a1281c2a1f",[V,u["3x"],u["3x"],40,u["3x"],b.mobile.gap.sm,u[2],b.mobile.gap.xs,p.mediumUp,b.desktop.gap.sm,b.desktop.gap.xs]]])+" container",children:[(0,i.jsxs)("div",{className:a().dynamic([["d6fd07a1281c2a1f",[V,u["3x"],u["3x"],40,u["3x"],b.mobile.gap.sm,u[2],b.mobile.gap.xs,p.mediumUp,b.desktop.gap.sm,b.desktop.gap.xs]]])+" "+(f()("commentWrapper",{isHidden:z})||""),children:[(0,i.jsx)(L.S,{anchorRef:w,vanityName:t.user.vanityName}),(0,i.jsx)(M(),{ref:w,href:g((0,d.J$)(t.user.vanityName)),passHref:!0,children:(0,i.jsx)(T.qE,{alt:"",size:"sm",src:t.user.avatarUrl,userName:t.user.name})}),(0,i.jsxs)("div",{className:a().dynamic([["d6fd07a1281c2a1f",[V,u["3x"],u["3x"],40,u["3x"],b.mobile.gap.sm,u[2],b.mobile.gap.xs,p.mediumUp,b.desktop.gap.sm,b.desktop.gap.xs]]])+" commentContent",children:[(0,i.jsxs)("div",{className:a().dynamic([["d6fd07a1281c2a1f",[V,u["3x"],u["3x"],40,u["3x"],b.mobile.gap.sm,u[2],b.mobile.gap.xs,p.mediumUp,b.desktop.gap.sm,b.desktop.gap.xs]]])+" info",children:[(0,i.jsxs)("div",{className:a().dynamic([["d6fd07a1281c2a1f",[V,u["3x"],u["3x"],40,u["3x"],b.mobile.gap.sm,u[2],b.mobile.gap.xs,p.mediumUp,b.desktop.gap.sm,b.desktop.gap.xs]]])+" authorInfo",children:[(0,i.jsx)(L.S,{anchorRef:_,vanityName:t.user.vanityName}),(0,i.jsx)(S.x,{className:"authorDisplayName",fontWeight:"strong",lineClamp:1,children:(0,i.jsx)(M(),{ref:_,href:g((0,d.J$)(t.user.vanityName)),passHref:!0,children:t.user.name})}),(t.user.isIdentityVerified||t.user.isMilitaryVerified)&&(0,i.jsx)(q.q,{isMilitaryVerified:t.user.isMilitaryVerified,size:15}),t.user.isProUser&&(0,i.jsx)(O.m,{size:"tiny",variant:"link"})]}),(0,i.jsx)(S.x,{className:"createdAt",color:"neutral.fgMuted",children:h(new Date(t.createdAt))})]}),(0,i.jsx)(S.x,{children:t.text})]})]}),(o||n)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W,{ref:j,isMenuOpen:v,onClick:()=>k(e=>!e)}),v&&(0,i.jsxs)(DropdownMenu,{align:"right",anchor:j.current,onClose:()=>k(!1),children:[o&&(0,i.jsx)(B,{isLoading:c,onClick:handleUpdateVisibilityClick,children:z?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I.h,{size:16}),"Unhide as admin"]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E.k,{size:16}),"Hide as admin"]})}),n&&(0,i.jsxs)(B,{onClick:m,children:[(0,i.jsx)(A.Y,{size:16})," ",y("user_comments.Delete_comment")]})]})]})]}),(0,i.jsx)(a(),{id:"d6fd07a1281c2a1f",dynamic:[V,u["3x"],u["3x"],40,u["3x"],b.mobile.gap.sm,u[2],b.mobile.gap.xs,p.mediumUp,b.desktop.gap.sm,b.desktop.gap.xs],children:".container.__jsx-style-dynamic-selector{display:grid;grid-template-columns:1fr ".concat(V,";padding:").concat(u["3x"]," 0;
1gap:").concat(u["3x"],"}.commentWrapper.__jsx-style-dynamic-selector{display:grid;grid-template-columns:").concat(40,"px 1fr;gap:").concat(u["3x"],";min-width:0}.commentContent.__jsx-style-dynamic-selector{min-width:0}.commentWrapper.isHidden.__jsx-style-dynamic-selector{opacity:.4}.info.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:").concat(b.mobile.gap.sm,";min-width:0;margin-bottom:").concat(u[2],"}.info.__jsx-style-dynamic-selector>.createdAt{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.info.__jsx-style-dynamic-selector>.authorInfo.__jsx-style-dynamic-selector{min-width:0}.authorInfo.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:").concat(b.mobile.gap.xs,";min-width:0}.authorInfo.__jsx-style-dynamic-selector>*{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.authorInfo.__jsx-style-dynamic-selector>.authorDisplayName{min-width:0;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1}@media ").concat(p.mediumUp,"{.info.__jsx-style-dynamic-selector{gap:").concat(b.desktop.gap.sm,"}.authorInfo.__jsx-style-dynamic-selector{gap:").concat(b.desktop.gap.xs,"}}")})]})};var Q=n(26955);let UserCommentDeleteModal=e=>{let{isDeleteLoading:t,onClose:n,onConfirm:o,error:l}=e,{t:c}=(0,r.$)(),{fontSizes:d,space:m}=(0,s.k)(),x=(0,y.M)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q.u,{"aria-labelledby":x,onClose:n,children:(0,i.jsxs)("div",{className:a().dynamic([["31d8552cab98e58d",[m["5x"],m["2x"],m["3x"]]]])+" container",children:[(0,i.jsxs)("div",{className:a().dynamic([["31d8552cab98e58d",[m["5x"],m["2x"],m["3x"]]]])+" heading",children:[(0,i.jsx)(w.H2,{fontSize:d.desktop.heading.lg,fontSizeMediumUp:d.desktop.heading.lg,id:x,margin:"0",children:c("user_comments.delete_comment_heading")}),(0,i.jsx)(w.P,{margin:"0",children:c("This_action_cant_be_undone")})]}),l&&(0,i.jsx)(h.Xq,{margin:"0",children:c("errors.generic_try_again")}),(0,i.jsxs)("div",{className:a().dynamic([["31d8552cab98e58d",[m["5x"],m["2x"],m["3x"]]]])+" actions",children:[(0,i.jsx)(j.z,{loading:t,onClick:o,variant:"danger",isFullWidth:!0,children:c("user_comments.Delete_comment")}),(0,i.jsx)(j.z,{onClick:n,size:"sm",variant:"neutral",isFullWidth:!0,children:c("user_comments.Keep_comment")})]})]})}),(0,i.jsx)(a(),{id:"31d8552cab98e58d",dynamic:[m["5x"],m["2x"],m["3x"]],children:".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:".concat(m["5x"],"}.heading.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:").concat(m["2x"],"}.actions.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:").concat(m["3x"],"}")})]})},UserCommentsLimitReachedModal=e=>{let{onClose:t}=e,{t:n}=(0,r.$)(),{fontSizes:o,space:l,mediaQueries:c}=(0,s.k)(),d=(0,y.M)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q.u,{"aria-labelledby":d,onClose:t,children:(0,i.jsxs)("div",{className:a().dynamic([["4137665bc13f1aa7",[l["5x"],l["1x"],c.mediumUp,l["2x"]]]])+" container",children:[(0,i.jsxs)("div",{className:a().dynamic([["4137665bc13f1aa7",[l["5x"],l["1x"],c.mediumUp,l["2x"]]]])+" textWrapper",children:[(0,i.jsx)(w.H2,{fontSize:o.mobile.heading.xl,fontSizeMediumUp:o.desktop.heading.lg,id:d,margin:"0",children:n("user_comments.You_are_commenting_too_quickly")}),(0,i.jsx)(w.P,{margin:"0",children:n("user_comments.limit_reached_text")})]}),(0,i.jsx)(j.z,{onClick:t,variant:"neutral",children:n("Close")})]})}),(0,i.jsx)(a(),{id:"4137665bc13f1aa7",dynamic:[l["5x"],l["1x"],c.mediumUp,l["2x"]],children:".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:".concat(l["5x"],"}.textWrapper.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:").concat(l["1x"],"}@media ").concat(c.mediumUp,"{.textWrapper.__jsx-style-dynamic-selector{gap:").concat(l["2x"],"}}")})]})};var G=n(66917),Y=n(90386);let UserCommentRequirementsModal=e=>{let{proSubscriptionCheckoutUrl:t,proSubscriptionCheckoutUrlError:n,onClose:o}=e,{t:l}
1=(0,r.$)(),{space:c,fontSizes:d,mediaQueries:m,radius:x,colors:u,fontWeights:b}=(0,s.k)(),{locale:p}=(0,N.bU)(),f=(0,y.M)(),g=!!n||!t;return(0,i.jsxs)(Q.u,{"aria-labelledby":f,onClose:o,children:[(0,i.jsxs)("div",{className:a().dynamic([["861ef9b750fe139b",[c["5x"],c["1x"],c["3x"],c["5x"],x.default,u.neutral.border,u.primary.standalone.resting,u.primary.weaker.bg,c["1x"],b.strong,u.neutral.fgMuted,d.xs,m.mediumUp,c["2x"]]]])+" wrapper",children:[(0,i.jsx)("div",{className:a().dynamic([["861ef9b750fe139b",[c["5x"],c["1x"],c["3x"],c["5x"],x.default,u.neutral.border,u.primary.standalone.resting,u.primary.weaker.bg,c["1x"],b.strong,u.neutral.fgMuted,d.xs,m.mediumUp,c["2x"]]]])+" heading",children:(0,i.jsx)(w.H3,{fontSize:d.mobile.heading.xl,fontSizeMediumUp:d.desktop.heading.lg,id:f,margin:"0",children:l("Add_your_comment")})}),(0,i.jsxs)("div",{className:a().dynamic([["861ef9b750fe139b",[c["5x"],c["1x"],c["3x"],c["5x"],x.default,u.neutral.border,u.primary.standalone.resting,u.primary.weaker.bg,c["1x"],b.strong,u.neutral.fgMuted,d.xs,m.mediumUp,c["2x"]]]])+" requirement pro",children:[(0,i.jsxs)("div",{className:a().dynamic([["861ef9b750fe139b",[c["5x"],c["1x"],c["3x"],c["5x"],x.default,u.neutral.border,u.primary.standalone.resting,u.primary.weaker.bg,c["1x"],b.strong,u.neutral.fgMuted,d.xs,m.mediumUp,c["2x"]]]])+" caption",children:[(0,i.jsxs)("div",{className:a().dynamic([["861ef9b750fe139b",[c["5x"],c["1x"],c["3x"],c["5x"],x.default,u.neutral.border,u.primary.standalone.resting,u.primary.weaker.bg,c["1x"],b.strong,u.neutral.fgMuted,d.xs,m.mediumUp,c["2x"]]]])+" captionHeadingWrapper",children:[(0,i.jsx)(w.P,{className:"captionHeading",margin:"0",children:l("Upgrade_to_Pro")}),(0,i.jsx)(O.m,{size:"tiny",variant:"loop"})]}),(0,i.jsx)(w.P,{className:"captionText",margin:"0",children:l("pro_subscription.description_with_price",{price:(0,G.T4)(Y.Am,"USD",p)})})]}),(0,i.jsx)(D.u,{align:"center",content:l("errors.network_issue"),isVisibleOnFocus:g,isVisibleOnHover:g,position:"top",children:(0,i.jsx)("div",{className:a().dynamic([["861ef9b750fe139b",[c["5x"],c["1x"],c["3x"],c["5x"],x.default,u.neutral.border,u.primary.standalone.resting,u.primary.weaker.bg,c["1x"],b.strong,u.neutral.fgMuted,d.xs,m.mediumUp,c["2x"]]]]),children:(0,i.jsx)(j.z,{disabled:g,onClick:()=>{window.location.href=t},size:"sm",children:l("Upgrade")})})})]})]}),(0,i.jsx)(a(),{id:"861ef9b750fe139b",dynamic:[c["5x"],c["1x"],c["3x"],c["5x"],x.default,u.neutral.border,u.primary.standalone.resting,u.primary.weaker.bg,c["1x"],b.strong,u.neutral.fgMuted,d.xs,m.mediumUp,c["2x"]],children:".wrapper.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:".concat(c["5x"],"}.heading.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:").concat(c["1x"],"}.requirement.__jsx-style-dynamic-selector{display:grid;grid-template-columns:1fr auto;gap:").concat(c["3x"],";-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:").concat(c["5x"],";-webkit-border-radius:").concat(x.default,";-moz-border-radius:").concat(x.default,";border-radius:").concat(x.default,";border:1px solid ").concat(u.neutral.border,"}.requirement.pro.__jsx-style-dynamic-selector{border:1px solid ").concat(u.primary.standalone.resting,";background:").concat(u.primary.weaker.bg,"}.captionHeadingWrapper.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:").concat(c["1x"],"}.caption.__jsx-style-dynamic-selector .captionHeading{font-weight:").concat(b.strong,"}.caption.__jsx-style-dynamic-selector .captionText{color:").concat(u.neutral.fgMuted,";font-size:").concat(d.xs,"}@mediaqueries ").concat(m.mediumUp," {\n          .heading {\n            gap: ").concat(c["2x"],";\n          }\n        }")})]})},J="comments",BaseUserCommentsSection=e=>{var t,n;let{resourceId:o,resourceType:p,headingLevel:f,commentsApi:g,onAuthModalClose:y,onAuthModalOpen:h}=e,{t:v}=(0,r.$)(),{space:k}=(0,s.k)(),{data:j}=(0,c.kP)(),{addToast:w}=(0,x.e1)(),{data:_,isLoading:z,isLoadingMore:U,hasMore:M,totalCount:N,loadMore:S,refetch:T,error:q,loadMoreError:O}=g.useComments({resourceId:o,resourceType:p}),[I,{error:E}]=g.useAddComment(),[A,{loading:L,error:P,reset:R}]=g.useDeleteComment(o,p),[$,{loading:F}]=g.useUpdateVisibility(),D=(null==j?void 0:null===(t=j.user)||void 0===t?void 0:t.isProUser)||(null==j?void 0:null===(n=j.user)||void 0===n?void 0:n.isIdentityVerified),H=(0,d.m9)(null==j?void 0:j.user),{data:V,error:W}=(0,C.ye)({skip:!H||D}),[B,Q]=(0,l.useState)(!1),[G,Y]=(0,l.useState)(!1),[K,X]=(0,l.useState)(!1),[Z,ee]=(0,l.useState)(null),[et,en]=(0,l.useState)(!1),[ei,eo]=(0,l.useState)(null),ea=(0,d.D3)(j),er=z?v("Comments"):v("{count}_comments",{count:null!=N?N:0}),handleSubmitCommentForm=async e=>{let t;eo(null),en(!0);try{t=await (0,m.L)("comment")}catch(e){return eo(e),en(!1),!1}try{let{errors:n}=await I({variables:{resourceId:o,resourceType:p,text:e,recaptchaToken:t}});if((null==n?void 0:n.length)>0)throw n[0];return await T(),!0}catch(e){return g.isTooManyRequestsError(E)&&X(!0),!1}finally{en(!1)}},handleDeleteComment=async()=>{try{let{errors:e}=await A({variables:{id:Z}});if((null==e?void 0:e.length)>0)throw e[0];ee(null),await T()}catch(e){}},handleUpdateVisibility=async(e,t)=>{let n=!t;try{let{errors:t}=await $({variables:{id:e,isHidden:n}});if((null==t?void 0:t.length)>0)throw t[0];return await T(),!0}catch(e){return w({type:"danger",title:n?"Failed to hide comment":"Failed to unhide comment",message:"Please try again."}),!1}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.e,{enforce:D}),B&&(0,i.jsx)(b.L,{initialActiveForm:"signUp",onClose:()=>{null==y||y(),Q(!1)},onSuccess:()=>{Q(!1)},signupSource:"comments"}),G&&(0,i.jsx)(UserCommentRequirementsModal,{onClose:()=>Y(!1),proSubscriptionCheckoutUrl:null==V?void 0:V.proSubscriptionCheckoutUrl,proSubscriptionCheckoutUrlError:W}),K&&(0,i.jsx)(UserCommentsLimitReachedModal,{onClose:()=>X(!1)}),null!==Z&&(0,i.jsx)(UserCommentDeleteModal,{error:P,isDeleteLoading:L,onClose:()=>{ee(null),R()},onConfirm:handleDeleteComment}),(0,i.jsxs)("div",{id:J,className:a().dynamic([["d97a452666a5f35b",[k["5x"]]]])+" container",children:[(0,i.jsx)(Heading,{level:f,children:er}),(0,i.jsx)(UserCommentForm,{canUserPostComment:D,isGuest:!(0,d.m9)(null==j?void 0:j.user),isLoading:et,onSignUpClick:()=>{null==h||h(),Q(!0)},onSubmit:handleSubmitCommentForm,onUpgradeToProClick:()=>Y(!0),submitError:g.isTooManyRequestsError(E)?void 0:E||ei}),(0,i.jsx)(UserCommentsList,{comments:_,error:q,hasMore:M,isLoading:z,isLoadingMore:U,loadMoreError:O,onLoadMoreClick:S,onRetryInitialLoadClick:()=>T(),renderComment:e=>{var t;return(0,i.jsx)(UserComment,{comment:e,isLoadingUpdateVisibility:F,onDeleteOptionClick:()=>ee(e.id),onUpdateVisibilityOptionClick:()=>handleUpdateVisibility(e.id,e.hiddenAt),shouldShowDeleteOption:e.user.id===(null==j?void 0:null===(t=j.user)||void 0===t?void 0:t.firebaseUid),shouldShowHideOption:ea},e.id)}})]}),(0,i.jsx)(a(),{id:"d97a452666a5f35b",dynamic:[k["5x"]],children:".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:".concat(k["5x"],"}")})]})};var K=n(39758),X=n(20238),Z=n(45551),ee=n(43321);let UserCommentsSection=e=>(0,i.jsx)(BaseUserCommentsSection,{...e,commentsApi:{useComments:e=>{let{resourceId:t,resourceType:n}=e,i=(0,ee.R)({resourceId:t,resourceType:n});return{data:i.data,totalCount:i.totalCount,isLoading:i.isLoading,isLoadingMore:i.isLoadingMore,hasMore:i.hasMore,error:i.error,loadMore:i.loadMore,loadMoreError:i.loadMoreError,refetch:async()=>{await i.refetch()}}},useAddComment:()=>{let[e,{loading:t,error:n}]=(0,K.s9)(),addComment=async t=>{var n,i,o;let{variables:a}
1=t,r=await e({variables:a});return{data:null!==(i=null===(n=r.data)||void 0===n?void 0:n.addComment)&&void 0!==i?i:null,errors:null!==(o=r.errors)&&void 0!==o?o:null}};return[addComment,{loading:t,error:n?Object.assign(Error(n.message),{statusCode:void 0,code:void 0}):void 0}]},isTooManyRequestsError:e=>(0,K.VR)(e),useDeleteComment:X.Y,useUpdateVisibility:Z.z}})},72735:function(e,t,n){n.d(t,{h:function(){return EyeOpenIcon}});var i=n(85893);let EyeOpenIcon=e=>{let{size:t=20,...n}=e;return(0,i.jsx)("svg",{fill:"currentColor",height:t,viewBox:"0 0 1000 1000",width:t,xmlns:"http://www.w3.org/2000/svg",...n,children:(0,i.jsx)("path",{d:"M929 536q-85-132-213-197 34 58 34 125 0 103-73 177t-177 73-177-73-73-177q0-67 34-125-128 65-213 197 75 114 187 182t242 68 243-68 186-182zM527 321q0-11-8-19t-19-7q-70 0-120 50t-50 119q0 11 8 19t19 8 19-8 8-19q0-48 34-82t82-34q11 0 19-8t8-19zm473 215q0 19-11 38-78 129-210 206t-279 77-279-77T11 574Q0 555 0 536t11-39q78-128 210-205t279-78 279 78 210 205q11 20 11 39z"})})}},13564:function(e,t,n){n.d(t,{k:function(){return EyeSlashIcon}});var i=n(85893);let EyeSlashIcon=e=>{let{size:t=20,...n}=e;return(0,i.jsx)("svg",{fill:"currentColor",height:t,viewBox:"0 0 1000 1000",width:t,xmlns:"http://www.w3.org/2000/svg",...n,children:(0,i.jsx)("path",{d:"M310 745l43-79q-48-35-76-88t-27-114q0-67 34-125-128 65-213 197 94 144 239 209zm217-424q0-11-8-19t-19-7q-70 0-120 50t-50 119q0 11 8 19t19 8 19-8 8-19q0-48 34-82t82-34q11 0 19-8t8-19zm202-106v5q-59 105-176 316T377 852l-28 50q-5 9-15 9-7 0-75-39-9-6-9-16 0-7 25-49-80-36-147-96T11 574Q0 557 0 536t11-39q86-131 212-207t277-76q50 0 100 10l31-54q5-9 15-9 3 0 10 3t18 9 18 10 18 10 10 7q9 5 9 15zm21 249q0 78-44 142t-117 91l157-280q4 25 4 47zm250 72q0 19-11 38-22 36-61 81-84 96-194 149t-234 53l41-74q119-10 219-76t169-171q-65-100-158-164l35-63q53 36 102 85t81 103q11 19 11 39z"})})}},73324:function(e,t,n){n.d(t,{Y:function(){return TrashAltIcon}});var i=n(85893);let TrashAltIcon=e=>{let{size:t=20,...n}=e;return(0,i.jsx)("svg",{fill:"currentColor",height:t,viewBox:"0 0 900 1000",width:t,xmlns:"http://www.w3.org/2000/svg",...n,children:(0,i.jsx)("path",{d:"M844 156H683L616 45c-8-13-20-25-34-33S552 0 536 0H339c-16 0-32 4-46 12s-26 20-34 33l-67 111H31c-8 0-16 3-22 9s-9 14-9 22v32c0 8 3 16 9 22s14 9 22 9h32l41 662c1 24 12 46 29 63 18 16 41 25 65 25h480c23 0 46-9 64-25 17-17 28-39 29-63l42-662h31c8 0 16-3 22-9s9-14 9-22v-32c0-8-3-16-9-22s-14-9-22-9zM339 94h197l37 62H302l37-62zm339 812H198l-41-656h562l-41 656z"})})}},81750:function(e,t,n){n.d(t,{K:function(){return TextArea}});var i=n(85893),o=n(5379),a=n.n(o),r=n(67294),l=n(94184),s=n.n(l),c=n(65150),d=n(13166),m=n(59361),x=n(39773),u=n(52874);let TextArea=e=>{var t;let{className:n,name:o,onBlur:l,onChange:b,required:p=!1,rows:f=5,validators:g=[],size:y,...h}=e,{size:v}=(0,r.useContext)(u.zb),k=null!==(t=null!=y?y:v)&&void 0!==t?t:"sm",{requiredValidator:j}=(0,c.t)(),w=[...p?[j]:[],...g],_=(0,r.useRef)(null),{errorMessage:C,handleBlur:z,handleChange:U}=(0,x.V)({name:o,fieldRef:_,getValue:()=>{var e;return null===(e=_.current)||void 0===e?void 0:e.value},onBlur:l,onChange:b,validators:w,required:p}),{classes:M,styles:N}=(0,d.a)({isInvalid:!!C,size:k});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.u,{content:C,isVisible:!!C,variant:"error",useFieldAsAnchor:!0,children:(0,i.jsx)("textarea",{ref:_,name:o,onBlur:z,onChange:U,required:p,rows:f,...h,className:"jsx-e70a7b3a50f5096a "+(h&&null!=h.className&&h.className||s()(M,"textarea",n)||"")})}),N,(0,i.jsx)(a(),{id:"e70a7b3a50f5096a",children:".textarea.jsx-e70a7b3a50f5096a{min-height:5rem;resize:vertical}"})]})}}}]);

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.