{"version":3,"sources":["webpack:///./app/javascript/shared/helpers/emoji.js","webpack:///./app/javascript/dashboard/components/widgets/Avatar.vue?8754","webpack:///./app/javascript/dashboard/components/widgets/Thumbnail.vue?f903","webpack:///./app/javascript/dashboard/components/widgets/Avatar.vue?4a26","webpack:///./app/javascript/dashboard/components/widgets/Avatar.vue?1562","webpack:///app/javascript/dashboard/components/widgets/Avatar.vue","webpack:///./app/javascript/dashboard/components/widgets/Avatar.vue","webpack:///./app/javascript/dashboard/components/widgets/Thumbnail.vue?9fa9","webpack:///./app/javascript/dashboard/components/widgets/Thumbnail.vue?8701","webpack:///app/javascript/dashboard/components/widgets/Thumbnail.vue","webpack:///./app/javascript/dashboard/components/widgets/Thumbnail.vue"],"names":["hasEmojiSupport","offset","window","devicePixelRatio","node","document","createElement","getContext","fillText","ctx","fillStyle","textBaseline","font","getImageData","data","removeEmoji","text","replace","trim","component","_vm","this","_c","_self","staticClass","style","attrs","_t","_v","_s","userInitial","class","thumbnailBoxClass","height","size","width","title","directives","name","rawName","value","expression","thumbnailClass","src","on","onImgLoad","onImgError","shouldShowImage","userNameWithoutEmoji","avatarSize","badgeSrc","_e","status"],"mappings":"sLAYaA,EAAkB,WAC7B,IACMC,EAAS,IADIC,OAAOC,kBAAoB,GAExCC,EAAOC,SAASC,cAAc,UAGpC,IACGF,EAAKG,aACLH,EAAKG,WAAW,OACyB,oBAAnCH,EAAKG,WAAW,MAAMC,SAE7B,OAAO,EAGT,IAAMC,EAAML,EAAKG,WAAW,MAM5B,OAJAE,EAAIC,UAAY,OAChBD,EAAIE,aAAe,MACnBF,EAAIG,KAAO,aACXH,EAAID,SAAS,eAAgB,EAAG,GAC0B,IAAnDC,EAAII,aAAaZ,EAAQA,EAAQ,EAAG,GAAGa,KAAK,IAGxCC,EAAc,SAAAC,GACzB,OAAIA,EACKA,EACJC,QACC,uHACA,IAEDA,QAAQ,OAAQ,KAChBC,OAEE,K,gFC7CT,S,kCCAA,S,iECAA,ICAkN,ECOlN,CAC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EAAG,OAAO,CAACI,MAAM,CAAC,EAAI,sRAAsR,KAAO,aAAaN,EAAIQ,GAAG,KAAKN,EAAG,OAAO,CAACI,MAAM,CAAC,YAAY,UAAU,YAAY,UAAU,EAAI,maAAma,KAAO,iBAAiBN,EAAI+B,MAAM,KAEj2E,IGUpB,EACA,KACA,WACA,MAIa,IAAAhC,E","file":"js/1-8ac77b109338249f69de.chunk.js","sourcesContent":["/**\n * Detects support for emoji character sets.\n *\n * Based on the Modernizr emoji detection.\n * https://github.com/Modernizr/Modernizr/blob/347ddb078116cee91b25b6e897e211b023f9dcb4/feature-detects/emoji.js\n *\n * @return {Boolean} true or false\n * @example\n *\n * hasEmojiSupport()\n * // => true|false\n */\nexport const hasEmojiSupport = () => {\n const pixelRatio = window.devicePixelRatio || 1;\n const offset = 12 * pixelRatio;\n const node = document.createElement('canvas');\n\n // canvastext support\n if (\n !node.getContext ||\n !node.getContext('2d') ||\n typeof node.getContext('2d').fillText !== 'function'\n ) {\n return false;\n }\n\n const ctx = node.getContext('2d');\n\n ctx.fillStyle = '#f00';\n ctx.textBaseline = 'top';\n ctx.font = '32px Arial';\n ctx.fillText('\\ud83d\\udc28', 0, 0); // U+1F428 KOALA\n return ctx.getImageData(offset, offset, 1, 1).data[0] !== 0;\n};\n\nexport const removeEmoji = text => {\n if (text) {\n return text\n .replace(\n /([\\u2700-\\u27BF]|[\\uE000-\\uF8FF]|\\uD83C[\\uDC00-\\uDFFF]|\\uD83D[\\uDC00-\\uDFFF]|[\\u2011-\\u26FF]|\\uD83E[\\uDD10-\\uDDFF])/g,\n ''\n )\n .replace(/\\s+/g, ' ')\n .trim();\n }\n return '';\n};\n","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../../../node_modules/css-loader/dist/cjs.js??ref--2-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Avatar.vue?vue&type=style&index=0&id=49eda879&prod&scoped=true&lang=css&\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../../../node_modules/css-loader/dist/cjs.js??ref--3-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/dist/cjs.js??ref--3-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--3-3!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Thumbnail.vue?vue&type=style&index=0&id=913ea6ea&prod&lang=scss&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"avatar-container\",style:(_vm.style),attrs:{\"aria-hidden\":\"true\"}},[_vm._t(\"default\",function(){return [_vm._v(_vm._s(_vm.userInitial))]})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Avatar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Avatar.vue?vue&type=script&lang=js&\"","\n \n {{ userInitial }}\n
\n\n\n\n\n\n","import { render, staticRenderFns } from \"./Avatar.vue?vue&type=template&id=49eda879&scoped=true&\"\nimport script from \"./Avatar.vue?vue&type=script&lang=js&\"\nexport * from \"./Avatar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Avatar.vue?vue&type=style&index=0&id=49eda879&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"49eda879\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{class:_vm.thumbnailBoxClass,style:({ height: _vm.size, width: _vm.size }),attrs:{\"title\":_vm.title}},[_vm._t(\"default\",function(){return [_c('img',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.shouldShowImage),expression:\"shouldShowImage\"}],class:_vm.thumbnailClass,attrs:{\"src\":_vm.src},on:{\"load\":_vm.onImgLoad,\"error\":_vm.onImgError}}),_vm._v(\" \"),_c('Avatar',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.shouldShowImage),expression:\"!shouldShowImage\"}],class:_vm.thumbnailClass,attrs:{\"username\":_vm.userNameWithoutEmoji,\"size\":_vm.avatarSize}})]}),_vm._v(\" \"),(_vm.badgeSrc)?_c('img',{staticClass:\"source-badge\",style:(_vm.badgeStyle),attrs:{\"src\":`/integrations/channels/badges/${_vm.badgeSrc}.png`,\"alt\":\"Badge\"}}):_vm._e(),_vm._v(\" \"),(_vm.showStatusIndicator)?_c('div',{class:`source-badge user-online-status user-online-status--${_vm.status}`,style:(_vm.statusStyle)}):_vm._e(),_vm._v(\" \"),(_vm.isShowAiAgentBadge)?_c('span',{staticClass:\"absolute -bottom-[6px] -right-[4px] z-10\",attrs:{\"data-slot\":\"ai-agent-badge\"}},[_c('svg',{staticClass:\"text-white dark:text-slate-900\",attrs:{\"width\":\"22\",\"height\":\"22\",\"viewBox\":\"0 0 22 22\",\"fill\":\"none\",\"xmlns\":\"http://www.w3.org/2000/svg\"}},[_c('path',{attrs:{\"d\":\"M1 11c0 5.523 4.477 10 10 10s10-4.477 10-10S16.523 1 11 1 1 5.477 1 11Z\",\"fill\":\"#E9E5FF\"}}),_vm._v(\" \"),_c('path',{attrs:{\"d\":\"M1 11c0 5.523 4.477 10 10 10s10-4.477 10-10S16.523 1 11 1 1 5.477 1 11Z\",\"stroke\":\"currentColor\",\"stroke-width\":\"2\"}}),_vm._v(\" \"),_c('path',{attrs:{\"d\":\"M7.657 6.53a.486.486 0 0 1 .853 0l.152.28c.16.293.402.534.696.695l.279.152a.486.486 0 0 1 0 .853l-.28.153a1.75 1.75 0 0 0-.695.695l-.152.28a.486.486 0 0 1-.853 0l-.153-.28a1.75 1.75 0 0 0-.695-.695l-.28-.153a.486.486 0 0 1 0-.853l.28-.152a1.75 1.75 0 0 0 .695-.696l.153-.279Z\",\"fill\":\"#8051FF\"}}),_vm._v(\" \"),_c('path',{attrs:{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",\"d\":\"M13.293 9.359c-.14-.907-1.44-.925-1.605-.022l-.024.127a2.921 2.921 0 0 1-2.401 2.358c-.894.146-.913 1.425-.024 1.597l.082.016a2.975 2.975 0 0 1 2.355 2.355l.025.129c.182.94 1.527.94 1.709 0l.02-.1a2.983 2.983 0 0 1 2.392-2.368c.921-.169.87-1.5-.055-1.64a2.947 2.947 0 0 1-2.474-2.452Zm-.734 5.356a4.154 4.154 0 0 1 1.976-2.058 4.125 4.125 0 0 1-2.043-1.982 4.093 4.093 0 0 1-1.935 1.951 4.144 4.144 0 0 1 2.002 2.09Z\",\"fill\":\"#8051FF\"}})])]):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Thumbnail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Thumbnail.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n \n \n
![\"Badge\"\n]()
\n
\n\n
\n \n \n
\n\n\n\n\n","import { render, staticRenderFns } from \"./Thumbnail.vue?vue&type=template&id=913ea6ea&scoped=true&\"\nimport script from \"./Thumbnail.vue?vue&type=script&lang=js&\"\nexport * from \"./Thumbnail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Thumbnail.vue?vue&type=style&index=0&id=913ea6ea&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"913ea6ea\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}