PageSourceSearch

https://www.hagerty.com/marketplace/_next/static/chunks/8927.fb064a0596df8202.js

js hagerty.com collected 2026-09-24 07:59:19 UTC 26,489 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f4e0f119-6456-40bb-be4b-3e35ad0bec0f",e._sentryDebugIdIdentifier="sentry-dbid-f4e0f119-6456-40bb-be4b-3e35ad0bec0f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8927],{7435:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var a=n(52517),o=n(37876);let r=e=>{let{isOpened:t,onConfirm:n,onClose:r}=e;return(0,o.jsx)(a.R,{title:"Are you sure you want to report this comment?",onClose:r,isOpened:t,id:"comment-flag-confirmation-modal",primaryButton:{label:"Report comment",onClick:n}})}},7803:e=>{e.exports={"mentioned-garage":"MentionedGarage_mentioned-garage__5wz22","at-mention":"MentionedGarage_at-mention__qjSE2"}},12734:e=>{e.exports={"register-link":"RegisterLink_register-link__P3XdN"}},13870:e=>{e.exports={"disabled-comments-info":"DisabledCommentsInfo_disabled-comments-info__UVVI3","disabled-comments-info__title":"DisabledCommentsInfo_disabled-comments-info__title__g8IG2"}},14202:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var a=n(37876);let o=e=>{let{title:t="trash",className:n,strokeColor:o}=e;return(0,a.jsxs)("svg",{className:n,width:"18",height:"21",viewBox:"0 0 18 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:t}),(0,a.jsx)("path",{d:"M1 4.79688H2.77778H17",stroke:null!=o?o:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M5.4401 4.89747V3.07667C5.4401 2.59376 5.62741 2.13063 5.9608 1.78916C6.2942 1.44769 6.74639 1.25586 7.21788 1.25586H10.7734C11.2449 1.25586 11.6971 1.44769 12.0305 1.78916C12.3639 2.13063 12.5512 2.59376 12.5512 3.07667V4.89747M15.2179 4.89747V17.6431C15.2179 18.126 15.0306 18.5892 14.6972 18.9306C14.3638 19.2721 13.9116 19.4639 13.4401 19.4639H4.55122C4.07972 19.4639 3.62753 19.2721 3.29414 18.9306C2.96074 18.5892 2.77344 18.126 2.77344 17.6431V4.89747H15.2179Z",stroke:null!=o?o:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M7.21875 9.44922V14.9117",stroke:null!=o?o:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M11 9.1543V14.6168",stroke:null!=o?o:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}},21113:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var a=n(49995),o=n(98687),r=n(12734),m=n.n(r),i=n(37876);let l=e=>{let{children:t,className:n,style:r}=e,l=(0,o.q)();return(0,i.jsx)("a",{href:l,className:(0,a.A)(m()["register-link"],n),style:r,children:t||"Register"})}},23622:e=>{e.exports={comment:"Comment_comment__e_kkK",comment__deleted:"Comment_comment__deleted__Iru77","comment__avatar-wrapper":"Comment_comment__avatar-wrapper__4DBIR","comment__user-info":"Comment_comment__user-info__jaLXN",comment__desc:"Comment_comment__desc___vnCa","comment__desc--deleted":"Comment_comment__desc--deleted__U_rwy","comment__desc--reply":"Comment_comment__desc--reply__nHtX8",comment__actions:"Comment_comment__actions__ZJQo1",comment__date:"Comment_comment__date__nG8qQ",comment__badges:"Comment_comment__badges__3V126","comment__user-name":"Comment_comment__user-name__o6HG8",comment__badge:"Comment_comment__badge__kS7hv","comment__badge--owner":"Comment_comment__badge--owner__RLcSL","comment__badge--moderator":"Comment_comment__badge--moderator__nrGRz","comment__badge--private":"Comment_comment__badge--private__zwxTg",comment__likes:"Comment_comment__likes__lPR_n","comment__like-btn":"Comment_comment__like-btn__PMvgq","comment__like-btn--disabled":"Comment_comment__like-btn--disabled__x85w8",comment__reply:"Comment_comment__reply__30JYf","comment__context-menu":"Comment_comment__context-menu__Kiajr","comment__context-menu-trigger":"Comment_comment__context-menu-trigger__7DMxV",comment__menu:"Comment_comment__menu__siOnu"}},43188:e=>{e.exports={"thread-comment__form":"ThreadComment_thread-comment__form__YomMt","thread-comment__animation--enter":"ThreadComment_thread-comment__animation--enter__2K2zq","thread-comment__animation--enter-active":"ThreadComment_thread-comment__animation--enter-active__OhvuK","thread-comment__animation--exit":"ThreadComment_thread-comment__animation--exit__OzX5T","thread-comment__animation--exit-active":"ThreadComment_thread-comment__animation--exit-active__KhRBY"}},49104:e=>{e.exports={"comment-avatar":"CommentAvatar_comment-avatar__NJ5kM","comment-avatar--small":"CommentAvatar_comment-avatar--small___lsYi"}},56423:e=>{e.exports={"comments-list":"CommentsList_comments-list__aRm09","comments-list__divider":"CommentsList_comments-list__divider__4er02","comments-list__comment":"CommentsList_comments-list__comment__NEVhE","comments-list__load-more":"C
1ommentsList_comments-list__load-more__a4LOd"}},66168:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var a=n(37876);let o=e=>{let{title:t="Flag",titleOutline:n="Flag outline",isOutlined:o=!1,strokeWidth:r=1.5,className:m}=e;return(0,a.jsxs)("svg",{className:m,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:o?n:t}),(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M2.6665 10.0007C2.6665 10.0007 3.33317 9.33398 5.33317 9.33398C7.33317 9.33398 8.6665 10.6673 10.6665 10.6673C12.6665 10.6673 13.3332 10.0007 13.3332 10.0007V2.00065C13.3332 2.00065 12.6665 2.66732 10.6665 2.66732C8.6665 2.66732 7.33317 1.33398 5.33317 1.33398C3.33317 1.33398 2.6665 2.00065 2.6665 2.00065V10.0007Z",stroke:"currentColor",fill:o?void 0:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M2.6665 14.6667V10",stroke:"currentColor",fill:o?void 0:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]})]})}},79017:e=>{e.exports={"thread__view-all":"Thread_thread__view-all__VptYN","thread__view-all--deleted":"Thread_thread__view-all--deleted__Xyhhp",thread__form:"Thread_thread__form__0WYwe",thread__comments:"Thread_thread__comments__ZCQrP","thread__comments--deleted":"Thread_thread__comments--deleted__jUwbJ",thread__comment:"Thread_thread__comment__ESqFt",thread__collapse:"Thread_thread__collapse__FoPua","thread__load-more":"Thread_thread__load-more__pAWT_","thread__animation--enter":"Thread_thread__animation--enter__2RLtu","thread__animation--enter-active":"Thread_thread__animation--enter-active__16n9o","thread__animation--exit":"Thread_thread__animation--exit__cCZLV","thread__animation--exit-active":"Thread_thread__animation--exit-active__uy58b"}},81706:e=>{e.exports={"add-comment-form__main":"AddCommentForm_add-comment-form__main__BBd8N","add-comment-form__avatar":"AddCommentForm_add-comment-form__avatar__P0pqv","add-comment-form__avatar--small":"AddCommentForm_add-comment-form__avatar--small__uD_QL","add-comment-form__form-element":"AddCommentForm_add-comment-form__form-element__N9pVs","add-comment-form__form-element-input":"AddCommentForm_add-comment-form__form-element-input__C49cM","add-comment-form__mentioned-garage":"AddCommentForm_add-comment-form__mentioned-garage__Sjvl8","add-comment-form__controls":"AddCommentForm_add-comment-form__controls___QDAK","add-comment-form__controls--visible":"AddCommentForm_add-comment-form__controls--visible__e9iMZ"}},86476:e=>{e.exports={"context-menu":"CommentMenu_context-menu__yeeRW","context-menu__trigger":"CommentMenu_context-menu__trigger__DOOfw"}},88927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Comments:()=>eS});var a=n(59860),o=n(14232);let r=(0,o.createContext)(void 0);var m=n(29026);n(70418),n(27661);var i=n(49995),l=n(77737),s=n(53634),d=n(67327),c=n(79494),_=n(64399),u=n(81706),h=n.n(u),g=n(37876);let x=/\n\s*\n\s*\n/g,p=/^\s+|\s+$/g,v=e=>{let{variant:t="comment",mentionedGarage:n,isSubmitting:a,onComment:r,onCancel:u,onFocus:v,onMentionRemove:j,onMentionRevert:f,className:C}=e,{0:b,1:y}=(0,o.useState)(!1),{0:k,1:w}=(0,o.useState)(""),{userDetails:N}=(0,d.A)(),A=(0,o.useRef)(null),O=(0,o.useRef)(null),{0:I,1:D}=(0,o.useState)(0);(0,o.useEffect)(()=>{var e;D(null==(e=O.current)?void 0:e.getBoundingClientRect().width)},[O,n]);let T=()=>{r(k),w("")},L="reply"===t,F=L?"Add a reply...":"Add a comment...";return(0,g.jsxs)("div",{className:C,children:[(0,g.jsxs)("div",{className:h()["add-comment-form__main"],children:[(0,g.jsx)(s.e,{className:(0,i.A)(h()["add-comment-form__avatar"],{[h()["add-comment-form__avatar--small"]]:"reply"===t}),src:null==N?void 0:N.avatar,alt:"Owner Avatar",size:"xxs"}),n&&(0,g.jsxs)("div",{ref:O,className:h()["add-comment-form__mentioned-garage"],children:["@",n]}),(0,g.jsx)(c.T,{formElementClassName:h()["add-comment-form__form-element"],textareaClassName:h()["add-comment-form__form-element-input"],name:"comment",size:"l","aria-label":F,placeholder:F,autoFocus:L,spellCheck:!0,hasAutoheight:!0,textareaStyle:{textIndent:I},inputProps:{value:k,onChange:e=>w(e.currentTarget.value.replace(x,"\n\n")),onFocus:()=>{y(!0),null==v||v()},onKeyDown:e=>{j&&(null==e?void 0:e.key)==="Backspace"&&0===k.length&&j(),f&&(null!=e&&e.ctrlKey||null!=e&&e.metaKey)&&(null==e?void 0:e.key)==="z"&&0===k.length&&(f(),e.preventDefault()),(null!=e&&e.ctrlKey||null!=e&&e.metaKey)&&(null==e?void 0:e.key)==="Enter"&&T()}},ref:A,maxLength:l.AA.COMMENT_MAX_LENGTH})]}),(0,g.jsxs)("div",{className:(0,i.A)(h()["add-comment-form__controls"],{[h()["add-comment-form__controls--visible"]]:b}),children:[(0,g.jsx)(m.$,{variant:"inverted",onClick:()=>{y(!1),w(""),u&&u()},disabled:a,size:"auto",children:"Cancel"}),(0,g.jsx)(_.r,{onClick:T,children:e=>(0,g.jsx)(m.$,{disabled:0===k.replace(p,"").length||a,onClick:e,isLoading:a,size:"auto",children:L?"Reply":"Comment"})})]})]})};var j=n(79157),f=n(66284),C=n(56557),b=n.n(C),y=n(66315),k=n.n(y),w=n(48230),N=n.n(w),A=n(82770),O=n(94588),I=n(66597),D=n(51071),T=n(17385),L=n(35003),F=n(70645),P=n(73370),R=n.n(P);let S=e=>{let{children:t,className:n,placement:a="bottom-start"}=e,{count:o}=(0,L.S)(),r="[Unavailable Account]",m=(0,g.jsx)("div",{className:R()["garage-tooltip"],children:(0,g.jsxs)("div",{className:R()["garage-tooltip__header"],children:[(0,g.jsx)(s.e,{className:R()["garage-tooltip__avatar"],size:"s",alt:r}),(0,g.jsx)("div",{className:R()["garage-tooltip__info"],children:r})]})});return(0,g.jsx)(F.m,{content:m,arrow:(0,g.jsx)(F.m.DefaultArrow,{}),id:"garage-tooltip",offset:5,placement:a,additionalOpenOptions:["content-hover"],isDisabledOnMobile:!0,className:o>0?R()["garage-tooltip--hidden"]:"",children:(0,g.jsx)("div",{className:n,children:t})})};var E=n(23622),M=n.n(E),G=n(49104),U=n.n(G);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}let V=e=>{var t;let{garage:n,isDeleted:a,variant:o}=e,r={src:a||!n||null==(t=n.avatar)?void 0:t.cropped.url,alt:a||!n?"":n.displayName},m=(0,g.jsx)(s.e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?z(Object(n),!0).forEach(function(t){(0,f.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({className:(0,i.A)(U()["comment-avatar"],{[U()["comment-avatar--small"]]:"reply"===o}),size:"xxs"},r));return n?(0,g.jsx)(N(),{prefetch:!1,href:O.J.publicGarage(n.slug,n.displayNameSanitize),legacyBehavior:!0,children:(0,g.jsx)("a",{children:m})}):m};var q=n(5083);let B=(0,o.createContext)(void 0),K=(0,o.createContext)(void 0),W=e=>{var t;let n=(0,o.useContext)(B);if(!n)throw Error("useGaragesContext must be used within an GaragesContext");return null!=(t=n[e])?t:{loadState:"loaded",garage:null}},H=()=>{let e=(0,o.useContext)(K);if(!e)throw Error("useGaragesDispatchContext must be used within an GaragesDispatchContext");return e};var J=n(7803),X=n.n(J);let Y=e=>{let{garageId:t,isAtMentioned:n}=e,{garage:a,loadState:o}=W(t),{onLoadGarageInfo:r,onFollowGarage:m,onUnfollowGarage:i}=H();return"loading"===o?null:a?(0,g.jsx)(I.z,{garage:a,onLoadGarageInfo:r,isPublic:a.visibilitySettings.public,className:n?"".concat(X()["mentioned-garage"]," ").concat(X()["at-mention"]):X()["mentioned-garage"],onFollowGarage:m,onUnfollowGarage:i,children:(0,g.jsx)(N(),{prefetch:!1,href:O.J.publicGarage(a.slug,a.displayNameSanitize),legacyBehavior:!0,children:(0,g.jsxs)("a",{children:["@",a.displayName]})})}):(0,g.jsx)(S,{className:n?"".concat(X()["mentioned-garage"]," ").concat(X()["at-mention"]):X()["mentioned-garage"],children:(0,g.jsxs)("span",{children:["@","[Unavailable Account]"]})})};var Z=n(56425);let Q=e=>{let{commentContent:t,mentionedGarage:n}=e;return(0,g.jsxs)("p",{children:[n,(0,Z.w2)(t).map(e=>{var t,n;return"text"===e.type?(t=e.content,(0,g.jsx)(q.A,{options:{attributes:{rel:"nofollow noopener noreferrer",target:"_blank"}},children:t},t)):"at-mention"===e.type?(n=e.garageId,(0,g.jsx)(Y,{garageId:n,isAtMentioned:!0})):null}).filter(e=>null!==e)]})};var $=n(98024),ee=n(87709),et=n(85564),en=n(66168),ea=n(14202),eo=n(1141),er=n(89757),em=n(7435),ei=n(86476),el=n.n(ei);let es=e=>{let{className:t,isFlaggable:n,isDeletable:a,isFlagged:r,isFlagging:m,isUnflagging:i,areInteractionsDisallowed:l,onDeleteClick:s,onFlagClick:d,onUnflagClick:c}=e,{0:u,1:h}=(0,o.useState)(!1),{0:x,1:p}=(0,o.useState)(!1);return l||!(n||a||r)?null:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:t,children:[a&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(_.r,{loginRequiredDesc:"Please log in to add comment, reply, and like comment",onClick:()=>h(!0),children:e=>(0,g.jsx)($.K,{variant:"text",color:"secondary",type:"button",onClick:e,size:"xxs",children:(0,g.jsx)(ea.u,{})})}),(0,g.jsx)(er.V,{isOpened:u,onConfirm:()=>{h(!1),null==s||s()},onClose:()=>h(!1)})]}),n&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(_.r,{loginRequiredDesc:"Please log in to add comment, reply, and like comment",onClick:()=>p(!0),children:e=>(0,g.jsx)(eo.f,{content:"Flag comment as inappropriate",id:"flag-comment",placement:"bottom",children:(0,g.jsx)("div",{children:(0,g.jsx)($.K,{variant:"text",color:"secondary",type:"button",onClick:e,size:"xxs",isLoading:m,children:(0,g.jsx)(en.i,{isOutlined:!0})})})})}),(0,g.jsx)(em.c,{isOpened:x,onConfirm:()=>{p(!1),null==d||d()},onClose:()=>p(!1)})]}),r&&(0,g.jsx)(_.r,{loginRequiredDesc:"Please log in to add comment, reply, and like comment",onClick:c,children:e=>(0,g.jsx)(eo.f,{content:"Unflag comment",id:"unflag-comment",placement:"bottom",children:(0,g.jsx)("div",{children:(0,g.jsx)($.K,{isLoading:i,variant:"text",color:"danger",type:"button",onClick:e,size:"xxs",children:(0,g.jsx)(en.i,{})})})})})]}),(0,g.jsx)("div",{className:el()["context-menu"],children:(0,g.jsxs)(ee.m,{unmountOnClose:!1,trigger:(0,g.jsx)("div",{className:el()["context-menu__trigger"],children:(0,g.jsx)(et.K,{})}),children:[a&&(0,g.jsx)(_.r,{loginRequiredDesc:"Please log in to add comment, reply, and like comment",onClick:()=>h(!0),children:e=>(0,g.jsx)(ee.m.Item,{onClick:e,children:"Delete comment"})}),n&&(0,g.jsx)(_.r,{loginRequiredDesc:"Please log in to add comment, reply, and like comment",onClick:()=>p(!0),children:e=>(0,g.jsx)(ee.m.Item,{onClick:e,children:"Flag comment"})}),r&&(0,g.jsx)(_.r,{loginRequiredDesc:"Please log in to add comment, reply, and like comment",onClick:c,children:e=>(0,g.jsx)(ee.m.Item,{onClick:e,children:"Unflag comment"})})]})})]})},ed=["garage","garageLoadState","mentionedGarage","commentDetails","areInteractionsDisallowed","onReplyClick","onLikeClick","variant","className","style","onLoadGarageInfo","onFollowGarage","onUnfollowGarage","showOwnerAsSeller"];function ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}b().extend(k());let e_=e=>{let{garage:t,garageLoadState:n,mentionedGarage:o,commentDetails:r,areInteractionsDisallowed:m,onReplyClick:l,onLikeClick:s,variant:d="comment",className:c,style:u,onLoadGarageInfo:h,onFollowGarage:x,onUnfollowGarage:p,showOwnerAsSeller:v}=e,j=(0,a.A)(e,ed),{isFeatureEnabled:C}=(0,A.h)(),y="deleted"===r.type,{isFlagged:k}=r,w="loading"===n?null:(0,g.jsx)(S,{className:M()["comment__user-name"],children:(0,g.jsx)("span",{children:"[Unavailable Account]"})}),L=t?(0,g.jsx)(I.z,{garage:t,isPublic:t.visibilitySettings.public,onLoadGarageInfo:h,onFollowGarage:x,onUnfollowGarage:p,className:M()["comment__user-name"],children:(0,g.jsx)(N(),{prefetch:!1,href:O.J.publicGarage(t.slug,t.displayNameSanitize),legacyBehavior:!0,children:(0,g.jsx)("a",{children:t.displayName})})}):w;return(0,g.jsxs)("div",{className:(0,i.A)(M().comment,c,{[M().comment__deleted]:y}),style:u,children:[(0,g.jsx)("div",{className:M()["comment__avatar-wrapper"],children:(0,g.jsx)(V,{garage:t,variant:d,isDeleted:y})}),!y&&(0,g.jsxs)("div",{className:M()["comment__user-info"],children:[L,(0,g.jsxs)("div",{className:M().comment__badges,children:[r.isOwner&&(0,g.jsx)("p",{className:(0,i.A)(M().comment__badge,M()["comment__badge--owner"]),children:v?"Seller":"Owner"}),r.isModerator&&(0,g.jsx)("p",{className:(0,i.A)(M().comment__badge,M()["comment__badge--moderator"]),children:"Moderator"}),t&&!t.visibilitySettings.public&&(0,g.jsx)("p",{className:(0,i.A)(M().comment__badge,M()["comment__badge--private"]),children:"Private"}),C("VERIFIED_CERTIFIED_USER")&&(null==t?void 0:t.verified)&&(0,g.jsx)(D.P,{})]})]}),(0,g.jsx)("div",{className:(0,i.A)(M().comment__desc,{[M()["comment__desc--deleted"]]:y,[M()["comment__desc--reply"]]:"reply"===d}),children:"deleted"===r.type?"This comment was deleted":(0,g.jsx)(Q,{mentionedGarage:o,commentContent:r.comment})}),!y&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:M().comment__actions,children:[(0,g.jsxs)("p",{className:M().comment__likes,children:[(0,g.jsx)(_.r,{onClick:m?void 0:s,loginRequiredDesc:"Please log in to add comment, reply, and like comment",children:e=>(0,g.jsx)("button",{className:(0,i.A)(M()["comment__like-btn"],{[M()["comment__like-btn--disabled"]]:m}),"aria-label":r.isLiked?"Unlike comment":"Like comment",type:"button",onClick:e,disabled:m,children:(0,g.jsx)(T.n,{filled:r.isLiked})})})," ",r.likes>0&&(0,g.jsx)("span",{children:r.likes})]}),!m&&(0,g.jsx)(_.r,{onClick:l,loginRequiredDesc:"Please log in to add comment, reply, and like comment",children:e=>(0,g.jsx)("button",{type:"button",className:M().comment__reply,onClick:e,children:"Reply"})})]}),(0,g.jsx)("div",{className:M().comment__date,children:b()(r.date).fromNow()}),(0,g.jsx)(es,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ec(Object(n),!0).forEach(function(t){(0,f.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({className:M().comment__menu,isFlagged:k,areInteractionsDisallowed:m},j))]})]})},eu=(0,o.createContext)(void 0),eh=()=>{let e=(0,o.useContext)(eu);if(!e)throw Error("useCommentsContext must be used within an CommentsContext");return e},eg=e=>{var t;let{comment:n,onReply:a,variant:r,className:m}=e,{userDetails:i}=(0,d.A)(),{onLoadGarageInfo:l,onFollowGarage:s,onUnfollowGarage:c}=H(),{garage:_,loadState:u}=W(n.userId),{user:h,onAddReaction:x,onRemoveReaction:p,onDeleteComment:v,ownerId:j,onFlagComment:f,onUnflagComment:C,showOwnerAsSeller:b}=eh(),{0:y,1:k}=(0,o.useState)(!!n.ownReactions&&!!n.ownReactions.find(e=>"like"===e.type)),w=(null==i?void 0:i.accountId)===n.userId,N=j===n.userId,A=w&&"deleted"!==n.type,O=!w&&!n.flagged&&"deleted"!==n.type,{0:I,1:D}=(0,o.useState)(!1),{0:T,1:L}=(0,o.useState)(!1),F=async()=>{O&&(D(!0),await f(n.id),D(!1))},P=async()=>{n.flagged&&(L(!0),await C(n.id),L(!1))};return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(e_,{onLoadGarageInfo:l,garage:null!=_?_:void 0,garageLoadState:u,commentDetails:{isOwner:N,type:n.type,comment:n.text||"",date:n.createdAt,likes:(null==(t=n.reactionCounts)?void 0:t.like)||0,isLiked:y,isFlagged:n.flagged,isModerator:n.isModerator},variant:r,isDeletable:A,isFlaggable:O,areInteractionsDisallowed:null==h?void 0:h.banned,onLikeClick:()=>{k(e=>!e),y?p(n.id,"like"):x(n.id,{type:"like"})},onReplyClick:()=>{a&&a()},onDeleteClick:()=>{A&&v(n.id)},onFlagClick:F,onUnflagClick:P,isFlagging:I,isUnflagging:T,className:m,onFollowGarage:s,onUnfollowGarage:c,mentionedGarage:n.mentionedGarage?(0,g.jsx)(Y,{garageId:n.mentionedGarage}):void 0,showOwnerAsSeller:b},n.id)})};var ex=n(19587),ep=n(61511),ev=n(79017),ej=n.n(ev),ef=n(43188),eC=n.n(ef);let eb=e=>{let{comment:t,parentId:n,className:a}=e,{onAddComment:r,onStartComment:m}=eh(),{garage:i}=W(t.userId),{0:s,1:d}=(0,o.useState)(!1),{0:c,1:_}=(0,o.useState)(!0),u=async e=>{d(!1),await r({text:e,parentId:n,mentionedGarage:c?t.userId:void 0}),setTimeout(()=>{_(!0)},l.AA.DEFAULT_ANIMATION_TIME)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eg,{className:a,onReply:()=>d(!0),variant:"reply",comment:t},t.id),(0,g.jsx)(ex.A,{in:s,timeout:l.AA.DEFAULT_ANIMATION_TIME,classNames:{enter:eC()["thread-comment__animation--enter"],enterActive:eC()["thread-comment__animation--enter-active"],exit:eC()["thread-comment__animation--exit"],exitActive:eC()["thread-comment__animation--exit-active"]},unmountOnExit:!0,children:(0,g.jsx)(v,{onComment:u,onFocus:()=>null==m?void 0:m(!0),onCancel:()=>{d(!1),setTimeout(()=>{_(!0)},l.AA.DEFAULT_ANIMATION_TIME)},variant:"reply",className:eC()["thread-comment__form"],mentionedGarage:c&&(null==i?void 0:i.displayName)||void 0,onMentionRemove:()=>_(!1),onMentionRevert:()=>_(!0)})})]})},ey=e=>{let{messageId:t,repliesCount:n,isReplyCollapsed:a,onReplyCollapse:s,isParentCommentReplyCollapsed:d,onParentCommentReplyCollapse:c,isParentDeleted:_}=e,u=(e=>{let t=(0,o.useContext)(r);if(!t)throw Error("useThreadContext must be used within an ThreadsContext");return t[e]})(t),{onAddComment:h,onLoadThread:x,onStartComment:p}=eh(),{0:j,1:f}=(0,o.useState)(!0),C=(0,o.useCallback)(()=>{x(t)},[x,t]);(0,o.useEffect)(()=>{a||u||!n||C()},[a,n,u,x,C]);let b=async e=>{f(!1),await h({text:e,parentId:t}),setTimeout(()=>{s(),c()},l.AA.DEFAULT_ANIMATION_TIME)};return(0,g.jsxs)(g.Fragment,{children:[!!n&&a&&(j||!j&&!u)&&(0,g.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),f(!1),u||C()},className:(0,i.A)(ej()["thread__view-all"],{[ej()["thread__view-all--deleted"]]:_}),children:"View ".concat(n," replies")}),(0,g.jsx)(ex.A,{in:!d,timeout:l.AA.DEFAULT_ANIMATION_TIME,classNames:{enter:ej()["thread__animation--enter"],enterActive:ej()["thread__animation--enter-active"],exit:ej()["thread__animation--exit"],exitActive:ej()["thread__animation--exit-active"]},unmountOnExit:!0,children:(0,g.jsx)(v,{onComment:b,onFocus:()=>null==p?void 0:p(!0),onCancel:()=>{setTimeout(()=>{s(),c()},200),n?f(!1):f(!0)},variant:"reply",className:ej().thread__form})}),(!j||!a)&&!!u&&(0,g.jsxs)("div",{className:(0,i.A)(ej().thread__comments,{[ej()["thread__comments--deleted"]]:_}),children:[(0,g.jsx)(ep.A,{children:u.map(e=>(0,g.jsx)(ex.A,{timeout:l.AA.DEFAULT_ANIMATION_TIME,classNames:{enter:ej()["thread__animation--enter"],enterActive:ej()["thread__animation--enter-active"],exit:ej()["thread__animation--exit"],exitActive:ej()["thread__animation--exit-active"]},children:(0,g.jsx)(eb,{parentId:t,className:ej().thread__comment,comment:e},e.id)},e.id))}),!!n&&n>u.length&&(0,g.jsx)(m.$,{variant:"outlined",size:"s",onClick:C,className:ej()["thread__load-more"],children:"Show more"})]}),(!j||!a)&&!!n&&!!u&&u.length>0&&(0,g.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),f(!0),s(),c()},className:ej().thread__collapse,children:"Collapse all"})]})},ek=e=>{let{comment:t,className:n}=e,{0:a,1:r}=(0,o.useState)(!1),{0:m,1:i}=(0,o.useState)(!0);
1return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eg,{comment:t,onReply:()=>{r(!1),i(!1)},className:n}),(0,g.jsx)(ey,{isParentDeleted:"deleted"===t.type,messageId:t.id,isReplyCollapsed:a,onReplyCollapse:()=>r(!0),isParentCommentReplyCollapsed:m,onParentCommentReplyCollapse:()=>i(!0),repliesCount:t.replyCount})]})};var ew=n(15457),eN=n(21113);let eA=e=>{let{className:t,style:n}=e;return(0,g.jsx)("span",{className:t,style:n,children:["Please ",(0,g.jsx)(ew.k,{})," or ",(0,g.jsx)(eN._,{})," to add comment"]})};var eO=n(38594),eI=n(56423),eD=n.n(eI),eT=n(13870),eL=n.n(eT);let eF=()=>(0,g.jsxs)("div",{className:eL()["disabled-comments-info"],children:[(0,g.jsx)("p",{className:eL()["disabled-comments-info__title"],children:"Comments are disabled for a violation of community rules."}),(0,g.jsx)("p",{children:["Please ",(0,g.jsx)("a",{href:"mailto:".concat("[email protected]"),children:" contact us "})," if you would like more information or if this is a mistake."]})]}),eP=()=>{let{user:e,onAddComment:t,comments:n,isLoadMoreVisible:a,onLoadMore:o,onStartComment:r}=eh(),{isLoggedIn:i}=(0,d.A)(),l=async e=>{await t({text:e})};return(0,g.jsxs)("div",{className:eD()["comments-list"],children:[(0,g.jsx)(eO.o,{}),i&&!(null!=e&&e.banned)&&(0,g.jsx)(v,{onFocus:()=>null==r?void 0:r(!1),onComment:l}),i&&(null==e?void 0:e.banned)&&(0,g.jsx)(eF,{}),!i&&(0,g.jsx)(eA,{}),n.length>0&&(0,g.jsx)(j.c,{className:eD()["comments-list__divider"]}),n.map(e=>(0,g.jsx)(ek,{className:eD()["comments-list__comment"],comment:e},e.id)),a&&(0,g.jsx)(m.$,{variant:"outlined",onClick:o,className:eD()["comments-list__load-more"],children:"Show more"})]})},eR=["threads","garages","onLoadGarageInfo","onFollowGarage","onUnfollowGarage"],eS=e=>{let{threads:t,garages:n,onLoadGarageInfo:o,onFollowGarage:m,onUnfollowGarage:i}=e,l=(0,a.A)(e,eR);return(0,g.jsx)(eu.Provider,{value:l,children:(0,g.jsx)(K.Provider,{value:{onLoadGarageInfo:o,onFollowGarage:m,onUnfollowGarage:i},children:(0,g.jsx)(B.Provider,{value:n,children:(0,g.jsx)(r.Provider,{value:t,children:(0,g.jsx)(eP,{})})})})})}},89757:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var a=n(52517),o=n(37876);let r=e=>{let{isOpened:t,onConfirm:n,onClose:r}=e;return(0,o.jsx)(a.R,{title:"Confirm deletion",description:"Are you sure you want to delete this comment? This cannot be undone.",onClose:r,isOpened:t,id:"comment-delete-confirmation-modal",primaryButton:{label:"Delete",onClick:n},secondaryButton:{label:"Cancel",onClick:r}})}}}]);

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.