/*! For license information please see app.7e93dc48.js.LICENSE.txt */ (self.webpackChunkintercom_js=self.webpackChunkintercom_js||[]).push([[3524],{16645:function(e,t,r){"use strict";r.d(t,{Q:function(){return O},r:function(){return S}});var n=r(7350),o=r.n(n),i=r(96540),a=r(86923);var s=(0,a.Ay)("div",{target:"e1hi37s22"})({name:"2izk9q",styles:"scroll-margin-top:10px;width:0px;height:0px"}),l=(0,a.Ay)("div",{target:"e1hi37s21"})("display:flex;flex-direction:column;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;outline-offset:-5px;scrollbar-color:",(0,a.w4)("alphaBlack20")," transparent;&::-webkit-scrollbar{appearance:none;width:5px;}&::-webkit-scrollbar-thumb{background-color:",(0,a.w4)("alphaBlack20"),";border-radius:5px;}&::-webkit-scrollbar-track{background-color:transparent;}"),u=(0,a.Ay)("div",{target:"e1hi37s20"})({name:"z5atxi",styles:"display:flex;flex-direction:column;flex-grow:1"});function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e,!0);!(r=n()).done;){var i,s=null==(i=r.value.contentBoxSize[0])?void 0:i.blockSize;a.current!==s&&(o(s),a.current=s,t(s))}}));return n.observe(r),function(){n.disconnect()}}}),[e,t]),n},h=r(83034),m=r(38221),v=r.n(m),y=r(74848),g=["children","onWheel"];function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r5?(0,ge.oS)("attachment_limit_exceeded",{file_count:t.length,place:"composer"}):Array.from(t).forEach((function(e){return t=e,void(0,be.kn)(t).then((function(e){if(e){var r=e.width,n=e.height,o=e.src,a=(0,xe.U$)(e.src,t.name,t.type);i((0,d.Fp)(o,r,n),a)}else{var s=t.name,l=t.type,u=t.size;i((0,d.VJ)(s,l,u),t)}}));var t})))},hidden:!0,accept:e.allowedAttachmentExtensions,"data-testid":"composer-upload-input"}),(0,h.jsx)(w,{disabled:s,title:(0,f.Tl)("upload_attachment"),"aria-label":(0,f.Tl)("upload_attachment"),onClick:function(){var e;(0,Z.rr)()?setTimeout((function(){var e;null==(e=t.current)||e.click()}),100):null==(e=t.current)||e.click()},"data-type":"upload",children:(0,h.jsx)(u._x,{type:"AttachmentIcon"})})]})})},ke=r(23975),Ce=r(22299),Oe=r(42706);function Te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ee(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&!(0,et.B)(g)?(j((0,f.Tl)("that_email_address_doesnt_look_quite_right")),!1):0!==e.trim().length},onSubmit:function(){return c(arguments.length<=0?void 0:arguments[0],null,null,g),!0},onChange:function(e){v(e)},draftKey:a,disabled:u||C,children:[(0,h.jsx)(st,{value:g,errorMessage:w,onChange:function(e){b(e)},onBlur:function(e){0!==e.trim().length?(0,et.B)(e)?j(""):j((0,f.Tl)("that_email_address_doesnt_look_quite_right")):j("")},autoFocus:l}),(0,h.jsxs)(dt,{children:[(0,h.jsx)(Ie,{children:(0,h.jsx)(ye,{placeholder:s,onTyping:d,autoFocus:!1,maxHeight:135})}),(0,h.jsxs)(A,{forceStandardView:!0,children:[(0,h.jsx)(z,{insertOnly:!0}),(0,h.jsx)(S,{})]})]})]})}},29853:function(e,t,r){"use strict";r.d(t,{A:function(){return i},c:function(){return s}});var n=r(86923),o=r(72977);var i=(0,n.Ay)("div",{target:"e1y8qs781"})("min-height:48px;max-height:200px;padding:0 ",(function(e){var t=e.theme;return e.useUpdatedConversationPadding?t.conversationHorizontalPadding:t.globalHorizontalPadding}),"px 0 ",(function(e){var t=e.theme;return e.useUpdatedConversationPadding?t.conversationHorizontalPadding:t.globalHorizontalPadding}),"px;width:100%;box-sizing:border-box;",o.TD,";"),a={name:"11m65u3",styles:"transition:outline-width 150ms"},s=(0,n.Ay)("div",{target:"e1y8qs780"})("border-radius:24px;box-shadow:",(0,n.w4)("shadowSmall"),";overflow:hidden;position:relative;border:1px solid ",(0,n.w4)("borderNeutral"),";outline:solid 0 ",(0,n.w4)("primaryColor"),";color:",(0,n.w4)("textDefault"),";",(function(e){var t=e.transition;return"none"===(null==t?void 0:t.transition.type)&&"entering"===(null==t?void 0:t.state)?null:a})," &:focus-within{outline-width:2px;}")},70951:function(e,t,r){"use strict";r.d(t,{t:function(){return i},u:function(){return o}});var n=r(96540),o=(0,n.createContext)(null);o.displayName="PageTransitionContext";var i=function(){return(0,n.useContext)(o)}},18603:function(e,t,r){"use strict";r.d(t,{B:function(){return o},v:function(){return i}});var n=r(86923),o=32,i=(0,n.Ay)("a",{target:"e9lv9ro0"})("display:inline-block;height:",o,"px;width:100%;background:",(0,n.w4)("containerBaseNeutral"),"!important;&:hover{background:",(0,n.w4)("containerNeutral"),"!important;}transition:all 80ms;text-align:center;line-height:",o,"px;text-decoration-line:underline;font-size:13px;font-weight:656;color:",(0,n.w4)("textMuted"),"!important;")},58643:function(e,t,r){"use strict";r.d(t,{A:function(){return N}});var n=r(40961),o=r(86923);var i=(0,o.Ay)("div",{target:"e5gnry51"})("display:inline-flex;flex-direction:row;justify-content:center;align-items:center;padding:4px;gap:2px;line-height:1;font-size:14px;font-weight:normal;border-radius:20px;",(function(e){var t=e.color,r=void 0===t?"textDefault":t,n=e.backgroundColor,i=void 0===n?"containerEmphasisNeutral":n,a=e.theme;return(0,o.AH)("color:",a[r],";background:",a[i],";transition:background 0.2s ease-in-out,color 0.2s ease-in-out;")}),";"),a=(0,o.Ay)("span",{target:"e5gnry50"})({name:"1buzkqa",styles:"padding:0 2px"}),s=r(13271),l=r(74848),u=function(e){var t=e.children,r=e.icon,n=e.color,o=void 0===n?"textDefault":n,u=e.backgroundColor;return(0,l.jsxs)(i,{color:o,backgroundColor:u,children:[t&&(0,l.jsx)(a,{children:t}),r&&(0,l.jsx)(s.Ay,{type:r,color:o})]})};function c(e){var t=e.label,r=void 0===t?"":t,n=e.color,o=e.backgroundColor;return(0,l.jsx)(u,{icon:"Info",color:n,backgroundColor:o,children:r})}var d=r(79986),f=r(96540),p=r(83505),h=r(7315),m=r(34743),v=(0,f.createContext)(void 0);v.displayName="TooltipContext";var y=function(){var e=(0,f.useContext)(v);if(!e)throw new Error("Component needs to be wrapped in a TooltipContext");return e};function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1)throw new Error("Only single element as the trigger");if(!(0,f.isValidElement)(r))throw new Error("Invalid element");return(0,f.cloneElement)(r,j({},n,r.props,{ref:t}))})),S=function(e){var t=y(),r=t.refs,n=t.open,o=t.getReferenceProps,i=e.asChild?A:"button";return(0,l.jsx)(i,j({ref:r.setReference},o(),{"data-state":n?"open":"closed"},e))},k=r(72977),C=["children"];function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t0})},t}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,e);var r,n,o,y=t.prototype;return y.renderAdminAvatar=function(){var e=this.props.part.author;return(0,v.jsx)(h.ob,{isAuthorTypeTeam:"team"===e.type,children:(0,v.jsx)(a.h,{author:e})})},y.renderInlineMetadata=function(){return(0,v.jsx)(u.q,{part:this.props.part})},y.renderStickerOrBlocks=function(){var e=this.props,t=e.part,r=t.author,n=t.body,o=e.frameWindow;return 1===n.length&&(0,p.Nm)(n[0])?(0,v.jsx)(d.A,{text:(0,f.hs)(n[0])}):(0,v.jsx)(l.A,{blocks:n,zoomable:!0,author:r,frameWindow:o})},y.renderSingleBody=function(){return(0,v.jsx)(h.lk,{children:this.renderStickerOrBlocks()})},y.renderAuthor=function(){var e=this.props,t=e.appName,r=e.part,n=r.messageType,o=r.author,i=r.createdAt,a=this.state.isScrolled,l="adminReply"===n;return(0,v.jsxs)(h.IK,{isScrolled:a,children:[(0,v.jsx)(s.A,{author:o,appName:t,isReplyStyle:l,removePrefix:!0}),(0,v.jsx)(v.Fragment,{children:"•"}),(0,v.jsx)("span",{children:""+(0,m.iw)(i)})]})},y.renderFullBody=function(){var e=this.props.isBorderless,t=this.state.isScrollable;return(0,v.jsxs)("div",{children:[this.props.showAuthor?this.renderAuthor():null,(0,v.jsx)(h.WO,{isScrollable:t,isBorderless:e,children:(0,v.jsx)(c.A,{onScrollable:this.handleScrollable,onScroll:this.handleScroll,children:this.renderStickerOrBlocks()})})]})},y.render=function(){var e=this.props,t=e.hasAvatar,r=e.showAvatar,n=e.isBorderless,o=e.isMobile,a=e.part.body,s=(0,p.EU)(a),l=i()({"intercom-chat-card":!(s&&n),"intercom-chat-card-borderless-single":s&&n});return(0,v.jsxs)(h.sC,{className:l,isSingleBlock:s,isBorderless:n,showAvatar:t&&r,isMobile:o,children:[t&&r?this.renderAdminAvatar():null,s&&n?this.renderSingleBody():this.renderFullBody()]})},r=t,n&&b(r.prototype,n),o&&b(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.Component);function A(e){return(0,v.jsx)(j,g({},e))}j.defaultProps={isBorderless:!1,showAuthor:!0,showAvatar:!0,hasAvatar:!0};var S=r(1082);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function C(e,t){for(var r=0;r/,P=/
$/,_=function(e){function t(){return e.apply(this,arguments)||this}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(t,e);var r,n,o,i=t.prototype;return i.buildNewPart=function(){return Object.assign({},this.props.part,{body:[]})},i.cleanBlockWithPattern=function(e,t){e.text&&(e.text=e.text.trim().replace(t,""))},i.cleanAdjacentBlocks=function(e,t){"messengerCard"===e.type&&"paragraph"===t.type?this.cleanBlockWithPattern(t,E):"paragraph"===e.type&&"messengerCard"===t.type&&this.cleanBlockWithPattern(e,P)},i.cleanParts=function(e){var t=this;return e.map((function(e,r,n){if(r1?"sources":"source")}),n.map((function(e){return(0,d.jsx)(V,{source:e},(t=e).title+t.url);var t}))]})},G=(0,C.Ay)("h3",{target:"e1pj2gdv2"})("color:",(0,C.w4)("textDefault"),";font-weight:600;"),q=(0,C.Ay)("div",{target:"e1pj2gdv1"})("display:flex;flex-direction:row;align-items:center;justify-content:space-between;transition:all 0.2s ease-in-out;color:",(0,C.w4)("textDefault"),";cursor:pointer;&:hover{color:",(0,C.w4)("linkColor"),";text-decoration:underline;}"),W=(0,C.Ay)("div",{target:"e1pj2gdv0"})("position:relative;display:flex;flex-direction:column;gap:4px;margin-left:-16px;margin-right:-16px;padding:12px 16px;font-size:14px;line-height:1.5;margin-bottom:-12px;color:",(0,C.w4)("iconMuted"),";h3{font-weight:600;}&::before{content:'';position:absolute;left:0;right:0;top:0;pointer-events:none;padding-bottom:12px;}"),$=.05,K=$,Y=(0,C.AH)("@keyframes fadeIn{to{opacity:1;}}&:last-child{",function(){for(var e="",t=0;t<17.999999999999996;t++){var r=t+1;e+="\n .streaming-piece:nth-last-of-type("+r+"),\n a:nth-last-of-type("+r+") {\n opacity: "+(K+t*$).toFixed(2)+";\n animation: fadeIn 1.0s linear forwards;\n }"}return e}(),";}"),Z=r(48365),X=(0,C.Ay)("div",{target:"ewbcn770"})((function(e){var t=e.streamingAnimation,r=e.theme;return"scroll:smooth:fade"===t||"scroll:smooth"===t?(0,C.AH)(Y,";"):(0,C.AH)(Z.y.className,":last-of-type::after{content:'';display:inline-block;width:3px;height:16px;margin-left:2px;border-radius:6px;vertical-align:bottom;background:",r.iconDefault,";}")}),";"),J=r(86777),Q=r(83505),ee=r(34743),te=r(55787),re=r(85530);var ne=(0,C.Ay)("div",{target:"e1rjfakr7"})({name:"9s2w0h",styles:"padding-left:10px;padding-right:10px;z-index:1000"}),oe=(0,C.Ay)("div",{target:"e1rjfakr6"})("background:",(0,C.w4)("containerBaseNeutral"),";border:none;padding:12px;border-radius:16px;font-size:13px;box-shadow:",(0,C.w4)("shadowSmall"),";z-index:1000;position:relative;"),ie=(0,C.Ay)("div",{target:"e1rjfakr5"})("color:",(0,C.w4)("textDefault"),";font-weight:600;font-size:13px;margin-top:5px;cursor:pointer;&:hover{color:",(0,C.w4)("appColor"),";text-decoration:underline;}"),ae=(0,C.Ay)("div",{target:"e1rjfakr4"})("color:",(0,C.w4)("textMuted"),";font-size:12px;font-weight:400;display:flex;align-items:center;gap:4px;"),se=(0,C.Ay)("div",{target:"e1rjfakr3"})("border-radius:16px;width:16px;height:16px;background:",(function(e){return e.backgroundColor}),";"),le=(0,C.Ay)("img",{target:"e1rjfakr2"})({name:"1y0ittq",styles:"position:relative;width:8px;height:8px;left:4px;top:4px"}),ue=(0,C.Ay)("div",{target:"e1rjfakr1"})(".inline-citation{width:16px;height:12px;padding-top:2px;padding-bottom:2px;margin-top:-2px;margin-bottom:-2px;background:",(0,C.w4)("containerEmphasisNeutral"),";border-radius:51px;display:inline-block;margin-left:4px;text-decoration:none;position:relative;line-height:inherit;&::after{content:'';position:absolute;top:-8px;left:-8px;right:-8px;bottom:-8px;border-radius:51px;}&:hover{background:",(0,C.w4)("appColor"),";&::before{color:",(0,C.w4)("textOnInverse"),";}}&::before{padding:0px;line-height:12px;content:attr(data-source-index);color:",(0,C.w4)("textDefault"),";text-decoration:none;font-family:monospace;text-align:center;font-size:10px;display:inline-block;width:100%;}}position:relative;"),ce=(0,C.Ay)("div",{target:"e1rjfakr0"})("svg{rect{fill:",(0,C.w4)("containerNeutral"),";}}svg{path{fill:",(0,C.w4)("iconDefault"),";}}");function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fe(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r1?"left":"right",isInline:!0})]}):null,X?(0,d.jsx)(a.q,{part:l}):null,e]}))}}),f?(0,d.jsx)(Ze,{attribution:f,textColor:u?H.textOnInverse:H.textDefault}):null,(0,d.jsxs)(Re.Zf,{show:oe,children:[null==(s=l.author)?void 0:s.firstName," • ",ie]})]})},dt=r(74773),ft=function(e){return(0,d.jsx)(Ne.C,{isBorderless:e.isBorderless,children:(0,d.jsx)(Pe.h,{author:e.author})})},pt=function(e){var t,r=(0,n.useRef)(null),o=e.isBorderless,i=void 0!==o&&o,a=e.showAvatar,s=void 0===a||a,l=e.hasAvatar,u=void 0!==l&&l,c=e.part,f=c.author,p=c.body,h=e.isLastPart,m=e.isMobile,v=e.groupingPosition,y=e.showInlineMetadata,g=e.onImageClick,b=e.appName,x=e.lastAdminOrBotPart,w=(0,j.EU)(p),A=(0,dt.Th)(),S=(0,_e.I3)(e.part);return A&&(0,_e.MU)(e.part)?(0,d.jsx)(ct,{part:e.part,isMobile:m,isSelf:null==f?void 0:f.isSelf,isBorderless:i,groupingPosition:v,showInlineFooter:y,appName:b,attribution:S,borderColors:null==(t=e.part.uxStyle)?void 0:t.borderColors,lastAdminOrBotPart:x}):(0,d.jsxs)(Ie.w,{hasAvatar:u,isBorderless:i,isSingleBlock:w,isAdmin:null==f?void 0:f.isAdmin,isUser:null==f?void 0:f.isSelf,ref:r,children:[u&&s?(0,d.jsx)(ft,{isBorderless:!!i,author:e.part.author}):null,(0,d.jsx)(Ee,{isLastPart:h,part:e.part,isMobile:m,isBorderless:i,hasAvatar:u,showInlineMetadata:y,onImageClick:g}),S?(0,d.jsx)(Ze,{attribution:S}):null]})}},22299:function(e,t,r){"use strict";r.d(t,{m:function(){return p},A:function(){return h}});var n=r(86923);var o=(0,n.Ay)("div",{target:"e1wapn193"})("box-sizing:border-box;position:relative;overflow-x:hidden;width:330px;height:260px;padding:",10,"px 0px;display:flex;flex-direction:column;flex-grow:0;align-items:stretch;font-size:",14,"px;"),i=(0,n.Ay)("span",{target:"e1wapn192"})("padding:",10,"px 20px;&,*{cursor:pointer;}&:hover{background:",(0,n.w4)("backgroundHover"),";}"),a=(0,n.Ay)("span",{target:"e1wapn191"})("padding:",10,"px 20px;background-color:",(0,n.w4)("backgroundHover"),";"),s=(0,n.Ay)("span",{target:"e1wapn190"})({name:"nkt64x",styles:"margin-right:10px"}),l=r(96540),u=r(8375),c=r(74848);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re){var d=o.length>0?o[o.length-1][3]:0;i+=d,a=0}var f=[a,i,u,c];return o.push(f),a+=u,{bounds:f}}}(r,l,u,n.current):function(e,t,r,n){var o=[],i=0;return function(a){var s=m(v,g(a,t,r,n),2),l=s[0],u=s[1],c=(o.filter((function(e){return e[1]===i}))||[]).map((function(e){return e[2]})).reduce((function(e,t){return e+t}),0);if(l+c>e){var d=o.length>0?o[o.length-1][3]:0;i+=d}else o.forEach((function(e){e[1]===i&&(e[0]=e[0]-l)}));var f=[0,i,l,u];return o.push(f),{bounds:f}}}(r,l,u,n.current);return{maxWidth:s,getCurrentSuggestionBounds:c}},x=["bounds"];function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?(0,y.jsx)(m,{children:t.map((function(e,r){return(0,y.jsx)(x,{avatar:e,index:r,numOfAdmins:t.length},e.imageUrl||e.label)}))}):null},j=r(42937),A=r(29500),S=r(75285),k=r(58643),C=function(e){var t,r=e.part,n=e.isBorderless,o=void 0!==n&&n,u=e.isAIAnswer,c=void 0!==u&&u,d=r.metadata,f=(0,j.vz)(r),p=(null==d?void 0:d.title)||"",h=""+(null!=d&&d.suffix?" • "+d.suffix:"")+(null!=d&&d.timestamp?" • "+(0,A.iw)((0,S.kU)(d.timestamp)):"");return null==d||!d.title||o?null:(0,y.jsxs)(i,{hasAvatar:!(null==d||null==(t=d.avatars)||!t.length),children:[d.avatars?(0,y.jsx)(l,{children:(0,y.jsx)(w,{avatars:d.avatars})}):null,(0,y.jsx)(a,{systemPart:f,children:p}),(0,y.jsx)(s,{systemPart:f,children:h}),c&&(0,y.jsx)(k.A,{triggerClassName:"ai-tooltip"})]})}},99459:function(e,t,r){"use strict";r.d(t,{A:function(){return f}});var n=r(96540),o=r(86923),i=r(13194),a=r(74848);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r0}),(0,Z.Xr)(e)},t.handleScrollable=function(e){var r=e.scrollHeight-e.clientHeight,n=t.state.isFooterVisible||void 0===t.props.reactionsReply||r<=t.getReactionsVisibilityThreshold();t.setState({isFooterVisible:n})},t.addClickedComposerMetric=function(){var e=t.props,r=e.message.id,n=e.conversationId;(0,K.A5)("clicked","composer","in_app","from_full",{message_type:"note",message_id:r,conversation_id:n})},t.handleComposerClick=function(){t.addClickedComposerMetric(),t.props.onComposerClick()},t}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&re(e,t)}(t,e);var r=t.prototype;return r.getReactionsVisibilityThreshold=function(){return this.getFooterHeight()+20},r.getFooterHeight=function(){return this.footer?this.footer.clientHeight:0},r.renderFooter=function(){var e=this.props,t=e.composerVisible,r=e.showUploadButton,n=e.showGifButton,o=e.showReplyToButton;return t?o?(0,O.jsx)($.A,{onClick:this.handleComposerClick}):(0,O.jsxs)(Y.hV,{className:"intercom-note-composer",onClick:this.handleComposerClick,"aria-label":(0,u.Tl)("open_conversation_and_reply"),children:[(0,O.jsx)(m.cT,{children:(0,u.Tl)("reply_to_conversation")}),(0,O.jsxs)(m.OO,{children:[n?(0,O.jsx)(m.$C,{"data-testid":"note-composer-gif-icon",children:(0,O.jsx)(X.In,{type:"ComposerGif",size:16})}):null,(0,O.jsx)(m.lT,{"data-testid":"note-composer-emoji-icon",children:(0,O.jsx)(X.In,{type:"ComposerEmoji",size:16})}),r?(0,O.jsx)(m.cC,{"data-testid":"note-composer-upload-icon",children:(0,O.jsx)(X.In,{type:"ComposerAttachment",size:16,color:"iconMuted"})}):null]})]}):null},r.renderReactionPicker=function(){var e=this.props,t=e.reactionsReply,r=e.onReactionSelect;return(0,O.jsx)(q.A,Q({},t,{onReactionSelect:r}))},r.render=function(){var e=this,t=this.props,r=t.appName,n=t.message,o=t.reactionsReply,i=t.onClose,a=t.frameWindow,s=t.showReplyToButton,l=t.composerVisible,c=this.state,d=c.isScrolled,f=c.isFooterVisible,p=n.author,h=n.lastActiveAt,m=n.body;return(0,O.jsx)(Y.Ol,{className:"intercom-note",isScrolled:d,children:(0,O.jsxs)(G.A,{appName:r,isReplyStyle:!1,author:p,lastActiveAt:h,children:[(0,O.jsx)(Y.R1,{className:"intercom-anchor",onClick:i,"aria-label":(0,u.Tl)("close"),children:" "}),(0,O.jsx)(Y.Zo,{showReplyToButton:s,children:(0,O.jsxs)(V.A,{onScroll:this.handleScroll,onScrollable:this.handleScrollable,children:[(0,O.jsx)(U.A,{blocks:m,zoomable:!0,frameWindow:a}),l&&(0,O.jsx)(Y.ln,{})]})}),(0,O.jsx)(Y.kg,{ref:function(t){return e.footer=t},isFooterVisible:f,showReplyToButton:s,"data-testid":"note-footer",children:o?this.renderReactionPicker():this.renderFooter()})]})})},function(e,t,r){return t&&ee(e.prototype,t),r&&ee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(a.Component);ne.propTypes={appName:i().string.isRequired,message:i().shape({id:i().string.isRequired,author:i().object.isRequired,body:i().array.isRequired,lastActiveAt:i().instanceOf(Date)}).isRequired,conversationId:i().string,reactionsReply:i().shape({reactionIndex:i().number,reactionSet:i().array.isRequired}),onClose:i().func,onComposerClick:i().func,onReactionSelect:i().func,frameWindow:i().object,showUploadButton:i().bool,showGifButton:i().bool,showReplyToButton:i().bool,composerVisible:i().bool},ne.defaultProps={showUploadButton:!0,showGifButton:!0};var oe={name:"11fl7s3",styles:"right:0;left:0;margin:0 auto"},ie=(0,h.Ay)(B.Ay,{target:"e12tcwm10"})("position:fixed;bottom:",(0,M.zT)(),"px;right:",(0,h.w4)("horizontalPaddingPx"),"px;width:342px;z-index:",(0,M.fE)(1),";box-shadow:",(0,h.w4)("shadowXLarge"),";",(function(e){var t=e.theme;return t.isLeftAlign&&(0,h.AH)("left:",t.horizontalPaddingPx,"px;right:auto;")}),(function(e){return e.theme.isMobileSize&&oe}),";");function ae(e){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}function se(e,t){for(var r=0;r0})},t.handleScrollable=function(e){var r=e.scrollHeight-e.clientHeight,n=t.state.isFooterVisible||void 0===t.props.reactionsReply||r<=t.getReactionsVisibilityThreshold();t.setState({isFooterVisible:n})},t.isReplyDisabled=function(){return"disabled"===t.props.message.replyType},t.addClickedComposerMetric=function(){var e=t.props,r=e.message.id,n=e.conversationId;(0,K.A5)("clicked","composer","in_app","from_full",{message_type:"pointer",message_id:r,conversation_id:n})},t.handleComposerClick=function(){t.addClickedComposerMetric(),t.props.onComposerClick()},t}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(t,e);var r=t.prototype;return r.getReactionsVisibilityThreshold=function(){return this.getFooterHeight()+20},r.getFooterHeight=function(){return this.footer?this.footer.clientHeight:0},r.renderFooter=function(e){var t=this;return this.isReplyDisabled()?null:(0,O.jsx)(fe.mL,{ref:function(e){return t.footer=e},isFooterVisible:this.state.isFooterVisible,children:e?this.renderReactionPicker():this.renderChatComposer()})},r.renderChatComposer=function(){return(0,O.jsxs)(fe.hR,{className:"intercom-pointer-composer",onClick:this.handleComposerClick,children:[(0,O.jsx)("span",{children:(0,O.jsx)(de.A,{})}),(0,O.jsx)(m.cT,{children:(0,u.Tl)("start_a_conversation")})]})},r.renderReactionPicker=function(){var e=this.props,t=e.reactionsReply,r=e.onReactionSelect;return(0,O.jsx)(q.A,he({},t,{onReactionSelect:r}))},r.render=function(){var e=this,t=this.props,r=t.appName,n=t.message,o=t.reactionsReply,i=t.onClose,a=t.frameWindow,s=n.author,l=n.lastActiveAt,c=n.body;return(0,O.jsx)(fe.d,{isInbox:!1,isScrolled:this.state.isScrolled,ref:function(t){return e.node=t},className:"intercom-pointer",children:(0,O.jsxs)(G.A,{appName:r,isReplyStyle:!1,author:s,lastActiveAt:l,forceShowAppName:!0,children:[(0,O.jsx)(fe.Jg,{onClick:i,"aria-label":(0,u.Tl)("close"),children:" "}),(0,O.jsx)(fe.Pj,{intercomRepliesDisabled:this.isReplyDisabled(),children:(0,O.jsx)(V.A,{onScroll:this.handleScroll,onScrollable:this.handleScrollable,children:(0,O.jsx)(U.A,{blocks:c,zoomable:!0,frameWindow:a})})}),this.renderFooter(o)]})})},function(e,t,r){return t&&me(e.prototype,t),r&&me(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(a.Component),be=r(37089),xe=(0,h.Ay)(B.Ay,{target:"e1gikcy0"})("z-index:",(0,M.fE)(1),";border-radius:5px;box-shadow:0 3px 32px 0 ",(0,h.w4)("elevation2"),";border:1px solid ",(0,h.w4)("alphaBlack10"),";");function we(e){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function je(e,t){for(var r=0;r0&&n.trim().length>0},t.shouldHideUploads=function(){return!t.shouldShowUploadButton()&&!t.hasText()},t.setTextInput=function(e){t.textInput=e},t.setComposer=function(e){t.composer=e},t.renderUpfrontEmailComposer=function(){var e=t.props,r=e.showEmojiPicker,n=e.toggleUpfrontEmailCollectorState,o=e.conversation,i=t.state,a=i.text,s=i.email,l=i.errorMessage,u=o&&!!o.id;return(0,O.jsx)(St,{onMessageChange:t.handleTextInputChange,onEmailChange:t.handleEmailChange,onCursorReposition:t.handleCursorReposition,onSendMessageClick:t.handleSendMessageClick,onEmojiClick:t.handleUpfrontEmojiClick,onEmojiPickerToggle:t.handleEmojiPickerToggle,onWheel:W.b$,toggleUpfrontEmailCollectorState:n,setTextInput:t.setTextInput,setComposer:t.setComposer,showEmojiPicker:r,message:a,email:s,errorMessage:l,sendButtonDisabled:!t.hasEmailAndMessage(),shouldShowSmallStateUpfrontEmailComposer:u})},t.renderTextArea=function(){var e=t.props.placeholder,r=t.state.text,n=(0,Pt.un)()?{onTouchEnd:Bt.K,onTouchStart:Bt.K}:{};return(0,O.jsx)(Nt.C,{mobileSaferiOnly:!0,children:(0,O.jsx)("textarea",Lt({name:"message",ref:function(e){return t.textInput=e},value:r,placeholder:e,"aria-label":e,onChange:t.handleTextInputChange,onKeyDown:t.handleKeyDown,onCompositionStart:t.toggleCompositionStatus,onCompositionEnd:t.toggleCompositionStatus,onKeyUp:t.handleCursorReposition,onClick:t.handleCursorReposition,onBlur:lt.BW,onWheel:null},n,{tabIndex:"0"}))})},t}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dt(e,t)}(t,e);var r=t.prototype;return r.componentDidMount=function(){this.moveCaretToEndOfText(),(0,Pt.rr)()||this.props.isBorderless||this.focus(),this.state.text&&this.props.onChange(this.state.text)},t.getDerivedStateFromProps=function(e,t){if(!t||rt()(e,t.prevProps))return null;var r,n=t.prevProps.defaultText;return(e.defaultText||(r=e.defaultText,/^\s*$/.test(r)))&&e.defaultText!==n?{text:e.defaultText,prevProps:e}:{prevProps:e}},r.createAttachmentParts=function(e){var t=this;e.length>5?(0,K.oS)("attachment_limit_exceeded",{file_count:e.length,place:"composer"}):Array.from(e).forEach((function(e){return t.createBlocksForImageOrAttachment(e)}))},r.handleTextSubmit=function(){this.hasText()&&(this.props.onSubmit((0,_t.$B)(this.state.text)),this.setState({text:""},this.handleChange))},r.handleChange=function(){this.props.onChange(this.state.text)},r.handleSelectEmojiTypeaheadSuggestion=function(e){var t=this,r=this.state,n=r.text,o=r.cursorPosition,i=this.state.emojiTypeaheadState.currentTypeaheadTerm,a=(0,Et.lx)(n,o,i,e);this.setState((function(e){return Lt({},e,a)}),(function(){t.handleChange(),t.focus()}))},r.clearFileInput=function(){this.fileInput&&(this.fileInput.value="")},r.focus=function(){var e=this.state.cursorPosition;(0,W.a8)(this.textInput,e)},r.hasText=function(){return this.state.text.trim().length>0},r.shouldShowUploadButton=function(){return(0,Pt.I1)()&&this.props.showUploadButton&&!this.hasText()},r.moveCaretToEndOfText=function(){this.hasText()&&(0,W.a8)(this.textInput,this.state.text.length)},r.renderUploadButton=function(){var e=this,t=this.props,r=t.allowMultipleUploads,n=t.allowedAttachmentExtensions;return(0,O.jsxs)(m.AC,{className:"intercom-composer-upload-button",onClick:this.handleUploadButtonClick,"aria-label":(0,u.Tl)("upload_attachment"),children:[(0,O.jsx)(X.In,{type:"ComposerAttachment",size:16,color:"iconMuted"}),(0,O.jsx)("input",{ref:function(t){return e.fileInput=t},type:"file",multiple:r,disabled:this.isSubmissionDisabled(),onChange:this.handleFileSubmit,style:{display:"none"},accept:n,"data-testid":"composer-file-input"})]})},r.renderEmojiPickerButton=function(){var e=this.props,t=e.showEmojiPicker,r=e.isPrimaryColorReadable;return(0,O.jsx)(m.Hg,{className:"intercom-composer-emoji-button",disabled:this.isSubmissionDisabled(),onClick:this.handleEmojiPickerToggle,"aria-disabled":this.isSubmissionDisabled(),"aria-label":(0,u.Tl)("emoji_picker"),showEmojiPicker:t,isPrimaryColorReadable:r,children:(0,O.jsx)(X.In,{type:t?"ComposerEmojiActive":"ComposerEmoji",size:16,color:t?void 0:"iconMuted"})})},r.renderEmojiPicker=function(){var e=this.props,t=e.showEmojiPicker,r=e.isBorderless;return(0,O.jsx)(at,{onEscapeKey:this.handleEmojiPickerToggle,isBorderless:r,shouldHideUploads:this.shouldHideUploads(),popoverType:"emoji",children:t?(0,O.jsx)(nt.p,{onEmojiClick:this.handleEmojiClick}):null})},r.renderTypeaheadSuggestions=function(){var e=this.props,t=e.frameWindow,r=e.isBorderless,n=this.state.emojiTypeaheadState,o=n.isActive,i=n.suggestions,a=n.currentTypeaheadTerm;return(0,O.jsx)(at,{isBorderless:r,shouldHideUploads:this.shouldHideUploads(),popoverType:"emoji",children:o?(0,O.jsx)(Tt.A,{frameWindow:t,typeaheadSuggestions:i,onSelect:this.handleSelectEmojiTypeaheadSuggestion.bind(this)},"emoji-typeahead-"+a):null})},r.renderGifPickerButton=function(){var e=this.props,t=e.showGifPicker,r=e.isPrimaryColorReadable;return(0,O.jsx)(m.nc,{className:"intercom-composer-gif-button",disabled:this.isSubmissionDisabled(),onClick:this.handleGifPickerToggle,"aria-disabled":this.isSubmissionDisabled(),"aria-label":(0,u.Tl)("gif_picker"),showGifPicker:t,isPrimaryColorReadable:r,children:(0,O.jsx)(X.In,{type:t?"ComposerGifActive":"ComposerGif",size:16,color:t?void 0:"iconMuted"})})},r.renderGifPicker=function(){var e=this.props,t=e.showGifPicker,r=e.isBorderless;return(0,O.jsx)(at,{onEscapeKey:this.handleGifPickerToggle,isBorderless:r,shouldHideUploads:this.shouldHideUploads(),popoverType:"gif",children:t?(0,O.jsx)(ot.P,{onGifClick:this.handleGifClick}):null})},r.renderSendButton=function(){var e=this.props.isPrimaryColorReadable;return(0,O.jsx)(m.di,{className:"intercom-composer-send-button",disabled:this.isSubmissionDisabled(),onTouchEnd:this.handleSubmitButtonClick,onClick:this.handleSubmitButtonClick,"aria-disabled":this.isSubmissionDisabled(),"aria-label":(0,u.Tl)("send_a_message"),isPrimaryColorReadable:e,children:(0,O.jsx)(X.In,{type:"ComposerSend",size:16,color:"iconMuted"})})},r.renderButtons=function(){var e=this.props,t=e.showGifButton,r=e.isBorderless,n=this.hasText(),o=!(0,Pt.rr)(),i=t&&!(0,Pt.rr)()&&!n,a=this.shouldShowUploadButton();return(0,O.jsxs)(m.OO,{className:"intercom-composer-buttons",isBorderless:r,children:[i?this.renderGifPickerButton():null,o?this.renderEmojiPickerButton():null,n?this.renderSendButton():null,a?this.renderUploadButton():null]})},r.render=function(){var e=this,t=this.props,r=t.shouldShowUpfrontEmailComposer,n=t.isBorderless,o=t.conversationSuggestions,i=t.customerPrivacyPolicyEnabled,a=o.suggestions,s=o.loading,l=this.state.text;return r?this.renderUpfrontEmailComposer():(0,O.jsxs)(m.C_,{ref:function(t){return e.composer=t},className:"intercom-composer",isBorderless:n,hasComposerSuggestionsLoading:s,hasComposerSuggestions:a.length>0,customerPrivacyPolicyEnabled:i,children:[(0,O.jsxs)("pre",{children:[l,(0,O.jsx)("br",{})]}),this.renderTextArea(),this.renderGifPicker(),this.renderTypeaheadSuggestions(),this.renderEmojiPicker(),this.renderButtons()]})},function(e,t,r){return t&&Rt(e.prototype,t),r&&Rt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(a.PureComponent),Ft=function(e){return"Enter"===e.key&&!(e.altKey||e.shiftKey)&&!(0,Pt.rr)()};Ht.defaultProps={defaultText:"",showEmojiPicker:!1,showGifPicker:!1,showGifButton:!0,showUploadButton:!0,isBorderless:!1,conversationSuggestions:{prompt:[],suggestions:[],loading:!1,isDismissed:!1}},Ht.propTypes={placeholder:i().string,isPrimaryColorReadable:i().bool,showEmojiPicker:i().bool,showGifPicker:i().bool,showUploadButton:i().bool,showGifButton:i().bool,allowedAttachmentExtensions:i().string,defaultText:i().string,isBorderless:i().bool,shouldShowUpfrontEmailComposer:i().bool,onHeightChange:i().func,onTyping:i().func.isRequired,onChange:i().func.isRequired,onSubmit:i().func.isRequired,toggleUpfrontEmailCollectorState:i().func.isRequired,onEmojiPickerToggle:i().func.isRequired,onGifPickerToggle:i().func,conversation:i().object,frameWindow:i().object,conversationSuggestions:i().object,allowMultipleUploads:i().bool,customerPrivacyPolicyEnabled:i().bool};var Vt=r(81170),Ut=r(1200),Gt=r(94560),qt=r(28381),Wt=r(18873),$t=r(36215),Kt=r(81323),Yt=r(85229),Zt=(0,Ke.Ng)((function(e,t){var r,n=t.conversation,o=n.composerState,i=n.id,a=e.borderless&&e.borderless.conversationId,s=n.lastParticipatingAdmin,l=n.defaultMessage||$t.A.loadDraft(i),c=e.app&&e.app.officeHoursResponse,d=e.app.attachmentSettings,f=(0,Kt.Bf)(e),p=null!=(r=null==d?void 0:d.conversationGifsEnabled)?r:e.app.userConversationGifsEnabled,h=null==d?void 0:d.conversationUploadExtensions.map((function(e){return"."+e})).join(","),m=(0,Kt._D)(e),v=(0,Wt.cE)(e),y=(0,Kt.K1)(e),g=v&&!y,b=(0,Kt.ed)(e),x=g?(0,u.Tl)("start_typing"):null,w=void 0===i?(0,u.Tl)("message_placeholder"):(0,u.Tl)("reply_to_conversation"),j=m?null:(0,u.Tl)("ask_a_question_placeholder"),A=void 0;return b&&(A=i&&(0,Yt.Zc)(n)?(0,u.Tl)("reply_to_conversation"):(0,u.Tl)("ask_a_question_placeholder")),{conversationId:i,borderlessConversationId:a,lastParticipatingAdmin:s,officeHoursResponse:c,defaultText:l,placeholder:o.placeholder||A||j||x||w,showUploadButton:f,showGifButton:p,shouldAskForSuggestedAnswers:g,allowMultipleUploads:!(void 0===i||o.customBotActive),customerPrivacyPolicyEnabled:(0,Kt.Fx)(e),allowedAttachmentExtensions:h}}),(function(e){return{onTyping:function(t){e((0,Ut.xA)(t))},onChange:function(t,r,n){n&&e(r?(0,qt.bU)(r,t):(0,qt.mN)(null,t)),t?$t.A.saveDraft(t,r):$t.A.saveDraft("new_conversation",r),e((0,Ut.GO)(t,r,new Date))},onSubmit:function(t,r,n,o,i,a,s,l,u,c){var d={clientId:r,createdAt:i,body:n,file:o};e((0,Ut.yk)(Ye.Ay,t,d,!1,a,s,l,u,c)),$t.A.removeDraft(t)},toggleUpfrontEmailCollectorState:function(){e((0,Gt.Lt)())}}}),(function(e,t,r){return Object.assign({},e,t,r,{onTyping:function(r){t.onTyping(e.conversationId,r)},onChange:function(r){t.onChange(e.conversationId,r,e.shouldAskForSuggestedAnswers)},onSubmit:function(r,n,o,i){t.onSubmit(e.conversationId,(0,Vt.l)(),r,n,new Date,e.conversationId===e.borderlessConversationId,e.lastParticipatingAdmin,e.officeHoursResponse,o,i)}})}))(Ht),Xt=r(90933),Jt=r(29853),Qt=(0,h.Ay)("div",{target:"e1cp8yhr0"})("padding-top:0;/* @noflip */padding-left:45px;",(function(e){return e.newConversationStylingEnabled&&(0,h.AH)("/* @noflip */padding-left:0;",Jt.A.className,"{padding:0;}")}),";"),er=r(14472),tr=r(74773),rr=r(79986),nr=r(47335),or=["conversation","handleComposerResize","onHide","onClick"];function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,Xt.cG)(e.conversation)&&this.addReplyMetric(t)},r.componentWillUnmount=function(){this.focusTrap&&this.focusTrap.restore()},r.getHeight=function(){var e=this.state;return 32+e.partsHeight+e.composerHeight+e.suggestionsHeight+e.replyToButtonHeight+0},r.getStyle=function(){return{height:this.getHeight()}},r.hasComposer=function(){var e=this.props.conversation,t=e.parts,r=e.composerState;return Xe()(t)&&t[0]&&"attribute_collector"===t[0].replyType||r&&r.visible},r.shouldRenderHeader=function(){var e=this.state,t=e.isEmojiPickerOpen,r=e.isGifPickerOpen;return!(t||r)},r.addViewMoreMetric=function(){(0,K.A5)("clicked","viewmore_button","borderless","",{conversation_id:this.props.conversation.id})},r.addReplyMetric=function(){var e,t=this.props.conversation,r=(0,Xt.dF)(t),n=null==(e=r.body.filter((function(e){return"createTicketCard"===e.type}))[0])?void 0:e.ticket_type_id;(0,K.A5)("received","reply","borderless","",{conversation_id:t.id,part_id:r.id,part_type:"adminReply",reply_type:r.replyType,ticket_type_id:n})},r.addCloseMetric=function(){(0,K.A5)("closed","borderless","borderless","from_close_button",{conversation_id:this.props.conversation.id})},r.renderHeader=function(){return(0,O.jsx)(Br,{children:(0,O.jsxs)(Mr,{children:[this.renderViewMoreButton(),(0,O.jsx)(Rr,{onClick:this.handleDismissClick,"aria-label":(0,u.Tl)("dismiss"),children:(0,O.jsx)("span",{})})]})})},r.renderViewMoreButton=function(){return(0,O.jsx)(Dr,{onClick:this.handleViewMoreClick,children:(0,O.jsx)("span",{children:(0,u.Tl)("view_more")})})},r.renderParts=function(){var e=this.props,t=e.appName,r=e.userRole,n=e.conversation,o=e.onArticleCardClick,i=e.onReactionSelect,a=e.onRetry,s=e.frameWindow,l=e.conversationSuggestions,u=this.state,c=u.isEmojiPickerOpen,d=u.isGifPickerOpen;return(0,O.jsx)(N.A,{onHeightChange:this.handlePartsHeightChange,children:(0,O.jsx)(Je.A,{isBorderless:!0,isFaded:c||d,maxHeight:0,appName:t,userRole:r,conversation:n,frameWindow:s,onArticleCardClick:o,onReactionSelect:i,onRetry:a,conversationSuggestions:l})})},r.renderSuggestions=function(){var e=this.props,t=e.onSuggestionClicked,r=e.setComposerSuggestionsDismissed,n=e.conversationSuggestions,o={conversation:e.conversation,setComposerSuggestionsDismissed:r,onClick:t,isBorderless:!0};return(0,O.jsx)(N.A,{onHeightChange:this.setSuggestionsHeight,children:(0,O.jsx)("div",{children:(0,O.jsx)(Ar.A,{errorText:"Something went wrong loading the suggestions",align:"center",style:{marginBottom:"10px"},children:(0,O.jsx)(He.A,Fr({},o,{conversationSuggestions:n}))})})})},r.renderFooter=function(){var e=this.state,t=e.isEmojiPickerOpen,r=e.isGifPickerOpen,n=this.props,o=n.showReplyToButton,i=n.onComposerClick,a=n.conversation,s=n.frameWindow;return o&&(0,Xt.zN)(this.props.conversation)?(0,O.jsx)($.A,{isBorderless:!0,onShow:this.handleReplyToButtonShow,onClick:i}):(0,O.jsx)(ar,{conversation:a,showEmojiPicker:t,showGifPicker:r,handleComposerResize:this.handleComposerShow,onHide:this.handleComposerHide,onEmojiPickerToggle:this.handleEmojiPickerToggle,onGifPickerToggle:this.handleGifPickerToggle,frameWindow:s,onClick:i})},r.render=function(){var e=this,t=this.props,r=t.conversation,n=t.frameNode,o=this.state.composerHeight;return(0,O.jsxs)(Ir,{className:"intercom-borderless",style:this.getStyle(),onClick:this.handleClick,tabIndex:"-1",role:"region","aria-label":(0,u.Tl)("intercom_messenger_feature_short_title"),ref:function(t){return e.borderlessNode=t},hasComposer:this.hasComposer(),children:[this.shouldRenderHeader()?this.renderHeader():null,(0,O.jsxs)(Nr,{children:[(0,O.jsx)(xr,{conversation:r,composerHeight:o,borderlessNode:this.borderlessNode,frameNode:n,children:function(){return(0,O.jsxs)(fr,{children:[e.renderParts(),e.renderSuggestions()]})}}),this.renderFooter()]}),(0,O.jsx)(z.A,{appWindow:this.props.frameWindow})]})},function(e,t,r){return t&&Vr(e.prototype,t),r&&Vr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(a.Component);qr.propTypes={conversation:i().shape({id:i().string.isRequired,userParticipated:i().bool.isRequired,fetchState:i().oneOf(["summary","partial","all"]),parts:i().arrayOf(i().shape({id:i().string,replyType:i().oneOf(["text","attribute_collector"])})).isRequired,composerState:i().shape({visible:i().bool.isRequired}).isRequired}),conversationSuggestions:i().shape({prompt:i().any,suggestions:i().arrayOf(i().shape({uuid:i().string.isRequired,text:i().string.isRequired,preAction:i().string}))}),onSuggestionClicked:i().func,setComposerSuggestionsDismissed:i().func,appName:i().string.isRequired,userRole:i().string.isRequired,alignment:i().string,onOpen:i().func.isRequired,onHeightChange:i().func.isRequired,onPopoverToggle:i().func.isRequired,onArticleCardClick:i().func.isRequired,onReactionSelect:i().func.isRequired,onRetry:i().func.isRequired,onViewMore:i().func.isRequired,onClose:i().func.isRequired,onComposerClick:i().func.isRequired,frameWindow:i().any.isRequired,showReplyToButton:i().bool,part:i().object,frameNode:i().object.isRequired};var Wr=r(57296),$r=r(98099),Kr=r(80607);var Yr=r(71179),Zr=(0,Ke.Ng)((function(e,t){var r=e.app.name,n=e.user.role,o=t.part,i=t.conversation,a=(0,Yr.b)(e).alignment,s=i.parts.filter((function(e){return e.createdAt>=o.createdAt}));if(s[0]){var l=s[0].messageType;l=l||"adminReply",s[0]=Object.assign({},s[0],{messageType:l})}return{appName:r,userRole:n,conversation:Object.assign({},i,{parts:s}),alignment:a}}),(function(e){return{onOpen:function(t){e(function(e){return function(t,r){(0,$r.VN)(r(),e).userParticipated?t((0,Ut.QL)(Ye.Ay,e,{requestOrigin:"Open Borderless Conversation - User Participated"})).then((function(){t({type:Kr.hEo,conversationId:e})})):t({type:Kr.hEo,conversationId:e})}}(t))},onRetry:function(t,r){e((0,Ut.sD)(Ye.Ay,t,r))},onReactionSelect:function(t,r){e((0,Ut.yf)(Ye.Ay,t,r,!1))},onArticleCardClick:function(t,r){return e((0,Wr.Y0)(t,r,!1))},onViewMore:function(t){e((0,Gt.i6)(t))}}}),(function(e,t,r){var n=e.conversation,o=n.id,i={onOpen:function(){t.onOpen(o)},onReactionSelect:function(e){t.onReactionSelect(o,e)},onRetry:function(e){t.onRetry(n,e)},onViewMore:function(){t.onViewMore(o)},onClose:function(){r.onClose()}};return Object.assign({},t,r,e,i)}))(qr);var Xr={name:"1vhzcmv",styles:"min-height:350px"},Jr=(0,h.Ay)(B.Ay,{target:"e1dl9bzv0"})("z-index:",(0,M.fE)(),";position:fixed;width:360px;color-scheme:none;",(function(e){var t=e.theme;return(0,h.AH)("bottom:",t.verticalPaddingPx-t.borderlessIframePaddingPx,"px;right:",t.horizontalPaddingPx-t.borderlessIframePaddingPx,"px;max-height:calc(100% - ",t.verticalPaddingPx-t.borderlessIframePaddingPx,"px);")})," ",(function(e){return e.isPopoverOpen&&Xr})," ",(function(e){var t=e.theme;return t.isLeftAlign&&(0,h.AH)("left:",t.borderlessIframePaddingPx+t.horizontalPaddingPx-t.borderlessIframePaddingLeftPx+t.borderlessAvatarOffsetWidthPx,"px;right:auto;")})," ",(function(e){var t=e.theme;return t.isLauncherEnabled&&(0,h.AH)("bottom:",t.verticalPaddingPx+t.launcherOffsetBottomPaddingPx-t.borderlessIframePaddingPx,"px;max-height:calc(\n 100% -\n ",t.verticalPaddingPx+t.launcherOffsetBottomPaddingPx-t.borderlessIframePaddingPx,"px\n );")}),";");function Qr(e){return Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qr(e)}function en(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==r[t-1]}))},o.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(){var r=this;this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(e,"resize",this._checkForIntersections,!0),this._observationTargets.forEach((function(e){r._monitorScrollForElement(e)})),this.USE_MUTATION_OBSERVER&&"MutationObserver"in e&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._monitorScrollForElement=function(e){e!==t&&e&&(i(e,"scroll",this._checkForIntersections,!0),this._monitorScrollForElement(e.parent))},o.prototype._unmonitorScrollForElement=function(e){e!==t&&e&&(a(e,"scroll",this._checkForIntersections,!0),this._unmonitorScrollForElement(e.parent))},o.prototype._unmonitorIntersections=function(){var t=this;this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(e,"resize",this._checkForIntersections,!0),this._observationTargets.forEach((function(e){t._unmonitorScrollForElement(e)})),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),r=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,a=s(i),l=this._rootContainsTarget(i),u=o.entry,c=t&&l&&this._computeTargetAndRootIntersection(i,r),d=o.entry=new n({time:e.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:r,intersectionRect:c});u?t&&l?this._hasCrossedThreshold(u,d)&&this._queuedEntries.push(d):u&&u.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(r,n){if("none"!=e.getComputedStyle(r).display){for(var o,i,a,l,c,d,f,p,h=s(r),m=u(r),v=!1;!v;){var y=null,g=1==m.nodeType?e.getComputedStyle(m):{};if("none"==g.display)return;if(m==this.root||m==t?(v=!0,y=n):m!=t.body&&m!=t.documentElement&&"visible"!=g.overflow&&(y=s(m)),y&&(o=y,i=h,a=void 0,l=void 0,c=void 0,d=void 0,f=void 0,p=void 0,a=Math.max(o.top,i.top),l=Math.min(o.bottom,i.bottom),c=Math.max(o.left,i.left),d=Math.min(o.right,i.right),p=l-a,!(h=(f=d-c)>=0&&p>=0&&{top:a,bottom:l,left:c,right:d,width:f,height:p})))break;m=u(m)}return h}},o.prototype._getRootRect=function(){var e;if(this.root)e=s(this.root);else{var r=t.documentElement,n=t.body;e={top:0,left:0,right:r.clientWidth||n.clientWidth,width:r.clientWidth||n.clientWidth,bottom:r.clientHeight||n.clientHeight,height:r.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(e)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,r){return"px"==t.unit?t.value:t.value*(r%2?e.width:e.height)/100})),r={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},o.prototype._hasCrossedThreshold=function(e,t){var r=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(r!==n)for(var o=0;o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function C(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function O(e,t){for(var r=0;r=0&&(i=[null,"top","bottom","right","left"][n]),o&&this.node){r&&this.scrollIntoView();var a=this.node,s=this.arrow,l=this.props,u=function(){(0,w.rD)(o,a,{placement:i||"top",middleware:[(0,w.cY)({mainAxis:e.props.hideArrow?5:15,crossAxis:0}),(0,w.BN)({limiter:(0,w.ER)()}),n?null:(0,w.UU)({fallbackAxisSideDirection:"start"}),{name:"refrect",fn:function(e){return{data:e.rects.reference}}},{name:"overflow",fn:function(e){return(t=k().mark((function t(){var r,n,o,i,a;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.__)(e);case 2:if(r=t.sent,n=l.hideArrow?5:20,r.left+=n,r.right+=n,r.top+=n,r.bottom+=n,!(r.left>0||r.right>0||r.top>0||r.bottom>0)){t.next=18;break}return o=e.x,i=e.y,a=!1,r.right>0&&(o-=r.right),r.left>0&&(o+=r.left),r.right>0&&r.left>0&&(o-=r.right/2,o+=r.left/2,a=!0),r.bottom>0&&(i-=r.bottom),r.top>0&&(i+=r.top),r.right>0&&r.left>0&&(i-=r.bottom/2,i+=r.top/2,a=!0),t.abrupt("return",{x:o,y:i,placement:"bottom",data:{overflow:a}});case 18:return t.abrupt("return",{data:{overflow:!1}});case 19:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(e){C(i,n,o,a,s,"next",e)}function s(e){C(i,n,o,a,s,"throw",e)}a(void 0)}))})();var t}},(0,w.UE)({element:s})].filter((function(e){return null!==e}))}).then((function(t){var r,n,o={left:(null==(r=t.middlewareData.arrow)?void 0:r.x)||"",top:(null==(n=t.middlewareData.arrow)?void 0:n.y)||""},i=t.middlewareData.overflow.overflow;e.updateElementPosition({arrowStyles:o,attributes:{"x-placement":t.placement,"x-out-of-boundaries":i},styles:{position:"absolute",top:t.y,left:t.x,transform:"",willChange:"transform"},hide:!1}),e.setState({referenceRect:{top:t.middlewareData.refrect.y,left:t.middlewareData.refrect.x,width:t.middlewareData.refrect.width,height:t.middlewareData.refrect.height}})}))},c={scheduleUpdate:function(){c.destroy(),c.destroy=(0,w.ll)(o,a,u)},destroy:j.K};this.positioner=c,u()}},s.initializeIntersectionObserver=function(){var e=this,t=this.props.appWindow,r=this.getTargetNode();r&&(t.IntercomIntersectionObserver||p(t),this.IntersectionObserver=new t.IntercomIntersectionObserver((function(t){if(0!==t.length){var n=o()(t,["time"],["desc"])[0],i=n.isIntersecting,a=n.intersectionRatio,s=i,l=i&&(0,f.nf)(r),u=1===a;e.setState({hide:!l,nodeInViewPort:s,nodeIsEntirelyInViewport:u})}}),{threshold:.05}),this.IntersectionObserver.observe(r))},s.destroyPositioner=function(){this.positioner&&(this.positioner.destroy(),delete this.positioner)},s.destroyIntersectionObserver=function(){this.IntersectionObserver&&this.IntersectionObserver.disconnect()},s.reinitializePointer=function(){this.destroyPositioner(),this.initializePositioner()},s.reinitializeIntersectionObserver=function(){this.destroyIntersectionObserver(),this.initializeIntersectionObserver()},s.mergedStyles=function(){var e=this.props.scrollable,t=this.state,r=t.styles,n=t.positionerOffsetForMask;if(!r)return{};if(!e)return r;var o=n.left,i=n.top;return S({},r,{left:r.left+o,top:r.top+i})},s.nodeIsVisible=function(){var e=this.getTargetNode();return e&&(0,f.nf)(e)},s.getStyles=function(){var e=this.props.hideArrow,t=this.props.childDimensions||{},r=t.height,n=t.width,o=t.opacity;if(this.nodeIsVisible()){var i=!this.state.hide&&r&&n&&o?1:0;return this.onSelectorMatch(),S({},this.mergedStyles(),{opacity:i})}if(this.props.renderFallback){var a=e?5:15,s=(this.props.childDimensions||{}).opacity;return this.props.targetSelector&&this.onMissingSelector(),{position:"fixed",top:"calc(50% - "+(r||0)/2+"px)",left:"calc(50% - "+(n||0)/2+"px)",opacity:s,margin:a}}},s.getArrowStyles=function(){var e=this.state,t=e.arrowStyles,r=e.hide,n=this.props.childDimensions||{},o=n.height,i=n.width,a=!r&&o&&i?1:0;return t?{top:t.top,left:t.left,opacity:a}:{opacity:a}},s.getMaskStyles=function(){var e=this.getTargetNode();if(!e||!this.props.scrollable||this.state.hide)return{padding:0,top:0,left:0,width:0,height:0};var t=this.props.appWindow,r=this.state.referenceRect?{top:this.state.referenceRect.top-t.scrollY,left:this.state.referenceRect.left-t.scrollX,width:this.state.referenceRect.width,height:this.state.referenceRect.height}:e.getBoundingClientRect(),n=r.top,o=r.left,i=r.width,a=r.height;return{padding:3,top:n-3+t.scrollY,left:o-3+t.scrollX,width:i,height:a}},s.renderArrow=function(){var e=this,t=this.props.backgroundColorOverride;return(0,m.jsx)(h.Wr,{style:S({},this.getArrowStyles()),ref:function(t){return e.arrow=t},"data-testid":"arrow-wrapper",children:(0,m.jsx)(h.AJ,{frameName:"intercom-positioner-arrow-frame",children:function(){return(0,m.jsx)(h.kG,{style:{display:e.props.hideArrow?"none":"block"},ref:function(t){return e.arrowContainer=t},backgroundColorOverride:t})}})})},s.onMissingSelector=function(){var e=this;this.missingSelectorTimeout||(this.missingSelectorTimeout=setTimeout((function(){!e.nodeIsVisible()&&e.props.onMissingSelector&&e.props.onMissingSelector()}),300))},s.onSelectorMatch=function(){this.props.onSelectorMatch&&this.props.onSelectorMatch()},s.render=function(){var e=this,t=this.props,r=t.scrollable,n=t.shouldAnimate,o=t.renderFallback,i=t.children,a=t.appWindow,s=t.buttonColor,l=this.getTargetNode();if(!l&&!o)return null;var u=this.state.maskStyles,c=u.width,f=u.height;return(0,m.jsx)(d,{appWindow:a,children:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(h.gE,{ref:function(t){return e.node=t},style:this.getStyles(),children:(0,m.jsxs)(h.E9,{children:[this.nodeIsVisible()?this.renderArrow():null,this.targetIsVisible()||o?i:null]})}),(0,m.jsx)(h.ou,{style:u,isStep:r&&!!l,isPost:r&&!l,isAnimating:n,height:f,width:c,buttonColor:s,"data-testid":"positioner-mask"}),(0,m.jsx)(x,{events:["auxclick","click","dblclick","mousedown","mouseup"],onClickEvent:function(){return e.handleOverlayClick()},children:this.renderOverlay()})]})})},r=t,n&&O(r.prototype,n),i&&O(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(s.Component);_.defaultProps={hideArrow:!1,renderFallback:!1,shouldAnimate:!1,renderOverlay:function(e,t){var r=t.scrollable;return(0,m.jsx)(h.M3,{onClick:e,scrollable:r,tabIndex:-1,"data-testid":"positioner-overlay","aria-label":"Product tour overlay"})}}},65772:function(e,t,r){"use strict";r.d(t,{A:function(){return w}});var n=r(96540),o=r(36656),i=r(60077),a=r(99410),s=r(31218),l=r(63156),u=r(49651),c=r(34913),d=r(69830),f=r(38211),p=r(52271),h=r(79630),m=r(74848);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t0}),(0,h.Xr)(e)},t.addClickedComposerMetric=function(){var e=t.props,r=e.message.id,n=e.conversationId;(0,d.A5)("clicked","composer","in_app","from_full",{message_type:"post",message_id:r,conversation_id:n})},t.handleComposerClick=function(e){return function(){t.addClickedComposerMetric(),t.props.onComposerClick(),e(void 0,{shouldReturnFocus:!1})}},t}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(t,e);var r,n,v,b=t.prototype;return b.renderFooter=function(e){var t=this.props,r=t.composerVisible,n=t.showReplyToButton,o=t.isUpfrontEmailComposerShowing;return r?n||o?(0,m.jsx)(c.A,{onClick:this.handleComposerClick(e)}):(0,m.jsx)(f.pM,{className:"intercom-post-composer",onClick:this.handleComposerClick(e),"aria-label":(0,u.Tl)("open_conversation_and_reply"),children:(0,m.jsx)(p.cT,{children:(0,u.Tl)("reply_to_conversation")})}):null},b.renderReactionPicker=function(){var e=this.props,t=e.reactionsReply,r=e.onReactionSelect;return(0,m.jsx)(l.A,y({},t,{onReactionSelect:r}))},b.render=function(){var e=this,t=this.state.isScrolled,r=this.props,n=r.appName,l=r.message,c=r.reactionsReply,d=r.onClose,p=r.frameWindow,h=r.returnFocus,v=r.showReplyToButton,y=r.isUpfrontEmailComposerShowing,g=l.author,b=l.lastActiveAt,x=l.body;return(0,m.jsx)(o.A,{closeCallback:d,showCloseOverlay:!1,frameWindow:p,returnFocus:h,children:function(r){var o=r.onClose;return(0,m.jsx)(f.pD,{isScrolled:t,children:(0,m.jsx)(f.K8,{className:"intercom-post",children:(0,m.jsxs)(a.A,{appName:n,isReplyStyle:!1,author:g,lastActiveAt:b,forceShowAppName:!0,children:[(0,m.jsx)(f.Xz,{className:"intercom-post-close",onClick:o,"aria-label":(0,u.Tl)("close")}),(0,m.jsx)(i.A,{isInsideModal:!0,onScroll:e.handleScroll,children:(0,m.jsx)(s.A,{blocks:x,frameWindow:p})}),(0,m.jsx)(f.oL,{isCentered:v||y,children:c?e.renderReactionPicker():e.renderFooter(o)})]})})})}})},r=t,n&&g(r.prototype,n),v&&g(r,v),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.Component)},63156:function(e,t,r){"use strict";r.d(t,{A:function(){return d}});var n=r(96540),o=r(78619),i=r(94325),a=r(74848);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var r=0;r0});var n=t.props.onScroll;n&&n(e)}),17),t}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e);var r,d,p,m=t.prototype;return m.componentDidUpdate=function(e){e.defaultScrollPosition!==this.props.defaultScrollPosition&&this.props.defaultScrollPosition&&this.scrollable&&(this.scrollable.scrollTop=this.props.defaultScrollPosition),this.handleScrollable()},m.componentDidMount=function(){this.handleScrollable(),this.props.defaultScrollPosition&&this.scrollable&&(this.scrollable.scrollTop=this.props.defaultScrollPosition)},m.handleScrollable=function(){var e=this.props.onScrollable;!this.state.scrollable&&this.isScrollable()&&(this.setState({scrollable:!0}),this.scrollable&&e&&e(this.scrollable,this.state.scrollable))},m.isScrollable=function(){return!!this.scrollable&&this.scrollable.scrollHeight>this.scrollable.clientHeight},m.render=function(){var e=this,t=this.props,r=t.dynamicChildrenHeight,n=t.showScrollingBorder,i=this.state.scrolled;return(0,c.jsxs)(c.Fragment,{children:[n&&(0,c.jsx)(u.B1,{in:i,classNames:"intercom-drop-shadow-fade",timeout:150,unmountOnExit:!0,nodeRef:this.scrollingBorderRef,children:(0,c.jsx)(l.p,{ref:this.scrollingBorderRef})}),(0,c.jsx)(a.vW,{className:"intercom-scrollable",isInsideModal:this.props.isInsideModal,flex:this.props.flex,onScroll:this.handleScroll,onWheel:o.b$,tabIndex:this.state.scrollable?"0":"-1",ref:function(t){return e.scrollable=t},children:r?(0,c.jsx)(s.A,{onHeightChange:this.handleHeightChange,children:(0,c.jsx)(c.Fragment,{children:this.props.children})}):this.props.children})]})},r=t,d&&f(r.prototype,d),p&&f(r,p),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.Component)},21752:function(e,t,r){"use strict";var n=r(13555),o=r(49651),i=r(74848);t.A=function(e){var t=e.count,r=e.query;return(0,i.jsx)("span",{"aria-live":"assertive",children:r?(0,i.jsx)(n.D,{role:"alert",children:t?(0,i.jsxs)("span",{children:[t," ",(0,o.Tl)("article_search_search_results_for_query",{query:r})]}):(0,o.Tl)("article_search_no_results_for_query",{query:r})}):null})}},67827:function(e,t,r){"use strict";r.d(t,{A:function(){return A}});var n=r(5556),o=r.n(n),i=r(96540),a=r(54979),s=r(99410),l=r(37341),u=r(50052),c=r(73669),d=r(69771),f=r(90933),p=r(95029),h=r(53074),m=r(61041),v=r(14314),y=r(69830),g=r(74848);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function x(e,t){for(var r=0;r0?1===r?(0,n.Tl)("checklist_in_progress_time_remaining_singular"):(0,n.Tl)("checklist_in_progress_time_remaining_plural",{minutes:r.toString()}):1===r?(0,n.Tl)("checklist_not_started_time_remaining_singular"):(0,n.Tl)("checklist_not_started_time_remaining_plural",{minutes:r.toString()})},f=function(e,t){return 0===e?1===t?(0,n.Tl)("checklist_number_of_steps_singular"):(0,n.Tl)("checklist_number_of_steps_plural",{number_of_steps:t.toString()}):1===t||1===e?(0,n.Tl)("checklist_number_of_steps_progress_singular",{total_steps:t.toString()}):(0,n.Tl)("checklist_number_of_steps_progress_plural",{steps_completed:e.toString(),total_steps:t.toString()})},p=function(e){var t=e.checklistTasks,r=e.completedChecklistTasks,o=e.estimatedTimeRemaining,i=e.condensed,a=e.prefillProgressIfEmpty,p=r/t*100;return(0,s.jsxs)("div",{"data-testid":"checklist-progress-details",children:[(0,s.jsxs)(u,{condensed:i,children:[(0,s.jsx)(c,{"data-testid":"checklist-remaining-tasks",children:(0,s.jsx)("p",{children:f(r,t)})}),i&&(0,s.jsx)(c,{children:(0,s.jsx)("p",{children:"•"})}),(0,s.jsx)(c,{"data-testid":"checklist-remaining-time",children:(0,s.jsx)("p",{children:re.length)&&(t=e.length);for(var r=0,n=Array(t);r-1&&n.splice(o,1),n.unshift({baseEmoji:e,skintoneEmoji:t}),n.length<8&&!r&&(n=n.concat(z)),B.L.set(L,JSON.stringify({version:R,emoji:n}))}(e,t||e))},G=function(e){try{return(0,_.Tl)(i().getGroupRepresentatives()[e][1].toLowerCase())}catch(e){return}},q=function(e){var t=(0,n.useMemo)((function(){var e=F(),t=i().prettyEmoticonsUnicodeGroups().map((function(e,t){return{title:G(t),emojis:e.filter(i().isEmojiBaseUnicode)}}));return e&&t.unshift({title:(0,_.Tl)("frequently_used"),emojis:e.map((function(e){return e.skintoneEmoji||e.baseEmoji}))}),t}),[]);return(0,n.useMemo)((function(){return e?function(e){var t,r,n=(0,P.Fu)().filter((t=e,r=t.toLowerCase(),function(e){return e.title.indexOf(r)>-1})).map((function(e){return e.emoji}));return 0===n.length?[]:[{title:void 0,emojis:n}]}(e):t}),[e,t])},W=r(8375),$=function(e){return window.getComputedStyle&&window.getComputedStyle(e)?window.getComputedStyle(e):e.style},K=r(21752),Y=r(1601),Z=r(49063);function X(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return Q(t,void 0!==r&&re.length)&&(t=e.length);for(var r=0,n=Array(t);r0?[e,0]:e>0?[e-1,0]:[e,t]}(n,o):function(e,t,r){return e0)return[e-1,n(e-1)-1];for(var i=e,a=t,s=0;sn(e)-o&&ee.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);rE;D(e),e&&clearInterval(F.current)}),b)},onMouseLeave:function(){G(),V.current=setTimeout((function(){D(!1)}),_)},onMouseMove:function(e){if(H.current){var t,r,n=H.current.getBoundingClientRect(),o=e.clientX-n.left,i=e.clientY-n.top,a=n.bottom-e.clientY;i>n.height/2?t=Math.round(a+w):r=Math.round(i+x),U.current=Date.now(),k&&D(!1),L({top:r,bottom:t,left:Math.round(o+j)})}},ref:H};return(0,h.jsx)(h.Fragment,{children:t(W,$)})}var S=r(82825),k=r(49651);function C(e){var t=e.explanation,r=e.learnMoreURL;return(0,h.jsxs)(O,{children:[t,r&&(0,h.jsxs)("a",{href:r,target:"_blank",rel:"noreferrer",children:[(0,k.Tl)("learn_more")," ",(0,h.jsx)(S.A,{})]})]})}var O=(0,o.Ay)("div",{target:"e13saqdc0"})("border-radius:10px;background:",(0,o.w4)("alphaBlack90"),";padding:16px;min-width:300px;color:",(0,o.w4)("textOnInverse"),";line-height:150%;font-size:14px;font-weight:400;a{display:flex;align-items:center;color:",(0,o.w4)("textMutedExtra"),";font-weight:600;text-decoration:none;&:hover,&:active{color:",(0,o.w4)("textMutedExtra"),";}svg{height:13px;path{stroke:",(0,o.w4)("iconMuted"),";}}}"),T=n},52203:function(e,t,r){"use strict";r.d(t,{A:function(){return c}});var n=r(96540),o=r(55787),i=r(74848);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0}var m=function(e){function t(){return e.apply(this,arguments)||this}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.value,r=e.errorMessage,n=e.onSubmit,o=e.onChange,i=e.placeholder,a=e.id,c=e.label,d=e.saveState,f=e.multiline,p=e.disabled,m=e.isBorderless,v=e.isReplyType,y=e.isSubmittable,g=e.hideErrorMessage,b=e.ariaLabel;return(0,u.jsx)(s.A,{value:t,placeholder:i,id:a,label:c,saveState:d,multiline:f,disabled:p,isValid:h,isBorderless:m,isReplyType:v,isNotificationChannel:!1,isSubmittable:y,onSubmit:n,onChange:o,hideErrorMessage:g,validationErrorMessage:r||(0,l.Tl)("string_is_incorrect"),ariaLabel:b||i})},r=t,n&&d(r.prototype,n),o&&d(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(o.Component);m.defaultProps={isSubmittable:!0,hideErrorMessage:!1};var v=r(48368);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Ee(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Pe(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ee(i,n,o,a,s,"next",e)}function s(e){Ee(i,n,o,a,s,"throw",e)}a(void 0)}))}}function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ie(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ie(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&(x({type:"UPLOAD_START",payload:{name:r[0].name}}),(0,de.oT)(pe.Ay,v,r[0]).then((function(e){void 0!==(null==e?void 0:e.id)&&(x({type:"UPLOAD_SUCCESS",payload:{id:e.id}}),t.value="")})).catch(Pe(Te().mark((function e(t){var r,n,o;return Te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=JSON.parse(t),o=(null==n||null==(r=n.errors)||null==(r=r[0])?void 0:r.message)||(0,l.Tl)("something_is_wrong"),x({type:"UPLOAD_FAILURE",payload:{errorMessage:o}});case 3:case"end":return e.stop()}}),e)})))))},"aria-label":c,disabled:j,multiple:!1,required:!0,"data-testid":"file-upload-input",style:{display:"none"}}),(0,u.jsxs)("div",{children:[(0,u.jsx)(Ae,{children:(0,u.jsx)(he.Ay,{type:"Attachment",size:16})}),(0,u.jsx)(we,{hidden:!(null==(n=b.upload)||!n.name),children:(0,u.jsx)("span",{children:p})}),(null==(i=b.upload)?void 0:i.name)&&(0,u.jsx)(Se,{children:b.upload.name}),(0,u.jsx)(je,{"data-testid":"success-icon"}),(0,u.jsxs)(be,Ne({disabled:j,onClick:function(){var e,t;void 0!==(null==(e=b.upload)?void 0:e.id)&&s([null==(t=b.upload)?void 0:t.id])},saveState:f},S,{children:[(0,u.jsx)($.A,{disabled:j,loading:w}),w?(a=(y||{}).isPrimaryColorAsTheme?"defaultColor":"inverseColor",(0,u.jsx)(ke.A,{color:a,size:"small"})):null]}))]})]})}),A&&(0,u.jsx)(P.A,{errorMessage:b.errorMessage?b.errorMessage:(0,l.Tl)("something_is_wrong")})]})},De=o.memo(ze);function He(e){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function Fe(e,t){for(var r=0;rft(d))return null;var f,p=e.type,h=e.name,m=e.identifier,v=e.options,y=e.value,g=e.saveState,b=e.errorCode,x=e.multiline;return dt(d)>1&&!c&&(f=""+(r+1)),(0,u.jsx)(qe,{type:p,name:h,identifier:m,value:y,multiline:x,number:f,options:v,disabled:l,saveState:g,errorCode:b,defaultCountryCode:a,isBorderless:o,isReplyType:i,onSubmit:s},m)},t}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ut(e,t)}(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this,t=this.props,r=t.part,n=t.conversationId,o=r.form;o&&o.attributes.forEach((function(t){"email"===t.identifier&&e.props.onEmailAttributeMount(n)}))},r.componentDidUpdate=function(e){var t=ct(e.part),r=ct(this.props.part);ft(t)!==ft(r)&&function(e){if(e){var t=e.closest(".intercom-conversation-body-parts");t&&(0,i.cs)(t)}}(this.node)},r.renderAvatar=function(){return(0,u.jsx)(Ye,{children:(0,u.jsx)(a.h,{author:this.props.part.author})})},r.renderForm=function(){var e=this.props.part.form;return e?e.attributes.map(this.renderAttribute):null},r.renderDisabledMessage=function(){var e=this.props,t=e.disabled,r=e.disabledMessage;return t&&r?(0,u.jsx)(et,{children:r}):null},r.renderHeader=function(){var e=this.props.part.form;if(!e)return null;var t=e.title&&e.title.length>0,r=e.subtitle&&e.subtitle.length>0;return t?(0,u.jsxs)(Je,{children:[t?(0,u.jsx)(tt,{children:e.title}):null,r?(0,u.jsx)(rt,{children:e.subtitle}):null]}):null},r.renderMetadataTitle=function(){var e=this.props,t=e.part,r=e.isBorderless;return t.metadata?(0,u.jsx)(it.Y,{part:t,isBorderless:r}):null},r.renderPosition=function(){var e=ct(this.props.part),t=dt(e);if(1===t)return null;var r=Math.min(t,ft(e)+1);return(0,u.jsxs)(Ze,{children:["(",r,"/",t,")"]})},r.render=function(){var e=this,t=this.props,r=t.isBorderless,n=t.isReplyType,o=t.useNewConversationStyle;return(0,u.jsxs)(ot,{isBorderless:r,isReplyType:n,ref:function(t){return e.node=t},children:[this.props.hasAvatar?this.renderAvatar():null,this.renderMetadataTitle(),(0,u.jsxs)(Xe,{useNewConversationStyle:o,children:[this.renderHeader(),(0,u.jsxs)(Qe,{children:[this.renderPosition(),this.renderForm(),this.renderDisabledMessage()]})]})]})},function(e,t,r){return t&&st(e.prototype,t),r&&st(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(o.Component),ht=r(79751),mt=r(90933),vt=r(97899),yt=(0,n.Ng)((function(e,t){var r=t.part;return{conversationId:(0,vt.Vy)(e)||e.message.conversationId,partId:r.id,defaultCountryCode:e.user.countryCode||"us"}}),(function(e){return{onAttributeSubmit:function(t,r,n,o,i,a){e((0,de.DX)(pe.Ay,t,r,n,o,i,a,(0,mt.S9)({identifier:n})))},onEmailAttributeMount:function(t){e((0,ht.Mv)(t))}}}),(function(e,t,r){return Object.assign({},e,t,r,{onAttributeSubmit:function(n,o){t.onAttributeSubmit(e.conversationId,e.partId,n,o,(0,mt.MF)(r.part.form,n),r.part.form.type)}})}))(pt)},1020:function(e,t,r){"use strict";r.d(t,{A:function(){return Qn}});var n=r(71468),o=r(81323),i=r(90933),a=r(96540),s=r(183),l=r(65772),u=r(99410),c=r(31218),d=r(64845),f=r(69830),p=r(13336),h=r(74848);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function v(e,t){for(var r=0;rr})}},i.renderPostContent=function(){var e=this.props,t=e.part,r=e.appName,n=e.reactionsReply,o=e.onReactionSelect,i=e.frameWindow,a=e.isUpfrontEmailComposerShowing;return(0,h.jsx)(l.A,{message:t,appName:r,reactionsReply:n,onReactionSelect:o,onComposerClick:this.handleComposerClick,onClose:this.handleClose,frameWindow:i,isUpfrontEmailComposerShowing:a,returnFocus:this.node&&this.node.focus.bind(this.node)})},i.renderPostBody=function(){var e=this.props,t=e.part,r=e.appName,n=e.frameWindow,o=e.isOpen,i=t.author,a=t.body;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.A,{appName:r,author:i,forceShowAppName:!0,children:(0,h.jsx)(p.C,{children:(0,h.jsx)(c.A,{blocks:a,frameWindow:n})})}),o?this.renderPostContent():null]})},i.render=function(){var e=this,t=this.props,r=t.isOpen,n=t.noShadow;return(0,h.jsx)(d.A,{noPadding:!0,noShadow:n,className:"intercom-post-card",onClick:r?void 0:this.handleClick,ref:function(t){return e.node=t},tabIndex:r?void 0:0,isEntireCardClickable:!0,"data-testid":"post-card",children:(0,h.jsx)(p.s,{isTruncated:!0,children:this.renderPostBody()})})},r=t,n&&v(r.prototype,n),o&&v(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(a.Component),x=r(93798),w=(0,n.Ng)((function(e,t){return{isOpen:!(!e.message.conversationId||!e.message.partId||null!=t&&t.isBorderless),isUpfrontEmailComposerShowing:e.app.upfrontEmailCollection.upfrontEmailCollectorShowing}}),(function(e){return{onOpen:function(t,r){e((0,x.G4)(t,r))},onClose:function(){e((0,x.Y6)())}}}),(function(e,t,r){return Object.assign({},e,t,r,{onOpen:function(e,r){t.onOpen(e,r)},onClose:function(){t.onClose()}})}))(b),j=r(26690);function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t0},i.shouldShowThanks=function(){var e=this.props,t=e.submitted,r=e.chosenRating,n=e.remark;return t||void 0!==r&&void 0!==n},i.hasRemark=function(){var e=this.props.remark;return void 0!==e&&""!==e.trim()},i.isChosen=function(e){return this.props.chosenRating===e},i.isOtherChosen=function(e){return this.hasRating()&&!this.isChosen(e)},i.renderThanksMessage=function(){return(0,h.jsxs)("div",{children:[(0,h.jsxs)(Qe.ZM,{children:[(0,h.jsxs)(Qe.WS,{children:[(0,T.Tl)("you_rated_the_conversation")," ",(0,h.jsx)(Xe,{ratingIndex:this.props.chosenRating})]}),(0,h.jsx)(Qe.Qy,{children:(0,T.Tl)("thanks_for_letting_us_know")})]}),this.hasRemark()?this.renderRemark():null]},"conversation-rating-thanks")},i.renderRemark=function(){return(0,h.jsx)(Qe.u9,{children:this.props.remark})},i.renderRatingForm=function(){return(0,h.jsxs)("div",{children:[this.renderRatingOptions(),(0,h.jsx)(je.A,{duration:500,animationKey:"conversation-rating",children:this.hasRating()?this.renderRemarkInput():null})]},"form")},i.renderRatingOptions=function(){for(var e=[],t=this.props.blockRating,r=1;r<=5;r++)e.push((0,h.jsx)(Ze,{ratingIndex:r,chosen:this.isChosen(r),otherChosen:this.isOtherChosen(r),onRatingChosen:this.props.onRatingChosen,isDisabled:!this.hasRating()&&t},r));return(0,h.jsxs)(Qe.Iu,{children:[(0,h.jsx)(Qe.AM,{children:(0,h.jsx)(Qe.tV,{children:(0,T.Tl)("rate_your_conversation")})}),(0,h.jsx)(Qe.rs,{children:e})]})},i.renderRemarkInput=function(){return(0,h.jsx)(ze,{placeholder:(0,T.Tl)("tell_us_more"),onChange:this.handleRemarkChange,onSubmit:this.props.onRemarkSubmit},"remark-input")},i.render=function(){var e=this;return(0,h.jsx)(Qe.w5,{ref:function(t){return e.node=t},useNewConversationStyle:this.props.useNewConversationStyle,groupingPosition:this.props.groupingPosition||et.L3.standalone,children:(0,h.jsx)(Je.A,{onChange:this.handleHeightChange,children:(0,h.jsx)("div",{children:(0,h.jsx)(we.A,{appearDelay:300,children:this.shouldShowThanks()?this.renderThanksMessage():this.renderRatingForm()})})})})},r=t,n&&rt(r.prototype,n),o&&rt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(a.Component),at=r(80607);function st(e,t,r,n){return function(o,i){o(function(e,t,r){return{type:at.aQ5,conversationId:e,ratingIndex:r,ratingUuid:t}}(t,r,n));var a=i().session;return e.changeConversationRatingIndex(a,t,r,n)}}function lt(e,t,r,n){return function(o,i){if(o(function(e,t,r){return{type:at.ze_,conversationId:e,remark:r,ratingUuid:t}}(t,r,n)),void 0===n||""===n)return Promise.resolve();var a=i().session;return e.addConversationRatingRemark(a,t,r,n)}}var ut=(0,n.Ng)((function(e){return{conversationId:(0,ye.Vy)(e)}}),(function(e){return{onRemarkSubmit:function(t,r,n){e(lt(G.Ay,t,r,n))},onRatingChosen:function(t,r,n){e(st(G.Ay,t,r,n))}}}),(function(e,t,r){var n=e.conversationId,o=r.part.conversationRating,i=o.chosenRating,a=o.remark,s=o.submitted,l=o.uuid,u={onRemarkSubmit:function(e){return t.onRemarkSubmit(n,l,e)},onRatingChosen:function(e){return t.onRatingChosen(n,l,e)},chosenRating:i,remark:a,submitted:s,blockRating:o.blockRating};return Object.assign({},r,e,t,u)}))(it),ct=r(66501),dt=function(e){var t=e.isBorderless,r=void 0!==t&&t,n=e.part,o=e.nextPart,i=e.hasAvatar,a=void 0!==i&&i,s=e.useNewConversationStyle,l=void 0!==s&&s,u=e.groupingPosition,c=void 0===u?et.L3.standalone:u;return(0,h.jsxs)(ct.E,{isBorderless:r,useNewConversationStyle:l,children:[a&&(0,h.jsx)(ct.t,{isBorderless:r,children:(0,h.jsx)(O.h,{author:n.author})}),(0,h.jsx)(ut,{nextPart:o,part:n,useNewConversationStyle:l,groupingPosition:c})]})},ft=r(51457),pt=r(32490);function ht(e){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ht(e)}function mt(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&n&&t.createdAt&&ne.length)&&(t=e.length);for(var r=0,n=Array(t);r=0&&ue.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&!u&&(0,Yr.K0)(m)&&!Yn(m[0],r),y=(0,a.useRef)({}),g=(0,Gn.A)("finHumanIdentityImprovementsEnabled"),b=(0,a.useMemo)((function(){return function(e,t){var r=e.filter((function(e){return void 0!==e&&!(0,Yr.er)(e)})),n=r.findIndex((function(e){return void 0!==t&&(0,Yr.TS)(e)===t}));return-1!==n&&(r=r.filter((function(e,t){var r;return!(null!=(r=e.author)&&r.isAdmin&&t>n)}))),r}(m,o)}),[m,o]),x=(0,a.useRef)(null),w=function(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return $n(t,void 0!==r&&r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function b(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function x(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){b(i,n,o,a,s,"next",e)}function s(e){b(i,n,o,a,s,"throw",e)}a(void 0)}))}}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0,useGroupedUI:U,children:[function(){var e=o.isTypeaheadSuggestions,t=o.welcomeParts,r=o.uxStyle,n=N()?o.prompt:[],i=N()?o.suggestionParts:null;return P()&&null!=r&&r.welcomePartsWithSuggestions&&null!=t&&t.length?(0,v.jsx)(u._e,{foregroundColor:E,children:t.map((function(e){return(0,v.jsx)(s.A,{autoPlay:!1,blocks:e.body},e.id)}))}):i?null:null!=n&&n.length?(0,v.jsx)(u.hE,{children:(0,v.jsx)(s.A,{autoPlay:!1,blocks:n})}):B.length&&e?(0,v.jsxs)(u.o8,{children:[(0,v.jsx)(u.R4,{onClick:I,children:(0,f.Tl)("dont_show_suggestions")}),(0,v.jsx)(u.$e,{onClick:I})]}):null}(),(0,v.jsx)(u.CJ,{children:(0,v.jsx)(c.A,{isInboundBotSuggestions:H,isTypeaheadSuggestions:F,suggestions:R,onSelect:D,onHeightChange:b,isBorderless:n,useNewConversationalUI:T,suggestionButtonsAlignment:G})})]})}))},85530:function(e,t,r){"use strict";r.d(t,{L:function(){return s},e:function(){return l}});var n=r(96540),o=r(74848),i=(0,n.createContext)(null);i.displayName="ConversationPartSourcesContext";var a={sources:void 0},s=function(){var e=(0,n.useContext)(i);return e?e.sources:a.sources},l=function(e){var t=e.children,r=e.sources;return(0,o.jsx)(i.Provider,{value:{sources:r},children:t})}},93573:function(e,t,r){"use strict";function n(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return i(t,void 0!==r&&re.length)&&(t=e.length);for(var r=0,n=Array(t);r[^\\s"+p+"]{2,})(?["+p+"])?","gi"),i=null,s=null,u=null;null!=(i=n.exec(e));){var d=i,f=d.index,h=d.groups;if(f>t)break;var v=h||{},y=v.identifier,g=v.terminator;if(g&&(u=g),t===f+p.length+y.length+(u?u.length:0)){s=y;break}}if(!s)return{emojiTypeaheadState:{isActive:!1,suggestions:[],currentTypeaheadTerm:null}};if(u){var b,x=null==(b=a()(r,(function(e){return s===e.title})))?void 0:b.emoji;return x?m(e,t,""+s+u,x):{emojiTypeaheadState:{isActive:!1,suggestions:[],currentTypeaheadTerm:null}}}var w=new RegExp("^"+l()(s),"i"),j=r.filter((function(e){return w.test(e.title)}));return{emojiTypeaheadState:{isActive:!o()(j),suggestions:j,currentTypeaheadTerm:s}}},y=function(e){try{return function(e){var t=(0,u.Ey)(e.target),r=e.target.value;return v(r,t)}(e)}catch(e){return{emojiTypeaheadState:{isActive:!1,suggestions:[],currentTypeaheadTerm:null}}}},g=function(e,t){try{return v(e,t)}catch(e){return{emojiTypeaheadState:{isActive:!1,suggestions:[],currentTypeaheadTerm:null}}}}},85229:function(e,t,r){"use strict";r.d(t,{KJ:function(){return a},Zc:function(){return s},sy:function(){return i}});var n=r(73669),o=r(53074),i=function(e){var t;return null==(t=(0,n.OO)(e.parts.filter((function(e){return!(0,o.A)(e.partType)}))))?void 0:t.summaryText},a=function(e){return!(e.read||"whatsapp"===e.currentChannel)},s=function(e){return e.parts.some((function(e){var t,r;return!(null!=(t=e.author)&&t.isAdmin||null!=(r=e.author)&&r.isBot)}))}},86629:function(e,t,r){"use strict";r.d(t,{J2:function(){return j},Jm:function(){return T},K0:function(){return d},LR:function(){return A},TS:function(){return k},Uc:function(){return E},Xl:function(){return S},er:function(){return C},g4:function(){return O},mz:function(){return b},nR:function(){return m},pk:function(){return p},tK:function(){return f},wH:function(){return w}});var n=r(29500),o=r(53074),i=r(49651),a=r(48179),s=r(26265),l=function(e){return new Date-e},u=18e4,c=["january","february","march","april","may","june","july","august","september","october","november","december"],d=function(e){return"link"===e[0].messageType?!e.slice(1).every((function(t){return(0,n.ny)(t.createdAt,e[0].sentAt)})):!1!==e[0].showCreatedAt&&!e.every((function(t){return(0,n.ny)(t.createdAt,e[0].createdAt)}))},f=function(e,t){return e&&!(0,n.ny)(t.createdAt,e.sentAt||e.createdAt)},p=function(e){return(0,i.Tl)(c[e.getMonth()]+"_date",{date:e.getDate().toString()})},h=function(e,t){var r=function(e,t){var r=e.lastActiveAt;return r&&void 0!==r.getTime&&(r=new Date(r.getTime())).setMilliseconds(0),t.find((function(t){var n,o;return(null==(n=t.author)?void 0:n.isAdmin)&&(null==(o=t.author)?void 0:o.id)===e.id&&r&&t.createdAt>=r}))}(e,t),n=e.isBot?6e4:1e4;return!r&&!!e.lastActiveAt&&l(e.lastActiveAt)=800;return!(s&&null!=(i=s.author)&&i.isBot&&!u)&&(n.some((function(e){return e.author&&!e.author.isBot&&!e.author.isAdmin}))&&h(o,n))}return!!o&&h(o,n)},v=function(e,t,r){return void 0===r&&(r=u),t-e<=r},y=function(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.isAdmin)===(null==t?void 0:t.isAdmin)||!0===(null==e?void 0:e.isSelf)&&!0===(null==t?void 0:t.isSelf)||!0===(null==e?void 0:e.isBot)&&!0===(null==t?void 0:t.isBot)},g=function(e,t){return!(0,o.A)(e)&&!(0,o.A)(t)},b=function(e,t){return!!t&&g(e.partType,t.partType)&&(0,n.ny)(e.createdAt,t.createdAt)&&y(e.author,t.author)&&v(e.createdAt,t.createdAt,u)},x=function(e,t){var r,o,i,a=!!t&&g(e.partType,t.partType)&&(o=e.partType,i=t.partType,"ticket_status_update"!==o&&"ticket_status_update"!==i)&&(0,n.ny)(e.createdAt,t.createdAt)&&y(e.author,t.author)&&function(e,t){return(null==e?void 0:e.container)===(null==t?void 0:t.container)}(e.uxStyle,t.uxStyle);return null!=(r=e.author)&&r.isAdmin?a:a&&v(e.createdAt,t.createdAt,36e5)},w=function(e,t,r){var n=!!r&&x(e,r),o=!!t&&x(t,e);return n||o},j=function(e,t,r){if(!w(e,t,r))return s.L3.standalone;var n=!!t&&w(e,t,void 0),o=!!r&&w(e,void 0,r);return!n&&o?s.L3.top:n&&!o?s.L3.bottom:n&&o?s.L3.middle:s.L3.standalone},A=function(e,t,r,n,o){return!function(e){var t;return null==(t=e.author)?void 0:t.isSelf}(e)&&"video"!==e.messageType&&(r?!!t?!y(e.author,t.author):!(n&&o&&(null==(i=e.author)?void 0:i.id)===o.id):!b(e,t));var i},S=function(e,t,r,n,o){var i,s,l,u,c;void 0===o&&(o=!1);var d=t.length>0&&(0,a.A)(t).id===e.id,f="comment"===e.partType||"message"===e.partType||"attribute_collector"===e.partType||"bot_intro"===e.partType,p="failed"===e.saveState,h="saving"===e.saveState;return!!p||!!(null==(i=null==r||null==(s=r.uiFlags)?void 0:s.showLastPartMeta)||i||null!=(l=e.author)&&l.isBot)&&(!!h||!!d&&((null==(u=e.author)||!u.isAdmin||!n)&&(!((null==(c=e.author)||!c.isAdmin)&&o&&f)&&f)))},k=function(e){return e.clientId||e.id},C=function(e){return"quick_reply"===e.partType&&(!e.body||0===e.body.length)},O=function(e){return!(e&&e.body&&e.body[0])||"paragraph"===e.body[0].type&&e.body[0].text&&""===e.body[0].text.trim()},T=function(e){return e.filter((function(e){return void 0!==e&&!C(e)&&!O(e)}))},E=function(e,t){var r=function(e){return e.findLastIndex((function(e){var t;return"user"===(null==(t=e.author)?void 0:t.type)}))}(e);if(-1===r)return 0;var n=e.findIndex((function(e){return e.id===t.id}));return n>r?n-r:0}},84864:function(e,t,r){"use strict";r.d(t,{B:function(){return s},O:function(){return l}});var n=r(38221),o=r.n(n),i=r(7350),a=r.n(i),s=function(){var e=a().apply(void 0,arguments);return function(t){return t.persist(),e(t)}},l=function(){var e=o().apply(void 0,arguments);return function(t){return t.persist(),e(t)}}},82525:function(e,t,r){"use strict";r.d(t,{q:function(){return l}});var n=r(9814),o=r(2292),i=r(96540),a=r(79986),s=r(47335);function l(e){var t=(0,a.jL)(),r=(0,s.A)("checklistsReminders");(0,i.useEffect)((function(){r&&e&&((e.status!==o.vb.New||e.hasEverBeenNotified)&&!e.shouldRenotify||e.hasUpdatedNotificationDetails||t((0,n.lP)(e.id,e.checklistProgressId)))}),[r,t,e])}},34179:function(e,t,r){"use strict";r.d(t,{S:function(){return c}});var n=r(70400),o=r(79986),i=r(98099),a=r(72938),s=r(96540);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function u(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,s,"next",e)}function s(e){u(i,n,o,a,s,"throw",e)}a(void 0)}))}}var d=100,f=function(){var e=c(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,a.cT)()){e.next=2;break}return e.abrupt("return",ResizeObserver);case 2:return e.next=4,r.e(8096).then(r.t.bind(r,7829,23)).then((function(e){return e.default}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function p(e,t,r){void 0===r&&(r=d);var o=(0,n.useRef)(null);(0,n.useEffect)((function(){var e=function(){var e=c(l().mark((function e(){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:n=e.sent,o.current=new n(i()(t,r));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[o,t,r]),(0,n.useEffect)((function(){var t;if(e)return null==o||null==(t=o.current)||t.observe(e),function(){var e;return null==o||null==(e=o.current)?void 0:e.disconnect()}}),[o,e])}},38424:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(96540);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0?(a(l.current[t]),t):e}));break;case"ArrowLeft":t.preventDefault(),d((function(e){var t=Math.max(e-1,0);return a(l.current[t]),t}))}};(0,n.useEffect)((function(){d(r)}),t);return function(e){return{ref:function(t){t&&(l.current[e]=t)},tabIndex:e===c?0:-1,onKeyDown:f,onClick:function(){return d(e)}}}}},96117:function(e,t,r){"use strict";r.d(t,{A:function(){return i}});var n=r(96540),o=r(42706);function i(e,t,r){var i=(0,n.useContext)(o.t);(0,n.useEffect)((function(){if(!r)return null==i||i.document.addEventListener("mouseup",n),function(){null==i||i.document.removeEventListener("mouseup",n)};function n(r){e.some((function(e){var t;return null==(t=e.current)?void 0:t.contains(r.target)}))||t()}}),[e,t,i,r])}},39387:function(e,t,r){"use strict";r.r(t),r.d(t,{appNodeId:function(){return tS},default:function(){return oS},styleNodeId:function(){return rS}});var n=r(5338),o=r(71468),i=r(70400),a=r(55787),s=r(16159),l=r(25777),u=r(76662),c=r(8375),d=r(72938),f=r(82884),p=r(79986),h=r(14919),m=r(37046),v=r(74848),y=function(){var e=(0,p.GV)(h.BU);return(0,m.z)()?null:e&&"/"!==e?(0,v.jsx)(i.Navigate,{to:e,replace:!0}):(0,v.jsx)(i.Navigate,{to:"/messages",replace:!0})},g=r(96540),b=r(8229),x=function(){var e=(0,i.useNavigate)(),t=(0,p.GV)(h.BU),r=(0,p.GV)(h.Ae);return(0,g.useEffect)((function(){var n=setTimeout((function(){r||e(t,{replace:!0})}),0);return function(){return clearTimeout(n)}}),[e,t,r]),(0,v.jsx)("div",{children:(0,v.jsx)(b.A,{})})},w=r(86923),j=300,A={type:"fade",direction:"none",time:150},S={type:"none",direction:"none",time:0},k={type:"slide",direction:"forward",time:j},C={type:"slide",direction:"back",time:j};var O=(0,w.Ay)("div",{target:"e11qurlh2"})({name:"1i1zgvg",styles:"display:flex;flex-direction:column;flex-grow:1;overflow:hidden"}),T=(0,w.Ay)("div",{target:"e11qurlh1"})({name:"1k0vitj",styles:"display:flex;flex-direction:column;flex:1;overflow:hidden;position:relative"}),E=(0,w.Ay)("div",{target:"e11qurlh0"})("display:flex;flex-direction:column;flex-grow:1;overflow:hidden;z-index:2;&.fade-enter ",O.className,"{opacity:0;}&.fade-exit ",O.className,"{opacity:1;}&.fade-exit,&.slide-exit,&.sheet-exit.up,&.sheet-enter.down,&.none-exit{position:absolute;display:flex;flex-direction:column;flex-grow:1;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:1;}&.fade-enter-active ",O.className,"{opacity:1;transition:opacity ",150,"ms;}&.fade-exit-active ",O.className,"{opacity:0;transition:opacity ",150,"ms;}&.slide-enter ",O.className,"{opacity:0;}&.slide-enter-active ",O.className,"{opacity:1;transition:opacity ",150,"ms;transition-delay:",150,"ms;}&.slide-exit ",O.className,"{opacity:1;}&.slide-exit-active ",O.className,"{opacity:0;transition:opacity ",150,"ms;}&.slide-enter.forward ",T.className,"{transform:translateX(20px);}&.slide-enter.back ",T.className,"{transform:translateX(-20px);}&.slide-enter.slide-enter-active ",T.className,"{transform:translateX(0);transition:transform ",150,"ms;transition-delay:",150,"ms;}&.slide-exit ",T.className,"{transform:translateX(0px);}&.slide-exit-active.forward ",T.className,"{transform:translateX(-20px);transition:transform ",150,"ms;}&.slide-exit-active.back ",T.className,"{transform:translateX(20px);transition:transform ",150,"ms;}&.sheet-enter.up,&.sheet-enter-appear.up{position:relative;transform:translateY(100%);}&.sheet-enter-active.up{transform:translateY(0%);transition:transform ",450,"ms;}&.sheet-exit.down,&.sheet-exit-appear.down{position:relative;transform:translateY(0%);}&.sheet-exit-active.down{transform:translateY(100%);transition:transform ",450,"ms;}");function P(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return I(t,void 0!==r&&re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r1,admin:e,size:i.avatarSize})},t)}))}))},Me=r(69830),Le=r(84328),Re={};function ze(e){var t=e.object,r=void 0===t?"":t,n=e.place,o=void 0===n?"":n,i=e.context,a=void 0===i?Le.oZ:i,s=e.metadata,l=void 0===s?Re:s,u=e.sendMetricCondition,c=void 0===u||u,d=(0,p.jL)();(0,g.useEffect)((function(){c&&d((function(e,t){var n=t().user;(0,Me.Jr)(n,"viewed",r,o,a,l)}))}),[r,o,a,c,d])}function De(){var e=(0,i.useNavigate)(),t=(0,i.useLocation)(),r=(0,h.wR)(t.pathname),n=(0,g.useCallback)((function(t,r){e("/"+t+(r?"?"+r:""))}),[e]),o=(0,p.GV)(h.V$)&&(r.id===d.Zh.id||r.id===d.kG.id);return(0,g.useMemo)((function(){return{showSpace:n,currentSpace:r,isCompactHomeShowing:o}}),[n,r,o])}var He=r(57296),Fe=r(41817),Ve=r(39502),Ue=r(49651);function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t0}),(0,v.jsx)(ve.A,{noPadding:!0,isEntireCardClickable:y,className:"intercom-home-screen-search-browse-card",children:(0,v.jsxs)(fe,{children:[(0,v.jsxs)(pe,{useDarkBackground:!y,onClick:function(){i((0,Fe.lm)({object:Le.ef,place:Le.mM,context:Le.Ey})),a(d.ZL.id,"fromHome=true")},children:[(0,v.jsx)("span",{children:(0,Ue.Tl)("search_for_help")}),(0,v.jsx)(be.Ay,{type:"Search",size:16,color:"linkColor"})]}),m?(0,v.jsx)(ye.A,{noDivider:!0,children:null==r?void 0:r.map((function(e,t){return(0,v.jsx)(ge.A,{"data-testid":"search-browse-item",size:"tiny",rightIcon:"RightChevronColorable",rightIconColor:"linkColor",hoverBackground:!0,rounded:!0,onClick:function(){return r=e,n=t,i((0,Fe.lm)({object:Le.eu,place:Le.oq,context:Le.G,metadata:Ge({article_id:r.id,position:n},o)})),void i((0,He.n$)(r.id,{},!0));var r,n},children:(0,v.jsx)(he,{children:e.title})},t)}))}):null,s&&(0,v.jsxs)(me,{showDivider:m,children:[(0,v.jsx)("span",{children:(0,Ue.Tl)("the_team_can_help_if_needed")}),(0,v.jsx)(Be,{avatarSize:24,maxAdmins:3,avatarPixelsToShow:12,useAppColorForAvatarBorder:!1})]})]})})},We=(0,w.Ay)("div",{target:"e10s8q3e0"})(),$e=r(59080),Ke=r(52203),Ye=function(e){var t=e.visible,r=e.onRetry;return(0,v.jsx)(We,{children:(0,v.jsx)(Ke.A,{duration:200,animationKey:"error-message",children:t?(0,v.jsx)($e.A,{inline:!0,onRetry:r,children:(0,Ue.Tl)("couldnt_load_apps")}):null})})},Ze=r(56449),Xe=r.n(Ze),Je=r(54979);var Qe=(0,w.Ay)("div",{target:"e2j9h0w9"})({name:"bjn8wh",styles:"position:relative"}),et=(0,w.Ay)("div",{target:"e2j9h0w8"})("height:",(function(e){return e.height+"px"}),";width:100%;position:fixed;top:0%;left:0;transform:translateZ(0);z-index:-1;",(function(e){var t=e.backgroundType,r=e.gradientColors;return"colors"===t&&Xe()(r)&&(0,w.AH)("background-image:",r&&2===(null==r?void 0:r.length)?"linear-gradient(117.67deg, "+r[0]+", "+r[1]+")":"",";background-image:",r&&3===(null==r?void 0:r.length)?"linear-gradient(117.67deg, "+r[0]+", "+r[1]+", "+r[2]+")":"",";")}),";",(function(e){var t=e.backgroundType,r=e.theme;return"solid"===t&&(0,w.AH)("background-color:",r.homeHeaderBackgroundColor,";")}),";",(function(e){var t=e.imageUrl;return t&&(0,w.AH)("background-image:url(",t,");background-size:",t.endsWith(".gif")?"cover":"100%",";background-position:",t.endsWith(".gif")?"center":"top left",";")}),";"),tt=(0,w.Ay)("canvas",{target:"e2j9h0w7"})({name:"w1atjl",styles:"width:100%;height:100%"}),rt=(0,w.Ay)("div",{target:"e2j9h0w6"})("padding-top:32px;padding-right:20px;padding-left:20px;box-sizing:border-box;background-repeat:no-repeat;position:relative;",(function(e){var t=e.theme,r=e.opacity;return(0,w.AH)("color:",t.headerTitleColor,";opacity:",r,";")})," ",(function(e){var t=e.size;return t&&(0,w.AH)("padding-bottom:",function(e){switch(e){case"medium":return"80px";case"long":return"150px";default:return"60px"}}(t),";")}),";"),nt={name:"aetk3e",styles:"height:80px"},ot=(0,w.Ay)("div",{target:"e2j9h0w5"})("position:absolute;bottom:0;left:0;height:140px;width:100%;opacity:1;z-index:0;/* @noflip */background:linear-gradient(\n 180deg,\n ",(0,w.w4)("baseAlpha")," 0%,\n ",(0,w.w4)("containerBaseNeutral")," 100%\n );",(function(e){return e.short&&nt}),";"),it={name:"9vhnwp",styles:"img{max-width:100%;object-fit:scale-down;}"},at={name:"108qp7n",styles:"margin-bottom:-20px"},st=(0,w.Ay)("div",{target:"e2j9h0w4"})("font-size:25px;font-weight:bold;margin-top:4px;overflow:hidden;img{max-height:32px;max-width:100%;}",(function(e){return e.logoOnly&&at})," ",(function(e){return e.showCloseButton&&it}),";"),lt=(0,w.Ay)(Je.A,{target:"e2j9h0w3"})("color:",(0,w.w4)("introductionTextColor"),";opacity:1;",(function(e){var t=e.useMutedText,r=e.theme;return t&&(0,w.AH)("color:",r.greetingTextColor,";")})," ",(function(e){var t=e.backgroundType,r=e.textColorType,n=e.useMutedText,o=e.theme;return"solid"!==t&&(0,w.AH)("color:","dark"===r?o.textBlack:o.textWhite,";text-shadow:0px 0px 30px ","dark"===r?o.headerTextShadowLight:o.headerTextShadowDark,";opacity:",n?ct(t):1,";")}),";"),ut=(0,w.Ay)("div",{target:"e2j9h0w2"})("display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:70px;height:40px;",(function(e){return e.reserveSpaceOnRight&&(0,w.AH)(st.className,"{margin-right:40px;}",ft.className,"{margin-left:0px;}")}),";"),ct=function(e){switch(e){case"colors":case"image":return.6;default:return 1}},dt=(0,w.Ay)("div",{target:"e2j9h0w1"})((function(e){var t=e.useSmallerFont,r=e.unifiedStyling,n=r||t?"28px":"32px",o=r||t?"34px":"38px";return(0,w.AH)("font-size:",n,";line-height:",o,";*{overflow-wrap:break-word;font-weight:","600",";}")}),";"),ft=(0,w.Ay)("div",{target:"e2j9h0w0"})((function(e){var t=e.withSpaceForCloseButton,r=e.scrollbarVisible;return t&&(0,w.AH)("margin-right:",r?"24px":"42px",";margin-left:10px;")}),";"),pt=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function ht(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||mt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(e,t){if(e){if("string"==typeof e)return vt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vt(e,t):void 0}}function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e&&(this.vx*=-1,this.x-=1),this.y<=0?(this.vy*=-1,this.y+=1):this.y>=t&&(this.vy*=-1,this.y-=1)},o.draw=function(e){e.beginPath();var t=Math.floor(this.x),r=Math.floor(this.y),n=e.createRadialGradient(t,r,.01*this.radius,t,r,this.radius);n.addColorStop(0,this.firstColor),n.addColorStop(1,this.secondColor),e.fillStyle=n,e.arc(t,r,this.radius,0,At,!1),e.fill(),e.closePath()},t=e,r&>(t.prototype,r),n&>(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(),kt=function(e){var t=e.colors,r=(0,g.useRef)(null),n=function(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return vt(t,void 0!==r&&r=e.length&&(a=0),i[s]=l}return i}()),1)[0];return(0,g.useEffect)((function(){var e=r.current;if(e){var t=e.getContext("2d");if(t){t.globalCompositeOperation="saturation";var o,i=function(){t.clearRect(0,0,xt,wt);for(var e,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=mt(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n,!0);!(e=r()).done;){var o=e.value;o.draw(t),o.update(xt,wt)}},a=(new Date).getTime()-jt;return function e(){var t=(new Date).getTime();t-a>=jt&&(i(),a=t),o=window.parent.requestAnimationFrame(e)}(),function(){cancelAnimationFrame(o)}}}}),[r,n]),(0,v.jsx)(tt,{ref:r,width:xt,height:wt})},Ct=r(44674),Ot=r(74773);function Tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Et(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r16)||!!(r&&r.trim().length>16),g=(0,Ot.M5)(),b="colors"===(null==u?void 0:u.type)&&(null==u?void 0:u.animated),x=!("image"!==(null==u?void 0:u.type)||null==u||!u.imageUrl);return(0,v.jsxs)(Qe,{children:[(0,v.jsxs)(et,{height:h,backgroundType:null==u?void 0:u.type,gradientColors:null==u?void 0:u.gradient,fadeToTheme:null==u?void 0:u.fadeToTheme,imageUrl:x?u.imageUrl:void 0,children:[b&&null!=u&&u.gradient?(0,v.jsx)(kt,{colors:u.gradient}):null,(null==u?void 0:u.fadeToTheme)&&(0,v.jsx)(ot,{short:x})]}),(0,v.jsxs)(rt,{opacity:l,ref:m,size:null!=u&&u.fadeToTheme?x?"medium":"long":"short",children:[(0,v.jsxs)(ut,{hasLogo:!!n,showCloseButton:d,reserveSpaceOnRight:i||d,unifiedStyling:g,children:[n&&(0,v.jsx)(st,{logoOnly:!(t||r),showCloseButton:d,children:(0,v.jsx)("img",{src:n,alt:"logo"})}),i&&(0,v.jsx)(ft,{withSpaceForCloseButton:d,"data-testid":"home-header-avatars",scrollbarVisible:f,children:(0,v.jsx)(Be,{solidBackground:!0,avatarSize:40,useCutout:!0,cutoutSize:1,maxAdmins:3,avatarPixelsToShow:38,useAppColorForAvatarBorder:!0})})]}),(0,v.jsxs)(dt,{useSmallerFont:y,unifiedStyling:g,children:[t&&(0,v.jsx)(lt,{"data-testid":"title",text:t,tagName:"p",useMutedText:!!r,backgroundType:null==u?void 0:u.type,textColorType:c}),r&&(0,v.jsx)(lt,{"data-testid":"subtitle",text:r,tagName:"p",useMutedText:!1,backgroundType:null==u?void 0:u.type,textColorType:c})]}),a]})]})}var _t=r(96808);var It=(0,w.Ay)("div",{target:"e1b44tca0"})({name:"t26g63",styles:"margin:auto;width:fit-content"}),Nt=r(17905);var Bt=(0,w.Ay)("div",{target:"etajtt47"})({name:"hxbng4",styles:"font-weight:600;font-size:14px;line-height:21px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;margin-bottom:4px"}),Mt=(0,w.Ay)("div",{target:"etajtt46"})("display:flex;flex-direction:column;box-sizing:border-box;cursor:pointer;transition:box-shadow 150ms;background-color:",(0,w.w4)("containerBaseNeutral"),";color:",(0,w.w4)("textDefault"),";border-radius:12px;box-shadow:",(0,w.w4)("shadowMedium"),";border:1px solid ",(0,w.w4)("borderNeutral"),";",Nt.jt.className,"{background-color:transparent;}",(function(e){var t=e.theme;return(0,w.AH)("&:hover{",Bt.className,"{color:",t.isPrimaryColorAsTheme?t.textDefault:t.primaryColor,";}}")})," ",(function(e){var t=e.theme;return t.isPrimaryColorAsTheme&&(0,w.AH)("&:hover{box-shadow:",t.shadowMedium,";}")}),";"),Lt=(0,w.Ay)("div",{target:"etajtt45"})({name:"kimquz",styles:"height:140px;display:flex;flex-direction:column;img{width:100%;height:100%;object-fit:cover;overflow:hidden;border-radius:10px 10px 0px 0px;}"}),Rt=(0,w.Ay)("div",{target:"etajtt44"})({name:"1r1l02z",styles:"flex:1;display:flex;flex-direction:column;padding:16px 20px"}),zt=(0,w.Ay)("div",{target:"etajtt43"})({name:"pbqhtn",styles:"display:flex;align-items:center;padding-top:12px"}),Dt=(0,w.Ay)("div",{target:"etajtt42"})({name:"1t91kdm",styles:"flex:1;display:flex;flex-direction:column"}),Ht=(0,w.Ay)("div",{target:"etajtt41"})("display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:21px;color:",(0,w.w4)("textDefault"),";"),Ft=(0,w.Ay)("div",{target:"etajtt40"})({name:"rh860e",styles:"margin-left:20px;svg{margin-top:20px;min-width:auto;}"}),Vt=r(10377),Ut=r(80607);function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function qt(){qt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:C(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(_([])));j&&j!==r&&n.call(j,a)&&(x=j);var A=b.prototype=y.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Gt(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=O(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Wt(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function $t(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Wt(i,n,o,a,s,"next",e)}function s(e){Wt(i,n,o,a,s,"throw",e)}a(void 0)}))}}function Kt(e){return function(t,r){var n=r().session;return t({type:Ut.GGM}),Vt.Ay.fetchNewsItemDetails(n,e).then((function(e){t(function(e){return{type:Ut.cgs,newsItem:e}}(e))})).catch((function(){t(function(e){return{type:Ut.D8v,newsItemId:e}}(e))}))}}function Yt(e,t){return{type:Ut.cRm,newsItemId:e,reactionIndex:t}}var Zt=(0,w.Ay)("div",{target:"e1w83g171"})({name:"cl7urv",styles:"display:flex;flex-wrap:wrap;gap:8px"}),Xt=(0,w.Ay)("div",{target:"e1w83g170"})("display:flex;flex-direction:row;align-items:center;font-weight:400;font-size:14px;line-height:22px;color:",(0,w.w4)("linkColor"),";padding:0px 6px 0px 6px;background:",(0,w.w4)("labelBackgroundColor"),";border:0px;border-radius:10px;");function Jt(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Qt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r2){var o=function(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return Qt(t,void 0!==r&&r0&&n.push({id:-1,name:(0,Ue.Tl)("extra_labels_count",{labels_count:String(a.length)})})}return(0,v.jsx)(Zt,{children:n.map((function(e){return(0,v.jsx)(Xt,{children:e.name},e.id)}))})}var tr=r(48365);function rr(e){var t=e.newsItem,r=e.isUnread,n=e.renderingContext,o=(0,i.useNavigate)(),a=(0,p.jL)(),s=(0,Ot.M5)(),l=(0,g.useCallback)((function(){a(function(e){return{type:Ut.Pd4,newsItem:e}}(t)),o("/news/details/"+t.id,{state:{navigatingFrom:n}})}),[o,a,t,n]);return(0,v.jsxs)(Mt,{isUnread:r,onClick:l,"data-testid":"news-item-card",unifiedStyling:s,children:[t.coverImageUrl&&(0,v.jsx)(Lt,{children:(0,v.jsx)("img",{src:t.coverImageUrl,alt:t.title})}),(0,v.jsxs)(Rt,{children:[(0,v.jsx)(er,{newsItem:t,preview:!0}),(0,v.jsxs)(zt,{children:[(0,v.jsxs)(Dt,{children:[(0,v.jsx)(Bt,{children:t.title}),(0,v.jsx)(Ht,{children:(0,v.jsx)(tr.y,{text:t.description,tagName:"div",className:"intercom-block-paragraph"})})]}),(0,v.jsx)(Ft,{children:(0,v.jsx)(be.Ay,{size:16,type:"RightChevronColorable",color:"linkColor"})})]})]})]})}var nr=r(72374);function or(e,t){return t&&e.publishedAt&&t.getTime()>=e.publishedAt.getTime()}var ir=r(28957);function ar(){var e=(0,p.jL)(),t=(0,p.GV)(nr.Tm),r=(0,p.GV)(nr.Xg),n=(0,p.GV)(nr.RT);return(0,g.useEffect)((function(){!n&&r&&e((0,ir.L2)())}),[n,r,e]),{loading:n,newsItems:t}}function sr(){var e=ar(),t=e.loading,r=e.newsItems,n=(0,p.GV)(nr.AL),o=(0,p.GV)(nr.DF)||0,i=void 0!==o&&o>0;if(!(t||r&&0!==r.length))return null;if(t&&(!r||0===r.length))return(0,v.jsx)(It,{children:(0,v.jsx)(b.A,{inline:!0})});if(r){var a=r[0],s=i&&!or(a,n);return(0,v.jsx)(rr,{newsItem:a,isUnread:s,renderingContext:Le.vU})}return null}function lr(){var e=(0,p.GV)(nr.Tm),t=e&&e.length>0&&e[0];return ze({object:Le.a6,place:Le.mM,context:Le.vU,metadata:{news_item_id:null==t?void 0:t.id},sendMetricCondition:!!t}),(0,v.jsx)(sr,{})}var ur=r(94560),cr=r(26265),dr=function(e){var t=e.primaryAvatar,r=e.secondAvatar,n=e.thirdAvatar,o=e.facePileStyle,i=void 0===o?"default":o,a=e.size,s=void 0===a?64:a,l=.75*s,u=l/12,c=.5*s,d=n||r,f=n?r:null;return"greeting"===i&&!f&&d?(0,v.jsxs)(Te,{borderWidth:1,marginRight:"0",alignItems:"flex-end",children:[(0,v.jsx)(Ee,{children:(0,v.jsx)(Se.m.Provider,{value:s,children:t})}),(0,v.jsx)(Ee,{front:!0,children:(0,v.jsx)(Se.m.Provider,{value:c,children:d})})]}):(0,v.jsxs)(Te,{borderWidth:u,marginRight:"0",children:[f?(0,v.jsx)(Ee,{children:(0,v.jsx)(Se.m.Provider,{value:l,children:f})}):null,(0,v.jsx)(Ee,{front:!0,children:(0,v.jsx)(Se.m.Provider,{value:s,children:t})}),d?(0,v.jsx)(Ee,{children:(0,v.jsx)(Se.m.Provider,{value:l,children:d})}):null]})},fr=function(e){var t=e.size,r=void 0===t?"large":t,n=(0,p.GV)(ee.Lf),o=(0,p.GV)(ee.rp).activeAdmins,i=void 0===o?[]:o,a=(0,p.GV)(ee._D),s=(0,_e.v)(i||[],2,!0);return(0,v.jsx)(dr,{size:"large"===r?64:32,primaryAvatar:(0,v.jsx)(Pe.l,{admin:n.participant}),secondAvatar:a&&s[0]?(0,v.jsx)(Pe.l,{admin:s[0]}):null,thirdAvatar:a&&s[1]?(0,v.jsx)(Pe.l,{admin:s[1]}):null})};var pr=(0,w.Ay)("div",{target:"e15cg9301"})({name:"1yfrhj8",styles:"display:flex;flex-direction:row;align-items:center;gap:8px;margin:-3px 0"}),hr=(0,w.Ay)("div",{target:"e15cg9300"})("color:",(0,w.w4)("textMuted"),";font-size:14px;");var mr=(0,w.Ay)("span",{target:"ehy464x2"})(),vr=(0,w.Ay)("span",{target:"ehy464x1"})(),yr={name:"1u3r55",styles:"padding:10px 26px 10px 24px"},gr=(0,w.Ay)(ge.A,{target:"ehy464x0"})(vr.className," path{fill:",(0,w.w4)("linkColor"),";}&:hover{color:",(0,w.w4)("linkColor"),";}",(function(e){return e.theme.isMobileSize&&yr}),";"),br=function(e){var t=e.children;return(0,v.jsx)(vr,{children:t})},xr=function(e){var t=e.type;return(0,v.jsx)(mr,{children:(0,v.jsx)(be.Ay,{type:t||"RightChevronColorable",color:"iconMuted"})})};function wr(e){var t=e.children,r=e.left,n=e.onClick,o=e.rightIcon,i=e.right,a=e.truncate;return(0,v.jsx)(gr,{size:"small",left:(0,v.jsx)(br,{children:r}),right:i||(0,v.jsx)(xr,{type:o}),hoverBackground:!0,onClick:n,truncate:a,children:t})}var jr=function(e){var t=e.title,r=e.subtitle,n=e.onClick,o=e.right,i=e.rightIcon;return(0,v.jsx)(ve.A,{noPadding:!0,isEntireCardClickable:!0,onClick:n,children:(0,v.jsxs)(ge.A,{right:o,rightIcon:i,rightIconColor:"linkColor",children:[(0,v.jsx)(ve.A.Title,{children:t}),(0,v.jsx)(hr,{children:r})]})})},Ar=function(e){var t=e.title,r=e.onClick,n=e.icon;return(0,v.jsx)(wr,{onClick:r,left:(0,v.jsx)(be.Ay,{type:n,color:"linkColor",size:16}),rightIcon:"RightChevronColorable",children:t})},Sr=function(e){var t=e.title,r=e.icon,n=e.onClick,o=-1!==[cr.Bn.bot,cr.Bn.fin,cr.Bn.facepile].indexOf(r);return(0,v.jsx)(Ar,{title:t,onClick:n,icon:o?"AskQuestion":"ComposerSend"})},kr=function(){var e=(0,p.jL)(),t=(0,p.GV)(h.V$),r=(0,p.GV)(te.He),n=(0,p.GV)(ee.Lf),o=function(){(0,Me.A5)("clicked","new_conversation","messenger","home"),e((0,ur.p6)())},i=(0,g.useMemo)((function(){var e,t,n,o;return null!=r&&r.action?{title:r.action.label,subtitle:r.action.subtitle,icon_type:null!=(e=null!=(t=null==(n=r.action.avatar_details)?void 0:n.type)?t:r.action.icon)?e:"AskQuestion"===r.action.custom_icon?cr.Bn.bot:cr.Bn.teammate,avatars:null==(o=r.action.avatar_details)?void 0:o.avatars,icon:r.action.custom_icon}:{title:(0,Ue.Tl)("send_us_a_message"),subtitle:(0,Ue.Tl)("send_us_a_message_subtitle"),icon_type:cr.Bn.teammate}}),[r]);if(t)return(0,v.jsx)(Sr,{title:i.title,onClick:o,icon:i.icon_type});if(i.icon_type===cr.Bn.bot)return(0,v.jsx)(jr,{title:i.title||(0,Ue.Tl)("send_us_a_message"),subtitle:i.subtitle,onClick:o,rightIcon:"AskQuestion"});if(i.icon_type===cr.Bn.fin){var a=(null==n?void 0:n.participant)&&(0,v.jsxs)(pr,{children:[(0,v.jsx)(Pe.l,{size:24,admin:n.participant}),(0,v.jsx)(be.Ay,{type:"RightChevronColorable",color:"linkColor",size:16})]});return(0,v.jsx)(jr,{title:i.title||(0,Ue.Tl)("send_us_a_message"),subtitle:i.subtitle,onClick:o,right:a})}if(i.icon_type===cr.Bn.facepile&&"RightChevronColorable"===i.icon){var s=(null==n?void 0:n.participant)&&(0,v.jsxs)(pr,{children:[(0,v.jsx)(fr,{size:"small"}),(0,v.jsx)(be.Ay,{type:"RightChevronColorable",color:"linkColor",size:16})]});return(0,v.jsx)(jr,{title:i.title||(0,Ue.Tl)("send_us_a_message"),subtitle:i.subtitle,onClick:o,right:s})}if(i.icon_type===cr.Bn.facepile&&"RightChevronColorable"!==i.icon){var l=(null==n?void 0:n.participant)&&(0,v.jsx)(fr,{size:"small"});return(0,v.jsx)(jr,{title:i.title||(0,Ue.Tl)("send_us_a_message"),subtitle:i.subtitle,onClick:o,right:l})}return(0,v.jsx)(jr,{title:i.title||(0,Ue.Tl)("send_us_a_message"),subtitle:i.subtitle,onClick:o,rightIcon:"NewConversation"})},Cr=r(1200),Or=r(95970),Tr=r(85229);var Er=(0,w.Ay)("div",{target:"e18wzgio6"})("overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:",(function(e){return e.unread?600:400}),";"),Pr=(0,w.Ay)("div",{target:"e18wzgio5"})({name:"hl0pzu",styles:"display:flex;flex-direction:column;cursor:pointer"}),_r=(0,w.Ay)("span",{target:"e18wzgio4"})({name:"ym8ki1",styles:"display:flex;max-width:calc(100% - 20px);align-items:center"}),Ir=(0,w.Ay)("span",{target:"e18wzgio3"})("overflow:hidden;text-overflow:ellipsis;margin-right:3px;white-space:nowrap;font-weight:",(function(e){return e.unread?600:400}),";margin-left:4px;color:",(0,w.w4)("textMuted"),";"),Nr=(0,w.Ay)("div",{target:"e18wzgio2"})("font-weight:400;font-size:14px;color:",(0,w.w4)("textMuted"),";display:flex;white-space:break-spaces;div{white-space:nowrap;}"),Br=(0,w.Ay)("div",{target:"e18wzgio1"})({name:"epecso",styles:"overflow:hidden;text-overflow:ellipsis;margin-right:4px"}),Mr={name:"1najnlf",styles:"padding:18px 26px 18px 16px"},Lr={name:"fc2hic",styles:"padding:14px 16px 14px 8px"},Rr={name:"1tk44vi",styles:"padding:16px 20px 16px 20px"},zr={name:"lel7ab",styles:"padding-top:8px;padding-bottom:8px;margin-top:0px"},Dr=(0,w.Ay)(ge.A,{target:"e18wzgio0"})("position:relative;padding-right:23px;padding-left:23px;svg{min-height:15px;}",(function(e){return e.displayAsConversational&&zr})," ",(function(e){return e.inHomescreenCard&&Rr})," ",(function(e){return e.displayAsCompact&&Lr})," ",(function(e){var t=e.displayAsCompact;return e.theme.isMobileSize&&t&&Mr})," &:hover ",Er.className,"{",(function(e){var t=e.unread,r=e.theme,n=e.displayAsConversational;return(0,w.AH)({color:n?""+r.textDefault:t?""+r.linkColor:""+r.textDefault},"")}),";}",de.Z.className,",",de.Z.className," img{cursor:pointer;",(function(e){var t=e.displayAsCompact;return(0,w.AH)({width:(t?32:40)+"px",height:(t?32:40)+"px"},"")}),";}"),Hr=r(29500),Fr=r(45892),Vr=function(e){var t=e.unread,r=void 0!==t&&t,n=e.ticket,o=e.lastMessage,i=e.lastPartCreatedAt,a=e.assigneeName,s=e.assignedAdmins,l=e.onClick,u=e.displayAsCompact,c=e.displayAsConversational,d=e.hoverBackground,f=void 0===d||d,p=e.showUnreadBadge,h=void 0===p||p,m=e.showDivider,y=void 0!==m&&m,g=e.inHomescreenCard,b=void 0!==g&&g,x=r&&h?"UnreadIndicator":"RightChevronColorable",w=r&&h?void 0:"linkColor";return(0,v.jsx)(Dr,{"data-testid":"conversation-list-item",unread:r,displayAsCompact:u,displayAsConversational:c,size:u?"tiny":"default",align:"start",rightIcon:x,rightIconColor:u?"iconMuted":w,left:s&&s[0]&&((null==s?void 0:s.length)>1?(0,v.jsx)(Fr.A,{admins:s}):(0,v.jsx)(Pe.l,{admin:s[0],size:u?32:36,solidBackground:"squircle"!==s[0].avatar.shape})),divider:y,inHomescreenCard:b,hoverBackground:f,useGlobalHorizontalPadding:!0,onClick:l,children:(0,v.jsxs)(Pr,{children:[n&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(_r,{children:[(0,v.jsx)(be.Ay,{type:"TicketSmall",color:"iconMuted"}),(0,v.jsx)(Ir,{unread:r,children:n.name})]})}),o&&(0,v.jsx)(Er,{unread:r,children:(0,v.jsx)(Je.A,{text:o})}),a&&(0,v.jsxs)(Nr,{children:[(0,v.jsx)(Br,{children:a}),i&&(0,v.jsxs)("div",{children:["• ",""+(0,Hr.iw)(i)]})]})]})})},Ur=function(e){var t=e.conversation,r=e.onClick,n=e.displayAsCompact,o=e.displayAsConversational,i=e.hoverBackground,a=e.showUnreadBadge,s=e.showDivider,l=void 0===s||s,u=e.inHomescreenCard,c=void 0!==u&&u,d=function(e){var t=(0,p.GV)(ee.rp),r=t.name,n=t.activeAdmins,o=void 0===n?[]:n,i=(0,p.GV)(ee.ed);if(!e||"unassigned"===e.uxStyle)return{assigneeName:r,assignedAdmins:o};var a=e.lastParticipatingAdmin;if(a&&((e.uxStyle?"bot"===e.uxStyle:i)||!a.isBot))return{assigneeName:a.firstName,assignedAdmins:[a]};var s=e.parts[0];if(!s)return{assigneeName:r,assignedAdmins:o};var l=s.teamAuthor;return l?{assigneeName:l.name,assignedAdmins:l.admins}:{assigneeName:r,assignedAdmins:o}}(t),f=d.assigneeName,h=d.assignedAdmins,m="lastPartCreatedAt"in t?t.lastPartCreatedAt:void 0;return(0,v.jsx)(Vr,{ticket:t.ticket,assigneeName:f,assignedAdmins:h,lastMessage:(0,Tr.sy)(t),lastPartCreatedAt:m,unread:(0,Tr.KJ)(t),showUnreadBadge:a,onClick:r,displayAsCompact:n,displayAsConversational:o,hoverBackground:i,showDivider:l,inHomescreenCard:c})},Gr=r(39586);var qr={name:"13a3csp",styles:"&&{padding-bottom:4px;}"},Wr=(0,w.Ay)(ve.A.Title,{target:"eksjkn92"})((function(e){return e.smallBottomPadding&&qr}),";"),$r=(0,w.Ay)(ve.A,{target:"eksjkn91"})((function(e){var t=e.theme,r=e.fullCardClickable,n=e.unread,o=e.pointer,i=e.displayAsCompact,a=e.displayAsConversational;return(0,w.AH)(r?"\n &:hover "+Wr.className+" {\n color: "+(n?t.textDefault:""+t.linkColor)+";\n "+(o&&"cursor: pointer;")+"\n }":""," ",i&&"\n && {\n padding: 0;\n }\n "," ",a&&"\n && {\n padding-top: 12px;\n padding-bottom: 12px;\n }\n ",";")}),";"),Kr={name:"1m5g76d",styles:"&&{margin:0;}"},Yr={name:"1yjqrpx",styles:"padding-bottom:12px"},Zr=(0,w.Ay)(ye.A,{target:"eksjkn90"})((function(e){return e.displayAsConversational?Yr:(0,w.AH)("&& ",Gr.ck.className,":first-of-type{margin-top:-8px;}")})," ",(function(e){return e.displayAsCompact&&Kr}),";"),Xr=function(e){var t=e.conversations,r=e.onClick,n=e.unread,o=e.displayAsCompact,i=void 0!==o&&o,a=e.showUnreadBadge,s=e.conversationsToShow,l=void 0===s?1:s,u=e.title,c=void 0===u?(0,Ue.Tl)("your_recent_message"):u,d=e.displayAsConversational,f=void 0!==d&&d,p=1===l;return(0,v.jsxs)($r,{unread:n,pointer:!0,onClick:p?function(){var e=t[0];r(null==e?void 0:e.id,e.ticket)}:void 0,displayAsCompact:i,displayAsConversational:f,isEntireCardClickable:!i,"data-testid":"recent-conversations",fullCardClickable:p,tabIndex:-1,children:[i?null:(0,v.jsx)(Wr,{noPadding:!1,smallBottomPadding:!!f,children:c}),(0,v.jsx)(Zr,{displayAsCompact:i,displayAsConversational:f,children:t.slice(0,l).map((function(e){return(0,v.jsx)(Ur,{conversation:e,onClick:function(){return r(e.id,e.ticket)},displayAsCompact:i,displayAsConversational:f,hoverBackground:i||f,showUnreadBadge:a,showDivider:!1,inHomescreenCard:!f},e.id)}))})]})},Jr=function(){var e=(0,p.jL)(),t=(0,p.GV)(te.DT),r=(0,p.GV)(te.Yn),n=(0,p.GV)(h.V$),o=t.map((function(e){return e.id})),i=(0,p.GV)(h.UT);ze({object:Le.HZ,place:Le.mM,context:Le.Ey,metadata:{conversation_ids:o},sendMetricCondition:(null==t?void 0:t.length)>0});return 0===(null==t?void 0:t.length)?null:(0,v.jsx)(Xr,{conversations:t,hasMoreConversations:r,onClick:function(t,r){!function(e,t){(0,Me.A5)("clicked","conversation","messenger","home",{status:null==t?void 0:t.status,ticket_type_id:null==t?void 0:t.ticketTypeId,conversation_id:e})}(t,r),e((0,Cr.QL)(Vt.Ay,t,{requestOrigin:"Home - Recent Conversations Click"})),e((0,Or.p)(t))},unread:(0,Tr.KJ)(t&&t[0]),showUnreadBadge:!i,displayAsCompact:n})};var Qr={name:"16ceglb",styles:"font-weight:600"},en=(0,w.Ay)("div",{target:"e8gr99g1"})((function(e){return e.bold&&Qr}),";"),tn=(0,w.Ay)("a",{target:"e8gr99g0"})("cursor:pointer;*{cursor:pointer!important;}&,&:visited{color:",(0,w.w4)("textDefault"),";}&:hover ",en.className,"{color:",(0,w.w4)("linkColor"),";}"),rn=function(e){var t=e.link;return(0,v.jsx)(tn,{href:t.href,target:"_blank",children:(0,v.jsx)(wr,{left:(0,v.jsx)(be.Ay,{type:"ExternalLink",color:"linkColor",size:16}),children:(0,v.jsx)(en,{children:t.label})})})},nn=function(e){var t=e.boldLabel,r=void 0!==t&&t,n=e.links,o=e.linkSize,i=void 0===o?"tiny":o,a=e.listPadding,s=void 0===a?8:a,l=n.length>0;return(0,v.jsx)(ve.A,{noPadding:!0,isEntireCardClickable:!l,children:(0,v.jsx)(ye.A,{padding:s,children:n.map((function(e,t){return(0,v.jsx)(tn,{href:e.href,target:"_blank",children:(0,v.jsxs)(ge.A,{size:i,rounded:!0,hoverBackground:l,rightIcon:"ExternalLink",rightIconColor:"linkColor",children:[(0,v.jsx)(en,{bold:r,"data-testid":"link-label",children:e.label}),e.subLabel&&(0,v.jsx)(en,{"data-testid":"link-sublabel",children:e.subLabel})]})},t)}))})})},on=r(72977);var an={name:"zjik7",styles:"display:flex"},sn=(0,w.Ay)("div",{target:"e1d02mrs0"})("display:none;z-index:",(0,on.fE)(3),";padding:10px;border-radius:10px;align-items:center;justify-content:center;cursor:pointer;background-color:",(function(e){return e.background}),";transition:background-color 150ms;",(function(e){var t=e.theme;return(0,w.AH)("&:hover{background-color:",t.headerButtonHoverBackgroundColor,";}")})," i{display:inline;}",(function(e){return e.enabled&&an})," ",(function(e){var t=e.isOnHomeHeader,r=e.theme;return t&&(0,w.AH)("position:fixed;top:32px;right:20px;&:hover{background-color:",r.alphaBlack20,";}")})," ",(function(e){var t=e.rightMargin,r=e.isOnHomeHeader;return t&&r&&(0,w.AH)("right:",t,"px;")}),";"),ln=r(1601),un=r(70745),cn=/^https?:\/\/via.intercom.(com|io|test)\/msgr\//,dn=r(24817);function fn(){var e,t=(0,ln.IS)(),r=!(null==(e=(0,un.KQ)())||!e.href.toLowerCase().match(cn)),n=(0,m.z)(),o=(0,p.GV)((function(e){return(0,dn.A)(e)}));return!n&&(!r&&(t||!o||!1))}var pn=r(5351),hn=function(e){var t,r=e.onHomeHeader,n=e.onWhiteBackground,o=e.enabled,i=e.parallaxOpacity,a=void 0===i?1:i,s=e.rightMargin,l=(0,p.jL)(),u=fn()||!!o,c=(0,pn.A)(),d=(0,p.GV)(te.Ch),f=(null!=(t=(0,p.GV)(te.qF))?t:{}).textColorType,h=void 0===f?"dark":f,m="solid"===(null==d?void 0:d.type),y="light"===h?"whiteColor":"blackColor",g=r||!1,b=m?c.homeHeaderBackgroundColorIsLight:"blackColor"===y;return(0,v.jsx)(sn,{onClick:function(){l((0,ur.Mu)(!0))},tabIndex:u?0:-1,"aria-hidden":!u,"aria-label":(0,Ue.Tl)("close"),enabled:u,isOnHomeHeader:g,background:r?"rgba(0, 0, 0, "+Math.abs(.2*(a-1))+")":"",rightMargin:s,children:(0,v.jsx)(be.Ay,{type:"CloseIcon",size:16,color:r?b&&1-a<.5?"iconDefault":"iconOnInverse":c.isUnifiedStyling||!n&&!c.isSecondaryColorWhite?"headerButtonColor":"linkColor"})})},mn=r(31218);var vn=(0,w.Ay)("div",{target:"e1kboq666"})("padding:16px 20px;border-radius:10px;cursor:pointer;&:hover h2{color:",(0,w.w4)("linkColor"),";}"),yn=(0,w.Ay)("div",{target:"e1kboq665"})({name:"1066lcq",styles:"display:flex;justify-content:space-between;align-items:center"}),gn=(0,w.Ay)("h2",{target:"e1kboq664"})("font-size:14px;font-weight:600;line-height:21px;color:",(0,w.w4)("textDefault"),";"),bn=(0,w.Ay)("div",{target:"e1kboq663"})({name:"cn3xcj",styles:"margin-bottom:12px"}),xn=(0,w.Ay)("div",{target:"e1kboq662"})("font-size:14px;font-weight:400;line-height:20px;color:",(0,w.w4)("textDefault"),";"),wn=(0,w.Ay)("span",{target:"e1kboq661"})({name:"16ceglb",styles:"font-weight:600"}),jn=(0,w.Ay)("div",{target:"e1kboq660"})({name:"1r5gb7q",styles:"display:inline-block"}),An=r(24762),Sn=r(79145),kn=r(9814),Cn=r(2292),On=r(95752),Tn=function(e){var t=e.title,r=e.checklistTasks,n=e.completedTasks,o=e.estimatedTimeRemaining,i=e.onClick,a=e.nextStepTitle,s=e.checklistStatus,l=n>0?(0,Ue.Tl)("checklist_card_next_step"):(0,Ue.Tl)("checklist_card_first_step"),u=s===Cn.vb.New;return(0,v.jsxs)(ve.A,{as:vn,onClick:i,children:[(0,v.jsxs)(yn,{children:[(0,v.jsx)(gn,{children:(0,v.jsx)(mn.A,{blocks:t})}),(0,v.jsx)(be.Ay,{type:u?"UnreadIndicator":"RightChevronColorable",color:u?void 0:"linkColor"})]}),(0,v.jsx)(bn,{children:(0,v.jsx)(An.A,{checklistTasks:r,completedChecklistTasks:n,estimatedTimeRemaining:o,condensed:!0,prefillProgressIfEmpty:!0})}),(0,v.jsxs)(xn,{children:[(0,v.jsxs)(wn,{children:[l,": "]}),(0,v.jsx)(jn,{children:(0,v.jsx)(mn.A,{blocks:a})})]})]})},En=function(){var e=(0,p.jL)(),t=(0,p.GV)(Sn.V9),r=(0,On.Sg)(t),n=(0,On.zE)(r),o=(0,On.fp)(r),i=(0,On.M2)(o),a=o.reduce((function(e,t){return e+t.estimatedTime}),0);return t&&i?(0,v.jsx)(Tn,{checklistTasks:r.length,completedTasks:n.length,estimatedTimeRemaining:a,nextStepTitle:i.titleBlocks,title:t.titleBlocks,onClick:function(){t&&e((0,kn.tB)(t.checklistProgressId))},checklistStatus:t.status}):null},Pn=r(43579);function _n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return In(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?In(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function In(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rt.clientHeight;n(r)}}),[e]);return(0,Pn.A)(e.current,o),{scrollbarVisible:r,ref:e,handleResize:o}}var Bn=r(49017);function Mn(){var e=(0,p.jL)(),t=(0,g.useCallback)((function(){return e((0,Bn.yM)())}),[e]),r=(0,p.GV)(ee.Er),n=(0,p.GV)(te.af);return{fetchHomeContent:t,slots:n.slots,isFetched:n.isFetched&&r,isFailed:n.isFailed}}var Ln=(0,w.Ay)("div",{target:"ed7ym44"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),Rn=(0,w.Ay)("div",{target:"ed7ym43"})("max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:",(function(e){return e.unread?600:400}),";"),zn=(0,w.Ay)("div",{target:"ed7ym42"})("color:",(0,w.w4)("textMuted"),";max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"),Dn=(0,w.Ay)("div",{target:"ed7ym41"})("margin:0 auto;border-radius:50%;display:inline-flex;vertical-align:middle;position:relative;width:40px;height:40px;text-align:center;justify-content:center;align-items:center;",(function(e){var t=e.theme,r=e.color;return r&&(0,w.AH)("background-color:",(0,ce.vf)(t[r],.13),";")}),";"),Hn={name:"5byad5",styles:"padding-top:8px;padding-left:20px;padding-right:20px;padding-bottom:8px"},Fn=(0,w.Ay)(ge.A,{target:"ed7ym40"})("&:hover ",Ln.className,"{color:",(0,w.w4)("textDefault"),";}padding-left:23px;padding-right:23px;",(function(e){return e.homeScreen&&Hn}),";"),Vn=r(88204),Un=["unread","title","publicTicketId","typeName","status","statusLabel","onClick","homeScreen","shouldHideUnreadBadge","useGlobalHorizontalPadding"];function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?(0,Ue.Tl)("recent_tickets"):(0,Ue.Tl)("recent_ticket");return(0,v.jsx)(v.Fragment,{children:n?(0,v.jsxs)($n,{"data-testid":"recent-tickets",displayAsConversational:a,children:[(0,v.jsx)(Wn,{children:s}),(0,v.jsx)(ye.A,{noDivider:!0,children:t.map((function(e){return(0,v.jsx)(qn,{title:e.name,publicTicketId:e.publicTicketId,typeName:e.ticketTypeName,status:e.status,statusLabel:e.statusLabel,unread:!1===e.read,onClick:function(){return r(e.id)},homeScreen:!0,shouldHideUnreadBadge:o},e.id)}))})]}):null})},Zn=function(e){var t=e.shouldHideUnreadBadge,r=e.displayAsConversational,n=(0,i.useNavigate)(),o=(0,p.GV)(Kn.ir)||[],a=(0,p.GV)(h.UT)&&o&&o.length>0;return(0,v.jsx)(Yn,{unresolvedTickets:o,handleTicketClick:function(e){n("/tickets/details/"+e,{state:{navigatingFrom:Le.vU}})},shouldShowHomescreenCard:a,shouldHideUnreadBadge:t,displayAsConversational:r})},Xn=r(79183),Jn={app:"App",activity:"Activity",bounced:"Bounced","button-pill":"ButtonPill","click-element":"ClickElement",company:"Company","contact-book":"ContactBook",coupon:"Coupon",creditcard:"CreditCard","email-filled":"EmailFilled",event:"Event","large-right-arrow":"LargeRightArrow",insights:"Insights",locked:"Locked",phone:"Phone",person:"PersonType",wrench:"Wrench","slipping-away":"SlippingAway",stars:"Stars"},Qn=function(e){var t=e.link,r=(0,Xn.A)().showCreateTicket;return(0,v.jsx)(wr,{onClick:function(){return e=t.ticket_type_id,(0,Me.A5)("clicked","ticketlink","messenger","home",{ticket_type_id:e}),void r(e,"conversation");var e},left:(0,v.jsx)(be.Ay,{type:Jn[t.icon],color:"linkColor",size:16}),children:t.ticket_type_name})},eo=function(e){var t=e.ticketLinks,r=e.cardTitle,n=(0,Xn.A)().showCreateTicket;return(0,v.jsx)(ve.A,{title:r,children:(0,v.jsx)(ye.A,{noDivider:!0,padding:8,children:t.map((function(e){return(0,v.jsx)(ge.A,{onClick:function(){return t=e.ticket_type_id,(0,Me.A5)("clicked","ticket_link","messenger","home",{ticket_type_id:t}),void n(t,"conversation");var t},rightIcon:Jn[e.icon],rightIconColor:"linkColor",size:"tiny",truncate:!0,children:e.ticket_type_name},e.ticket_type_id)}))})})},to=r(26865);function ro(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return no(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?no(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function no(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r99?"99+":t;return(0,v.jsx)(jo,{"data-testid":"active-notifications",className:n,children:o})}return(0,v.jsx)(Ao,{"data-testid":"passive-notifications"})},Co=function(e){var t=e.item,r=t.iconComponent.active,n=De().showSpace,o=t.activeNotificationCount>0||t.hasPassiveNotifications;return(0,v.jsx)(wr,{left:(0,v.jsx)(r,{viewBox:"0 0 24 24",height:"16",width:"16"}),rightIcon:"RightChevronColorable",right:o&&(0,v.jsx)(ko,{children:t.activeNotificationCount>0?t.activeNotificationCount:void 0}),onClick:function(){n(t.id,"fromHome=true")},children:t.title})};function Oo(){var e=(0,p.GV)(h.$P).filter((function(e){return e.id!==d.Zh.id})),t=Mn(),r=t.fetchHomeContent,n=t.slots,o=t.isFetched,i=t.isFailed,a=fn(),s=!!n.find((function(e){return"recent_conversation"===e.type})),l=n.filter((function(e){return"recent_conversation"!==e.type}));(0,g.useEffect)((function(){r()}),[r]);var u=(0,p.GV)(te.qF),c=u.greeting,f=u.showAvatars,m=u.compact.showHeader;return o||i?(0,v.jsx)(To,{spaces:e,greeting:c,slots:l,showAvatars:f,hasRecentConversationSlot:s,showHeader:m,isCloseButtonVisible:a}):(0,v.jsx)(bo,{children:(0,v.jsx)(b.A,{})})}var To=function(e){var t=e.spaces,r=e.greeting,n=e.slots,o=void 0===n?[]:n,i=e.showAvatars,a=void 0===i||i,s=e.hasRecentConversationSlot,l=e.showHeader,u=e.isCloseButtonVisible,c=l||u;return(0,v.jsxs)(so,{children:[c?(0,v.jsx)(Eo,{onlyCloseButtonVisible:!l,greeting:r,isCloseButtonVisible:u,showAvatars:a}):null,(0,v.jsx)(lo,{children:(0,v.jsxs)(ye.A,{noDivider:!0,children:[t.map((function(e){return(0,v.jsx)(Co,{item:e},e.id)})),o.map((function(e){return function(e){switch(e.type){case"new_conversation":return(0,v.jsx)(kr,{},e.type);case"external_links":return(0,v.jsx)(rn,{link:e.links[0]},e.type);case"ticket_links":return(0,v.jsx)(Qn,{link:e.links[0]},e.type);default:return null}}(e)}))]})}),s&&(0,v.jsx)(uo,{children:(0,v.jsx)(Jr,{})})]})},Eo=function(e){var t=e.onlyCloseButtonVisible,r=e.greeting,n=e.isCloseButtonVisible,o=e.showAvatars;return(0,v.jsxs)(po,{"data-testid":"compactHeader",onlyCloseButtonVisible:t,children:[r&&(0,v.jsx)(yo,{children:r.content}),(0,v.jsxs)(mo,{fullWidth:o&&n&&!r,children:[o&&(0,v.jsx)(go,{"data-testid":"compactAvatars",children:(0,v.jsx)(Be,{avatarSize:28,avatarPixelsToShow:24,maxAdmins:3})}),n&&(0,v.jsx)(hn,{enabled:n,onWhiteBackground:!0})]})]})};var Po=(0,w.Ay)("span",{target:"eu4j8zh3"})(),_o=(0,w.Ay)("div",{target:"eu4j8zh2"})("align-items:flex-end;display:block;flex-shrink:0;z-index:1;",(function(e){return e.isFadingOut&&(0,w.AH)("@keyframes non-linear-fade-out{0%{opacity:1;}50%{opacity:1;}100%{opacity:0;}}&.exit{opacity:1;}&.exit-active{animation:non-linear-fade-out ",2*A.time,"ms;opacity:0;}&.exit-done{opacity:0;}")})," .powered-by-enter{opacity:0;}.powered-by-enter-active{opacity:1;transition:opacity ",A.time,"ms ease-out;}.powered-by-exit{opacity:1;}",(function(e){var t=e.showOnSpaces,r=e.removeVerticalMargin;return(0,w.AH)("margin:",t||r?"0":"11","px auto;")})," ",(function(e){var t=e.showOnSpaces,r=e.isFadingOut,n=e.theme;return t&&!r&&(0,w.AH)("height:",32,";background:",n.containerBaseNeutral,";&:hover{background:",n.containerNeutral,";}")})," ",(function(e){return e.underConstruction&&(0,w.AH)("background-image:url(","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAGCAIAAAAOtlpdAAAANElEQVQoz2P4etGEEnRxi0lHFdXQ8slQYxkGoZsochbt3ES+s2jqJjKdRWs3keMsOrgJiAB4ItlirqqJGgAAAABJRU5ErkJggg==",");background-repeat:repeat-x;background-size:25px 3px;margin-left:-16px;margin-right:-16px;")}),";"),Io={name:"1wnowod",styles:"display:flex;align-items:center;justify-content:center"},No={name:"wz1gv9",styles:"text-align:center;width:100%"},Bo=(0,w.Ay)("a",{target:"eu4j8zh1"})("display:inline-block;",(function(e){var t=e.showOnSpaces;return(0,w.AH)("font-size:13px;border-radius:16px;padding:",t?"8":"0","px ",t?"0":"16","px;")})," transition:all 80ms;",(function(e){var t=e.foregroundColor;return(0,w.AH)("color:",t,"!important;")}),";",(function(e){var t=e.showOnSpaces,r=e.theme;return!t&&(0,w.AH)("&:hover{color:",r.textDefault,"!important;}")})," ",(function(e){return e.showOnSpaces&&No})," ",(function(e){return e.displayAsCompact&&Io}),";"),Mo=(0,w.Ay)("div",{target:"eu4j8zh0"})(),Lo=r(79148),Ro=function(){var e=(0,i.useLocation)().pathname,t=-1!==e.indexOf("conversation/"),r=e.startsWith("/"+d.ND.id+"/details"),n=e.startsWith("/"+d.Ij.id+"/tickets")||e.startsWith("/"+d.rK.id+"/details"),o=e.startsWith("/"+d.Ul.id+"/"+f.TA.checklists),a=(0,p.GV)(Sn.J3),s=e.startsWith("/"+d.Zh.id+"/sheet"),l=(0,p.GV)(Lo._9),u=(0,p.GV)(Ve.qZ),c=!(0,p.GV)(h.j7)&&u;return!(t||r||n||l||s||(0,h.ke)(e)||o&&a||c)},zo=function(e){var t=e.children,r=R(),n=(0,p.GV)(ee.km),o=Ro()&&n;(0,g.useEffect)((function(){return function(){r(void 0)}}),[r]);return(0,v.jsx)(_t.A,{style:{width:"100%"},onHeightChange:function(e){r&&(e&&r(o?e+32:e))},children:t})},Do=function(){return(0,p.GV)(h.V$)?(0,v.jsx)(zo,{children:(0,v.jsx)(Oo,{})}):(0,v.jsx)(ao,{})},Ho=function(){return(0,v.jsx)(K,{header:null,children:(0,v.jsx)(Do,{})})},Fo=r(14644),Vo=r(97132),Uo=r(886),Go=(0,w.Ay)("div",{target:"e17mqux90"})("z-index:",(0,w.w4)("messengerSheetZIndex"),";position:fixed;bottom:0;left:0;right:0;top:0;display:flex;flex-direction:column;background:none;"),qo=r(13555);var Wo=(0,w.Ay)(_t.A,{target:"e1q8fpwq4"})({name:"1d3w5wq",styles:"width:100%"}),$o=(0,w.Ay)("nav",{target:"e1q8fpwq3"})("z-index:1;display:flex;flex-direction:column;padding:8px 13px;color:",(0,w.w4)("headerTextColor"),";button{height:fit-content;min-height:auto;min-width:fit-content;padding:10px;gap:4px;}",(function(e){var t=e.showBorder,r=e.theme;return t&&(0,w.AH)("border-bottom:",r.isUnifiedStyling?"1px solid "+r.elevation1:"1px solid "+r.alphaBlack10,";")}),";"),Ko=(0,w.Ay)("div",{target:"e1q8fpwq2"})("display:flex;flex-grow:1;flex-direction:row;align-items:center;justify-content:space-between;gap:2px;min-height:48px;font-size:18px;color:",(0,w.w4)("headerTitleColor"),";",(function(e){var t=e.whiteBackground,r=e.theme;return t&&(0,w.AH)("color:","dark"===r.themeMode?r.textOnInverse:r.textDefault,";")}),";"),Yo={name:"11g4mt0",styles:"font-size:16px"},Zo=(0,w.Ay)("h1",{target:"e1q8fpwq1"})("padding:8px 4px;font-weight:600;text-align:center;font-size:18px;overflow:hidden;text-overflow:ellipsis;display:flex;gap:8px;align-items:center;",(function(e){return e.smallText&&Yo}),";"),Xo={name:"1yvcaec",styles:"padding-right:4px"},Jo=(0,w.Ay)("div",{target:"e1q8fpwq0"})("display:flex;flex:1;justify-content:",(function(e){return"right"===e.align?"flex-end":"flex-start"}),";",(function(e){return"right"!==e.align&&Xo}),"&:first-child:empty{min-width:8px;}"),Qo=r(83140),ei=r(12129),ti=r(71982);function ri(e){var t=(0,p.jL)(),r=(0,p.GV)(ti.l);return(0,ln.IS)()?null:(0,v.jsx)(li.Button,{iconType:r?"CollapseIcon":"ExpandIcon","data-testid":"toggle-expansion",iconSize:16,onClick:function(){return t((0,ei.D)(!r,e.object,e.place))},"aria-label":r?(0,Ue.Tl)("expanded_mode_disable"):(0,Ue.Tl)("expanded_mode_enable")})}var ni=r(40085);function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&e<.2?.1:e>=.2&&e<.5?.04:e>=.5&&e<.8?.02:e>=.8&&e<.99?.005:0),r=e+t,n=0,o=.994,e=Math.min(o,Math.max(r,n))}var xi=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;oe.length)&&(t=e.length);for(var r=0,n=Array(t);r0){var c=function(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return ca(t,void 0!==r&&r1},fa(a,e,r,u),{size:t}))},n)}))})},ha=function(e){var t=e.footerNotice,r=e.setFooterNoticeHeight,n=void 0===r?function(){}:r,o=(0,g.useRef)(null),i=(0,g.useCallback)((function(){o.current&&n(o.current.offsetHeight)}),[o,n]);return(0,Pn.A)(o.current,i,0),(0,g.useEffect)((function(){i()}),[i]),(0,v.jsxs)(aa,{ref:o,children:[(0,v.jsxs)(sa,{children:[(0,v.jsx)(pa,{avatarSize:16,cutoutSize:1,avatarGroup:t.avatarGroup,displayActiveIndicator:!1,facePileStyle:"default"}),t.title]}),t.subtitle&&(0,v.jsx)("p",{children:t.subtitle})]})},ma=(0,w.Ay)("div",{target:"eidngzh0"})("left:0;right:0;z-index:3;",(function(e){var t=e.bottomSpace;return t&&(0,w.AH)("position:absolute;bottom:",t,"px;")})," &.enter{transform:translateY(55px) scale(0.8);}&.enter-active{transform:translateY(0) scale(1);transition:transform 150ms ease-in-out;}&.exit{transform:translateY(0) scale(1);}&.exit-active{transform:translateY(55px) scale(0.8);transition:transform 150ms ease-in-out;}");function va(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ya(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ya(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ya(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&(0,v.jsx)(So,{"aria-label":"Scroll badge",children:r>99?"99+":r})})})},Ea=r(83285),Pa=["name"];function _a(){return _a=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=r-n)}},o=ws()(r,i),a=Qi()(r,100,{leading:!0,trailing:!0});return t&&(t.addEventListener("scroll",o),t.addEventListener("wheel",a),o()),function(){t&&(t.removeEventListener("scroll",o),t.removeEventListener("wheel",a))}}),[e,n,i]),s},ks=r(46531),Cs=r(93346),Os=r(90933);var Ts=(0,w.Ay)("div",{target:"e7p3sj51"})({name:"1jocp2f",styles:"display:flex;flex-direction:column;align-items:center;padding:0px 20px"}),Es=(0,w.Ay)("div",{target:"e7p3sj50"})("cursor:pointer;color:",(0,w.w4)("textMuted"),";background-color:",(0,w.w4)("containerBaseNeutral"),";border-radius:50vh;box-shadow:",(0,w.w4)("shadowSmall"),";border:1px solid ",(0,w.w4)("borderNeutral"),";padding:10px;gap:6px;font-size:13px;line-height:19.5px;text-align:center;display:flex;align-items:center;justify-content:center;transition:transform ",150,"ms;&:hover{transform:scale(1.02);}"),Ps=function(e){var t=e.onClick,r=e.avatarGroup,n=e.title;return(0,v.jsx)(Ts,{"data-testid":"FloatingNotice",children:(0,v.jsxs)(Es,{onClick:t,children:[(0,v.jsx)(pa,{avatarSize:16,cutoutSize:1,avatarGroup:r,displayActiveIndicator:!1,facePileStyle:"default"}),n]})})},_s=r(56213),Is=r(75285);function Ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bs(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bs(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);rH&&(!r||e.createdAt>r)}var n,i;return H&&H0&&(e=setTimeout((function(){r(i)}),t))}return function(){e&&clearTimeout(e)}}),[i,n,o,r])}(o);(0,g.useEffect)((function(){return X&&F(new Date),function(){}}),[X]),(0,g.useEffect)((function(){var e,t=m[m.length-1];t&&(null==(e=t.author)?void 0:e.isSelf)&&!!H&&t.createdAt>H&&!(0,_s.rr)()&&R({type:"bottom"})}),[m,R,H]);var ae=Ds(Hs,(0,g.useState)(m.length),2),se=ae[0],le=ae[1],ue=Ds(Hs,(0,g.useState)(V[0]?(0,Da.TS)(V[0]):null),2),ce=ue[0],de=ue[1];(0,g.useEffect)((function(){var e=V[0]?(0,Da.TS)(V[0]):null;m.length>se&&(de(Z?null:e),le(m.length))}),[Z,se,m.length,V]);var fe=Ms().isMobileLandscape,pe=_&&!fe;return(0,v.jsxs)(Aa,{className:"intercom-conversation-body",children:[(0,v.jsx)(ks.p,{}),(0,v.jsxs)(bs.Q.Content,{ref:Y,onWheel:function(e){(0,za.Xr)(e)},tabIndex:0,"aria-live":"assertive","aria-atomic":"false",role:"alert",children:[!j&&!E&&y&&x&&(0,v.jsx)(Sa,{children:(0,v.jsx)(Ia,{to:(0,ps.sq)(x),name:y.name})}),(0,v.jsx)("div",{className:"intercom-conversation-body-header",children:!j&&!(0,zs.Z)().headerDisabled&&(0,v.jsxs)(v.Fragment,{children:[O&&(0,v.jsx)(Rs,{text:O}),T&&(0,v.jsx)(gs,{textContent:T}),E&&y&&(0,v.jsx)(ka,{children:(0,v.jsx)(hs,{ticket:y})})]})}),(0,v.jsx)("div",{className:"intercom-conversation-body-main-group",children:j?(0,v.jsx)(b.A,{}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(wa.A,{errorText:"Something went wrong loading the conversation",align:"center",style:{marginTop:"20px",flex:1},children:(0,v.jsx)(oa.A,{appName:S,conversation:B,scrolledToBottom:Z,canBeScrolled:z,frameWindow:d,onRetry:l,onReactionSelect:u,onArticleCardClick:c,firstUnreadPartId:ce,newMessagesLastReadAt:H,ensureIsScrollableToTopPart:oe,clientAreaHeight:null!=(r=null==(n=Y.current)?void 0:n.clientHeight)?r:596})}),I&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(wa.A,{errorText:"Something went wrong loading the suggestions",align:"center",style:{marginBottom:"10px"},children:i&&(0,v.jsx)(ia.A,Vs({},P,{conversationSuggestions:i}))}),_&&(0,v.jsx)(ha,{footerNotice:_,setFooterNoticeHeight:te})]})]})})]}),(0,v.jsx)(xa,{show:pe?re:X,isComposerEnabled:K,isConversationEnded:o.preventEndUserReplies,children:pe?(0,v.jsx)(Ps,{onClick:function(){return U()},avatarGroup:_.avatarGroup,title:_.title}):(0,v.jsx)(Ta,{onClick:function(){return U()},notificationCount:V.length})})]})},Gs=r(36215),qs=r(28381),Ws=r(98099),$s=r(18873),Ks=r(63156),Ys=r(86655),Zs=r(5209),Xs=function(e){var t=e.displayAsCompact;return(0,v.jsx)(Zs.C,{displayAsCompact:t,focusable:"false","aria-hidden":"true",viewBox:"0 0 16 16",children:(0,v.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.92C0 0.859616 0.859611 0 1.92 0H14.08C15.1404 0 16 0.859611 16 1.92V14.08C16 15.1404 15.1404 16 14.08 16H1.92C0.859616 16 0 15.1404 0 14.08V1.92ZM8.02667 2.66667C7.65845 2.66667 7.36 2.96514 7.36 3.33333V8.54645C7.36 8.98101 7.71232 9.33333 8.14688 9.33333C8.44869 9.33333 8.69333 9.08869 8.69333 8.78688V3.33333C8.69333 2.96514 8.39488 2.66667 8.02667 2.66667ZM4 3.97333C4 3.60514 4.29847 3.30667 4.66667 3.30667C5.03486 3.30667 5.33333 3.60514 5.33333 3.97333V8.09355C5.33333 8.39536 5.08868 8.64 4.78689 8.64C4.3523 8.64 4 8.28768 4 7.85312V3.97333ZM10.72 3.97333C10.72 3.60514 11.0185 3.30667 11.3867 3.30667C11.7549 3.30667 12.0533 3.60514 12.0533 3.97333V8.09355C12.0533 8.39536 11.8087 8.64 11.5069 8.64C11.0723 8.64 10.72 8.28768 10.72 7.85312V3.97333ZM5.29535 10.7499C4.72752 10.6566 4.43612 10.6086 4.23185 10.7879C4.04791 10.9494 3.99797 11.2771 4.12032 11.5198C4.93205 13.1302 6.53451 13.8667 8.05333 13.8667C9.57216 13.8667 11.1746 13.1302 11.9863 11.5198C12.1087 11.2771 12.0588 10.9494 11.8748 10.7879C11.6706 10.6087 11.3791 10.6566 10.8113 10.7499C10.2383 10.8441 9.38384 10.9846 8.05333 10.9846C6.72283 10.9846 5.86837 10.8441 5.29535 10.7499Z",fill:"currentColor"})})};function Js(e){var t=e.icon,r=e.displayAsCompact;return"fin"===t?(0,v.jsx)(Xs,{displayAsCompact:r}):(0,v.jsx)(Ys.A,{displayAsCompact:r})}var Qs=function(e,t){var r=new URL(e),n=new URLSearchParams(r.search);return function(e,t){if(e.has("user_id")||e.set("user_id",t.userId||""),e.has("powered_by_app_id")||e.set("powered_by_app_id",t.appId||""),e.has("company")||e.set("company",t.appName),e.has("solution")||e.set("solution",t.intercomLinkSolution||""),e.has("utm_medium")||e.set("utm_medium","messenger"),e.has("utm_campaign")||e.set("utm_campaign","intercom-link"),!e.has("utm_content")){var r="4+";(t.location||t.currentView)&&(r+=(t.location||t.currentView)+"+"),r+=t.isDeveloperWorkspace?"developer-workspace":"we-run-on-intercom",e.set("utm_content",r)}var n,o;e.has("utm_source")||e.set("utm_source",(0,_s.rr)()?"mobile-web":"desktop-web"),e.has("utm_referrer")||e.set("utm_referrer",encodeURI((null==(n=window)||null==(n=n.parent)||null==(n=n.location)?void 0:n.origin)+(null==(o=window)||null==(o=o.parent)||null==(o=o.location)?void 0:o.pathname)))}(n,t),r.search=n.toString(),r.toString()},el=(0,g.forwardRef)((function(e,t){var r=(0,p.GV)(h.V$),n=e.poweredBy,o=e.userId,i=e.appName,a=e.intercomLinkSolution,s=e.appId,l=e.currentView,u=void 0===l?"conversation":l,c=e.isDeveloperWorkspace,d=e.showOnSpaces,f=e.className,m=e.removeVerticalMargin,y=void 0!==m&&m,b=e.isFadingOut,x=(0,g.useCallback)((function(){return Qs((null==n?void 0:n.linkUrl)||"https://www.intercom.com/intercom-link",{userId:o,appId:s,appName:i,intercomLinkSolution:a,currentView:u,isDeveloperWorkspace:c})}),[n,o,s,i,a,u,c]),w=(0,pn.A)(),j=w.textMuted,A=w.elevation1;return(0,v.jsx)(_o,{underConstruction:c,showOnSpaces:d,"data-testid":"intercom-link",ref:t,className:f,removeVerticalMargin:y,isFadingOut:b,children:(0,v.jsx)(Mo,{children:n&&(0,v.jsx)(z.B1,{in:!!n,timeout:150,classNames:"powered-by",children:(0,v.jsxs)(Bo,{foregroundColor:j,hoverColor:A,href:x(),onClick:function(){var e=c?"developer_workspace":"we_run_on_intercom";(0,Me.A5)("clicked",e,"messenger",u,{})},target:"_blank",showOnSpaces:d,displayAsCompact:r,children:[(0,v.jsx)(Js,{icon:n.icon,displayAsCompact:r}),(0,v.jsx)(Po,{id:"intercom-link-text","data-testid":"intercom-link-text",children:c?"Development Workspace":(null==n?void 0:n.text)||""})]})})})})})),tl=r(34179);(0,Ue.Tl)("powered_by_intercom");function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r=0&&t.indexOf("file")>=0},lu=r(73669),uu=r(5945),cu=r(23043);function du(e,t){return t||(t=e.slice(0)),e.raw=t,e}var fu="cubic-bezier(0.23, 1, 0.32, 1)",pu=320,hu=230,mu=(0,w.i7)(Xl||(Xl=du(["\n 0% {\n opacity: 0;\n transform: translateX(8px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n"]))),vu=(0,w.i7)(Jl||(Jl=du(["\n 0% {\n opacity: 1;\n transform: translateX(0);\n }\n 100% {\n opacity: 0;\n transform: translateX(8px);\n }\n"]))),yu=(0,w.i7)(Ql||(Ql=du(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),gu=(0,w.i7)(eu||(eu=du(["\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n"]))),bu=(0,w.i7)(tu||(tu=du(["\n 0% {\n opacity: 0;\n transform: translateY(15px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"]))),xu=(0,w.i7)(ru||(ru=du(["\n 0% {\n opacity: 1;\n transform: translateY(0);\n }\n 100% {\n opacity: 0;\n transform: translateY(15px);\n }\n"]))),wu=(0,w.Ay)("div",{target:"elmmg9z0"})("display:flex;flex-direction:column;flex:1;max-width:100%;",uu.Bp.className,"{",(function(e){var t=e.transition;return"none"!==(null==t?void 0:t.transition.type)||"entered"!==(null==t?void 0:t.state)&&"entering"!==(null==t?void 0:t.state)?(0,w.AH)("opacity:1;transform:translateX(0);animation-name:",mu,";animation-duration:",pu,"ms;animation-timing-function:",fu,";animation-delay:",hu,"ms;animation-fill-mode:backwards;"):null}),";}",uu.ND.className,":after{animation-name:",yu,";animation-duration:",pu,"ms;animation-timing-function:",fu,";animation-delay:",hu,"ms;animation-fill-mode:backwards;}",Mo.className,"{",(function(e){var t=e.transition;return"none"!==(null==t?void 0:t.transition.type)&&"fade"!==(null==t?void 0:t.transition.type)||"entered"!==(null==t?void 0:t.state)&&"entering"!==(null==t?void 0:t.state)?(0,w.AH)("opacity:1;transform:translateY(0);animation-name:",bu,";animation-duration:",pu,"ms;animation-timing-function:",fu,";animation-delay:",230,"ms;animation-fill-mode:both;"):null}),";}",il.className,",",cu.mc.className,"{opacity:1;transform:translateY(0);animation-name:",bu,";animation-duration:",pu,"ms;animation-timing-function:",fu,";animation-delay:",230,"ms;animation-fill-mode:both;}.intercom-messenger-from-inline-article-view &.intercom-messenger-body-view-enter,.intercom-messenger-from-browse-mode &.intercom-messenger-body-view-enter{",uu.Bp.className,"{animation-delay:",hu,"ms;}",uu.ND.className,":after{animation-delay:",hu,"ms;}",Mo.className,",",il.className,",",cu.mc.className,"{animation-delay:",250,"ms;}}&.intercom-messenger-body-view-enter{z-index:",(0,on.fE)(),";}&.intercom-messenger-body-view-exit{z-index:",(0,on.fE)(1),";",uu.Bp.className,"{animation-name:",vu,";animation-duration:",pu,"ms;animation-timing-function:",fu,";animation-delay:",20,"ms;animation-fill-mode:both;}",uu.ND.className,":after{animation-name:",gu,";animation-duration:",pu,"ms;animation-timing-function:",fu,";animation-delay:",20,"ms;animation-fill-mode:both;}",Mo.className,",",il.className,",",cu.mc.className,"{animation-name:",xu,";animation-duration:",pu,"ms;animation-timing-function:",fu,";animation-delay:",120,"ms;animation-fill-mode:both;}.intercom-messenger-from-conversation &{",Mo.className,",",cu.mc.className,"{animation:none;}}}&.intercom-messenger-body-view-exit-active{",Mo.className,",",cu.mc.className,"{opacity:0;}}",(function(e){var t=e.isFetching,r=e.transition;return t&&(0,w.AH)(uu.Bp.className,",",il.className,"{opacity:0;animation:none;}",Mo.className,"{opacity:","none"!==(null==r?void 0:r.transition.type)&&"fade"!==(null==r?void 0:r.transition.type)||"entered"!==(null==r?void 0:r.state)&&"entering"!==(null==r?void 0:r.state)?0:1,";animation:none;}")}),";"),ju=r(18166);function Au(e){return Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Au(e)}function Su(){Su=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:C(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(_([])));j&&j!==r&&n.call(j,a)&&(x=j);var A=b.prototype=y.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Au(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=O(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function ku(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Cu(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return Tu(t,void 0!==r&&re.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&"reactions"===o.parts[0].replyType,z=I.disabled||!!B&&("saving"===B.saveState||"failed"===B.saveState);L||(z=!!B&&("saving"===B.saveState||"failed"===B.saveState));var D=!!I&&I.visible;L||(D=!!I&&(I.visible&&!I.disabled));var F=i.isInboundBotSuggestions&&i.composerDisabled,V=!D||o.preventEndUserReplies||F,U="attribute_collector"===(null==M?void 0:M.replyType)&&!(void 0!==M.form.attributes.find((function(e){return null!=e.value}))),G=!(V&&!o.preventEndUserReplies)&&!U,q=Cu(Ou,(0,g.useState)(!0),2),W=q[0],$=q[1];(0,g.useEffect)((function(){!o.read&&a&&d&&d()}),[o,a,d]);var K=(0,Os.cG)(o),Y=(0,ou.Z)(K)||0;(0,g.useEffect)((function(){"all"===P&&K>0&&K>Y&&function(e){var t=(0,Os.dF)(e);(0,Os.wy)(t)?Pu(e,t):Eu(e,t)}(o)}),[P,K,Y,o]);var Z=(0,ou.Z)(N);(0,g.useEffect)((function(){void 0===Z&&void 0!==N&&(0,Me.A5)("received","ticket_details","messenger","in_conversation",{ticket_type_id:N.ticketTypeId})}),[N,Z]),function(e,t,r,n){var o=Cu(Ou,(0,g.useState)(!e.id&&"botIntroId"in e&&!e.botIntroId&&!t.isInboundBotSuggestions&&!e.articleUrl&&n),2),i=o[0],a=o[1];(0,g.useEffect)((function(){i&&n&&(r(n),a(!1))}),[i,n,r])}(o,i,y,S),function(e,t,r,n){var o=Cu(Ou,(0,g.useState)(!e.id&&t.suggestionParts&&n),2),i=o[0],a=o[1];(0,g.useEffect)((function(){i&&n&&(r(n),a(!1))}),[i,n,r])}(o,i,b,k),ze({object:o.id?"conversation":"new_conversation",place:"messenger",context:C?"from_email":"",metadata:{conversation_id:o.id,self_serve_suggestions_enabled:!!j,url:null==(t=(0,un.KQ)())?void 0:t.href,ticket_type_id:null==(r=o.ticket)?void 0:r.ticketTypeId,status:null==(n=o.ticket)?void 0:n.status}});var X=function(){var e,t=(e=Su().mark((function e(t){var r,n,o,i,a,s,l,u;return Su().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,iu.kn)(t);case 2:(r=e.sent)?(n=r.width,o=r.height,i=r.src,a=(0,au.U$)(r.src,t.name,t.type),h((0,lu.Fp)(i,n,o),a)):(s=t.name,l=t.type,u=t.size,h((0,lu.VJ)(s,l,u),t));case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ku(i,n,o,a,s,"next",e)}function s(e){ku(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),J=function(e){z||V||s||u&&e&&0!==e.length&&(R||function(e){var t=I.customBotActive,r=void 0===o.id;if(e.length>5)(0,Me.oS)("attachment_limit_exceeded",{file_count:e.length,place:"conversation"});else{var n=Array.from(e);r||t?X(n[0]):n.forEach((function(e){return X(e)}))}}(e))};return(0,v.jsx)(wu,{className:"intercom-conversation",onPaste:function(e){J(function(e){var t=(e.clipboardData||e.originalEvent.clipboardData).items,r=[],n=su(t);for(var o in t){var i=t[o];if("file"===i.kind&&!n){var a=i.getAsFile();r.push(a)}}return r}(e))},onDragOver:function(e){e.stopPropagation(),e.preventDefault()},onDrop:function(e){e.stopPropagation(),e.preventDefault(),J(function(e){return e.dataTransfer.files}(e))},tabIndex:-1,role:"presentation",isFetching:T&&!E,transition:(0,H.t)(),ref:O,children:(0,v.jsx)(ju.x,{children:(0,v.jsx)($l.X.Provider,{value:{composerShouldFocus:W,setComposerShouldFocus:$},children:(0,v.jsxs)(ba,{children:[(0,v.jsx)(bs.Q.Root,{children:(0,v.jsx)(Us,{conversation:o,conversationSuggestions:i,onArticleCardClick:p,onReactionSelect:c,onRetry:f,onSuggestionClicked:x,setComposerSuggestionsDismissed:w})}),G&&(0,v.jsx)(nu,{composerDisabled:L&&z,conversation:o,accessToTeammateEnabledAfterBot:A,shouldShowUpfrontEmailComposer:s,allowNewConversation:l,onReactionSelect:c,onJoinConversationClick:m})]})})})})})),Hu=r(68297),Fu=(0,g.createContext)(null);Fu.displayName="AppWindowContext";var Vu=Fu;var Uu=(0,w.Ay)("div",{target:"ebn4jki0"})({name:"a7jy8",styles:"padding:20px 20px 40px;display:flex;flex-grow:1;justify-content:center;flex-direction:column;align-items:center"});var Gu=(0,w.Ay)("div",{target:"e1vu97tc2"})({name:"a7jy8",styles:"padding:20px 20px 40px;display:flex;flex-grow:1;justify-content:center;flex-direction:column;align-items:center"}),qu=(0,w.Ay)("p",{target:"e1vu97tc1"})({name:"1okn4kk",styles:"font-size:18px;font-weight:700;margin-bottom:12px"}),Wu=(0,w.Ay)("p",{target:"e1vu97tc0"})({name:"1cxgb5o",styles:"font-size:14px;font-weight:400;margin-bottom:16px"});function $u(e){var t=e.errorTitle,r=void 0===t?(0,Ue.Tl)("something_is_wrong"):t,n=e.errorMessage,o=void 0===n?(0,Ue.Tl)("unable_to_load_the_messenger"):n,i=e.retryTitle,a=void 0===i?(0,Ue.Tl)("try_again"):i,s=e.onRetry;return(0,v.jsxs)(Gu,{children:[(0,v.jsx)(qu,{children:r}),(0,v.jsx)(Wu,{children:o}),(0,v.jsx)(fl.A,{onClick:s,variant:"primary",children:a})]})}var Ku=r(52411);function Yu(e){var t=e.children,r=(0,p.jL)(),n=(0,p.GV)(ee.Tf),o=(0,p.GV)(ee.mF),i=(0,g.useCallback)((function(){r((0,Ku.W)())}),[r]);return n?(0,m.z)()?null:(0,v.jsx)(Uu,{"data-testid":"open-content-loading-spinner",children:(0,v.jsx)(b.A,{delay:o?0:300})}):(0,v.jsx)(v.Fragment,{children:o?(0,v.jsx)($u,{errorTitle:"Something's gone wrong",errorMessage:"Content could not be loaded",retryTitle:"Reload",onRetry:i}):t})}var Zu=function(){var e=(0,tl.S)(),t=(0,p.jL)(),r=(0,p.GV)(Ws.BJ),n=null==e?void 0:e.id,o=!(null!=e&&e.read&&null!=e&&e.readAt),i=(null==e?void 0:e.ticket)&&!(null!=e&&e.ticket.read),a=null==e?void 0:e.isFetching,s=(0,p.GV)(to.A),l=(0,g.useMemo)((function(){return Qi()((function(){return t((0,Cr.QL)(Vt.Ay,n,{isUpdating:!0,requestOrigin:"Conversation visibility/focus change"}))}),5e3,{leading:!0,trailing:!1})}),[t,n]);!function(e){var t=(0,p.jL)(),r=(0,p.GV)(to.A),n=(0,p.GV)(ee.eI),o=n.enabled,i=n.startTimeout,a=n.syncInterval,s=e?(0,Os.dF)(e):void 0,l=null==s?void 0:s.createdAt,u=(0,g.useCallback)((function(){if(o&&r&&null!=e&&e.id){var n=(new Date).getTime();l&&n-l.getTime()>=i&&t((0,Cr.QL)(Vt.Ay,e.id,{isUpdating:!0,requestOrigin:Vt.r0,lastAdminPartCreatedAt:l.toISOString(),lastAdminPartId:s.id}))}}),[e,o,r,t,l,i,s]);(0,Hu.A)(u,a)}(e),(0,g.useEffect)((function(){n&&t((0,Cr.Ew)())}),[n,t]),(0,g.useEffect)((function(){s&&n&&!a&&(o||i)&&t((0,Cr.$G)(Vt.Ay,n))}),[t,s,n,o,a,i]);var u=(0,g.useContext)(Vu),c=(0,g.useCallback)((function(){n&&u&&("visible"===u.document.visibilityState||u.document.hasFocus())&&l()}),[n,u,l]);return(0,g.useEffect)((function(){if(u)return["focus","visibilitychange"].forEach((function(e){u.addEventListener(e,c)})),function(){["focus","visibilitychange"].forEach((function(e){u.removeEventListener(e,c)}))}}),[c,u]),(0,v.jsx)(Yu,{children:(0,v.jsx)(ea,{children:(0,v.jsx)(Du,{conversation:e||r,frameWindow:window,appWindow:window})})})};function Xu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ju(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ju(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r1)throw new Error("Only single element as the trigger");if(!(0,g.isValidElement)(r))throw new Error("Invalid element");return(0,g.cloneElement)(r,Tc({},o,r.props,{ref:t,className:o.className+" "+r.props.className,onClick:function(e){n&&n(e),r.props.onClick&&r.props.onClick()}}))})),Pc=["children"];function _c(){return _c=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r1,i=(0,p.GV)(Cs.bX),a=i.isFetching,s=void 0===a||a,l=i.pagesFetched,u=void 0===l?0:l,c=i.totalPages,d=void 0===c?0:c,f=(0,p.jL)(),m=(0,g.useCallback)((function(e){f((0,Hd.lS)(Vt.Ay,"onConversationsPage",e,10))}),[f]),y=(0,g.useCallback)((function(e,t){f((0,Hd.xb)(e)),!s&&u.5&&m(u+1)}),[f,s,u,d,m]);return ze({object:"conversation_list",place:"messenger"}),t?(0,v.jsx)(Rd,{}):(0,v.jsx)(zd,{conversations:e,accessToTeammateEnabledAfterBot:r,onScroll:y,onConversationClick:function(e){f((0,Cr.QL)(Vt.Ay,e,{requestOrigin:"Messages Page - Click Conversation"})),f((0,Or.p)(e))},showFooterFade:n,largeFooterFade:!o})};function Vd(e){return Vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vd(e)}function Ud(){Ud=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:C(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(_([])));j&&j!==r&&n.call(j,a)&&(x=j);var A=b.prototype=y.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Vd(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=O(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Gd(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function qd(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Gd(i,n,o,a,s,"next",e)}function s(e){Gd(i,n,o,a,s,"throw",e)}a(void 0)}))}}var Wd=function(e){return qd(Ud().mark((function t(){var r;return Ud().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return 0!==(r=e.getState()).conversations.pagesFetched||r.conversations.isFetching||e.dispatch((0,Hd.lS)(Vt.Ay,"Messages route loader")),t.abrupt("return",null);case 3:case"end":return t.stop()}}),t)})))},$d=function(){var e=(0,p.GV)(Cs.bX),t=e.isFetching,r=void 0===t||t,n=e.pagesFetched,o=r&&0===(void 0===n?0:n);return(0,v.jsx)(K,{header:(0,v.jsx)(_d,{space:d.Ij}),children:o?(0,v.jsx)(b.A,{}):(0,v.jsx)(Fd,{})})},Kd=function(){var e=(0,i.useNavigate)();return(0,g.useCallback)((function(){e(-1)}),[e])},Yd=function(e){return e.ticketForm},Zd=function(e){return(0,Vo.Mz)([Yd],(function(t){return(null==t?void 0:t[e])||null}))},Xd=function(){var e=(0,i.useParams)().ticketTypeId,t=Kd();(0,g.useEffect)((function(){e||t()}),[e,t]);var r=(0,p.GV)(Zd(parseInt(e||"")));return(0,v.jsx)(ui,{title:null==r?void 0:r.name,onBack:t,backDirection:"left"})},Jd=function(){var e=(0,i.useParams)().ticketId,t=void 0===e?"":e,r=(0,p.GV)((0,Kn.aw)(t)),n=Kd();return(0,v.jsx)(ui,{title:null==r?void 0:r.name,onBack:n,backDirection:"left"})};var Qd,ef=(0,w.Ay)("label",{target:"e1tmiq3k8"})("display:block;margin-bottom:4px;font-size:14px;font-weight:600;line-height:21px;color:",(0,w.w4)("textDefault"),";"),tf=(0,w.Ay)("p",{target:"e1tmiq3k7"})("font-size:14px;color:",(0,w.w4)("textMuted"),";margin-top:8px;line-height:21px;"),rf={name:"143spw1",styles:"height:105px"},nf=(0,w.Ay)("input",{target:"e1tmiq3k6"})("display:block;width:100%;height:40px;box-sizing:border-box;resize:none;padding:10px 10px 9px;border:1px solid ",(0,w.w4)("alphaBlack10"),";border-radius:8px;color:",(0,w.w4)("textDefault"),";background-color:",(0,w.w4)("containerBaseNeutral"),";font-size:14px;line-height:1.5;&::placeholder{color:",(0,w.w4)("textMuted"),";}",(function(e){var t=e.error,r=e.theme;return t&&(0,w.AH)("border-color:",r.textError,";")})," ",(function(e){var t=e.disabled,r=e.theme;return t&&(0,w.AH)("cursor:not-allowed;border:1px solid ",r.borderEmphasisNeutral,";color:",r.textMuted,";box-shadow:inset 0 1px 3px 0 ",r.elevation1,";background:",r.inputBackground,";-webkit-text-fill-color:",r.textMuted,";-webkit-opacity:1;")})," ",(function(e){return e.multiline&&rf}),";"),of=(0,w.Ay)("div",{target:"e1tmiq3k5"})("input[type='radio']{opacity:0;position:fixed;width:0;}label{display:block;padding:10px 20px;margin:0 0 8px;font-size:14px;line-height:1.5;color:",(0,w.w4)("textDefault"),";background-color:",(0,w.w4)("containerBaseNeutral"),";border:1px solid ",(0,w.w4)("alphaBlack10"),";border-radius:5px;cursor:pointer;",(function(e){var t=e.error,r=e.theme;return t&&(0,w.AH)("border-color:",r.textError,";")}),";}input[type='radio']:checked+label{box-shadow:inset 0 0 0 1px ",(0,w.w4)("alphaBlack10"),";background-color:",(0,w.w4)("buttonBackgroundColor"),";color:",(0,w.w4)("buttonTextColor"),";}"),af=(0,w.Ay)("div",{target:"e1tmiq3k4"})("position:relative;height:38px;padding:0 8px;border-radius:5px;border:1px solid ",(0,w.w4)("alphaBlack10"),";background-color:",(0,w.w4)("containerBaseNeutral"),";&>path{fill:",(function(e){return e.theme.borderEmphasisNeutral}),";}"),sf=(0,w.Ay)("select",{target:"e1tmiq3k3"})("width:100%;height:100%;appearance:none;background-color:transparent;border:none;",(function(e){var t=e.error,r=e.theme;return t&&(0,w.AH)("border-color:",r.textError,";")}),";"),lf=(0,w.Ay)("i",{target:"e1tmiq3k2"})("position:absolute;top:12px;right:7px;pointer-events:none;color:",(0,w.w4)("iconMuted"),";"),uf=(0,w.Ay)("p",{target:"e1tmiq3k1"})("display:flex;align-items:center;gap:6px;margin:8px 0;font-size:14px;color:",(function(e){return e.theme.textError}),";&>*{fill:",(function(e){return e.theme.textError}),";}"),cf=(0,w.Ay)("span",{target:"e1tmiq3k0"})("color:",(function(e){return e.theme.textError}),";");function df(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ff(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ff(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ff(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Tf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Mf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ef(){Ef=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:C(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(_([])));j&&j!==r&&n.call(j,a)&&(x=j);var A=b.prototype=y.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Cf(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=O(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Pf(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function _f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Pf(i,n,o,a,s,"next",e)}function s(e){Pf(i,n,o,a,s,"throw",e)}a(void 0)}))}}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);rn?Promise.reject("file_max_limit"):o&&-1===o.indexOf(i)?Promise.reject("file_type_not_allowed"):(0,Cr.oT)(Vt.Ay,t,e)}var Df="ADD_FILES";var Hf="UPLOAD_COMPLETE";function Ff(e,t){return{type:Hf,clientId:e,data:t}}var Vf="UPLOAD_FAILED";function Uf(e,t){return{type:Vf,clientId:e,error:t}}var Gf="REMOVE_FILE";var qf="RETRY_UPLOAD";function Wf(e,t,r,n,o,i){var a=zf(t,r,n,o,i);return{type:qf,clientId:e,promise:a}}var $f={limit:10,uploads:[]};function Kf(e,t){var r="clientId"in t?e.uploads.findIndex((function(e){return e.clientId===t.clientId})):-1;switch(t.type){case Df:return If({},e,{uploads:[].concat(Nf(Bf,e.uploads),Nf(Bf,t.files))});case Gf:return If({},e,{uploads:e.uploads.filter((function(e){return e.clientId!==t.clientId}))});case qf:return-1===r?e:If({},e,{uploads:Sf(e.uploads,r,{state:"loading",promise:t.promise})});case Hf:return-1===r?e:If({},e,{uploads:Sf(e.uploads,r,{state:"complete",data:t.data,error:null})});case Vf:return-1===r?e:If({},e,{uploads:Sf(e.uploads,r,{state:"failed",error:t.error})})}}var Yf=function(){var e=_f(Ef().mark((function e(t,r,n,o,i,a,s){var l;return Ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,zf(o,r,i,a,s);case 3:l=e.sent,t(Ff(n,l)),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),t(Uf(n,e.t0));case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,r,n,o,i,a,s){return e.apply(this,arguments)}}(),Zf={limit:10};function Xf(e){void 0===e&&(e={});var t=If({},Zf,e),r=(0,p.GV)((function(e){return e.session})),n=Nf(Tf,(0,g.useReducer)(Kf,If({},$f,{limit:t.limit})),2),o=n[0],i=n[1],a=o.uploads,s=a.every((function(e){return"complete"===e.state})),l=a.some((function(e){return"failed"===e.state})),u=function(){var e=_f(Ef().mark((function e(n){var o,s,l,u,c;return Ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return");case 2:o=Array.from(n).map((function(e){return Rf(e)})),(0,kf.flushSync)((function(){i({type:Df,files:o})})),s=a.length,l=Of(o,!0);case 6:if((u=l()).done){e.next=13;break}return c=u.value,e.next=10,Yf(i,r,c.clientId,c.file,s,t.limit,t.accept);case 10:s++;case 11:e.next=6;break;case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=_f(Ef().mark((function e(n){var o,s,l;return Ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((o=a.find((function(e){return e.clientId===n})))&&r){e.next=3;break}return e.abrupt("return");case 3:return s=a.filter((function(e){return"failed"!==e.state})),l=s.length,i(Wf(n,o.file,r,l,t.limit,t.accept)),e.next=8,Yf(i,r,o.clientId,o.file,l,t.limit,t.accept);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{uploadFiles:u,removeFile:function(e){return i(function(e){return{type:Gf,clientId:e}}(e))},retry:c,uploads:a,allComplete:s,anyFailed:l,canAddFiles:a.lengthe.length)&&(t=e.length);for(var r=0,n=Array(t);rform{flex:1;display:flex;flex-direction:column;justify-content:space-between;}"),Bp=(0,w.Ay)("div",{target:"e1i4t6d64"})({name:"budh8k",styles:"display:flex;flex-direction:column;gap:16px"}),Mp=(0,w.Ay)("div",{target:"e1i4t6d63"})("font-size:14px;line-height:1.5;color:",(0,w.w4)("textError"),";"),Lp=(0,w.Ay)(Pp.A,{target:"e1i4t6d62"})("font-size:14px;margin-bottom:0;font-weight:600;cursor:pointer;",(function(e){var t=e.disabled,r=e.theme;return t&&(0,w.AH)("cursor:not-allowed;background-color:",r.appColorSemiTransparent30,";*{cursor:not-allowed;}")})," ",(function(e){var t=e.theme;return"primary"===e.styleVariant&&(0,w.AH)("color:",t.isPrimaryColorAsTheme?t.iconDefault:t.iconOnInverse,";svg{margin-left:8px;path{fill:",t.isPrimaryColorAsTheme?t.iconDefault:t.iconOnInverse,";}}")})," ",(function(e){var t=e.theme;return"muted"===e.styleVariant&&(0,w.AH)("color:",t.textMuted,";")}),";"),Rp=(0,w.Ay)("div",{target:"e1i4t6d61"})({name:"1qj1ra3",styles:"display:flex;flex-direction:column;align-self:center;margin:20px 0 20px 0"}),zp=(0,w.Ay)("div",{target:"e1i4t6d60"})({name:"1wnowod",styles:"display:flex;align-items:center;justify-content:center"});function Dp(e,t){return t||(t=e.slice(0)),e.raw=t,e}var Hp=(0,w.Ay)("div",{target:"e1wc2x0w1"})("position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;display:flex;align-items:center;background:",(0,w.w4)("alphaWhite80"),";transition:opacity 0.2s,visibility 0.2s;opacity:",(function(e){return e.isVisible?1:0}),";visibility:",(function(e){return e.isVisible?"visible":"hidden"}),";animation:",(function(e){return e.isVisible?Vp:Up})," 0.2s ease-in-out;pointer-events:",(function(e){return e.isVisible?"auto":"none"}),";"),Fp=(0,w.Ay)("div",{target:"e1wc2x0w0"})("opacity:",(function(e){return e.isVisible?1:0}),";pointer-events:",(function(e){return e.isVisible?"auto":"none"}),";transition:opacity 0.2s ease-in-out;"),Vp=(0,w.i7)(_p||(_p=Dp(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"]))),Up=(0,w.i7)(Ip||(Ip=Dp(["\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n"]))),Gp=r(68561),qp=r(36667),Wp=r(6314),$p="__internal-notifications-prompt";function Kp(e){var t=e.initialEmail,r=e.email,n=e.onChange,o=e.error,i=!!t;return(0,v.jsxs)("div",{children:[(0,v.jsxs)(ef,{htmlFor:$p,children:[(0,Ue.Tl)("get_notified_by_email"),(0,v.jsx)(cf,{children:"*"})]}),o&&(0,v.jsx)(uf,{children:o}),(0,v.jsx)(nf,{id:$p,type:"email",name:$p,autoComplete:"off",placeholder:Wp.o,value:t||r,error:o,disabled:i,onChange:function(e){n(e.target.value)},"aria-label":(0,Ue.Tl)("get_notified_by_email"),"aria-required":!0,"aria-invalid":!!o}),(0,v.jsx)(tf,{children:(0,Ue.Tl)("tickets_email_copy")})]})}function Yp(){return Yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function rh(){return rh=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function hh(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function mh(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){hh(i,n,o,a,s,"next",e)}function s(e){hh(i,n,o,a,s,"throw",e)}a(void 0)}))}}var vh=function(e){var t=e.children,r=e.selector,n=e.fallback,o=e.action,a=(0,i.useNavigate)(),s=(0,p.jL)(),l=(0,p.GV)(r),u=dh()(l),c=(0,g.useCallback)((function(){return s(o(Vt.Ay))}),[s,o]),d=(0,g.useCallback)(mh(ph().mark((function e(){return ph().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:e.sent||a(-1);case 4:case"end":return e.stop()}}),e)}))),[c,a]);return(0,g.useEffect)((function(){u&&d()}),[l,d,u]),(0,v.jsx)(v.Fragment,{children:u?n:t})};function yh(e){return yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yh(e)}function gh(){gh=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:C(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(_([])));j&&j!==r&&n.call(j,a)&&(x=j);var A=b.prototype=y.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==yh(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=O(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function bh(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function xh(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){bh(i,n,o,a,s,"next",e)}function s(e){bh(i,n,o,a,s,"throw",e)}a(void 0)}))}}function wh(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return Ah(t,void 0!==r&&re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r-1&&i.height!==s&&t&&t(i.height)}),[t,i.height,s]),(0,v.jsx)(w.Z2,{children:function(e){var t,o,s=e.css,l=e.cx;return(0,v.jsx)(Zh,Jh({},n,{className:l(n.className,s(Wh||(t=["\n min-height: ","px;\n min-width: 100%;\n "],o||(o=t.slice(0)),t.raw=o,Wh=t),i.height)),onEnter:function(e){e.firstChild&&(a.current=e.firstChild)},children:(0,v.jsx)("div",{children:r})}))}})}var rm={send:"NewConversation",conversation:"ViewConversation"};function nm(e){var t=e.text,r=e.icon,n=e.conversationId,o=(0,p.jL)();return(0,v.jsx)(fl.A,{iconType:rm[r],onClick:function(){o((0,Cr.QL)(Vt.Ay,n,{requestOrigin:"Ticket Details Click"})),o((0,Or.p)(n))},borderRadius:10,variant:"secondary","data-testid":"ticket-details-conversation-button",children:t})}function om(e){var t=e.ticket,r=t.conversationButton;return(0,v.jsxs)(Ih,{children:[(0,Ue.Tl)("tickets_cta_text"),r?(0,v.jsx)(nm,{text:r.text,icon:r.icon,conversationId:t.conversationId}):t.isFetching&&(0,v.jsx)(b.A,{inline:!0})]})}function im(e){var t=e.ticket,r=e.notificationsEmail,n=e.notificationsEnabled,o=e.showTicketCreatedMessage,a=e.showSubmittedScreen,s=void 0!==a&&a,l=(0,i.useLocation)().state,u=l&&l.navigatingFrom,c=u===Le.wU||u===Le.vU,d=u||"conversation",f=c&&t.conversationId;return(0,g.useEffect)((function(){(0,Me.A5)("viewed","ticket_details","messenger",d,{ticketTypeId:t.ticketTypeId,status:t.status,conversationId:t.conversationId})}),[t.ticketTypeId,t.status,t.conversationId,d]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(Oh,{children:[(0,v.jsx)(Ph,{children:(0,v.jsx)(tm,{transitionKey:s.toString(),children:s?(0,v.jsx)(qh,{}):(0,v.jsx)(Eh,{horizontal:!0,children:t.history.length?(0,v.jsx)(ls,{history:t.history,currentStatus:t.status,assignee:t.assignee}):null})})}),(0,v.jsxs)(Th,{children:[n&&r&&(0,v.jsx)(Dh,{value:r}),t.attributes&&(0,v.jsx)(zh,{attributes:t.attributes})]})]}),o&&(0,v.jsx)(Bh,{}),f&&(0,v.jsx)(om,{ticket:t})]})}var am=r(85937);function sm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return lm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0),r(n.scrollHeight-n.scrollTop!==n.clientHeight)}(e,i,l)},children:t}),(0,v.jsx)(fm.L4,{hideBottomShadow:!s})]})}function Pm(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return Im(t,void 0!==r&&re.length)&&(t=e.length);for(var r=0,n=Array(t);rpath{fill:",(0,w.w4)("iconDefault"),";}svg>path[class$='stroke']{stroke:",(0,w.w4)("iconDefault"),";fill:none;}svg{*[class$='__circle']{fill:",(0,w.w4)("iconDefault"),";stroke:",(0,w.w4)("iconDefault"),";}*[class$='__negative']{stroke:",(0,w.w4)("iconOnInverse"),";}circle[class*='__negative']{fill:",(0,w.w4)("iconOnInverse"),";stroke:none;}}"),Fm=(0,w.Ay)("p",{target:"e1beiou0"})({name:"xnq8oy",styles:"display:block;margin-top:10px;margin-bottom:20px;font-weight:600;font-size:18px;line-height:24px"}),Vm=function(){return(0,v.jsxs)(Dm,{children:[(0,v.jsx)(Hm,{children:(0,v.jsx)(be.Ay,{type:"HelpActive",size:30})}),(0,v.jsx)(Fm,{children:(0,Ue.Tl)("no_articles_to_display")})]})},Um=function(e){var t=e.collections,r=e.onCollectionClick,n=(null==t?void 0:t.length)||0;if(0===n)return(0,v.jsx)(Bm,{children:(0,v.jsx)(Vm,{})});var o=1===n?(0,Ue.Tl)("single_collection"):(0,Ue.Tl)("multiple_collections",{total_collection:n.toString()});return(0,v.jsx)(ye.A,{title:o,children:null==t?void 0:t.map((function(e,t){return(0,v.jsx)(zm,{title:e.title,description:e.description,articlesCount:e.articlesCount,onClick:function(){return r(e.id)}},t)}))})},Gm=function(e){return e.sections.reduce((function(e,t){var r;return e+((null==(r=t.articles)?void 0:r.length)||0)}),0)},qm=function(){var e=(0,p.jL)(),t=(0,p.GV)((function(e){return e.articleCollections})),r=(0,p.GV)((function(e){return e.browseMode.isFetching})),n=t.map((function(e){var t=e.children.length>0||e.articles.length>0;return{id:e.id,title:e.name,description:e.description,articlesCount:t?e.articleCount:Gm(e),articles:e.articles,children:e.children}}));if(r)return(0,v.jsx)(b.A,{});return(0,v.jsx)(Um,{collections:n,onCollectionClick:function(t){r||e((0,Fe.LF)(t))}})};function Wm(e){var t=e.html.split(/<\/?highlight>/);return(0,v.jsx)(v.Fragment,{children:t.map($m)})}function $m(e,t){return t%2?(0,v.jsx)(Km,{children:e},t):(0,v.jsx)("span",{children:e},t)}var Km=(0,w.Ay)("span",{target:"e1ufeahq0"})("color:",(0,w.w4)("textDefault"),";font-weight:600;"),Ym=(0,w.Ay)(ge.A,{target:"e1yf8hpl2"})((function(e){var t=e.isSearch,r=e.theme;return t&&(0,w.AH)("&:hover{",Zm.className,"{color:",r.textMuted,";}}")}),";"),Zm=(0,w.Ay)(Ha._,{target:"e1yf8hpl1"})("color:",(0,w.w4)("textMuted"),";",Km.className,"{font-weight:400;color:",(function(e){var t=e.theme;return t.isPrimaryColorAsTheme?t.textDefault:t.primaryColor}),";}"),Xm=(0,w.Ay)(Ha._,{target:"e1yf8hpl0"})("font-weight:400;flex:1;",Km.className,"{font-weight:400;color:",(0,w.w4)("linkColor"),";}"),Jm=function(e){var t=e.title,r=e.onClick,n=e.children,o=e.search;return(0,v.jsxs)(Ym,{isSearch:o,size:"medium",rightIcon:"RightChevronColorable",rightIconColor:"linkColor",hoverBackground:!0,onClick:r,useGlobalHorizontalPadding:!0,children:[(0,v.jsx)(Xm,{children:t}),n&&(0,v.jsx)(Zm,{children:n})]})},Qm=r(27606),ev=r(35304);var tv=(0,w.Ay)(ev.Sv,{target:"ew5plsk0"})({name:"1sdjnkx",styles:"word-break:break-word"}),rv=function(e){var t=e.title,r=e.articleCount,n=e.description,o=e.authors,i=o.reduce((function(e,t){var r=(0,Qm.sU)(t);return r&&e.push(r),e}),[]),a=(0,_e.v)(i,3,!0),s=o.length>0,l="";return 1===o.length?l=(0,Ue.Tl)("article_single_author",{author_first_name:a[0].firstName}):2===o.length?l=(0,Ue.Tl)("article_double_author",{author_first_name1:a[0].firstName,author_first_name2:a[1].firstName}):o.length>2&&(l=(0,Ue.Tl)("article_multiple_authors",{author_first_name1:a[0].firstName,number_of_other_authors:(a.length-1).toString()})),(0,v.jsxs)(g.Fragment,{children:[(0,v.jsx)(ev.ed,{children:t}),n&&(0,v.jsx)(tv,{children:n}),(0,v.jsxs)(ev.dE,{children:[(0,v.jsxs)(ev.Mx,{children:[(0,Ue.Tl)(1===r?"single_article":"multiple_articles",{total_articles:r.toString()}).toLowerCase(),(0,v.jsx)("br",{}),s&&(0,v.jsx)("span",{"data-testid":"authors-container",children:l})]}),s&&(0,v.jsx)(Be,{admins:i,avatarSize:28,avatarPixelsToShow:25,maxAdmins:3,useCutout:!0})]})]})};function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||a.length>0){var c={headerContent:(0,v.jsx)(rv,{title:t,articleCount:n,description:r,authors:s})};return(0,v.jsxs)(ye.A,nv({},c,{children:[i.length>0&&(0,v.jsx)(ye.A,{noDivider:!0,children:ov(i,l)}),a.map((function(e){return(0,v.jsx)(zm,{title:e.name,description:e.description,articlesCount:e.articleCount,onClick:function(){return u(e.id)}},e.id)}))]}))}var d={title:t,description:r,note:(0,Ue.Tl)(1===n?"single_article":"multiple_articles",{total_articles:n.toString()})};if(1===o.length){var f=o[0].articles;return(0,v.jsx)(ye.A,nv({noDivider:!0},d,{children:ov(f,l)}))}return(0,v.jsx)(ye.A,nv({},d,{children:null==o?void 0:o.map((function(e){return(0,v.jsx)(ye.A,{noDivider:!0,sectionTitle:e.name||void 0,children:ov(e.articles,l)},e.id)}))}))},av=function(){var e=(0,i.useParams)()["*"],t=(0,p.GV)(Lo.ZV),r=null==e?void 0:e.split("/").slice(-1)[0];return r||1!==t.length?r:""+t[0].id},sv=function(e){var t=(0,p.GV)(Lo.ZV);if(!e)return null;var r=function t(r){return r.id===parseInt(e)?r:r.children?r.children.map((function(e){return t(e)})).reduce((function(e,t){return e||t}),null):null};return t.map((function(e){return r(e)})).reduce((function(e,t){return e||t}),null)},lv=function(){var e=(0,p.jL)(),t=av(),r=sv(t),n=(null==r?void 0:r.sections)||[];return r?(0,v.jsx)(iv,{id:r.id,name:r.name,description:r.description,articleCount:r.articleCount,sections:n,articles:r.articles,authors:r.authors,onArticleClick:function(t){e((0,He.Y0)(t,null,!0,!0))},onCollectionClick:function(t){e((0,Fe.LF)(t))},children:r.children}):null};function uv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r"),n=(0,un.mC)().innerWidth;return r<(t=n>400?30:n/40)?e:function(e,t){var r=e.substring(t);return"..."+r.substring(r.indexOf(" "))}(e,r-t)}function fv(e){var t=function(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return cv(t,void 0!==r&&re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0,C=Boolean(j||d&&k&&A),O=!C&&S&&i,T=(0,Ue.Tl)("search_for_help");(0,g.useEffect)((function(){""===a&&y.current&&""!==y.current.value&&(y.current.value="")}),[y,a]);var E=p||!(!a||""===a),P=B().whiteBackground,_=(0,g.useRef)(null),I=(0,g.useRef)(null);return(0,v.jsx)(Fv,{hasValue:E,children:(0,v.jsxs)(Vv,{onClick:function(){var e;return null==(e=y.current)?void 0:e.focus()},children:[(0,v.jsx)("input",{ref:y,defaultValue:a,onChange:function(e){return n(e.target.value,x)},onKeyDown:w,onFocus:function(){h(!0),l()},onBlur:function(){h(!1),s()},"aria-label":T}),(0,v.jsxs)(qv,{whiteBackground:P,isFocused:E,className:"search-input-placeholder",isShowingCloseButton:O,isShowingLoadingSpinner:C,tabIndex:-1,children:[(0,v.jsx)(be.Ay,{color:"linkColor",type:"Search"}),(0,v.jsx)("p",{children:T})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)(z.B1,{in:C,classNames:"fade",timeout:100,mountOnEnter:!0,unmountOnExit:!0,nodeRef:_,children:(0,v.jsx)($v,{ref:_,children:(0,v.jsx)(b.A,{size:"tiny",inline:!0})})}),(0,v.jsx)(z.B1,{in:O,classNames:"fade",timeout:100,mountOnEnter:!0,unmountOnExit:!0,nodeRef:I,children:(0,v.jsx)($v,{ref:I,children:(0,v.jsx)(Wv,{"aria-label":(0,Ue.Tl)("clear"),onClick:function(){n("",x),y.current&&(y.current.focus(),y.current.value="")},children:(0,v.jsx)(be.Ay,{size:16,type:"CloseM5"})})})})]})]})})};function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);rsvg{width:12;height:12;}>svg>path{fill:",(0,w.w4)("iconMuted"),";}",(function(e){var t=e.theme;return t.isMobileSize&&(0,w.AH)(">svg>path{fill:",t.isPrimaryColorAsTheme?t.textDefault:t.primaryColor,";}")})," border-radius:",(0,w.w4)("messengerBorderRadiusPx"),"px;&:hover{>svg>path{fill:",(0,w.w4)("iconMuted"),";}}");function sy(e,t){return t||(t=e.slice(0)),e.raw=t,e}var ly,uy="ease-out",cy=(0,w.i7)(ey||(ey=sy(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),dy=(0,w.i7)(ty||(ty=sy(["\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n"]))),fy=(0,w.Ay)("div",{target:"eub3n504"})({name:"augt7s",styles:"display:flex;flex-direction:row;flex-grow:1"}),py={name:"1yh8glp",styles:"margin-top:-12px"},hy=(0,w.Ay)("div",{target:"eub3n503"})("display:flex;flex-grow:1;height:51px;",(function(e){return!e.theme.isMobileSize&&py})," align-items:center;padding:5px 12px;box-sizing:border-box;overflow:hidden;"),my={name:"3ix1vd",styles:"opacity:1"},vy=(0,w.Ay)("div",{target:"eub3n502"})("color:",(0,w.w4)("textDefault"),";font-size:14px;line-height:21px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;transition:opacity 200ms ease-in-out;transition-delay:150ms;overflow:hidden;opacity:0;",(function(e){return e.show&&my}),";"),yy={name:"3ix1vd",styles:"opacity:1"},gy={name:"1j6452b",styles:"position:relative;top:-12px"},by=(0,w.Ay)("div",{target:"eub3n501"})("display:flex;flex:1;transition:opacity 0.3s;opacity:0;",(function(e){return e.theme.isMobileSize&&gy})," ",(function(e){return e.show&&yy}),";"),xy=(0,w.Ay)("div",{target:"eub3n500"})("padding:24px 8px 5px;display:flex;flex-direction:row;pointer-events:none;",(function(e){var t=e.headerHeight;return(0,w.AH)("margin:-",t+6,"px 48px 0;")})," &.intercom-messenger-header-view-enter{",vy.className,",",ay.className,"{animation-name:",cy,";animation-duration:","250ms",";animation-timing-function:",uy,";animation-delay:","350ms",";animation-fill-mode:both;}}&.intercom-messenger-header-view-exit{",vy.className,",",ay.className,"{animation-name:",dy,";animation-duration:","150ms",";animation-timing-function:",uy,";animation-delay:","0s",";animation-fill-mode:both;}}");function wy(e){var t=e.articleIsScrolled,r=e.showTitle,n=e.transitioningBack,o=((0,p.GV)(Lo._9)||{}).title,i=(0,p.GV)(Lo.Wm),a=(0,p.GV)(ti.l),s=(0,g.useRef)(null),l=B().height,u=a&&!t,c=(0,g.useRef)(null);return(0,v.jsx)(xy,{ref:s,expanded:u,headerHeight:l,children:(0,v.jsx)(fy,{children:(0,v.jsx)(z.B1,{in:!n,classNames:"intercom-search-browse-fade",timeout:100,mountOnEnter:!0,unmountOnExit:!0,nodeRef:c,children:(0,v.jsx)(by,{show:i,ref:c,children:(0,v.jsx)(hy,{children:(0,v.jsx)(vy,{show:r,"aria-hidden":"true",children:o})})})})})})}var jy,Ay,Sy=(0,w.i7)(ly||(jy=["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],Ay||(Ay=jy.slice(0)),jy.raw=Ay,ly=jy)),ky=(0,w.Ay)("div",{target:"e94v8qu12"})("padding-top:",(0,w.w4)("isUnifiedStyling")?20:0,"px;animation-name:",Sy,";animation-duration:","50ms",";animation-timing-function:","ease-in-out",";animation-delay:","0s",";animation-fill-mode:both;"),Cy=(0,w.Ay)(ky,{target:"e94v8qu11"})(),Oy=function(e){var t=e.theme;return(0,w.AH)("margin-left:10%;background:",t.containerNeutral,";border-radius:100px;",Cy.className," &{margin-left:0;}")},Ty=(0,w.Ay)("div",{target:"e94v8qu10"})("width:40%;min-height:16px;",Oy,";"),Ey=(0,w.Ay)("div",{target:"e94v8qu9"})("width:60%;min-height:16px;margin-top:16px;",Oy,";"),Py=(0,w.Ay)("div",{target:"e94v8qu8"})(),_y=(0,w.Ay)("div",{target:"e94v8qu7"})({name:"qoz2rc",styles:"margin-top:68px"}),Iy=(0,w.Ay)("div",{target:"e94v8qu6"})("width:36px;height:36px;border-radius:50%;background:",(0,w.w4)("iconOnInverse"),";margin-left:10%;margin-top:16px;float:left;",Cy.className," &{margin-left:0;}"),Ny=(0,w.Ay)("div",{target:"e94v8qu5"})({name:"g0dsyy",styles:"float:left"}),By=(0,w.Ay)("div",{target:"e94v8qu4"})("min-width:120px;min-height:8px;margin-top:19px;",Oy,";"),My=(0,w.Ay)("div",{target:"e94v8qu3"})("position:relative;min-width:80px;min-height:8px;margin-top:12px;",Oy,";"),Ly=(0,w.Ay)("div",{target:"e94v8qu2"})("width:80%;min-height:8px;margin-top:16px;",Oy,";"),Ry=(0,w.Ay)("div",{target:"e94v8qu1"})("width:75%;min-height:8px;margin-top:16px;",Oy,";"),zy=(0,w.Ay)("div",{target:"e94v8qu0"})("width:160px;min-height:8px;margin-top:16px;",Oy,";");function Dy(){return(0,v.jsxs)(ky,{"data-testid":"article-skeleton",children:[(0,v.jsx)(Ty,{}),(0,v.jsx)(Ey,{}),(0,v.jsxs)(Py,{children:[(0,v.jsx)(Iy,{}),(0,v.jsxs)(Ny,{children:[(0,v.jsx)(By,{}),(0,v.jsx)(My,{})]})]}),(0,v.jsxs)(_y,{children:[(0,v.jsx)(Ly,{}),(0,v.jsx)(Ry,{}),(0,v.jsx)(zy,{})]})]})}var Hy=r(427);function Fy(){return Fy=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0,r=e>N;P!==t&&_(t),O!==r&&T(r)},ne=(0,g.useRef)(null),oe=(0,g.useRef)(null),ie=(0,g.useRef)(null),ae=(0,g.useRef)(null),se=(0,ou.Z)(null==l?void 0:l.id);if((0,g.useEffect)((function(){se===(null==l?void 0:l.id)&&(null==A?void 0:A.url)===(null==l?void 0:l.url)||(_(!1),T(!1),$(0))}),[l,se,A]),(0,g.useEffect)((function(){var e;null==U||U.scroll({top:W}),null==(e=ie.current)||null==(e=e.scrollable)||null==e.scroll||e.scroll({top:W})}),[U,W,ie]),!l)return null;var le=l.url,ue=l.reactionsReply,ce=!!ue&&!(0,m.z)(),de=h&&2===(null==ue?void 0:ue.reactionIndex),fe=y&&!d;return(0,v.jsx)(oy.Kj,{children:(0,v.jsx)(z.F,{children:(0,v.jsx)(z.B1,{classNames:"",timeout:250,nodeRef:ne,children:(0,v.jsxs)(oy.q,{ref:ne,children:[(0,v.jsx)(wy,{articleIsScrolled:O,showTitle:O,transitioningBack:x}),fe&&(0,v.jsx)(Dy,{}),(0,v.jsx)(z.B1,{in:!x,classNames:"intercom-search-browse-slide-right",timeout:100,mountOnEnter:!0,unmountOnExit:!0,onExited:function(){J((0,He.rm)(Vt.Ay))},nodeRef:oe,children:(0,v.jsx)(oy.n2,{show:d,ref:oe,children:(0,v.jsxs)(km.A,{showScrollingBorder:!X,isInsideModal:!1,onScroll:function(e){return re(e.target.scrollTop)},ref:ie,onScrollable:function(e){G(e)},children:[(0,v.jsx)(Wy,{show:!O,title:l.title,onHeightChange:B}),(0,v.jsxs)("div",{style:{flexGrow:1,marginBottom:"15px",position:"relative"},children:[!H&&(0,v.jsx)(Dy,{}),(0,v.jsx)(qy,{helpCenterSession:k,title:l.title,url:le,hash:w,onLoad:ee,appColor:b,suggestedArticle:u,onSetScrollPosition:function(e){var t;re(e),null==U||U.scroll({top:e}),null==(t=ie.current)||t.scrollable.scroll({top:e}),$(e)},navigationSource:K},le)]}),H&&ce&&(0,v.jsxs)(oy._o,{children:[L&&!S?cg(e):null,!S&&(0,v.jsx)(z.B1,{classNames:"search-browse-reaction-followup",in:de,appear:!0,mountOnEnter:!0,onEntered:function(){ie&&setTimeout((function(){var e;(0,c.Fp)(null==ie||null==(e=ie.current)?void 0:e.scrollable)}),150)},timeout:150,nodeRef:ae,children:(0,v.jsx)(iy,{ref:ae})}),(0,v.jsxs)(oy.cR,{children:[(null==(t=l.available_locales)?void 0:t.length)>1?(0,v.jsx)(tg,{selectedLocale:A||l.available_locales.find((function(e){return e.url===le})),locales:l.available_locales,onChange:j}):null,l.publicUrl&&Z&&(0,v.jsx)(ig,{publicUrl:l.publicUrl})]})]})]})})})]},le)},le)})})}));var pg=(0,w.Ay)("div",{target:"ezwlh9l1"})({name:"vc1hld",styles:"flex:1;display:flex;flex-direction:column;overflow-y:auto"}),hg=(0,w.Ay)("div",{target:"ezwlh9l0"})({name:"r7hikz",styles:"position:absolute;top:0;left:0;right:0"});function mg(){var e,t=B().height;if((0,p.GV)(Lo.vT))return(0,v.jsx)(vg,{});var r=(null!=(e=(0,Ni.x3)())?e:document).getElementById("intercom-header-placeholder");return(0,v.jsxs)(pg,{children:[r?(0,kf.createPortal)((0,v.jsx)(hg,{children:(0,v.jsx)(ny,{})}),r):(0,v.jsx)(hg,{children:(0,v.jsx)(ny,{})}),(0,v.jsx)("div",{style:{minHeight:t}}),(0,v.jsx)(_v,{})]})}function vg(){return(0,v.jsxs)(pg,{children:[(0,v.jsx)(ny,{}),(0,v.jsx)(Pv,{showArticle:!0,fullHeight:!0,children:(0,v.jsx)(fg,{})})]})}var yg=function(){return(0,v.jsx)(K,{header:null,children:(0,v.jsx)(mg,{})})};var gg={name:"1lr8nsg",styles:"opacity:1;height:auto"},bg=(0,w.Ay)("div",{target:"e1feuvn40"})("background:none;position:absolute;display:flex;flex-direction:column;width:100%;top:0;left:0;bottom:0;height:0;opacity:0;z-index:",(0,on.fE)(3),";",(function(e){return e.isSearchBrowseOpen?"transition: opacity 0ms 0ms;":"transition: opacity 300ms 0ms;"})," ",(function(e){return e.isOpen&&gg}),";");function xg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0;return(0,v.jsx)(kg.X_,{children:(0,v.jsxs)(km.A,{isInsideModal:!1,onScroll:function(e){var t=null!=x&&x.coverImageUrl?350:120,r=e.target,n=r.scrollTop>0,o=r.scrollTop>t;f!==n&&(h(n),c(n)),a!==o&&s(o)},showScrollingBorder:!b&&f&&u,ref:n,children:[(0,v.jsxs)(kg.AK,{children:[x.coverImageUrl&&(0,v.jsx)(kg.mL,{children:(0,v.jsx)("img",{src:x.coverImageUrl,alt:x.title})}),(0,v.jsxs)(kg.i3,{isExpanded:y,children:[(0,v.jsx)(er,{newsItem:x}),(0,v.jsx)(kg.AM,{children:x.title}),(0,v.jsx)(Ig,{newsItem:x}),(0,v.jsx)(kg.GG,{children:x.blocks?(0,v.jsx)(Ke.A,{animationKey:"news-items",duration:300,children:(0,v.jsx)(mn.A,{blocks:x.blocks,onLinkClick:function(e){t((0,He.NQ)(e,!1))}})}):(0,v.jsx)(Ng,{})})]})]}),j&&(0,v.jsx)(kg.yL,{children:(0,v.jsx)(Ks.A,Mg({},x.reactionsReply,{prompt:""+(0,Ue.Tl)("how_would_you_rate_this"),onReactionSelect:function(e){t(function(e,t){return $t(qt().mark((function r(n,o){var i,a;return qt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=o(),a=i.session,r.abrupt("return",Vt.Ay.recordNewsItemReaction(a,e,t).then((function(r){r&&n(Yt(e,t))})));case 2:case"end":return r.stop()}}),r)})))}(x.id,e))}}))})]})},"please don't change")}var Hg=function(){return(0,v.jsx)(K,{header:(0,v.jsx)(Sg,{}),children:(0,v.jsx)(Dg,{})})},Fg=r(98767);var Vg=(0,w.Ay)("div",{target:"e2tswn72"})({name:"1jqm16y",styles:"text-align:center;align-items:center;margin:32px 16px 16px;align-self:center;display:flex;flex-direction:column;gap:8px"}),Ug=(0,w.Ay)("div",{target:"e2tswn71"})("width:40px;height:40px;border-radius:50%;background:",(0,w.w4)("containerNeutral"),";text-align:center;",Fg.N.className,"{margin-top:10px;}svg{width:21;height:21;path{fill:",(0,w.w4)("installGrey1"),";}}"),Gg=(0,w.Ay)("div",{target:"e2tswn70"})("display:flex;color:",(0,w.w4)("textMuted"),";font-weight:400;font-size:16px;line-height:20px;");function qg(){return(0,v.jsxs)(Vg,{children:[(0,v.jsx)(Ug,{children:(0,v.jsx)(Nh.A,{})}),(0,v.jsx)(Gg,{children:""+(0,Ue.Tl)("you_are_all_up_to_date")})]})}var Wg,$g,Kg,Yg=(0,w.Ay)("div",{target:"ehen3gr4"})("display:flex;flex-direction:column;max-height:100%;width:100%;height:100%;z-index:",(0,on.fE)(3),";overflow:hidden;"),Zg=(0,w.Ay)("div",{target:"ehen3gr3"})({name:"1ei7lwx",styles:"position:relative;flex:1;display:flex;overflow:hidden"}),Xg=(0,w.Ay)("div",{target:"ehen3gr2"})({name:"1mupyrl",styles:"margin-bottom:62px"}),Jg=(0,w.Ay)("div",{target:"ehen3gr1"})("display:flex;flex-direction:column;overflow:hidden;padding:20px ",(0,w.w4)("globalHorizontalPadding"),"px;",Mt.className,"{margin-top:10px;}"),Qg=(0,w.Ay)("div",{target:"ehen3gr0"})({name:"1s9ici2",styles:"display:flex;justify-content:center;align-items:center;padding-top:20px"}),eb=(0,w.Ay)("div",{target:"e174rxpv1"})("margin:",(function(e){return"16px "+(e.theme.globalHorizontalPadding+4)+"px 0px"}),";display:flex;"),tb=(0,w.Ay)("div",{target:"e174rxpv0"})("display:flex;flex-direction:column;flex:1;color:",(0,w.w4)("textDefault"),";h2{font-weight:600;font-size:16px;line-height:24px;}sub{font-weight:400;font-size:14px;line-height:21px;}");function rb(){var e=(0,p.GV)((function(e){return e.app.name})),t=(0,Ot.M5)();return(0,v.jsxs)(eb,{unifiedStyling:t,children:[(0,v.jsxs)(tb,{children:[(0,v.jsx)("h2",{children:(0,Ue.Tl)("news_latest_title")}),(0,v.jsx)("sub",{children:(0,Ue.Tl)("news_latest_subtitle",{team_name:e||""})})]}),(0,v.jsx)(Be,{avatarSize:36,avatarPixelsToShow:30,maxAdmins:3})]})}function nb(){return nb=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0});var f=(0,p.GV)(nr.VC),h=(0,g.useCallback)((function(e){var o=e.target;o.scrollHeight-o.scrollTop0;return(0,v.jsx)(Yg,{children:(0,v.jsx)(Zg,{children:(0,v.jsx)(km.A,{isInsideModal:!1,flex:!0,dynamicChildrenHeight:!0,onScroll:h,children:(0,v.jsx)(Em,{hideBorder:!0,children:(0,v.jsxs)(Xg,{children:[(0,v.jsx)(rb,{}),(0,v.jsxs)(Jg,{unifiedStyling:d,children:[m?(0,v.jsx)(b.A,{}):null==u?void 0:u.map((function(e){var t=a&&!i&&!or(e,o);return(0,v.jsx)(rr,{newsItem:e,isUnread:!!t,renderingContext:Le.V},"news-item-"+e.id)})),y&&(0,v.jsx)(Qg,{children:(0,v.jsx)(b.A,{inline:!0})}),!l&&(0,v.jsx)(qg,{})]})]})})})})})}function pb(){return(0,v.jsx)(fb,{})}var hb=function(){return(0,v.jsx)(K,{header:(0,v.jsx)(_d,{space:d.ND}),children:(0,v.jsx)(pb,{})})};var mb=(0,w.Ay)("div",{target:"e6hpzjp1"})({name:"vt6su8",styles:"display:flex;justify-content:center;align-items:center;padding:20px 0"}),vb=(0,w.Ay)("div",{target:"e6hpzjp0"})({name:"13ubd8d",styles:"margin:10px"});function yb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Ab(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Sb(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ab(i,n,o,a,s,"next",e)}function s(e){Ab(i,n,o,a,s,"throw",e)}a(void 0)}))}}var kb=function(e){return Sb(jb().mark((function t(){var r;return jb().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.getState()).tickets.isFetching&&!r.tickets.isFetched){t.next=3;break}return t.abrupt("return",null);case 3:return(0,e.dispatch)((0,am.Ip)()),t.abrupt("return",null);case 6:case"end":return t.stop()}}),t)})))},Cb=function(){return(0,v.jsx)(K,{header:(0,v.jsx)(_d,{space:d.rK}),children:(0,v.jsx)(xb,{})})};function Ob(e){return Ob="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ob(e)}function Tb(){Tb=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:C(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(_([])));j&&j!==r&&n.call(j,a)&&(x=j);var A=b.prototype=y.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Ob(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=O(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Eb(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Pb(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Eb(i,n,o,a,s,"next",e)}function s(e){Eb(i,n,o,a,s,"throw",e)}a(void 0)}))}}var _b,Ib=function(e){return Pb(Tb().mark((function t(r){var n,o,i,a;return Tb().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r.params,i=o.ticketId,a=e.getState(),i){t.next=5;break}return t.abrupt("return",null);case 5:if(null==(n=a.tickets.dataById[i])||!n.isFetching){t.next=7;break}return t.abrupt("return",null);case 7:return e.dispatch((0,am.rs)(i)),t.abrupt("return",null);case 9:case"end":return t.stop()}}),t)})))},Nb=function(){return(0,v.jsx)(K,{header:(0,v.jsx)(Jd,{}),children:(0,v.jsx)(cm,{})})};function Bb(){return Bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?"Next step":"First step",c=n===Cn.vb.Complete&&o===i,d=n===Cn.vb.New;return(0,v.jsxs)(Vb,{isComplete:c,onClick:l,children:[(0,v.jsxs)(Ub,{children:[(0,v.jsx)(Gb,{children:(0,v.jsx)(mn.A,{blocks:t})}),(0,v.jsx)(be.Ay,{type:d?"UnreadIndicator":"RightChevronColorable",color:d?void 0:"linkColor"})]}),r&&!c&&(0,v.jsx)(qb,{children:(0,v.jsx)(mn.A,{blocks:r})}),(0,v.jsx)(Wb,{isComplete:c,children:(0,v.jsx)(An.A,{checklistTasks:o,completedChecklistTasks:i,estimatedTimeRemaining:a,condensed:!0,prefillProgressIfEmpty:!0})}),s&&(0,v.jsxs)($b,{children:[(0,v.jsxs)(Kb,{children:[u,": "]}),(0,v.jsx)(Yb,{children:(0,v.jsx)(mn.A,{blocks:s})})]})]})},Xb=function(e){var t=e.checklist,r=e.onClick,n=(0,On.Sg)(t),o=(0,On.zE)(n),i=(0,On.fp)(n),a=(0,On.M2)(i),s=i.reduce((function(e,t){return e+t.estimatedTime}),0);return(0,v.jsx)(Zb,{title:t.titleBlocks,subtitle:t.subtitleBlocks,checklistStatus:t.status,checklistTasks:n.length,completedTasks:o.length,estimatedTimeRemaining:s,nextStepTitle:null==a?void 0:a.titleBlocks,onClick:r})},Jb=function(e){var t=e.checklists,r=e.onChecklistClick;return(0,v.jsx)("div",{"data-testid":"checklists-home",children:(0,v.jsx)(Fb,{children:t.map((function(e){return(0,v.jsx)(Xb,{checklist:e,onClick:function(){return r(e.checklistProgressId)}},e.id)}))})})};var Qb=(0,w.Ay)("div",{target:"e1g75ecv1"})({name:"1e876fv",styles:"display:flex;flex-direction:column;width:100%;overflow-y:auto"}),ex=(0,w.Ay)("div",{target:"e1g75ecv0"})("box-sizing:border-box;padding:30px ",(function(e){return e.theme.globalHorizontalPadding}),"px;height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;");function tx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rx(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&r(nx.MULTIPLE_CHECKLISTS),0===n.length&&r(nx.NO_CHECKLIST)}),[n.length]),(0,g.useEffect)((function(){a()}),[a]),(0,v.jsx)(Qb,{children:(0,v.jsxs)(ex,{children:[t===nx.MULTIPLE_CHECKLISTS&&(0,v.jsx)(Jb,{checklists:n,onChecklistClick:i}),t===nx.NO_CHECKLIST&&(0,v.jsx)(Hb,{})]})})},ix=function(){return(0,v.jsx)(K,{header:(0,v.jsx)(_d,{space:d.Ul}),children:(0,v.jsx)(ox,{})})},ax=function(){var e=(0,i.useNavigate)(),t=(0,i.useLocation)(),r=(0,p.jL)(),n=(0,p.GV)(Sn.J3),o=(0,p.GV)(h.V$),a=(0,h.ke)(t.pathname),s=Pd(d.Ul),l=n||o||a,u=l?"":s,c=(0,Ot.M5)();return(0,v.jsx)(li.Content,{whiteBackground:!c&&(l||a),showBorder:c,children:(0,v.jsx)(li.TitleArea,{title:u,onBack:l?function(){r((0,kn.$1)()),e(o&&!n?d.Zh.path:-1)}:void 0})})},sx=r(97330);var lx={name:"1n8met0",styles:"padding-top:0"},ux=(0,w.Ay)("div",{target:"eoxpqij3"})("padding:24px ",(function(e){return e.theme.globalHorizontalPadding+8}),"px 14px;background:",(0,w.w4)("containerBaseNeutral"),";z-index:10;",(function(e){return e.removeTopPadding&&lx}),";"),cx=(0,w.Ay)("h2",{target:"eoxpqij2"})("font-size:24px;font-weight:700;line-height:1.5;color:",(0,w.w4)("textDefault"),";text-align:center;"),dx=(0,w.Ay)("div",{target:"eoxpqij1"})("font-size:16px;font-weight:400;line-height:1.5;color:",(0,w.w4)("textDefault"),";text-align:center;"),fx=(0,w.Ay)("div",{target:"eoxpqij0"})({name:"g2fy0f",styles:"display:flex;justify-content:center;margin-top:12px"});var px,hx=(0,w.Ay)("div",{target:"e1womzdd2"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),mx=(0,w.Ay)("div",{target:"e1womzdd1"})({name:"1d7rrwu",styles:"display:inline-block;margin-right:8px;vertical-align:middle"}),vx=(0,w.Ay)("div",{target:"e1womzdd0"})("font-size:14px;display:inline-block;vertical-align:middle;color:",(0,w.w4)("textMuted"),";line-height:20px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;&.lastUpdated{flex:none;}"),yx=function(e,t){return t?e.name:e.firstName},gx=function(e,t){return"team"!==e.type?(0,Ue.Tl)("from_app",{app_name:t}):null},bx=function(e){var t=e.sender,r=e.avatarMargin,n=e.linkingText,o=e.showFullName,i=e.lastUpdatedAt,a=e.appName;return(0,v.jsxs)(hx,{children:[(0,v.jsx)(mx,{style:{marginRight:r||8},children:(0,v.jsx)(_g.h,{author:t})}),(0,v.jsxs)(vx,{children:[n&&""+n," ",yx(t,o),a&&" "+gx(t,a)]}),Boolean(i)&&(0,v.jsxs)(vx,{className:"lastUpdated",children:[(0,v.jsxs)("span",{style:{whiteSpace:"pre-wrap"},"aria-hidden":!0,children:[" ","•"," "]}),(0,v.jsx)("span",{children:(0,Hr.iw)(i)})]})]})},xx=(0,Vo.Mz)((function(e){return e.app}),(function(e){return{name:e.name}})),wx=function(e){var t=e.title,r=e.subtitle,n=e.sender,o=(0,p.GV)(xx).name,i=void 0===o?"":o,a=(0,p.GV)(Sn.Ji),s=(0,p.GV)(h.V$),l=1===a.length,u=(0,Ot.M5)();return(0,v.jsxs)(ux,{removeTopPadding:!u&&(!l||s),children:[(0,v.jsx)(cx,{children:(0,v.jsx)(mn.A,{blocks:t})}),r&&(0,v.jsx)(dx,{children:(0,v.jsx)(mn.A,{blocks:r})}),n&&(0,v.jsx)(fx,{children:(0,v.jsx)(bx,{sender:n,appName:i})})]})};function jx(){return jx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&r.map((function(e,t){var r=n===e.id;return(0,v.jsx)(ew,{header:e.header,content:e.content,expanded:r,background:e.background,isComplete:e.isComplete,onExpand:function(t){return i(e.id,t)},ref:function(e){return a.current[t]=e}},e.id)}))})})),ow=(0,g.forwardRef)((function(e,t){var r=e.activeCardId,n=e.cards,o=e.className,i=e.onCardExpand,a=(0,g.useRef)(null),s=function(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return rw(t,void 0!==r&&r0&&u(n[0].id)}),[]),(0,g.useEffect)((function(){r&&u(r)}),[r]),(0,v.jsx)(nw,{cards:n,expandedCardId:l,onExpand:function(e,t){t&&u(e)},className:o,ref:a})})),iw=ow;var aw=(0,w.Ay)("div",{target:"emyskci5"})({name:"1e876fv",styles:"display:flex;flex-direction:column;width:100%;overflow-y:auto"}),sw=(0,w.Ay)("div",{target:"emyskci4"})({name:"pybav8",styles:"width:100%;height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch"}),lw=(0,w.Ay)("section",{target:"emyskci3"})("padding:24px ",(function(e){return e.theme.globalHorizontalPadding}),"px 30px;"),uw=(0,w.Ay)("h2",{target:"emyskci2"})({name:"14nrql6",styles:"font-size:16px;line-height:1.5;margin-bottom:10px"}),cw=(0,w.Ay)("div",{target:"emyskci1"})("&+&{margin-top:",(function(e){return e.hasMultipleTaskGroups?"30px":"0"}),";}"),dw=(0,w.Ay)("div",{target:"emyskci0"})("padding:0px ",(function(e){return e.theme.globalHorizontalPadding}),"px;margin-top:8px;"),fw=r(9381),pw=r(82525),hw=r(3356),mw=function(e){var t=e.cardListRef,r=e.taskList,n=e.onTaskResolve,o=e.onTaskActionClick,i=e.checklistProgressId,a=(0,pn.A)(),s=(0,p.jL)(),l=(0,p.GV)((0,Sn.f$)(Number(i))),u=r.map((function(e,t){return{id:e.id,background:e.isComplete?a.containerNeutral:a.containerBaseNeutral,isComplete:e.isComplete,header:(0,v.jsx)(Mx,{order:t+1,title:(0,v.jsx)(mn.A,{blocks:e.titleBlocks}),completed:e.isComplete,expanded:!1}),content:(0,v.jsx)(Ux,{id:e.id,currentChecklist:l,content:(0,v.jsx)(mn.A,{blocks:e.bodyBlocks}),actionType:e.actionType,actionContentId:e.actionContentId,actionUrl:e.actionUrl,actionContentUrl:e.actionContentUrl,openActionUrlInNewTab:e.openActionUrlInNewTab,canBeManuallyResolved:e.canBeManuallyResolved,customActionButtonText:e.customActionButtonText,isComplete:e.isComplete,onTaskResolve:n,onTaskActionClick:o})}})),c=(0,g.useCallback)((function(e){return s((0,kn.qs)(null==l?void 0:l.id,null==l?void 0:l.checklistProgressId,e))}),[null==l?void 0:l.id,null==l?void 0:l.checklistProgressId,s]);return(0,v.jsx)(iw,{ref:t,cards:u,onCardExpand:c})},vw=function(e){var t=e.cardListRef,r=e.checklist,n=e.checklistTasksLength,o=e.completedChecklistTasksLength,i=e.estimatedTimeRemaining,a=e.onTaskResolve,s=e.onTaskActionClick,l=e.isFetching;if(!r)return(0,v.jsx)(aw,{children:l?(0,v.jsx)(b.A,{}):(0,v.jsx)(Hb,{})});var u=r.taskGroups.length>1;return(0,v.jsx)(Em,{hideBorder:!0,children:(0,v.jsx)(aw,{children:(0,v.jsxs)(sw,{"data-testid":"checklist-task-list",children:[(0,v.jsx)(wx,{title:r.titleBlocks,subtitle:r.subtitleBlocks,sender:r.sender}),(0,v.jsx)(dw,{children:(0,v.jsx)(An.A,{checklistTasks:n,completedChecklistTasks:o,estimatedTimeRemaining:i})}),(0,v.jsx)(lw,{children:r.taskGroups.map((function(e){return(0,v.jsxs)(cw,{hasMultipleTaskGroups:u,children:[u&&(0,v.jsx)(uw,{children:(0,v.jsx)(mn.A,{blocks:e.titleBlocks})}),(0,v.jsx)(mw,{cardListRef:t,taskList:e.tasks,onTaskResolve:a,onTaskActionClick:s,checklistProgressId:r.checklistProgressId})]},e.id)}))})]})})})},yw=function(){var e=(0,i.useParams)(),t=(0,p.jL)(),r=(0,g.useRef)(null),n=(0,p.GV)((0,Sn.f$)(Number(null==e?void 0:e.checklistProgressId)));(0,pw.q)(n);var o=(0,On.Sg)(n),a=(0,On.zE)(o),s=(0,On.fp)(o),l=(0,p.GV)((0,sx.F)()),u=(0,g.useRef)(!1),c=(0,p.GV)((function(e){return e.tasks.isFetching}));(0,g.useEffect)((function(){var e;e=l?o.find((function(e){return e.id===l})):(0,On.sE)(o);var t=u.current;if(u.current=Boolean(l),e){var i,a=Boolean(l)||t;null==(i=r.current)||i.expandCard(e.id,a)}else{var c,f;if(null==(c=r.current)||c.expandCard(null),null==(f=r.current)||f.scrollToTop(),t&&n&&0===s.length){var p=n.id,h=n.checklistProgressId,m=n.showCompletionScreen;if(!p)return;d(h,m)}}}),[a.length,l]);var d=function(e,r){r&&setTimeout((function(){t((0,kn.Lf)(e))}),1200)};return(0,g.useEffect)((function(){n&&t((0,kn.Mw)(n.id,n.checklistProgressId))}),[t,n]),(0,g.useEffect)((function(){n&&n.status===Cn.vb.New&&!n.dismissed&&t((0,kn.hI)(n.checklistProgressId))}),[t,n]),(0,v.jsx)(vw,{cardListRef:r,checklist:n,checklistTasksLength:o.length,completedChecklistTasksLength:a.length,onTaskResolve:function(e){if(n){var r=n.id,o=n.checklistProgressId,i=n.showCompletionScreen;r&&o&&e&&(t((0,kn.FK)(r,o,e)),1===s.length&&s[0].id===e&&d(o,i))}},onTaskActionClick:function(e,r,n){switch(e){case Cn.X2.ProductTour:r&&t((0,fw.os)(r));break;case Cn.X2.Article:n?(0,hw.CV)(n):r&&t((0,He.n$)(r,{}))}},estimatedTimeRemaining:s.reduce((function(e,t){return e+t.estimatedTime}),0),isFetching:c})},gw=function(){return(0,v.jsx)(K,{header:(0,v.jsx)(ax,{}),children:(0,v.jsx)(yw,{})})};var bw=(0,w.Ay)("div",{target:"e8wnlmk2"})({name:"12d09kj",styles:"display:flex;flex-direction:column;width:100%;height:100%;position:absolute;justify-content:center"}),xw=(0,w.Ay)("div",{target:"e8wnlmk1"})("display:flex;flex-direction:column;align-items:center;gap:28px;padding:0 16px 0 16px;line-height:24px;.intercom-block-paragraph{color:",(0,w.w4)("textMuted"),";}button:hover{",(function(e){var t=e.theme;return t.isPrimaryColorAsTheme&&(0,w.AH)("border:1px solid ",t.elevation2,";margin:-1px;")}),";}"),ww=(0,w.Ay)("canvas",{target:"e8wnlmk0"})({name:"rodcfp",styles:"position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none"}),jw=r(60441),Aw=r.n(jw),Sw=function(e){var t=e.showConfetti,r=e.completionScreenButtonText,n=e.completionScreenBlocks,o=(0,i.useNavigate)(),a=(0,g.useRef)(null);(0,g.useEffect)((function(){if(a.current&&t){var e=Aw().create(a.current,{resize:!0});(0,f.F9)(e)}}),[t]);var s=r||"Continue";return(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(bw,{children:[(0,v.jsx)(ww,{ref:a}),(0,v.jsxs)(xw,{children:[(0,v.jsx)(mn.A,{blocks:n}),(0,v.jsx)(Qo.A,{"data-testid":"checklist-completion-screen-action-button",onClick:function(){o(d.Ul.path)},children:s})]})]})})},kw=function(){var e=(0,i.useParams)(),t=(0,p.GV)((0,Sn.f$)(Number(null==e?void 0:e.checklistProgressId))),r=(0,i.useNavigate)();if(!t)return(0,v.jsx)(bw,{children:(0,v.jsx)(xw,{children:(0,v.jsx)(Qo.A,{"data-testid":"checklist-completion-screen-home-button",onClick:function(){r(d.Ul.path)},children:"Home"})})});var n=t.showConfetti,o=t.completionScreenBlocks,a=t.completionScreenButtonText;return(0,v.jsx)(Sw,{showConfetti:n,completionScreenBlocks:o,completionScreenButtonText:a})},Cw=function(){return(0,v.jsx)(K,{header:(0,v.jsx)(ax,{}),children:(0,v.jsx)(kw,{})})},Ow=r(5556),Tw=r.n(Ow),Ew=r(15561);function Pw(e){var t=e.isLauncherEnabled,r=e.launcherOffsetBottomPaddingPx;return e.verticalPaddingPx+20+(t?r:0)}var _w={name:"179q9ic",styles:"transform:none"},Iw={name:"1sgi167",styles:"transform:scale(0);opacity:0;pointer-events:none;visibility:hidden;&>iframe{pointer-events:none;visibility:hidden;}"},Nw={name:"184q3m8",styles:"transform-origin:bottom"},Bw={name:"abcix4",styles:"top:0"},Mw={name:"13udsys",styles:"height:100%"},Lw={name:"1lkn119",styles:"transition-delay:0ms"},Rw={name:"1lmwkpd",styles:"transform-origin:bottom left"},zw=(0,w.Ay)("div",{target:"ed8ycz90"})("z-index:",(0,on.L9)(),";position:fixed;bottom:",(0,on.zT)(),"px;right:",(0,w.w4)("horizontalPaddingPx"),"px;transform-origin:bottom right;visibility:visible;",(function(e){return e.theme.isLeftAlign&&Rw}),(function(e){var t=e.theme;return(0,w.AH)("height:calc(100% - ",Pw(t),"px);")}),";",(function(e){var t=e.theme,r=e.dynamicHeight;return(0,w.AH)("height:",r?r+"px":"min("+t.messengerMaxHeightPx+"px, calc(100% - "+Pw(t)+"px))",";")})," min-height:80px;width:",(function(e){return e.isCompactHomeShowing?(0,w.w4)("messengerCompactWidthPx"):(0,w.w4)("messengerWidthPx")}),"px;max-height:",(0,w.w4)("messengerMaxHeightPx"),"px;border-radius:",(function(e){return e.isCompactHomeShowing?(0,w.w4)("messengerCompactBorderRadiusPx"):(0,w.w4)("messengerBorderRadiusPx")}),"px;overflow:hidden;",(function(e){var t=e.lightweightAppActive,r=e.theme;return!t&&(0,w.AH)("box-shadow:",r.shadowXLarge,";")})," ",(function(e){var t=e.isExpanded,r=e.theme;return t&&(0,w.AH)("max-height:calc(100% - ",Pw(r),"px);height:calc(100% - ",Pw(r),"px);width:",r.messengerExpandedWidthPx,"px;transition-delay:",300,"ms;")})," ",(function(e){var t=e.isExpanded,r=e.isArticleLoaded;return t&&r&&Lw}),"opacity:1;>iframe{mask-image:radial-gradient(\n circle 16px at 16px 16px,\n currentColor 15px,\n ",(0,w.w4)("containerBaseNeutral")," 16px\n );width:100%;height:100%;position:absolute;visibility:visible;}",(function(e){var t=e.theme;return t.isLeftAlign&&(0,w.AH)("left:",t.horizontalPaddingPx,"px;right:auto;")})," ",(function(e){var t=e.theme;return t.isMobileSize&&(0,w.AH)("z-index:",(0,on.fE)(1,t),";width:100%;max-height:none;left:0;right:0;bottom:0;border-radius:0;position:fixed;")})," ",(function(e){var t=e.theme,r=e.isCompactHomeShowing;return t.isMobileSize&&!r&&Mw})," ",(function(e){var t=e.theme,r=e.isCompact;return t.isMobileSize&&!r&&Bw})," ",(function(e){var t=e.theme,r=e.isCompact;return t.isMobileSize&&r&&Nw})," transition:width ",200,"ms,height ",200,"ms,max-height ",200,"ms,transform 300ms cubic-bezier(0, 1.2, 1, 1),opacity 83ms ease-out;pointer-events:all;",(function(e){return!e.isMessengerOpen&&Iw}),(function(e){return e.disableOpenAnimation&&_w}),";");var Dw=(0,w.Ay)("main",{target:"e1o4xdyj2"})({name:"1ch1fqb",styles:"overflow:hidden;position:relative;display:flex;flex-direction:column;flex-grow:1;justify-content:flex-start;max-height:100%"}),Hw=(0,w.Ay)("div",{target:"e1o4xdyj1"})("pointer-events:none;transition:margin 0.3s ease-out,opacity 0.3s ease-out;z-index:",(0,on.fE)(2),";>*{pointer-events:all;}&.enter{transform:translateY(100%);height:0;opacity:0;}&.enter-done{transform:translateY(0);height:auto;opacity:1;}"),Fw=(0,w.Ay)("div",{target:"e1o4xdyj0"})({name:"1v771ry",styles:"z-index:3"});var Vw=function(e){var t=e.currentSpace,r=e.children,n="spaces-"+t;return(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(Dw,{id:n,"data-testid":n,children:r})})};var Uw=(0,w.Ay)("div",{target:"e11jdbjj1"})("position:absolute;bottom:",(function(e){return e.tabBarIsVisible?e.intercomLinkIsVisible?137:101:32}),"px;left:50%;transform:translateX(-50%);&>*{box-shadow:",(0,w.w4)("shadowLarge"),",",(0,w.w4)("shadowLarge"),";}"),Gw=(0,w.Ay)(Zh,{target:"e11jdbjj0"})({name:"ml2hs3",styles:"overflow-y:visible;z-index:2"});var qw=function(e){var t=e.tabBarIsVisible,r=e.intercomLinkIsVisible,n=function(){var e=(0,i.useLocation)().pathname,t=(0,h.wR)(e),r=!!(0,p.GV)(Dd),n=!!(0,p.GV)(dl.xk);switch(t.id){case d.Ij.id:return{visible:r&&"/messages"===e,styleVariant:"primary"};case d.ZL.id:return{visible:n,styleVariant:"secondary"};default:return{visible:!1,styleVariant:"primary"}}}(),o=n.visible,a=n.styleVariant;return(0,v.jsx)(Gw,{transitionKey:o+"-"+a,children:o&&(0,v.jsx)(Uw,{tabBarIsVisible:t,intercomLinkIsVisible:r,children:(0,v.jsx)(hl,{styleVariant:a})})})},Ww=function(e,t){var r=t.pathname.split("/"),n=e.pathname.split("/"),o=r[1],i=n[1]!==o;return"/messages/conversation/new"===e.pathname&&t.pathname.match(/\/messages\/conversation\/\d+/)?S:i?A:t.pathname!==e.pathname?r.length<=n.length?C:k:S},$w=function(){var e=De().currentSpace,t=(0,p.GV)(ee.Er),r=(0,p.GV)(ee.km),n=(0,p.GV)(h.$P),o=Ro()&&n.length>1,i=Ro()&&r,a=M({initialWhiteBackground:!1,initialHeight:0});return(0,g.useEffect)((function(){t&&(0,Me.A5)("viewed",e.id,"messenger","")}),[e.id,t]),(0,v.jsx)(Vw,{currentSpace:e.id,showIntercomLink:i,children:(0,v.jsxs)(N.Provider,{value:a,children:[(0,v.jsx)(Fw,{id:"intercom-header-placeholder"}),(0,v.jsx)(fi,{}),(0,v.jsx)($,{getTransition:Ww}),(0,v.jsx)(qw,{tabBarIsVisible:o,intercomLinkIsVisible:i})]})})},Kw=function(){var e=De().currentSpace,t=(0,p.GV)(ee.Er),r=(0,p.GV)(ee.km),n=Ro()&&r,o=R(),i=M({initialWhiteBackground:!1,initialHeight:0}),a=tc({initialConversationHeroVisible:Qu.Unknown}),s=De().isCompactHomeShowing;return(0,g.useEffect)((function(){t&&(0,Me.A5)("viewed",e.id,"messenger",""),o(s?Qw:void 0)}),[e.id,t,s,o]),(0,v.jsx)(N.Provider,{value:i,children:(0,v.jsxs)(ec.Provider,{value:a,children:[(0,v.jsx)(Fw,{id:"intercom-header-placeholder"}),(0,v.jsx)(fi,{}),(0,v.jsx)($,{getTransition:Ww}),n&&(0,v.jsx)(ol,{showOnSpaces:!0,intercomLinkSolution:"live-chat"})]})})};function Yw(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return Xw(t,void 0!==r&&re.length)&&(t=e.length);for(var r=0,n=Array(t);r\n\n\n'),"');border-radius:0;")}),";",(function(e){return"passive"===e.badgeCutoutType&&(0,w.AH)("mask-image:url('data:image/svg+xml;base64,",(0,uj.A)('\n\n\n'),"');border-radius:0;")}),";*{cursor:pointer;}"),dj={name:"179q9ic",styles:"transform:none"},fj=function(e){var t=e.theme;return(0,w.AH)("user-select:none;display:flex;align-items:center;justify-content:center;position:absolute;top:0;bottom:0;width:100%;transition:transform 0.16s linear,opacity 0.08s linear;",t.isMobileSize&&dj,";")},pj={name:"1x052ey",styles:"opacity:1;transform:none"},hj={name:"letlco",styles:"transition:transform 0.4s ease 0.2s"},mj={name:"d2404m",styles:"opacity:0;transform:rotate(30deg) scale(0)"},vj=(0,w.Ay)("div",{target:"e11rlguj3"})(fj," opacity:1;transform:rotate(0deg) scale(1);svg{width:",(function(e){return e.theme.launcherIconSizePxM5}),"px;height:",(function(e){return e.theme.launcherIconSizePxM5}),"px;path{fill:",(0,w.w4)("launcherIconColor"),";}}",(function(e){return e.active&&mj})," ",(function(e){return e.discoveryMode&&hj})," ",(function(e){var t=e.theme;return e.active&&t.isMobileSize&&pj}),";"),yj={name:"1x052ey",styles:"opacity:1;transform:none"},gj={name:"letlco",styles:"transition:transform 0.4s ease 0.2s"},bj={name:"d2404m",styles:"opacity:0;transform:rotate(30deg) scale(0)"},xj=(0,w.Ay)("div",{target:"e11rlguj2"})(fj," opacity:1;transform:rotate(0deg) scale(1);svg{height:",(function(e){return e.theme.launcherSizePx-4}),"px;path{fill:",(0,w.w4)("launcherIconColor"),";}}",(function(e){return e.active&&bj})," ",(function(e){return e.discoveryMode&&gj})," ",(function(e){var t=e.theme;return e.active&&t.isMobileSize&&yj}),";"),wj={name:"mws4fn",styles:"opacity:0"},jj={name:"1jgw0uu",styles:"opacity:1;transform:rotate(0deg)"},Aj=(0,w.Ay)("div",{target:"e11rlguj1"})(fj," opacity:0;transform:rotate(-60deg);svg{path{fill:",(0,w.w4)("launcherIconColor"),";}}",(function(e){return e.active&&jj})," ",(function(e){var t=e.theme;return e.active&&t.isMobileSize&&wj}),";"),Sj=(0,w.Ay)("img",{target:"e11rlguj0"})("max-width:",(0,w.w4)("launcherIconSizePxM5"),"px;max-height:",(0,w.w4)("launcherIconSizePxM5"),"px;position:relative;"),kj=r(27124),Cj=r(76974);function Oj(){return Oj=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?"active":"passive"),(0,v.jsx)(Tj,Oj({isMessengerOpen:t,launcherLogoUrl:r,isLauncherDiscoveryModeEnabled:n,allowSelfServeIcon:o,badgeCutoutType:l,onClick:function(){(0,Me.A5)("clicked","launcher","in_app","",{space_opened:null==a?void 0:a.id}),i((0,ur.wJ)())}},e))};var Pj={name:"mws4fn",styles:"opacity:0"},_j=(0,w.Ay)(Ew.Ay,{target:"efr23pf0"})("z-index:",(0,on.fE)(),";width:",(0,w.w4)("launcherSizePx"),"px;height:",(0,w.w4)("launcherSizePx"),"px;border-radius:50%;color-scheme:none;background:none;",(function(e){var t=e.theme;return t.isLeftAlign&&(0,w.AH)("left:",t.horizontalPaddingPx,"px;right:auto;")})," ",(function(e){var t=e.theme;return t.isMobile&&(0,w.AH)("filter:drop-shadow(0 1px 6px ",t.elevation1,") drop-shadow(0 2px 32px ",t.elevation2,");transition:box-shadow 80ms ease-in-out;pointer-events:auto;&:hover{filter:drop-shadow(0 2px 8px ",t.alphaBlack10,") drop-shadow(0 4px 40px ",t.alphaBlack20,");}&:active{filter:drop-shadow(0 1px 6px ",t.elevation1,") drop-shadow(0 2px 32px ",t.elevation2,");}")})," ",(function(e){var t=e.shouldRenderShadow,r=e.theme;return t&&(0,w.AH)("filter:drop-shadow(0 1px 6px ",r.elevation1,") drop-shadow(0 2px 32px ",r.elevation2,");")})," ",(function(e){var t=e.theme,r=e.isMessengerOpen;return t.isMobileSize&&r&&Pj}),";");function Ij(e){var t=e.shouldRenderShadow,r=e.hasBadge,n=e.isMessengerOpen;return(0,v.jsx)(_j,{className:"intercom-launcher-frame",frameName:"intercom-launcher-frame",title:"Intercom live chat",ariaLiveAssertive:!1,shouldRenderShadow:t,isMessengerOpen:n,children:function(e){return(0,v.jsx)(Ej,{frameWindow:e,hasBadge:r})}})}function Nj(){return Nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;return(0,v.jsx)(Dj,{hasNotifications:r,children:(0,v.jsx)(ko,{children:r?t:void 0})})},Fj=function(){var e=(0,p.GV)(Cj.UM);return(0,v.jsx)(Hj,{notificationCount:e})};var Vj={name:"gnzpf7",styles:"animation:launcherEnter 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;@keyframes launcherEnter{0%{transform:scale(0.8);opacity:0;}100%{transform:scale(1);opacity:1;}}"},Uj=(0,w.Ay)("div",{target:"edrs4yi0"})("user-select:none;z-index:",(0,on.L9)(),";position:fixed;bottom:",(0,w.w4)("verticalPaddingPx"),"px;right:",(0,w.w4)("horizontalPaddingPx"),"px;width:",(0,w.w4)("launcherSizePx"),"px;height:",(0,w.w4)("launcherSizePx"),"px;",(function(e){var t=e.theme;return t.isLeftAlign&&(0,w.AH)("left:",t.horizontalPaddingPx,"px;right:auto;")})," transition:transform 167ms cubic-bezier(0.33, 0, 0, 1);transform-origin:center;",(function(e){return e.isEntering&&Vj})," &:hover{transition:transform 250ms cubic-bezier(0.33, 0, 0, 1);transform:scale(1.1);}&:active{transform:scale(0.85);transition:transform 134ms cubic-bezier(0.45, 0, 0.2, 1);}@media (prefers-reduced-motion: reduce){transition:none!important;transform:none!important;animation:none!important;opacity:1!important;scale:1!important;}"),Gj=r(64442);var qj={name:"eivff4",styles:"display:none"},Wj={name:"16reteu",styles:"background:radial-gradient(\n ellipse at bottom left,\n rgba(29, 39, 54, 0.16) 0%,\n rgba(29, 39, 54, 0) 72%\n );left:0;right:auto"},$j=(0,w.Ay)("div",{target:"equ3uxk0"})("z-index:",(0,on.L9)(-2),";position:fixed;width:500px;height:500px;bottom:0;right:0;content:'';pointer-events:none;background:radial-gradient(\n ellipse at bottom right,\n rgba(29, 39, 54, 0.16) 0%,\n rgba(29, 39, 54, 0) 72%\n );",(function(e){return e.theme.isLeftAlign&&Wj})," ",(function(e){return e.theme.isMobileSize&&qj}),";"),Kj=r(48179);function Yj(e){return Yj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yj(e)}function Zj(e,t){for(var r=0;r0&&!A,E=!s&&i,P=s&&(0,ln.IS)(),_=(e=this.props.removeBorderlessNotifications,t=this.props.isNewMobileNotificationsEnabled,r=(0,ln.IS)(),e||t&&r?"new":"old"),I=T&&"new"===_,N=T&&"old"===_,B=S&&l,M=(I||B)&&(0,ln.IS)(),L=a&&!P&&!M;return(0,v.jsxs)("div",{className:"intercom-app","aria-live":"polite",children:[(0,v.jsx)(z.F,{component:g.Fragment,children:(0,v.jsx)(oj,{isMessengerOpen:s})}),!l||b||j||s||A||S?null:(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(aA,{appWindow:n},"Message")}),!m||s||b||C?null:(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(uA,{appWindow:n},"PointerMessage")}),p&&u?(0,v.jsx)(dA,{},"Install"):null,(I||B)&&(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(lA,{showDesktopNotifications:!(0,ln.IS)()})}),N&&(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(sA,{})}),L&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(Uj,{isEntering:!P,children:[(0,v.jsx)(Ij,{shouldRenderShadow:!h,isMessengerOpen:s,hasBadge:E}),E&&(0,v.jsx)(Fj,{})]}),_s.Ay.isMobileBrowser()?null:(0,v.jsx)(Rj,{isLeftAligned:"left"===f.alignment})]}),!b||C&&!x?null:(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(cA,{appWindow:n},"Tour")}),b?(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(iA,{appWindow:n})}):null,(0,v.jsx)(Ke.A,{animationKey:"intercom-app",duration:w?0:200,children:s||l||T?(0,v.jsx)($j,{}):null}),(0,v.jsx)(ij.A,{appWindow:n}),this.shouldShowPageTitleNotification()?(0,v.jsx)(Qj,{appWindow:n,conversation:c}):null,y&&!b?(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(oA,{appWindow:n})}):null,!j||s||C&&!O?null:(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(fA,{appWindow:n})}),b?null:(0,v.jsx)("div",{id:"intercom-modal-container"})]})},function(e,t,r){return t&&tA(e.prototype,t),r&&tA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(g.Component);function hA(e){return hA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hA(e)}function mA(e,t){for(var r=0;r0,_=T>0,I=(0,TA.L)(e).length>0,N=(0,OA.dW)(e),B=(0,OA.O7)(e),M=e.session&&e.session.appId,L=!!(0,EA.IS)(e),R=e.borderless.disableBorderless,z=d.newMobileNotificationsEnabled||!1,D=d.removeBorderlessNotifications||!1,H=function(e,t){if(!e||!t||0===t.length)return!1;var r=t[0];if(!r)return!1;var n=r.readAt?(0,Os.u)(r):(0,Os.ht)(r);if(!n)return!1;var o=n.messageType||"adminReply";return-1!==PA.M.indexOf(o)}(D,C);return{userIsPresent:o,locale:n,hasUnreadContent:S,notificationCount:k,lastUnreadConversation:E,isBooting:a,isBooted:s,isMessageOpen:P,isMessengerOpen:l,isLauncherEnabled:A,isLauncherDiscoveryModeEnabled:h,isLauncherDiscoveryModeOpening:m,isNewMobileNotificationsEnabled:z,isErrorReportingDisabled:u,isOverrideSamplingEnabled:c,isInstallOpen:v,customizationAttributes:{alignment:g,horizontalPadding:b,verticalPadding:x,zIndex:w},isInstantBootEnabled:f,hasPointerMessages:_,hasBanner:I,isTourFetched:N,isPreviewingTour:B,appId:M,isLightweightAppActive:j,hasSurvey:L,disableBorderlessNotifications:R,removeBorderlessNotifications:D,suppressBorderlessMessage:H}}),(function(e){return{onTabPressed:function(){return e((function(t,r){r().accessibility.tabNavigation||e((0,SA.y)(!0))}))}}}))(bA);var IA=(0,w.Ay)("div",{target:"e1ta6if44"})("display:flex;flex-direction:row;justify-content:space-between;font-size:14px;line-height:21px;border-top:1px solid ",(0,w.w4)("borderEmphasisNeutral"),";box-shadow:",(0,w.w4)("shadowLarge"),";background-color:",(0,w.w4)("containerBaseNeutral"),";height:",80,"px;padding:0;&.enter{opacity:0;}&.enter-active{transition:opacity ",A.time,"ms ease-out;opacity:1;}&.enter-done{opacity:1;}&.exit{opacity:1;}&.exit-active{transition:opacity ",A.time,"ms ease-out;opacity:0;}&.exit-done{opacity:0;}"),NA=(0,w.Ay)("button",{target:"e1ta6if43"})("flex:1;display:flex;flex-direction:column;align-items:center;padding:18px 3px;cursor:pointer;transition:all 150ms;line-height:14px;overflow:hidden;text-overflow:clip;text-align:center;",(function(e){var t=e.showLabels,r=e.theme;return!t&&(0,w.AH)("&:after{content:attr(data-title);position:relative;font-size:12px;padding:4px;top:-56px;color:",r.textDefault,";background:",r.containerEmphasisNeutral,";box-shadow:",r.shadowSmall,";border-radius:6px;opacity:0;visibility:hidden;}&:hover{&:after{opacity:1;transition:all 0.1s ease 0.5s;visibility:visible;}}")})," ",(function(e){var t=e.isActive,r=e.theme;return!t&&(0,w.AH)("svg{*{transition:all 150ms;}*[class$='fill']{fill:",r.iconDefault,";stroke:none;}}color:",r.textDefault,";&:hover{color:",r.linkColor,";svg{*[class*='fill']{fill:",r.linkColor,";stroke:none;}*[class*='stroke']{stroke:",r.linkColor,";}}}")})," ",(function(e){var t=e.isActive,r=e.theme;return t&&(0,w.AH)("color:",r.linkColor,";font-weight:600;")}),";"),BA=(0,w.Ay)("div",{target:"e1ta6if42"})("position:relative;display:flex;align-items:center;justify-content:center;margin:",(function(e){return e.showLabels?0:"10px"})," auto 8px;pointer-events:none;",(function(e){var t=e.hasCutout,r=e.theme;return t&&(0,w.AH)("svg{mask-image:radial-gradient(\n circle 20px at calc(100% + 1px) calc(100% - 23px),\n transparent 10px,\n ",r.iconDefault," 0\n );}")})," ",(function(e){var t=e.isActive,r=e.theme;return t&&(0,w.AH)(">svg>path{fill:",r.linkColor,";}>svg>path[class$='stroke']{stroke:",r.linkColor,";fill:none;}>svg{*[class$='__circle']{fill:",r.linkColor,";stroke:",r.linkColor,";}*[class$='__negative']{stroke:",r.iconOnInverse,";}circle[class*='__negative']{fill:",r.iconOnInverse,";stroke:none;}}")}),";"),MA={name:"1eifec2",styles:"top:-5px;/* @noflip */right:calc(100% - 22px)"},LA=(0,w.Ay)("div",{target:"e1ta6if41"})("position:absolute;/* @noflip */right:calc(100% - 17px);top:-7px;line-height:13px;/* @noflip */transform:translateX(100%);",(function(e){return e.small&&MA}),";"),RA=(0,w.Ay)("span",{target:"e1ta6if40"})({name:"s60ug3",styles:"display:block;text-align:center;margin:0 auto"}),zA=r(38424),DA=["onClick"],HA=["itemCount","activeIndex","showLabels","children","onClickItem"];function FA(){return FA=Object.assign?Object.assign.bind():function(e){for(var t=1;t0,w=m(n),j=w.onClick,A=VA(w,DA);return(0,v.jsxs)(NA,FA({role:"tab",isActive:y,showLabels:p,"aria-current":y,"aria-controls":c||r,"aria-label":t,"aria-expanded":y,onClick:function(){y||h(n),j()},"data-testid":r,"data-title":p?void 0:t},A,{children:[(0,v.jsx)("div",{id:c,hidden:y}),(0,v.jsxs)(BA,{hasCutout:x,isActive:y,showLabels:p,children:[(0,v.jsx)(LA,{small:!x,children:(x||u)&&(0,v.jsx)(ko,{children:x?s:void 0})}),(0,v.jsx)(b,{})]}),p&&(0,v.jsx)(RA,{children:t})]}))},qA=function(e){var t=e.itemCount,r=e.activeIndex,n=e.showLabels,o=void 0===n||n,i=e.children,a=e.onClickItem,s=VA(e,HA),l={activeIndex:r,showLabels:o,onClickItem:a,getRovingProps:(0,zA.z)(t,[r],r,1)};return(0,v.jsx)(IA,FA({role:"tablist"},s,{children:(0,v.jsx)(UA.Provider,{value:l,children:i})}))},WA=function(e){var t=e.items,r=e.activeItemIndex,n=De().showSpace;return(0,v.jsx)(qA,{itemCount:t.length,activeIndex:r,showLabels:t.length<6,onClickItem:function(e){var r=t[e].id;(0,Me.A5)("clicked",r,"messenger",r),n(r)},"data-testid":"spaces-tab-bar",children:t.map((function(e,t){return(0,v.jsx)(GA,{itemId:e.id,index:t,title:e.title||"",defaultIcon:e.iconComponent.default,activeIcon:e.iconComponent.active,activeNotificationCount:e.activeNotificationCount,hasPassiveNotifications:e.hasPassiveNotifications,ariaControlElementId:e.ariaControlElementId},e.id)}))})};function $A(e){var t=e.children,r=(0,p.GV)(h.$P),n=Ro()&&r.length>1,o=(0,Ot.mK)(),i=De().currentSpace,a=r.findIndex((function(e){return e.id===i.id}));return(0,v.jsxs)(v.Fragment,{children:[t,o&&(0,v.jsx)(z.B1,{in:o&&n,timeout:A.time,unmountOnExit:!0,children:(0,v.jsx)(Hw,{children:(0,v.jsx)(z.B1,{in:n,timeout:A.time,unmountOnExit:!0,children:(0,v.jsx)(WA,{items:r,activeItemIndex:a})})})})]})}function KA(){return(0,v.jsx)($A,{children:(0,v.jsx)(i.Outlet,{})})}var YA=r(50084),ZA=r(20038);function XA(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return JA(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?JA(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function JA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0,w=null==b?void 0:b.isViewed,j=a&&o&&x,A=w&&!y&&a&&o&&!x;return e.preventEndUserReplies?i.n6:w&&A?u({},i.n6,{prompt:[{type:"paragraph",text:(0,s.Tl)("empty_suggestion_prompt")}]}):j?u({},b,{prompt:[{type:"paragraph",text:(0,s.Tl)("suggested_content_prompt")}]}):v?u({},r,{isInboundBotSuggestions:!0}):y?u({},m,{isQuickReplies:!0}):g?u({},n,{prompt:[{type:"paragraph",text:(0,s.Tl)("suggested_content_prompt")}],isPredictiveAnswers:!0}):i.n6}))},h=function(e){return(0,n.Mz)([l.Vy,function(t){return p(e)(t)}],(function(e,t){return e?null:t.suggestionParts?t.suggestionParts:null}))}},32764:function(e,t,r){"use strict";r.d(t,{Ff:function(){return m},IC:function(){return p},Ow:function(){return h},Xi:function(){return b},d_:function(){return v},jM:function(){return w},me:function(){return x},sH:function(){return c},yB:function(){return j},zS:function(){return f}});var n=r(86923),o=r(82272),i=r(61376),a=r(99336),s=r(72977);var l={name:"qf1dz",styles:"margin-left:45px;position:relative"},u={name:"1jcxgks",styles:"padding-left:45px;position:relative"},c=(0,n.Ay)("div",{target:"ezy7gx811"})((function(e){var t=e.isInline,r=e.isBorderless;return!t&&!r&&u})," ",(function(e){return e.isBorderless&&l})," ",(function(e){var t=e.isInline,r=e.theme;return t&&(0,n.AH)(o.o," ",i.C.className," &,",a.sC.className," &,.intercom-comment &{box-shadow:",r.shadowXSmall,";margin-bottom:10px;}")})," ",(function(e){return e.isMessage&&(0,n.AH)("width:100%;padding-left:0;",A.className,"{padding:21px 30px;}",f.className,"{margin-bottom:8px;font-size:20px;}",w.className,"{font-size:14px;line-height:20px;}",h.className,"{height:26px;font-size:13px;}",v.className,"{margin-right:8px;}",x.className,"{width:calc(100% - 32px);padding-top:3px;}")})," ",(function(e){var t=e.theme,r=e.isBorderless,o=e.isInline;return(!r&&!o||r||o)&&(0,n.AH)(d.className,"{display:block;position:relative;overflow:hidden;background-color:",t.containerBaseNeutral,";transition:all 0.12s ease-out;text-decoration:none!important;&:first-of-type{",(0,s.HF)({theme:t})," border-radius:3px 3px 0 0;}&:last-child{border-radius:3px;}}",A.className,"{padding:20px;}",f.className,"{font-size:14px;line-height:1.2;overflow:wrap;display:flex;align-items:center;justify-content:center;gap:4px;font-weight:600;&,&:visited{color:",t.textDefault,";}&[type='educate.help_center']{text-align:center;}}",w.className,"{color:",t.textDefault,";font-size:13px;line-height:1.38;",s.IY,";}",h.className,"{margin-top:11px;}",v.className,"{display:inline-block;margin-right:8px;}",x.className,"{width:calc(100% - 32px);display:inline-block;vertical-align:middle;color:",t.textMuted,";line-height:16px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;span{white-space:nowrap;}}")}),";"),d=(0,n.Ay)("a",{target:"ezy7gx810"})((function(e){var t=e.theme;return e.isGrouped&&(0,n.AH)("border-bottom:1px solid ",t.borderEmphasisNeutral,";&:last-child{border-bottom:none;}&:hover{background-color:",t.containerEmphasisNeutral,";transform:none;}",h.className,"{margin-top:5px;}",A.className,"{padding:15px 20px;}")}),";"),f=(0,n.Ay)("div",{target:"ezy7gx89"})(),p=(0,n.Ay)("span",{target:"ezy7gx88"})({name:"6jwybp",styles:"height:16px"}),h=(0,n.Ay)("div",{target:"ezy7gx87"})(),m=(0,n.Ay)("span",{target:"ezy7gx86"})(),v=(0,n.Ay)("div",{target:"ezy7gx85"})(),y={name:"ac0snl",styles:"position:absolute;left:0;bottom:10px"},g={name:"10ltq6i",styles:"bottom:0px"},b=(0,n.Ay)("div",{target:"ezy7gx84"})((function(e){return e.isBorderless&&g})," ",(function(e){return!e.isBorderless&&y}),";"),x=(0,n.Ay)("div",{target:"ezy7gx83"})({name:"vh5nmu",styles:"font-size:13px"}),w=(0,n.Ay)("div",{target:"ezy7gx82"})(),j=(0,n.Ay)("div",{target:"ezy7gx81"})("text-align:center;color:",(0,n.w4)("textMuted"),";font-size:13px;clear:both;padding-top:0;padding-bottom:12px;"),A=(0,n.Ay)("div",{target:"ezy7gx80"})("@media (-ms-high-contrast: active){border:1px solid ",(0,n.w4)("borderNeutral"),";}")},15776:function(e,t,r){"use strict";r.d(t,{w:function(){return p}});var n=r(86923),o=r(99336),i=r(45134),a=r(58468),s=r(65252),l=r(26639),u=r(55239);var c={name:"14br8q4",styles:"float:none;padding-left:0;width:100%;margin-top:8px"},d={name:"191fc13",styles:"width:calc(100% - 100px)"},f={name:"bv6zur",styles:"margin-bottom:8px;width:100%;box-sizing:border-box"},p=(0,n.Ay)("div",{target:"e1a7e1h30"})("position:relative;text-align:left;",(function(e){return e.isUser&&(0,n.AH)("/* @noflip */float:right;padding-left:48px;width:calc(100% - 48px);",l.W.className,"{/* @noflip */float:right;}")})," ",(function(e){var t=e.isUser,r=e.isSingleBlock;return t&&r&&(0,n.AH)(i.F.className,"{/* @noflip */float:right;}",u.n.className,"{/* @noflip */float:right;}")})," ",(function(e){return e.isAdmin&&(0,n.AH)("/* @noflip */float:left;padding-left:45px;width:calc(100% - 45px);",u.n.className,"{/* @noflip */float:left;}")})," ",(function(e){var t=e.isUser,r=e.isAdmin;return!t&&!r&&(0,n.AH)("/* @noflip */float:left;padding-left:48px;",l.W.className,"{/* @noflip */float:left;}")})," ",(function(e){var t=e.theme,r=e.hasAvatar,i=e.isBorderless;return t.isLeftAlign&&r&&i&&!t.isMobileSize&&(0,n.AH)("margin-left:55px;",a.C.className,",",o.ob.className,"{/* @noflip */left:-10px;}")})," ",(function(e){return e.isBorderless&&f})," ",(function(e){var t=e.isAdmin,r=e.isBorderless;return t&&r&&(0,n.AH)("/* @noflip */float:right;",s.j.className,"{padding:0px;margin-top:6px;}")})," ",(function(e){var t=e.isUser,r=e.isBorderless,o=e.theme;return t&&r&&(0,n.AH)(s.j.className,"{float:none;color:",o.isPrimaryColorAsTheme?o.textMuted:o.textOnInverse,";opacity:0.5;width:auto;}",s.J.className,"{float:none;}")})," ",(function(e){return e.theme.tabNavigation&&(0,n.AH)("padding-bottom:20px;",a.C.className,"{bottom:30px;}")})," ",(function(e){var t=e.theme,r=e.isBorderless;return t.isLeftAlign&&r&&d})," ",(function(e){var t=e.theme,r=e.isAdmin,n=e.isBorderless;return r&&n&&t.isMobileBrowser&&c}),";")},49063:function(e,t,r){"use strict";r.d(t,{kn:function(){return p},j4:function(){return u},jd:function(){return d},gp:function(){return f},zC:function(){return c},hX:function(){return l}});var n=r(86923),o=r(72977),i=r.p+"images/search.4a61fc7e3b85fab94b7f.png",a=r.p+"images/search@2x.1fc443fdc28d62c7dce7.png",s=function(e){var t=function(e){var t=e.popoverType,r=e.shouldHideUploads,n=e.isBorderless,o="gif"===t?81:41;return r&&(o-=34),n&&(o+=19),e.theme.isRtlLocale&&n&&(o+=23),o}({popoverType:e.popoverType,shouldHideUploads:e.shouldHideUploads,isBorderless:e.isBorderless,theme:e.theme});return(0,n.AH)("right:",t,"px;")},l=(0,n.Ay)("div",{target:"e1v6ck15"})("z-index:",(0,o.fE)(3),";position:absolute;max-height:",260,"px;bottom:100%;right:calc(50% - 189px);box-shadow:0 1px 15px 1px ",(0,n.w4)("alphaBlack10"),";background-color:",(0,n.w4)("containerBaseNeutral"),";border-radius:6px;",(function(e){return e.isBorderless&&(0,n.AH)("height:",236,"px;top:",-236,"px;/* @noflip */right:7px;/* @noflip */left:calc(50% - 165px);")})," &.intercom-composer-popover{&-enter{opacity:0;transform:translateY(5px);}&-enter-active{opacity:1;transform:translateY(0);}&-exit{opacity:1;transform:translateY(0);}&-exit-active{opacity:0;transform:translateY(5px);}&-enter-active,&-exit-active{transition:opacity ease 200ms,transform ease 200ms;}}"),u=(0,n.Ay)("div",{target:"e1v6ck14"})("position:absolute;bottom:-8px;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid ",(0,n.w4)("borderNeutral"),";",s,";"),c=(0,n.Ay)("div",{target:"e1v6ck13"})("position:absolute;left:0;top:50%;width:100%;margin-top:-7px;font-size:14px;font-weight:bold;text-align:center;color:",(0,n.w4)("textDefault"),";"),d=(0,n.Ay)("div",{target:"e1v6ck12"})("position:absolute;top:0;left:20px;right:20px;height:40px;border-bottom:1px ",(0,n.w4)("borderEmphasisNeutral")," solid;",o.TD,";"),f=(0,n.Ay)("input",{target:"e1v6ck11"})((0,o.op)(i,a,"16px","16px")," background-position:0 12px;font-weight:normal;font-size:14px;color:",(0,n.w4)("textDefault"),";padding:10px 0 10px 25px;height:40px;width:100%;box-sizing:border-box;&::placeholder{color:",(0,n.w4)("textMuted"),";}"),p=(0,n.Ay)("div",{target:"e1v6ck10"})("position:absolute;top:40px;left:0;right:0;bottom:5px;padding:0 20px;overflow-y:scroll;",o.TD,";")},52271:function(e,t,r){"use strict";r.d(t,{$C:function(){return j},AC:function(){return S},C_:function(){return m},Hg:function(){return g},OO:function(){return v},cC:function(){return k},cT:function(){return O},di:function(){return C},lT:function(){return b},nc:function(){return w}});var n,o=r(86923),i=r(72977),a=r(18603);var s,l,u="normal",c=(0,o.i7)(n||(s=["\n 0% {\n opacity: 0;\n }\n\n 70% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"],l||(l=s.slice(0)),s.raw=l,n=s)),d={name:"3irtv8",styles:"position:relative;float:left;display:inline-block;cursor:pointer;opacity:0.8;transition:opacity 200ms ease;height:51px;margin-top:2px;&:hover{opacity:1;}&:before{position:absolute;top:20px;background-position:center;}svg{position:absolute;top:18px;}padding:0 6px"},f={name:"1fol78c",styles:"textarea{font-size:16px;}"},p={name:"1h3f2ms",styles:"textarea:focus{box-shadow:none;}"},h={name:"bigtx2",styles:"background:none"},m=(0,o.Ay)("div",{target:"e50zdj19"})("min-height:56px;max-height:200px;",(function(e){var t=e.theme;return!e.isBorderless&&(0,o.AH)("border-top:1px solid ",t.lightBorder,";")})," ",(function(e){var t=e.theme;return e.isBorderless&&(0,o.AH)("border:1px solid ",t.lightBorder,";background:",t.inputAlt,";")})," ",(function(e){return e.customerPrivacyPolicyEnabled&&(0,o.AH)("bottom:",a.B,"px;")})," textarea,pre{box-sizing:border-box;padding:18px;padding-right:100px;padding-left:",29,"px;width:100%;height:100%;font-family:",(0,o.w4)("fontSansSerif"),";font-size:",14,"px;font-weight:",u,";line-height:",1.33,";background-color:",(0,o.w4)("inputAlt"),";white-space:pre;white-space:pre-wrap;word-wrap:break-word;max-height:200px;overflow:hidden;",(function(e){return e.isBorderless&&h}),";}textarea{position:absolute;top:1;bottom:0;left:0;color:",(0,o.w4)("textDefault"),";background-color:",(0,o.w4)("inputAlt"),";resize:none;border:none;transition:background-color ease 200ms,box-shadow ease 200ms;outline-offset:-5px;overflow-y:auto;&::placeholder{color:",(0,o.w4)("textMuted"),";font-style:",(0,o.w4)("fontSansSerif"),";font-size:",14,"px;font-weight:",u,";line-height:",1.33,";}&:focus{background-color:",(0,o.w4)("inputAlt"),";box-shadow:0px 0px 100px 0px ",(0,o.w4)("alphaBlack10"),";}}pre{visibility:hidden;}",(function(e){var t=e.theme;return e.isBorderless&&(0,o.AH)("position:relative;border-radius:",t.notificationBorderRadiusPx,"px;box-shadow:none;animation:",c," 750ms ease;background-color:",t.inputAlt,";textarea,pre{padding-left:21px;}textarea{background-color:",t.inputAlt,";}textarea:focus{box-shadow:none;background-color:",t.inputAlt,";}")})," ",(function(e){var t=e.hasComposerSuggestionsLoading,r=e.hasComposerSuggestions;return(t||r)&&p})," ",(function(e){return e.theme.isMobileBrowser&&f}),"@media (-ms-high-contrast: active){border:1px solid ",(0,o.w4)("borderNeutral"),";}"),v=(0,o.Ay)("div",{target:"e50zdj18"})("position:absolute;top:0;right:",21,"px;",(function(e){return e.isBorderless&&(0,o.AH)("right:",20,"px;")}),";"),y=function(e){var t=e.theme,r=e.showEmojiPicker,n=e.isPrimaryColorReadable;return(0,o.AH)(d," ",r&&(0,o.AH)("svg circle{fill:",n?t.appColor:t.iconMuted,";stroke:",n?t.appColor:t.iconMuted,";}"),";")},g=(0,o.Ay)("button",{target:"e50zdj17"})(y,";"),b=(0,o.Ay)("span",{target:"e50zdj16"})(y,";"),x=function(e){var t=e.theme,r=e.showGifPicker,n=e.isPrimaryColorReadable;return(0,o.AH)(d," ",r&&(0,o.AH)("svg path{fill:",n?t.appColor:t.iconMuted,";}"),";")},w=(0,o.Ay)("button",{target:"e50zdj15"})(x,";"),j=(0,o.Ay)("span",{target:"e50zdj14"})(x,";"),A=function(){return d},S=(0,o.Ay)("div",{target:"e50zdj13"})(A," svg{path{fill:none;}}"),k=(0,o.Ay)("span",{target:"e50zdj12"})(A,";"),C=(0,o.Ay)("button",{target:"e50zdj11"})(d," ",i.TD," ",(function(e){var t=e.theme,r=e.isPrimaryColorReadable;return(0,o.AH)("svg path{fill:",r?t.appColor:t.iconMuted,";}")}),";"),O=(0,o.Ay)("span",{target:"e50zdj10"})({name:"1r5gb7q",styles:"display:inline-block"})},35867:function(e,t,r){"use strict";r.d(t,{q:function(){return w},K:function(){return d}});var n=r(86923),o=r(72977),i=r(99336),a=r(65252),s=r.p+"images/warning-icon.4bbce092cc2b54bc59a1.png",l=r.p+"images/warning-icon@2x.f9f4cc2992785f21b4a8.png",u=r(26639),c=r(15776);var d="200ms",f={name:"eu3yxz",styles:"padding-left:45px"},p={name:"12d7z7x",styles:"*{cursor:pointer;}"},h={name:"mpkj0c",styles:"padding-bottom:8px"},m={name:"1u53ekv",styles:"padding-bottom:16px"},v={name:"1u53ekv",styles:"padding-bottom:16px"},y={name:"1ml9tbj",styles:"padding-bottom:2px"},g={name:"1ml9tbj",styles:"padding-bottom:2px"},b={name:"mpkj0c",styles:"padding-bottom:8px"},x={name:"lb05wl",styles:"&.intercom-conversation-part-enter{transform:translateY(0);}"},w=(0,n.Ay)("div",{target:"eqhze2h0"})(o.t6," padding-bottom:16px;",(function(e){var t=e.isAdmin,r=e.flatConversationStyle;return t&&!r&&(0,n.AH)("&.intercom-conversation-part-enter{opacity:0;}&.intercom-conversation-part-enter.intercom-conversation-part-enter-active{opacity:1;transition:opacity ",d,";}",a.j.className,"{/* @noflip */padding-left:45px;}")})," ",(function(e){var t=e.isSelf,r=e.conversationHasScrolled;return t&&(0,n.AH)("&.intercom-conversation-part-enter{opacity:0;transform:translateY(40px);}&.intercom-conversation-part-enter.intercom-conversation-part-enter-active{opacity:1;transform:translateY(0);transition:opacity ",d,",transform ",d,";}",r&&x," ",a.j.className,"{/* @noflip */float:right;}",a.J.className,"{/* @noflip */float:right;}")})," ",(function(e){var t=e.isAdmin,r=e.isSelf;return!t&&!r&&(0,n.AH)(a.j.className,"{/* @noflip */padding-left:45px;}")})," ",(function(e){return e.grouped&&b})," ",(function(e){var t=e.newConversationStylingEnabled,r=e.groupingPosition,n=e.flatConversationStyle;return t&&!n&&("middle"===r||"top"===r)&&g})," ",(function(e){var t=e.newConversationStylingEnabled,r=e.groupingPosition,n=e.isBorderless,o=e.isSelf;return t&&n&&o&&("middle"===r||"top"===r)&&y})," ",(function(e){var t=e.newConversationStylingEnabled,r=e.isBorderless,n=e.isAdmin;return t&&r&&n&&v})," ",(function(e){var t=e.newConversationStylingEnabled,r=e.groupingPosition;return t&&("bottom"===r||"standalone"===r)&&m})," ",(function(e){var t=e.isLastPart,r=e.isBorderless;return t&&(0,n.AH)("padding-bottom:24px;",r&&h,";")})," ",(function(e){var t=e.theme,r=e.isFailedPart,i=e.isRetryable;return r&&(0,n.AH)(a.j.className,"{",(0,o.op)(s,l,"11px","11px")," padding-left:15px;background-position:left 7px;background-repeat:no-repeat;color:",t.textError,";width:auto;}",i&&p,";")})," ",(function(e){var t=e.isAdmin,r=e.isBorderless,o=e.newConversationStylingEnabled;return t&&r&&!o&&(0,n.AH)(i.sC.className," ",a.j.className,"{padding:5px 20px;}")})," ",(function(e){var t=e.isTicketStatusUpdate,r=e.isBorderless,n=e.newConversationStylingEnabled;return t&&r&&!n&&f})," ",i.sC.className,"+",c.w.className,"{",u.W.className,"{padding-bottom:8px;}}")},5945:function(e,t,r){"use strict";r.d(t,{Bp:function(){return l},ES:function(){return u},ND:function(){return i}});var n=r(86923),o=r(35867);var i=(0,n.Ay)("div",{target:"e1lfi5hh2"})({name:"1es4p3n",styles:"display:flex;flex-direction:column;flex-grow:1;flex-shrink:0;justify-content:space-between;overflow-anchor:none;height:auto;position:relative;z-index:2"}),a={name:"1vf2ozo",styles:"opacity:0.2"},s={name:"1wx2bp",styles:"transition:none"},l=(0,n.Ay)("div",{target:"e1lfi5hh1"})("padding:24px ",(function(e){var t=e.theme;return e.useUpdatedConversationPadding?t.conversationHorizontalPadding:t.globalHorizontalPadding}),"px 0;display:flex;flex-flow:row wrap;transition:transform ",o.K,";overflow-anchor:none;>*{flex:1 100%;max-width:100%;}",(function(e){return e.shouldDisableScrollingAnimation&&s})," ",(function(e){var t=e.isBorderless,r=e.isFaded;return t&&(0,n.AH)("padding:0;",r&&a,";")}),";"),u=(0,n.Ay)("div",{target:"e1lfi5hh0"})("text-align:center;color:",(0,n.w4)("textMuted"),";font-size:13px;clear:both;padding-top:14px;padding-bottom:14px;&:first-of-type{padding-top:0px;}")},66501:function(e,t,r){"use strict";r.d(t,{E:function(){return i},t:function(){return s}});var n=r(86923),o=r(79868);var i=(0,n.Ay)("div",{target:"edo8wak1"})("max-width:280px;position:relative;",o.w5.className,"{margin-top:8px;margin-bottom:8px;margin-left:45px;}",(function(e){return e.isBorderless&&(0,n.AH)(o.w5.className,"{margin-left:45px;}")})," ",(function(e){return e.useNewConversationStyle&&(0,n.AH)("margin-bottom:0;",o.w5.className,"{margin-left:0;margin-top:0;margin-bottom:0;}")}),";"),a={name:"ac0snl",styles:"position:absolute;left:0;bottom:10px"},s=(0,n.Ay)("div",{target:"edo8wak0"})((function(e){return!e.isBorderless&&a}),";")},79868:function(e,t,r){"use strict";r.d(t,{AM:function(){return f},Iu:function(){return d},Qy:function(){return u},WS:function(){return l},ZM:function(){return s},rs:function(){return h},tV:function(){return p},u9:function(){return c},w5:function(){return a}});var n=r(86923),o=r(72977),i=r(42937);var a=(0,n.Ay)("div",{target:"e73xzvp8"})("margin:30px 0 30px 0;position:relative;text-align:left;background-color:",(0,n.w4)("containerBaseNeutral"),";border-radius:5px;color:",(0,n.w4)("textDefault"),";transition:height 200ms ease-in-out;height:",(0,n.xk)("height"),"px;",o.HF," ",(function(e){var t=e.useNewConversationStyle,r=e.groupingPosition,o=e.theme;return t&&(0,n.AH)("margin-bottom:4px;box-shadow:none;border-radius:",(0,i.EF)(r),";border:1px solid ",o.borderEmphasisNeutral,";background:",o.alphaWhite90,";")}),";"),s=(0,n.Ay)("div",{target:"e73xzvp7"})({name:"vxuddk",styles:"padding:24px"}),l=(0,n.Ay)("div",{target:"e73xzvp6"})("font-size:14px;color:",(0,n.w4)("textDefault"),";line-height:22px;text-align:center;margin-bottom:3px;"),u=(0,n.Ay)("div",{target:"e73xzvp5"})("font-size:13px;line-height:19px;color:",(0,n.w4)("textMuted"),";text-align:center;"),c=(0,n.Ay)("div",{target:"e73xzvp4"})("border-top:1px solid ",(0,n.w4)("borderEmphasisNeutral"),";color:",(0,n.w4)("textMuted"),";font-size:14px;line-height:19px;max-height:140px;overflow-y:auto;padding:16px 24px;"),d=(0,n.Ay)("div",{target:"e73xzvp3"})({name:"1jba3gn",styles:"padding:20px 20px 0"}),f=(0,n.Ay)("div",{target:"e73xzvp2"})({name:"1jtfsfi",styles:"position:relative;margin-bottom:5px"}),p=(0,n.Ay)("div",{target:"e73xzvp1"})("font-size:14px;line-height:24px;color:",(0,n.w4)("textDefault"),";transition:opacity 300ms 1000ms,max-height 400ms 1000ms;position:static;max-height:48px;text-align:center;"),h=(0,n.Ay)("div",{target:"e73xzvp0"})({name:"nore23",styles:"margin:8px 10px 6px;display:flex;justify-content:space-between"})},23043:function(e,t,r){"use strict";r.d(t,{wT:function(){return E},mc:function(){return x},aV:function(){return S},Vj:function(){return _},Mv:function(){return I},O6:function(){return N},o8:function(){return V},$e:function(){return G},R4:function(){return U},Or:function(){return F},_r:function(){return H},HF:function(){return D},CJ:function(){return A},UC:function(){return T},hE:function(){return w},rZ:function(){return P},_e:function(){return j}});var n=r(86923),o=r(96540),i=r(55787),a=r(83034),s=r(74848),l=(0,o.forwardRef)((function(e,t){var r=e.value,n=void 0===r?"":r,l=e.label,u=void 0===l?"":l,c=e.className,d=void 0===c?"":c,f=e.focused,p=e.style,h=e.onClick,m=(0,o.useRef)(null);(0,o.useEffect)((function(){f&&m.current&&m.current.focus()}),[f]);return(0,s.jsx)(i.CS.button,{onClick:function(){h&&h(n)},value:"string"==typeof n||"number"==typeof n?n:null==n?"":String(n),style:p,className:d,ref:(0,a.A)(m,t),children:u})}));l.displayName="Button";var u,c=l,d=r(78253);var f,p,h=(0,n.i7)(u||(f=["\n 0% {\n opacity: 0;\n }\n 70% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],p||(p=f.slice(0)),f.raw=p,u=f)),m={name:"v5fxai",styles:"border-radius:12px;background:rgba(255, 255, 255, 0.04);backdrop-filter:blur(100px);margin:14px 20px;padding:12px 12px 2px"},v={name:"14q70p4",styles:"/* @noflip */padding:0 0 0 45px;margin:0;background:none"},y={name:"1886e0j",styles:"padding-top:13px;padding-bottom:6px"},g={name:"5c1ew",styles:"transition:background 100ms,box-shadow 100ms"},b={name:"35nbzl",styles:"transition:padding 100ms,background 100ms,box-shadow 100ms"},x=(0,n.Ay)("div",{target:"eqq3twc10"})("position:relative;background:",(0,n.w4)("baseAlpha"),";padding:0 26px;margin-bottom:-3px;z-index:1;",(function(e){return e.isBorderless?b:g})," ",(function(e){return e.suggestionsVisible&&y})," ",(function(e){var t=e.suggestionsVisible,r=e.isTypeaheadSuggestions,o=e.isBorderless,i=e.theme;return t&&r&&!o&&(0,n.AH)("z-index:2;margin-top:3px;box-shadow:inset 0px 9px 8px -10px rgba(38, 76, 152, 0.2),inset 0px -9px 8px -10px rgba(38, 76, 152, 0.2);background:",i.containerBaseNeutral,";")})," ",(function(e){return e.isBorderless&&v})," ",(function(e){var t=e.isBorderless,r=e.suggestionsVisible;return t&&r&&(0,n.AH)("padding-top:10px;animation:",h," 750ms ease;")})," ",(function(e){return e.useGroupedUI&&m}),";"),w=(0,n.Ay)("h3",{target:"eqq3twc9"})("display:block;color:",(0,n.w4)("textMuted"),";font-size:14px;padding:8px 5px;/* @noflip */text-align:right;"),j=(0,n.Ay)("h3",{target:"eqq3twc8"})("display:block;color:",(0,n.w4)("textDefault"),";font-size:14px;margin-bottom:12px;line-height:20px;",(function(e){var t=e.foregroundColor;return(0,n.AH)("color:",t,";")}),";"),A=(0,n.Ay)("div",{target:"eqq3twc7"})({name:"wy41lc",styles:"border-top:none;position:relative"}),S=600,k={name:"1h8nup8",styles:"overflow:visible"},C={name:"1wx2bp",styles:"transition:none"},O={name:"44j6sp",styles:"margin-top:12px;margin-bottom:-6px"},T=(0,n.Ay)("div",{target:"eqq3twc6"})("position:relative;transition:height ",S,"ms;overflow:hidden;height:",(0,n.xk)("height"),"px;max-width:",(0,n.w4)("messengerWidthPx"),"px;",(function(e){return e.isInline&&O})," ",(function(e){var t=e.height,r=e.isInline;return t>0&&!r&&(0,n.AH)("min-height:",Math.max(t,52),"px;")})," ",(function(e){return e.isInboundBot&&C})," ",(function(e){var t=e.isExpanded,r=e.theme;return t&&(0,n.AH)("max-width:",r.messengerExpandedWidthPx,"px;")})," ",(function(e){var t=e.useNewConversationalUI,r=e.isInline;return(t||r)&&k}),";"),E=10,P=10,_=12,I=10,N=14,B={name:"86snxc",styles:"/* @noflip */left:0"},M={name:"18lthe7",styles:"/* @noflip */right:0"},L={name:"18lthe7",styles:"/* @noflip */right:0"},R={name:"1r5gb7q",styles:"display:inline-block"},z={name:"4zleql",styles:"display:block"},D=(0,n.Ay)(c,{target:"eqq3twc5"})("position:absolute;top:0;font-size:14px;line-height:18px;padding:",10,"px ",I,"px;border-radius:6px;background-color:",(0,n.w4)("quickReplyBackgroundColor"),";color:",(0,n.w4)("quickReplyTextColor"),";transition:background-color 250ms ease-in-out;",(function(e){return e.isTypeaheadSuggestion?z:R})," &:hover{background-color:",(0,n.w4)("appColor"),";color:",(0,n.w4)("textOnInverse"),";}",(function(e){var t=e.theme;return"light"===t.primaryType&&(0,n.AH)("&:hover{color:",t.textDefault,";}")})," ",(function(e){var t=e.theme,r=e.useNewConversationalUI,o=e.isInline;return r||o?(0,n.AH)("border-radius:40px;background-color:",t.containerAlt,";border:1px solid ",t.borderNeutral,";box-shadow:",t.shadowMedium,";padding:",o?7:10,"px ",N,"px;"):L})," ",(function(e){return"right"===e.buttonAlignment&&M})," ",(function(e){return"left"===e.buttonAlignment&&B}),";"),H=(0,n.Ay)("div",{target:"eqq3twc4"})({name:"18l8tfr",styles:"position:absolute;visibility:hidden;pointer-events:none;opacity:0;left:0;right:0;height:0"}),F=(0,n.Ay)("div",{target:"eqq3twc3"})({name:"1r5gb7q",styles:"display:inline-block"}),V=(0,n.Ay)("div",{target:"eqq3twc2"})({name:"1bxbmsj",styles:"padding:3px 0 16px;/* @noflip */text-align:right"}),U=(0,n.Ay)("div",{target:"eqq3twc1"})("display:inline-block;font-size:14px;color:",(0,n.w4)("textMuted"),";cursor:pointer;line-height:20px;"),G=(0,n.Ay)(d.A,{target:"eqq3twc0"})("height:10px;width:10px;margin-left:5px;text-align:right;vertical-align:middle;cursor:pointer;path{fill:",(0,n.w4)("textMuted"),";}")},68266:function(e,t,r){"use strict";r.d(t,{$U:function(){return c},Dq:function(){return u},Gw:function(){return g},Km:function(){return x},NV:function(){return v},T0:function(){return f},Yk:function(){return p},jS:function(){return b},v3:function(){return d}});var n,o=r(86923),i=r(61041),a=r(17905);var s,l,u=5,c=7,d=10,f=300,p=d+120,h="cubic-bezier(0.165, 0.84, 0.44, 1)",m=(0,o.i7)(n||(s=["\n 0% {\n opacity: 0;\n transform: translateY(20px);\n }\n 30% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"],l||(l=s.slice(0)),s.raw=l,n=s)),v=(0,o.Ay)("div",{target:"ep19hdq3"})("padding:0 ",u,"px;"),y={name:"bqgisr",styles:"box-shadow:0 2px 8px 0 rgba(35, 47, 53, 0.2)"},g=(0,o.Ay)("div",{target:"ep19hdq2"})("position:relative;height:",(0,o.xk)("height"),"px;width:",340,"px;max-width:100%;padding-bottom:",d,"px;",a.jt.className,"{height:",120,"px;",(function(e){return e.theme.isMobile&&y}),";}",i.Eg.className,"{animation:",m," 0.25s ",h,";}"),b=(0,o.Ay)("div",{target:"ep19hdq1"})("box-sizing:border-box;position:absolute;bottom:",d,"px;right:0px;width:100%;backface-visibility:hidden;transform-origin:top center;transition:transform ",f,"ms ",h,";",(function(e){return 2===e.position&&(0,o.AH)("transform:translate3d(0, -",c,"px, 0) scale(0.95);")})," ",(function(e){return 3===e.position&&(0,o.AH)("transform:translate3d(0, -",2*c,"px, 0) scale(0.9);")})," ",(function(e){var t=e.position,r=e.expanded;return 2===t&&r&&(0,o.AH)("transition-delay:150ms;transform:translate3d(0, -",p,"px, 0) scale(1);")})," ",(function(e){var t=e.position,r=e.expanded;return 3===t&&r&&(0,o.AH)("transition-delay:150ms;transform:translate3d(0, -",2*p,"px, 0) scale(1);")}),";"),x=(0,o.Ay)("div",{target:"ep19hdq0"})("padding-top:",d,"px;:after{content:'';clear:both;display:table;}",i.cA.className,"{transition:opacity ",f/1.5,"ms ",h,";",(function(e){return e.expandAnimationInProgress&&(0,o.AH)("transition-delay:",f,"ms;")}),";}")},58708:function(e,t,r){"use strict";r.d(t,{w$:function(){return g},vl:function(){return y},ao:function(){return L},Jd:function(){return M},gZ:function(){return D},j3:function(){return z},rQ:function(){return B},No:function(){return v},n9:function(){return W},Tu:function(){return m},Ve:function(){return $},Rd:function(){return E},Oz:function(){return b},Yh:function(){return j},TX:function(){return S},bR:function(){return I},o8:function(){return w},Sm:function(){return F},ok:function(){return V},z1:function(){return G},iW:function(){return p},WO:function(){return C},PT:function(){return f},W6:function(){return h},$w:function(){return T},S_:function(){return P}});var n=r(86923),o=r(72977),i=r.p+"images/next-icon.b010feb9a0ce3d2f9208.png",a=r.p+"images/next-icon@2x.ed4b169122394c03a445.png",s=r.p+"images/check-icon.da9c45de7d0f8cad78ca.png",l=r.p+"images/check-icon@2x.61cf8b8d3c4e1f7d9466.png",u=r(51235);var c={name:"1wyubxg",styles:"margin-top:0;margin-bottom:5px"},d={name:"1e8ddzi",styles:"margin-top:5px;margin-bottom:0"},f=(0,n.Ay)("div",{target:"e584tag25"})("margin:30px 0 30px 0;padding:16px 20px 20px;color:",(0,n.w4)("textDefault"),";position:relative;border-radius:5px;text-align:left;background-color:",(0,n.w4)("containerBaseNeutral"),";",(function(e){var t=e.isBorderless,r=e.lastPart;return t&&r&&d})," ",(function(e){var t=e.isBorderless,r=e.nextPartByAdmin;return t&&r&&c})," ",(function(e){return e.isSuccessful&&(0,n.AH)(T.className,"{position:absolute;top:0;opacity:0;visibility:hidden;max-height:24px;}",P.className,"{position:static;opacity:1;visibility:visible;max-height:48px;}")}),";"),p=(0,n.Ay)("span",{target:"e584tag24"})("font-size:13px;line-height:20px;color:",(0,n.w4)("textMuted"),";margin-right:39px;&:last-child{margin-right:0;}&:hover{color:",(0,n.w4)("textOnInverse"),";border-bottom:1px solid;}",(function(e){var t=e.theme;return e.isSelected&&(0,n.AH)("color:",t.textDefault,";border-bottom:1px solid;")}),";"),h=(0,n.Ay)("div",{target:"e584tag23"})({name:"1jtfsfi",styles:"position:relative;margin-bottom:5px"}),m=(0,n.Ay)("div",{target:"e584tag22"})("width:100%;position:relative;float:left;",f.className,"{margin-top:6px;margin-bottom:0;margin-left:45px;padding-left:0;}",p.className,"{margin-right:19px;}",(function(e){return e.isBorderless&&(0,n.AH)(f.className,"{margin-left:45px;}",p.className,"{margin-right:9px;}")}),";"),v=(0,n.Ay)("div",{target:"e584tag21"})({name:"6qbw48",styles:"margin-top:8px;margin-bottom:8px;width:100%;position:relative;float:left"}),y=(0,n.Ay)("div",{target:"e584tag20"})("padding:26px 24px 24px;margin-left:0px;border-radius:20px;font-size:14px;line-height:1.4;color:",(0,n.w4)("textDefault"),";overflow:hidden;",o.Hs," ",(function(e){var t=e.theme;return e.isBorderless&&(0,n.AH)("box-shadow:",t.shadowMedium,";border-radius:",t.notificationBorderRadiusPx,";border-color:",t.borderNeutral,";background-color:",t.containerBaseNeutral,";margin-left:45px;")}),";"),g=(0,n.Ay)("div",{target:"e584tag19"})({name:"ac0snl",styles:"position:absolute;left:0;bottom:10px"}),b=(0,n.Ay)("div",{target:"e584tag18"})({name:"cy0b9q",styles:"position:relative;display:table;width:100%;div{display:table-cell;vertical-align:top;}"}),x={name:"abmacl",styles:"width:1px;transition:width 300ms 1000ms"},w=(0,n.Ay)("div",{target:"e584tag17"})("width:40px;",(function(e){return e.hasChannel&&x}),";"),j=(0,n.Ay)(u.l,{target:"e584tag16"})({name:"1bpw14p",styles:"position:absolute;top:12px;left:12px;z-index:1;transition:transform 300ms"}),A={name:"1tepm2d",styles:"input{padding-left:33px;}"},S=(0,n.Ay)("div",{target:"e584tag15"})("position:relative;input{position:absolute;box-sizing:border-box;height:40px;width:100%;padding:0 12px;font-size:14px;font-family:",(0,n.w4)("fontSansSerif"),";color:",(0,n.w4)("textDefault"),";border-radius:4px 0 0 4px;border:1px solid ",(0,n.w4)("borderEmphasisNeutral"),";border-right:0;appearance:none;transition:border 300ms,color 400ms 600ms,padding 300ms 600ms,height 400ms 1000ms;&:disabled{opacity:0.7;}}",(function(e){return e.isPhone&&A})," ",(function(e){var t=e.hasError,r=e.theme;return t&&(0,n.AH)("input{border:1px solid ",r.borderError,";background-color:",r.containerError,";}")})," ",(function(e){var t=e.theme;return e.isSuccessful&&(0,n.AH)("input{border:1px solid ",t.borderNeutral,";border-right:0;padding:0;height:20px;font-weight:400;color:",t.textDefault,";text-fill-color:",t.textDefault,";overflow:hidden;text-overflow:ellipsis;&:autofill{box-shadow:0 0 0px 1000px ",t.containerBaseNeutral," inset;text-fill-color:",t.textDefault,"!important;}}",j.className,"{transform:scale(0);}")}),";"),k={name:"14j33fn",styles:"padding-left:33px"},C=(0,n.Ay)("span",{target:"e584tag14"})("position:absolute;box-sizing:border-box;height:40px;width:100%;padding:4px 12px 0;font-size:14px;font-weight:400;font-family:",(0,n.w4)("fontSansSerif"),";line-height:32px;color:",(0,n.w4)("textMuted"),";cursor:text;overflow:hidden;text-overflow:ellipsis;z-index:1;",(function(e){return e.isPhone&&k}),";"),O={name:"3ix1vd",styles:"opacity:1"},T=(0,n.Ay)("div",{target:"e584tag13"})("font-size:14px;line-height:24px;color:",(0,n.w4)("textDefault"),";transition:opacity 300ms 1000ms,max-height 400ms 1000ms;position:static;max-height:48px;",(function(e){return e.isSuccessful&&O}),";"),E=(0,n.Ay)("div",{target:"e584tag12"})("font-size:14px;line-height:19px;color:",(0,n.w4)("textMuted"),";text-overflow:ellipsis;overflow:hidden;"),P=(0,n.Ay)("div",{target:"e584tag11"})("font-size:14px;line-height:24px;color:",(0,n.w4)("textDefault"),";transition:opacity 300ms 1000ms,max-height 400ms 1000ms;position:absolute;top:0;opacity:0;visibility:hidden;max-height:24px;"),_={name:"10i7m94",styles:"opacity:0.7"},I=(0,n.Ay)("div",{target:"e584tag10"})("width:35px;height:40px;border-radius:0 4px 4px 0;background-color:",(0,n.w4)("appColor"),";box-shadow:0 1px 2px 0 ",(0,n.w4)("elevation2"),";transition:border-radius 300ms,opacity 300ms 600ms,height 400ms 1000ms;&:hover{opacity:0.7;}",(function(e){return e.isDisabled&&_})," ",(function(e){var t=e.hasChannel,r=e.theme;return t&&(0,n.AH)("background-color:",r.fillSuccess,";opacity:0;border-radius:4px;height:20px;&:hover{opacity:0;}",F.className,"{opacity:0;transform:rotate(270deg) translate(-4px, -3px);}",V.className,"{opacity:1;transform:rotate(0deg) scale(1);}")}),";"),N={name:"xfpdpv",styles:".intercom-notification-channel-collector-card-controls-prompt{position:absolute;top:0;opacity:0;visibility:hidden;max-height:24px;}.intercom-notification-channel-collector-card-controls-message{position:static;opacity:1;visibility:visible;max-height:48px;}.intercom-notification-channel-collector-card-controls-channels{height:0;opacity:0;}"},B=(0,n.Ay)("div",{target:"e584tag9"})((function(e){return e.isSaved&&N}),";"),M=(0,n.Ay)("div",{target:"e584tag8"})("font-size:13px;line-height:20px;height:30px;color:",(0,n.w4)("textMuted"),";transition:opacity 300ms 300ms,height 400ms 1000ms;"),L=(0,n.Ay)("span",{target:"e584tag7"})("margin-right:20px;color:",(0,n.w4)("textMuted"),";&:hover{color:",(0,n.w4)("textDefault"),";border-bottom:1px solid;}",(function(e){var t=e.theme;return e.isSelected&&(0,n.AH)("color:",t.textDefault,";border-bottom:1px solid;")}),";"),R=function(e){var t=e.theme;return(0,n.AH)("margin-bottom:6px;font-size:14px;line-height:24px;max-height:48px;color:",t.textDefault,";transition:opacity 300ms 1000ms,max-height 400ms 1000ms;")},z=(0,n.Ay)("div",{target:"e584tag6"})(R,";"),D=(0,n.Ay)("div",{target:"e584tag5"})(R," position:absolute;top:0;opacity:0;visibility:hidden;max-height:24px;"),H={name:"zcwqmz",styles:"position:absolute;top:0;bottom:0;width:35px;height:40px;transition:transform 300ms linear,opacity 150ms linear;background-position:center;background-repeat:no-repeat"},F=(0,n.Ay)("div",{target:"e584tag4"})(H," ",(0,o.op)(i,a,"8px","13px")," opacity:1;"),V=(0,n.Ay)("div",{target:"e584tag3"})(H," ",(0,o.op)(s,l,"18px","14px")," opacity:0;transform:rotate(-90deg) scale(0.5);"),U={name:"46s2pb",styles:"height:0;opacity:0"},G=(0,n.Ay)("div",{target:"e584tag2"})("height:30px;opacity:1;transition:opacity 300ms 300ms,height 400ms 1000ms;",(function(e){return e.isSuccessful&&U}),";"),q={name:"ac0snl",styles:"position:absolute;left:0;bottom:10px"},W=(0,n.Ay)("div",{target:"e584tag1"})((function(e){return!e.isBorderless&&q}),";"),$=(0,n.Ay)("div",{target:"e584tag0"})("color:",(0,n.w4)("textDisabled"),";font-size:14px;text-align:center;border-top:1px solid ",(0,n.w4)("borderEmphasisNeutral"),";padding-top:16px;")},51457:function(e,t,r){"use strict";r.d(t,{AJ:function(){return g},E9:function(){return j},M3:function(){return O},Wr:function(){return b},gE:function(){return x},kG:function(){return A},ou:function(){return C}});var n,o,i,a,s,l=r(86923),u=r(15561),c=r(72977);function d(e,t){return t||(t=e.slice(0)),e.raw=t,e}var f=""+(0,l.w4)("alphaBlack10"),p=function(e){var t=e.theme;return(0,l.AH)("box-shadow:-1px 1px 0px ",t.borderEmphasisNeutral,";margin-left:25px;")},h=(0,l.i7)(n||(n=d(["\n 0% {\n opacity: 0;\n transform: translateY(20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n position: initial;\n }\n"]))),m=(0,l.i7)(o||(o=d(["\n 0% {\n opacity: 0;\n transform: translateY(-20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"]))),v=(0,l.i7)(i||(i=d(["\n 0% {\n opacity: 0;\n transform: translateX(-20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"]))),y=(0,l.i7)(a||(a=d(["\n 0% {\n opacity: 0;\n transform: translateX(20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"]))),g=(0,l.Ay)(u.Ay,{target:"e1abe4l86"})({name:"fpmrzc",styles:"height:38px;width:38px;pointer-events:none"}),b=(0,l.Ay)("div",{target:"e1abe4l85"})({name:"c8ift8",styles:"position:absolute;pointer-events:none;[x-placement^='top'] &{bottom:-9px;transform:translateY(20px);}[x-placement^='right'] &{transform:translateX(-20px);}[x-placement^='bottom'] &{transform:translateY(-20px);}[x-placement^='left'] &{right:-9px;transform:translateX(20px);}"}),x=(0,l.Ay)("div",{target:"e1abe4l84"})("position:absolute;width:max-content;left:0;top:0;transition:opacity 0.6s ease;z-index:",(0,c.fE)(1),";visibility:visible!important;"),w=800,j=(0,l.Ay)("div",{target:"e1abe4l83"})("animation:",h," ",w,"ms ease;[x-placement^='top'] &{animation:",m," ",w,"ms ease;}[x-placement^='right'] &{animation:",y," ",w,"ms ease;}[x-placement^='bottom'] &{animation:",h," ",w,"ms ease;}[x-placement^='left'] &{animation:",v," ",w,"ms ease;}"),A=(0,l.Ay)("div",{target:"e1abe4l82"})("width:13px;height:25px;position:relative;overflow:hidden;&:after{content:'';position:absolute;width:20px;height:20px;background-color:",(function(e){var t=e.backgroundColorOverride;return null!=t?t:(0,l.w4)("containerBaseNeutral")}),";transform:rotate(45deg);top:2px;}&[x-placement^='top']{height:13px;width:25px;&:after{top:-12px;left:2px;box-shadow:1px 1px 1px 0 ",f,";}}&[x-placement^='right']{height:25px;width:13px;&:after{right:-12.5px;box-shadow:1px -1px 1px 2px ",f,";}}&[x-placement^='bottom']{height:13px;width:25px;&:after{top:4.5px;left:2px;box-shadow:-1px -1px 1px 0 ",f,";}}&[x-placement^='left']{height:25px;width:13px;&:after{left:-12.5px;box-shadow:-1px 1px 1px 2px ",f,";}}",(function(e){return e.isInsideInbox&&p}),";"),S={name:"1nk1x65",styles:"transform:scale(1)"},k=function(e,t){return(0,l.i7)(s||(s=d(["\n 0% { "," }\n 85% { "," }\n 100% { "," }\n "])),S,function(e,t){return(0,l.AH)("transform:scaleX(calc(1 + (4 / ",e,"))) scaleY(calc(1 + (4 / ",t,")));")}(e,t),S)},C=(0,l.Ay)("div",{target:"e1abe4l81"})("z-index:",(0,c.fE)(),";content:'';display:none;position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;border-radius:1px;box-sizing:border-box;",(function(e){var t=e.isAnimating,r=e.width,n=e.height;return t&&(0,l.AH)("animation:",k(r,n)," 2s infinite;")})," ",(function(e){var t=e.isPost,r=e.theme;return t&&(0,l.AH)("display:block;position:fixed;top:50%;left:50%;box-shadow:0px 0px 0px 4000px ",r.alphaBlack30,";")})," ",(function(e){var t=e.isStep,r=e.theme,n=e.buttonColor;return t&&(0,l.AH)("display:block;margin:3px;box-shadow:0 0 0 3px ",n||r.appColor,",0px 0px 0px 4000px ",r.alphaBlack30,";")}),";"),O=(0,l.Ay)("div",{target:"e1abe4l80"})((function(e){var t=e.scrollable,r=e.theme;return t&&(0,l.AH)("position:fixed;height:100%;width:100%;top:0;left:0;opacity:0;box-sizing:border-box;z-index:",(0,c.fE)(0,r),";")}),";")},99398:function(e,t,r){"use strict";r.d(t,{C:function(){return y}});var n=r(42706),o=r(96540),i=r(56213),a=r(32836);function s(){for(var e=arguments.length,t=new Array(e),r=0;r=0&&(r.request_id=t.getResponseHeader("x-request-id")),n.indexOf("x-runtime")>=0&&(r["http.response.headers.x-runtime"]=Math.round(1e3*Number(t.getResponseHeader("x-runtime")))),n.indexOf("x-request-queueing")>=0&&(r["network.backend_queueing_ms"]=Number(t.getResponseHeader("x-request-queueing"))),e.setAttributes(r)}})]}),j.register(),j}}}},41567:function(e,t,r){"use strict";r.r(t),r.d(t,{GlobalAttributesSpanProcessor:function(){return s}});var n=r(22541);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r