cuga-agent / src /frontend_workspaces /frontend /dist /vendors-387e504d.71333c035a0835ea375e.js
Sami Marreed
feat: docker-v1 with optimized frontend
0646b18
"use strict";(self.webpackChunk_carbon_ai_chat_examples_web_components_basic=self.webpackChunk_carbon_ai_chat_examples_web_components_basic||[]).push([[9507],{3736:function(t,e,n){n.d(e,{Q:function(){return o}});const o=t=>e=>"function"==typeof e?((t,e)=>{try{customElements.define(t,e)}catch(t){}return e})(t,e):((t,e)=>{const{kind:n,elements:o}=e;return{kind:n,elements:o,finisher(e){try{customElements.define(t,e)}catch(t){}}}})(t,e)},11255:function(t,e,n){n.d(e,{A:function(){return s}});const o=(t,e,n,o)=>{const s=n._hostListeners;if(!s)throw new Error("The method `@HostListener()` is defined on has to be of a class that has `HostListerMixin`.");s[o]||(s[o]={}),s[o][t]={options:e}},s=(t,e)=>(n,s)=>void 0!==s?o(t,e,n.constructor,s):((t,e,n)=>{const{kind:s,key:i,placement:r}=n;if(!("method"===s&&"prototype"===r||"field"===s&&"own"===r))throw new Error("`@HostListener()` must be defined on instance methods, but you may have defined it on static, field, etc.");return Object.assign(Object.assign({},n),{finisher(n){o(t,e,n,i)}})})(t,e,n)},18594:function(t,e,n){n.d(e,{A:function(){return s}});var o=n(89018);const s=t=>class extends t{focus(){if(this.shadowRoot.delegatesFocus)super.focus();else{const t=this.shadowRoot.querySelector(o.B)||this.querySelector(o.B);t?t.focus():super.focus()}}}},18882:function(t,e,n){var o;n.d(e,{A:function(){return s},J:function(){return o}}),function(t){t[t.BACKWARD=-1]="BACKWARD",t[t.FORWARD=1]="FORWARD"}(o||(o={}));class s{constructor(t){this._groups={},this.constructor._instances.set(t,this)}shouldBeFocusable(t){if(t.checked)return!0;const{name:e}=t,n=this._groups[e];if(n&&Array.from(n).some(t=>t.checked))return!1;return!n||1===n.size||this.getSortedGroup(t)[0]===t}getSortedGroup(t){const e=this._groups[t.name];return e&&Array.from(e).sort((t,e)=>{const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0})}add(t){const{name:e}=t;if(e){const n=this._groups;n[e]||(n[e]=new Set),n[e].add(t)}return this}delete(t,e=t.name){const n=this._groups[e];return!!n&&n.delete(t)}select(t,e){const n=this._groups[t.name];if(n){if(t.disabled)return;t.checked=!e||!0,t.tabIndex=0,t.focus(),n.forEach(n=>{t!==n&&(n.checked=e||!1,n.tabIndex=-1)})}}navigate(t,e){const n=this.getSortedGroup(t),o=n.length;let s=n.indexOf(t);for(let t=0;t<o;t++){s=(s+e+o)%o;const t=n[s];if(!t.disabled)return t}return t}static get(t){return this._instances.get(t)||new s(t)}}s._instances=new WeakMap},22108:function(t,e,n){n.d(e,{A:function(){return s}});var o=n(5710);class s{constructor(t){this.updatePlacement=()=>{this.computePlacement()},this.host=t,t.addController(this)}async setPlacement(t=this.options){this.options=t;const{trigger:e,target:n}=t;this.cleanup=(0,o.ll)(e,n,this.updatePlacement)}async computePlacement(){var t;const{arrowElement:e,alignment:n,caret:s,trigger:i,target:r,styleElement:a,matchWidth:c,open:l,flipArguments:u,alignmentAxisOffset:d}=this.options,h=null!=a?a:r;if(!h)return;let f;switch(n){case"top-left":f="top-start";break;case"top-right":f="top-end";break;case"bottom-left":f="bottom-start";break;case"bottom-right":f="bottom-end";break;case"left-bottom":f="left-end";break;case"left-top":f="left-start";break;case"right-bottom":f="right-end";break;case"right-top":f="right-start";break;default:f=n}const p=[(0,o.UU)(u),(0,o.cY)((null!=d?d:0)+(s?10:0)),...s&&e?[(0,o.UE)({element:e,padding:15})]:[],...!c||"bottom"!==f&&"top"!==f?[(0,o.Ej)({apply({elements:t}){t.floating.style.removeProperty("width")}})]:[(0,o.Ej)({apply({rects:t,elements:e}){e.floating.style.width=`${t.reference.width}px`}})]];if(l){const{x:n,y:s,placement:r,middlewareData:a,strategy:c}=await(0,o.rD)(i,h,{strategy:"fixed",middleware:p,placement:f});if(h.style.left=`${n}px`,h.style.top=`${s}px`,h.style.position=`${c}`,e){const{x:t,y:n}=a.arrow,o={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]];e.style.left=null!=t?`${t}px`:"",e.style.top=null!=n?`${n}px`:"",e.style.right="",e.style.bottom="",e.style[o]=-e.offsetWidth/2+"px"}"CDS-AI-LABEL"!==this.host.tagName&&"CDS-SLUG"!==this.host.tagName||null===(t=this.host)||void 0===t||t.setAttribute("alignment",r)}}hostUpdated(){var t;this.host.hasAttribute("open")||(null===(t=this.cleanup)||void 0===t||t.call(this),this.cleanup=void 0)}hostDisconnected(){var t;null===(t=this.cleanup)||void 0===t||t.call(this),this.cleanup=void 0}}},28729:function(t,e,n){n.d(e,{I6:function(){return s},jJ:function(){return i},pb:function(){return o}});const o=(t,e,n)=>Array.prototype.filter.call(t,e,n),s=(t,e,n)=>Array.prototype.find.call(t,e,n),i=(t,e,n)=>Array.prototype.forEach.call(t,e,n)},55580:function(t,e,n){n.d(e,{L:function(){return a}});var o=n(87809),s=n(59732);function i(t){if("string"==typeof t)return t;const{elem:e="svg",attrs:n={},content:o=[]}=t,r=o.map(i).join("");return`<${e} ${(0,s.x1)(n)}>${r}</${e}>`}function r(t){return(e={})=>{const n=function(t,e={}){const n=function(t){return"default"in t&&t.default?t.default:t}(t);n.attrs||(n.attrs={});const o=Object.assign(Object.assign({},n.attrs),e),r=(0,s.gu)(o);return`<svg ${(0,s.x1)(r)}>${(n.content||[]).map(t=>"string"==typeof t?t:i(t)).join("")}</svg>`}(t,e);return(0,o.T)(n)}}function a(t,e={},n){if(n)return(0,o.T)(n);if(t){if("default"in t||"attrs"in t&&"content"in t){return r(t)(e)}return t}return null}},59619:function(t,e,n){n.d(e,{A:function(){return i}});var o=n(93989);const s=/^((document|window|parentRoot|shadowRoot):)?([\w-]+)$/,i=t=>{class e extends t{constructor(){super(...arguments),this._handles=new Set}connectedCallback(){super.connectedCallback();const t=this.constructor._hostListeners;Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(n=>{var i;const r=s.exec(n);if(!r)throw new Error(`Could not parse the event name: ${e}`);const[,,a,c]=r,l={document:this.ownerDocument,window:this.ownerDocument.defaultView,parentRoot:this.getRootNode(),shadowRoot:this.shadowRoot}[a]||this,{options:u}=t[e][n];this._handles.add((0,o.A)(l,null!==(i=this.constructor[c])&&void 0!==i?i:c,this[e],u))})})}disconnectedCallback(){this._handles.forEach(t=>{t.release(),this._handles.delete(t)}),super.disconnectedCallback()}}return e._hostListeners={},e}},60745:function(t,e,n){var o;!function(t){t.REGULAR="",t.LIGHT="light"}(o||(o={}))},75926:function(t,e,n){var o;n.d(e,{A:function(){return s}}),function(t){t.NO_ERROR="",t.ERROR_REQUIRED="required"}(o||(o={}));const s=t=>class extends t{_getValidityMessage(t){return{[o.NO_ERROR]:"",[o.ERROR_REQUIRED]:this.requiredValidityMessage}[t]}_testValidity(){const{required:t,value:e}=this;return t&&!e?o.ERROR_REQUIRED:o.NO_ERROR}checkValidity(){const t=this._testValidity();return t!==o.NO_ERROR?(this.dispatchEvent(new CustomEvent("invalid",{bubbles:!1,cancelable:!0,composed:!1}))&&(this.invalid=!0,this.validityMessage=this._getValidityMessage(t)),!1):(this.invalid=!1,this.validityMessage="",!0)}setCustomValidity(t){this.invalid=Boolean(t),this.validityMessage=t}}},78566:function(t,e,n){n.d(e,{A:function(){return s}});var o=n(93989);const s=t=>class extends t{constructor(){super(...arguments),this._hFormdata=null}connectedCallback(){super.connectedCallback();const t=this.closest("form");t&&(this._hFormdata=(0,o.A)(t,"formdata",this._handleFormdata.bind(this)))}disconnectedCallback(){this._hFormdata&&(this._hFormdata=this._hFormdata.release()),super.disconnectedCallback()}}},89018:function(t,e,n){n.d(e,{B:function(){return s},P:function(){return o}});const o="cds-custom",s=`\n a[href]:not(#start-sentinel, #end-sentinel), area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true],\n ${o}-accordion-item,\n ${o}-actionable-notification-button,\n ${o}-button,\n ${o}-breadcrumb-link,\n ${o}-checkbox,\n ${o}-code-snippet,\n ${o}-combo-box,\n ${o}-content-switcher-item,\n ${o}-copy-button,\n ${o}-table-header-row,\n ${o}-table-row,\n ${o}-table-toolbar-search,\n ${o}-date-picker-input,\n ${o}-dropdown,\n ${o}-icon-button,\n ${o}-input,\n ${o}-link,\n ${o}-number-input,\n ${o}-modal,\n ${o}-modal-close-button,\n ${o}-multi-select,\n ${o}-inline-notification,\n ${o}-toast-notification,\n ${o}-overflow-menu,\n ${o}-overflow-menu-item,\n ${o}-page-sizes-select,\n ${o}-pages-select,\n ${o}-progress-step,\n ${o}-radio-button,\n ${o}-search,\n ${o}-slider,\n ${o}-slider-input,\n ${o}-structured-list,\n ${o}-tab,\n ${o}-filter-tag,\n ${o}-textarea,\n ${o}-text-input,\n ${o}-clickable-tile,\n ${o}-expandable-tile,\n ${o}-radio-tile,\n ${o}-selectable-tile,\n ${o}-toggle,\n ${o}-tooltip,\n ${o}-tooltip-definition,\n ${o}-tooltip-icon,\n ${o}-header-menu,\n ${o}-header-menu-button,\n ${o}-header-menu-item,\n ${o}-header-name,\n ${o}-header-nav-item,\n ${o}-side-nav-link,\n ${o}-side-nav-menu,\n ${o}-side-nav-menu-item,\n ${o}-slug\n`},92301:function(t,e,n){n.d(e,{A:function(){return s}});var o=n(5828),s=t=>(0,o.J)(""===t?void 0:null!=t?t:void 0)},93989:function(t,e,n){function o(t,...e){return t.addEventListener(...e),{release(){return t.removeEventListener(...e),null}}}n.d(e,{A:function(){return o}})}}]);