@carbon/ai-chat 0.1.6 → 0.1.7-alpha0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cds-aichat-internal.js → AppContainer.js} +615 -7203
- package/dist/cjs/Carousel.js +24 -16
- package/dist/cjs/Chat.js +813 -805
- package/dist/cjs/GenesysMessengerServiceDesk.js +60 -52
- package/dist/cjs/HumanAgentServiceImpl.js +103 -95
- package/dist/cjs/NiceDFOServiceDesk.js +56 -48
- package/dist/cjs/PDFViewerContainer.js +58 -149
- package/dist/cjs/ReactPlayer.js +2 -2
- package/dist/cjs/SFServiceDesk.js +66 -58
- package/dist/cjs/ServiceDeskImpl.js +2 -2
- package/dist/cjs/Table.js +457 -341
- package/dist/cjs/ZendeskServiceDesk.js +36 -28
- package/dist/cjs/_node-resolve_empty.js +2 -2
- package/dist/cjs/agentActions.js +5 -5
- package/dist/cjs/aiChatEntry.js +163 -144
- package/dist/cjs/anonymousUserIDStorage.js +8 -8
- package/dist/cjs/ar-dz.js +4 -4
- package/dist/cjs/ar-kw.js +4 -4
- package/dist/cjs/ar-ly.js +4 -4
- package/dist/cjs/ar-ma.js +4 -4
- package/dist/cjs/ar-sa.js +4 -4
- package/dist/cjs/ar-tn.js +4 -4
- package/dist/cjs/ar.js +4 -4
- package/dist/cjs/ar2.js +2 -2
- package/dist/cjs/cds-aichat-container.js +111 -23
- package/dist/cjs/cds-aichat-custom-element.js +42 -30
- package/dist/cjs/cs.js +4 -4
- package/dist/cjs/cs2.js +2 -2
- package/dist/cjs/de-at.js +4 -4
- package/dist/cjs/de-ch.js +4 -4
- package/dist/cjs/de.js +4 -4
- package/dist/cjs/de2.js +2 -2
- package/dist/cjs/en-au.js +4 -4
- package/dist/cjs/en-ca.js +4 -4
- package/dist/cjs/en-gb.js +4 -4
- package/dist/cjs/en-ie.js +4 -4
- package/dist/cjs/en-il.js +4 -4
- package/dist/cjs/en-nz.js +4 -4
- package/dist/cjs/es-do.js +4 -4
- package/dist/cjs/es-us.js +4 -4
- package/dist/cjs/es.js +4 -4
- package/dist/cjs/es2.js +2 -2
- package/dist/cjs/export.js +3 -3
- package/dist/cjs/export.legacy.js +3 -3
- package/dist/cjs/fontUtils.js +2 -2
- package/dist/cjs/fr-ca.js +4 -4
- package/dist/cjs/fr-ch.js +4 -4
- package/dist/cjs/fr.js +4 -4
- package/dist/cjs/fr2.js +2 -2
- package/dist/cjs/highlight_js.js +2 -2
- package/dist/cjs/it-ch.js +4 -4
- package/dist/cjs/it.js +4 -4
- package/dist/cjs/it2.js +2 -2
- package/dist/cjs/ja.js +4 -4
- package/dist/cjs/ja2.js +2 -2
- package/dist/cjs/ko.js +4 -4
- package/dist/cjs/ko2.js +2 -2
- package/dist/cjs/markdown.js +2362 -14
- package/dist/cjs/mockServiceDesk.js +42 -34
- package/dist/cjs/nl.js +4 -4
- package/dist/cjs/nl2.js +2 -2
- package/dist/cjs/pt-br.js +4 -4
- package/dist/cjs/pt-br2.js +2 -2
- package/dist/cjs/pt.js +4 -4
- package/dist/cjs/render.js +18 -10
- package/dist/cjs/zh-cn.js +4 -4
- package/dist/cjs/zh-tw.js +4 -4
- package/dist/cjs/zh-tw2.js +2 -2
- package/dist/cjs/zh.js +2 -2
- package/dist/es/{cds-aichat-internal.js → AppContainer.js} +1117 -7671
- package/dist/es/Carousel.js +16 -8
- package/dist/es/Chat.js +16 -8
- package/dist/es/GenesysMessengerServiceDesk.js +16 -8
- package/dist/es/HumanAgentServiceImpl.js +16 -8
- package/dist/es/NiceDFOServiceDesk.js +16 -8
- package/dist/es/PDFViewerContainer.js +16 -107
- package/dist/es/ReactPlayer.js +2 -2
- package/dist/es/SFServiceDesk.js +16 -8
- package/dist/es/ServiceDeskImpl.js +2 -2
- package/dist/es/Table.js +426 -310
- package/dist/es/ZendeskServiceDesk.js +16 -8
- package/dist/es/_node-resolve_empty.js +2 -2
- package/dist/es/agentActions.js +3 -3
- package/dist/es/aiChatEntry.js +136 -117
- package/dist/es/anonymousUserIDStorage.js +3 -3
- package/dist/es/ar-dz.js +3 -3
- package/dist/es/ar-kw.js +3 -3
- package/dist/es/ar-ly.js +3 -3
- package/dist/es/ar-ma.js +3 -3
- package/dist/es/ar-sa.js +3 -3
- package/dist/es/ar-tn.js +3 -3
- package/dist/es/ar.js +3 -3
- package/dist/es/ar2.js +2 -2
- package/dist/es/cds-aichat-container.js +103 -15
- package/dist/es/cds-aichat-custom-element.js +30 -18
- package/dist/es/cs.js +3 -3
- package/dist/es/cs2.js +2 -2
- package/dist/es/de-at.js +3 -3
- package/dist/es/de-ch.js +3 -3
- package/dist/es/de.js +3 -3
- package/dist/es/de2.js +2 -2
- package/dist/es/en-au.js +3 -3
- package/dist/es/en-ca.js +3 -3
- package/dist/es/en-gb.js +3 -3
- package/dist/es/en-ie.js +3 -3
- package/dist/es/en-il.js +3 -3
- package/dist/es/en-nz.js +3 -3
- package/dist/es/es-do.js +3 -3
- package/dist/es/es-us.js +3 -3
- package/dist/es/es.js +3 -3
- package/dist/es/es2.js +2 -2
- package/dist/es/export.js +3 -3
- package/dist/es/export.legacy.js +3 -3
- package/dist/es/fontUtils.js +2 -2
- package/dist/es/fr-ca.js +3 -3
- package/dist/es/fr-ch.js +3 -3
- package/dist/es/fr.js +3 -3
- package/dist/es/fr2.js +2 -2
- package/dist/es/highlight_js.js +2 -2
- package/dist/es/it-ch.js +3 -3
- package/dist/es/it.js +3 -3
- package/dist/es/it2.js +2 -2
- package/dist/es/ja.js +3 -3
- package/dist/es/ja2.js +2 -2
- package/dist/es/ko.js +3 -3
- package/dist/es/ko2.js +2 -2
- package/dist/es/markdown.js +2361 -15
- package/dist/es/mockServiceDesk.js +16 -8
- package/dist/es/nl.js +3 -3
- package/dist/es/nl2.js +2 -2
- package/dist/es/pt-br.js +3 -3
- package/dist/es/pt-br2.js +2 -2
- package/dist/es/pt.js +3 -3
- package/dist/es/render.js +17 -9
- package/dist/es/zh-cn.js +3 -3
- package/dist/es/zh-tw.js +3 -3
- package/dist/es/zh-tw2.js +2 -2
- package/dist/es/zh.js +2 -2
- package/dist/types/aiChatEntry.d.ts +69 -9
- package/package.json +27 -14
- package/dist/cjs/jstz.min.js +0 -43
- package/dist/cjs/markdown_attrs.js +0 -805
- package/dist/es/jstz.min.js +0 -41
- package/dist/es/markdown_attrs.js +0 -803
package/dist/cjs/aiChatEntry.js
CHANGED
|
@@ -13,37 +13,45 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
*/
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
var
|
|
25
|
+
var AppContainer = require('./AppContainer.js');
|
|
26
|
+
var tslib = require('tslib');
|
|
27
27
|
var lit = require('lit');
|
|
28
|
-
var
|
|
29
|
-
require('react-dom');
|
|
28
|
+
var React = require('react');
|
|
29
|
+
var ReactDOM = require('react-dom');
|
|
30
30
|
require('./highlight_js.js');
|
|
31
31
|
require('@carbon/react');
|
|
32
|
+
require('classnames');
|
|
32
33
|
require('react-intl');
|
|
33
34
|
require('react-redux');
|
|
35
|
+
require('tabbable');
|
|
36
|
+
require('@carbon/icons-react');
|
|
34
37
|
require('./markdown.js');
|
|
35
|
-
require('
|
|
38
|
+
require('lit/decorators.js');
|
|
36
39
|
require('@carbon/web-components/es/components/button/index.js');
|
|
37
40
|
require('@carbon/web-components/es/components/overflow-menu/index.js');
|
|
38
41
|
require('lit/directives/unsafe-html.js');
|
|
42
|
+
require('prop-types');
|
|
39
43
|
require('@carbon/web-components/es/components/slug/index.js');
|
|
40
44
|
require('@carbon/web-components/es/components/popover/defs.js');
|
|
41
45
|
require('@carbon/web-components/es/components/slug/defs.js');
|
|
46
|
+
require('@floating-ui/react');
|
|
42
47
|
require('@carbon/web-components/es/components/slug/slug-action-button.js');
|
|
43
48
|
require('@carbon/web-components/es/components/slug/slug.js');
|
|
49
|
+
require('@carbon/web-components/es/components/inline-loading/index.js');
|
|
50
|
+
require('@carbon/icon-helpers');
|
|
51
|
+
require('@carbon/icons');
|
|
52
|
+
require('lit/directives/unsafe-svg.js');
|
|
44
53
|
require('@carbon/web-components/es/components/textarea/index.js');
|
|
45
54
|
require('@carbon/web-components/es/components/icon-button/index.js');
|
|
46
|
-
require('lit/directives/unsafe-svg.js');
|
|
47
55
|
require('@carbon/web-components/es/components/tag/index.js');
|
|
48
56
|
require('@carbon/web-components/es/components/chat-button/index.js');
|
|
49
57
|
require('@carbon/web-components/es/components/button/button.js');
|
|
@@ -64,105 +72,14 @@ require('@carbon/web-components/es/components/layer/index.js');
|
|
|
64
72
|
*
|
|
65
73
|
*/
|
|
66
74
|
/**
|
|
67
|
-
*
|
|
68
|
-
* into slots.
|
|
75
|
+
* Status of the chain of thought step.
|
|
69
76
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
this._userDefinedElements = [];
|
|
77
|
-
/**
|
|
78
|
-
* The existing array of slot names for all writeable elements.
|
|
79
|
-
*/
|
|
80
|
-
this._writeableElementSlots = [];
|
|
81
|
-
/**
|
|
82
|
-
* Adds the slot attribute to the element for the user_defined response type and then injects it into the component by
|
|
83
|
-
* updating this._userDefinedElements;
|
|
84
|
-
*/
|
|
85
|
-
this._userDefinedHandler = (event) => {
|
|
86
|
-
// This element already has `slot` as an attribute.
|
|
87
|
-
const { element } = event.data;
|
|
88
|
-
if (!this._userDefinedElements.includes(element)) {
|
|
89
|
-
this._userDefinedElements = [...this._userDefinedElements, element];
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
this._onBeforeRenderOverride = (instance) => {
|
|
93
|
-
if (instance) {
|
|
94
|
-
this._instance = instance;
|
|
95
|
-
this._instance.on({ type: "userDefinedResponse" /* BusEventType.USER_DEFINED_RESPONSE */, handler: this._userDefinedHandler });
|
|
96
|
-
this._instance.on({ type: "chunk:userDefinedResponse" /* BusEventType.CHUNK_USER_DEFINED_RESPONSE */, handler: this._userDefinedHandler });
|
|
97
|
-
this._addWriteableElementSlots();
|
|
98
|
-
this.onBeforeRender?.(instance);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
_addWriteableElementSlots() {
|
|
103
|
-
const writeableElementSlots = [this._instance.customPanels.getPanel().hostElement];
|
|
104
|
-
Object.keys(this._instance.writeableElements).forEach(writeableElementKey => {
|
|
105
|
-
const element = this._instance.writeableElements[writeableElementKey];
|
|
106
|
-
element.setAttribute('slot', writeableElementKey);
|
|
107
|
-
writeableElementSlots.push(element);
|
|
108
|
-
});
|
|
109
|
-
this._writeableElementSlots = writeableElementSlots;
|
|
110
|
-
}
|
|
111
|
-
createRenderRoot() {
|
|
112
|
-
return this;
|
|
113
|
-
}
|
|
114
|
-
render() {
|
|
115
|
-
return lit.html `<style>
|
|
116
|
-
cds-aichat-react {
|
|
117
|
-
width: 100%;
|
|
118
|
-
height: 100%;
|
|
119
|
-
}
|
|
120
|
-
</style>
|
|
121
|
-
<cds-aichat-internal
|
|
122
|
-
.config=${this.config}
|
|
123
|
-
.onAfterRender=${this.onAfterRender}
|
|
124
|
-
.onBeforeRender=${this._onBeforeRenderOverride}
|
|
125
|
-
.renderUserDefinedResponse=${this.renderUserDefinedResponse}
|
|
126
|
-
.renderWriteableElements=${this.renderWriteableElements}
|
|
127
|
-
isReact
|
|
128
|
-
.forceReact17Mode=${this.forceReact17Mode}
|
|
129
|
-
>
|
|
130
|
-
${this._writeableElementSlots.map(element => lit.html `${element}`)}
|
|
131
|
-
${this._userDefinedElements.map(element => lit.html `${element}`)}
|
|
132
|
-
</cds-aichat-internal>`;
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
cdsAichatInternal.__decorate([
|
|
136
|
-
decorators_js.property({ type: Object })
|
|
137
|
-
], ChatContainerReact.prototype, "config", void 0);
|
|
138
|
-
cdsAichatInternal.__decorate([
|
|
139
|
-
decorators_js.property()
|
|
140
|
-
], ChatContainerReact.prototype, "onBeforeRender", void 0);
|
|
141
|
-
cdsAichatInternal.__decorate([
|
|
142
|
-
decorators_js.property()
|
|
143
|
-
], ChatContainerReact.prototype, "onAfterRender", void 0);
|
|
144
|
-
cdsAichatInternal.__decorate([
|
|
145
|
-
decorators_js.property({ type: Boolean })
|
|
146
|
-
], ChatContainerReact.prototype, "forceReact17Mode", void 0);
|
|
147
|
-
cdsAichatInternal.__decorate([
|
|
148
|
-
decorators_js.property()
|
|
149
|
-
], ChatContainerReact.prototype, "renderUserDefinedResponse", void 0);
|
|
150
|
-
cdsAichatInternal.__decorate([
|
|
151
|
-
decorators_js.property({ type: Object })
|
|
152
|
-
], ChatContainerReact.prototype, "renderWriteableElements", void 0);
|
|
153
|
-
cdsAichatInternal.__decorate([
|
|
154
|
-
decorators_js.state()
|
|
155
|
-
], ChatContainerReact.prototype, "_userDefinedElements", void 0);
|
|
156
|
-
cdsAichatInternal.__decorate([
|
|
157
|
-
decorators_js.state()
|
|
158
|
-
], ChatContainerReact.prototype, "_writeableElementSlots", void 0);
|
|
159
|
-
cdsAichatInternal.__decorate([
|
|
160
|
-
decorators_js.state()
|
|
161
|
-
], ChatContainerReact.prototype, "_instance", void 0);
|
|
162
|
-
ChatContainerReact = cdsAichatInternal.__decorate([
|
|
163
|
-
cdsAichatInternal.carbonElement('cds-aichat-react')
|
|
164
|
-
], ChatContainerReact);
|
|
165
|
-
var ChatContainerReact$1 = ChatContainerReact;
|
|
77
|
+
exports.ChainOfThoughtStepStatus = void 0;
|
|
78
|
+
(function (ChainOfThoughtStepStatus) {
|
|
79
|
+
ChainOfThoughtStepStatus["PROCESSING"] = "processing";
|
|
80
|
+
ChainOfThoughtStepStatus["FAILURE"] = "failure";
|
|
81
|
+
ChainOfThoughtStepStatus["SUCCESS"] = "success";
|
|
82
|
+
})(exports.ChainOfThoughtStepStatus || (exports.ChainOfThoughtStepStatus = {}));
|
|
166
83
|
|
|
167
84
|
/**
|
|
168
85
|
*
|
|
@@ -179,17 +96,118 @@ var ChatContainerReact$1 = ChatContainerReact;
|
|
|
179
96
|
*
|
|
180
97
|
*/
|
|
181
98
|
/**
|
|
182
|
-
* This
|
|
183
|
-
*
|
|
99
|
+
* This component creates a custom element protected by a ShadowRoot to render the React application into. It creates
|
|
100
|
+
* slotted elements for user_defined responses and for writable elements.
|
|
101
|
+
*
|
|
102
|
+
* The corresponding slots are defined within the React application and are rendered in place.
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* Create a web component to host the React application. We do this so we can provide custom elements and user_defined responses as
|
|
106
|
+
* slotted content so they maintain their own styling in a safe way.
|
|
184
107
|
*/
|
|
185
|
-
|
|
108
|
+
let ChatContainerReact = class ChatContainerReact extends lit.LitElement {
|
|
109
|
+
static { this.styles = lit.css `
|
|
110
|
+
:host {
|
|
111
|
+
width: 100%;
|
|
112
|
+
height: 100%;
|
|
113
|
+
}
|
|
114
|
+
`; }
|
|
115
|
+
};
|
|
116
|
+
ChatContainerReact = tslib.__decorate([
|
|
117
|
+
AppContainer.carbonElement('cds-aichat-react')
|
|
118
|
+
], ChatContainerReact);
|
|
119
|
+
// Wrap the custom element as a React component
|
|
120
|
+
const ReactChatContainer = React.memo(AppContainer.o({
|
|
186
121
|
tagName: 'cds-aichat-react',
|
|
187
|
-
elementClass: ChatContainerReact
|
|
122
|
+
elementClass: ChatContainerReact,
|
|
188
123
|
react: React,
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
|
|
124
|
+
}));
|
|
125
|
+
/**
|
|
126
|
+
* The ChatContainer controls rendering the React application into the ShadowRoot of the cds-aichat-react web component.
|
|
127
|
+
* It also injects the writeable element and user_defined response slots into said web component.
|
|
128
|
+
*/
|
|
129
|
+
function ChatContainer({ onBeforeRender, onAfterRender, config, renderUserDefinedResponse, renderWriteableElements, }) {
|
|
130
|
+
const wrapperRef = React.useRef(null); // Ref for the React wrapper component
|
|
131
|
+
const [wrapper, setWrapper] = React.useState(null);
|
|
132
|
+
const [container, setContainer] = React.useState(null); // Actual element we render the React Portal to in the Shadowroot.
|
|
133
|
+
const [userDefinedElements, setUserDefinedElements] = React.useState([]);
|
|
134
|
+
const [writeableElementSlots, setWriteableElementSlots] = React.useState([]);
|
|
135
|
+
const [currentInstance, setCurrentInstance] = React.useState(null);
|
|
136
|
+
/**
|
|
137
|
+
* Setup the DOM nodes of both the web component to be able to inject slotted content into it, and the element inside the
|
|
138
|
+
* ShadowRoot we will inject our React application into.
|
|
139
|
+
*/
|
|
140
|
+
React.useEffect(() => {
|
|
141
|
+
if (wrapperRef.current) {
|
|
142
|
+
const wrapperElement = wrapperRef.current;
|
|
143
|
+
// We need to check if the element in the ShadowRoot we are render the React application to exists.
|
|
144
|
+
// If it doesn't, we need to create and append it.
|
|
145
|
+
// When the web chat is destroyed (either via a config change or by calling instance.destroy), this element is
|
|
146
|
+
// removed again. When the chat is destroyed the instance is set to null. The useEffect watches the instance
|
|
147
|
+
// value and runs if it changes, re-creating the container element if needed.
|
|
148
|
+
let reactElement = wrapperElement.shadowRoot?.querySelector('.cds--aichat-react-app');
|
|
149
|
+
if (!reactElement) {
|
|
150
|
+
reactElement = document.createElement('div');
|
|
151
|
+
reactElement.classList.add('cds--aichat-react-app');
|
|
152
|
+
wrapperElement.shadowRoot.appendChild(reactElement);
|
|
153
|
+
}
|
|
154
|
+
if (wrapperElement !== wrapper) {
|
|
155
|
+
setWrapper(wrapperElement);
|
|
156
|
+
}
|
|
157
|
+
if (reactElement !== container) {
|
|
158
|
+
setContainer(reactElement);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}, [container, wrapper, currentInstance]);
|
|
162
|
+
/**
|
|
163
|
+
* Here we write the slotted elements into the wrapper so they are passed into the application to be rendered in their slot.
|
|
164
|
+
*/
|
|
165
|
+
React.useEffect(() => {
|
|
166
|
+
if (wrapper) {
|
|
167
|
+
const combinedNodes = [...userDefinedElements, ...writeableElementSlots];
|
|
168
|
+
const currentNodes = Array.from(wrapper.childNodes);
|
|
169
|
+
const newNodesSet = new Set(combinedNodes);
|
|
170
|
+
// Remove nodes no longer present
|
|
171
|
+
currentNodes.forEach(node => {
|
|
172
|
+
if (!newNodesSet.has(node)) {
|
|
173
|
+
wrapper.removeChild(node);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
// Append new nodes that aren't already in the container
|
|
177
|
+
combinedNodes.forEach(node => {
|
|
178
|
+
if (!currentNodes.includes(node)) {
|
|
179
|
+
wrapper.appendChild(node);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}, [userDefinedElements, writeableElementSlots, wrapper]);
|
|
184
|
+
const userDefinedHandler = React.useCallback((event) => {
|
|
185
|
+
const { element } = event.data;
|
|
186
|
+
setUserDefinedElements(previousUserDefinedElements => [...previousUserDefinedElements, element]);
|
|
187
|
+
}, []);
|
|
188
|
+
const onBeforeRenderOverride = React.useCallback((instance) => {
|
|
189
|
+
if (instance) {
|
|
190
|
+
const addWriteableElementSlots = () => {
|
|
191
|
+
const slots = Object.entries(instance.writeableElements).map(writeableElement => {
|
|
192
|
+
const [key, element] = writeableElement;
|
|
193
|
+
element.setAttribute('slot', key); // Assign slot attributes dynamically
|
|
194
|
+
return element;
|
|
195
|
+
});
|
|
196
|
+
slots.push(instance.customPanels.getPanel().hostElement);
|
|
197
|
+
setWriteableElementSlots(slots);
|
|
198
|
+
};
|
|
199
|
+
instance.on({ type: "userDefinedResponse" /* BusEventType.USER_DEFINED_RESPONSE */, handler: userDefinedHandler });
|
|
200
|
+
instance.on({ type: "chunk:userDefinedResponse" /* BusEventType.CHUNK_USER_DEFINED_RESPONSE */, handler: userDefinedHandler });
|
|
201
|
+
addWriteableElementSlots();
|
|
202
|
+
onBeforeRender?.(instance);
|
|
203
|
+
}
|
|
204
|
+
}, [onBeforeRender, userDefinedHandler]);
|
|
205
|
+
return (React.createElement(React.Fragment, null,
|
|
206
|
+
React.createElement(ReactChatContainer, { ref: wrapperRef }),
|
|
207
|
+
container &&
|
|
208
|
+
ReactDOM.createPortal(React.createElement(AppContainer.AppContainerExport, { config: config, renderUserDefinedResponse: renderUserDefinedResponse, renderWriteableElements: renderWriteableElements, onBeforeRender: onBeforeRenderOverride, onAfterRender: onAfterRender, container: container, setParentInstance: setCurrentInstance }), container)));
|
|
192
209
|
}
|
|
210
|
+
const ChatContainerExport = React.memo(ChatContainer);
|
|
193
211
|
|
|
194
212
|
/**
|
|
195
213
|
*
|
|
@@ -238,117 +256,118 @@ function ChatCustomElement({ config, onBeforeRender, onAfterRender, renderUserDe
|
|
|
238
256
|
instance.on({ type: "view:change" /* BusEventType.VIEW_CHANGE */, handler: onViewChange || defaultViewChangeHandler });
|
|
239
257
|
return onBeforeRender?.(instance);
|
|
240
258
|
}, [onBeforeRender, onViewChange, customElement]);
|
|
241
|
-
return (React.createElement("div", { className: className, id: id, ref: setCustomElement }, customElement && (React.createElement(
|
|
259
|
+
return (React.createElement("div", { className: className, id: id, ref: setCustomElement }, customElement && (React.createElement(ChatContainerExport, { config: useConfig, onBeforeRender: onBeforeRenderOverride, onAfterRender: onAfterRender, renderUserDefinedResponse: renderUserDefinedResponse, renderWriteableElements: renderWriteableElements }))));
|
|
242
260
|
}
|
|
261
|
+
const ChatCustomElementExport = React.memo(ChatCustomElement);
|
|
243
262
|
|
|
244
263
|
Object.defineProperty(exports, "AgentMessageType", {
|
|
245
264
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
265
|
+
get: function () { return AppContainer.AgentMessageType; }
|
|
247
266
|
});
|
|
248
267
|
Object.defineProperty(exports, "AgentsOnlineStatus", {
|
|
249
268
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
269
|
+
get: function () { return AppContainer.AgentsOnlineStatus; }
|
|
251
270
|
});
|
|
252
271
|
Object.defineProperty(exports, "BusEventType", {
|
|
253
272
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
273
|
+
get: function () { return AppContainer.BusEventType; }
|
|
255
274
|
});
|
|
256
275
|
Object.defineProperty(exports, "ButtonItemKind", {
|
|
257
276
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
277
|
+
get: function () { return AppContainer.ButtonItemKind; }
|
|
259
278
|
});
|
|
260
279
|
Object.defineProperty(exports, "ButtonItemType", {
|
|
261
280
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
281
|
+
get: function () { return AppContainer.ButtonItemType; }
|
|
263
282
|
});
|
|
264
283
|
Object.defineProperty(exports, "CarbonTheme", {
|
|
265
284
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
285
|
+
get: function () { return AppContainer.CarbonTheme; }
|
|
267
286
|
});
|
|
268
287
|
Object.defineProperty(exports, "CatastrophicErrorType", {
|
|
269
288
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
289
|
+
get: function () { return AppContainer.CatastrophicErrorType; }
|
|
271
290
|
});
|
|
272
|
-
exports.ChatHeaderObjectType =
|
|
291
|
+
exports.ChatHeaderObjectType = AppContainer.ChatHeaderObjectType;
|
|
273
292
|
Object.defineProperty(exports, "CornersType", {
|
|
274
293
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
294
|
+
get: function () { return AppContainer.CornersType; }
|
|
276
295
|
});
|
|
277
296
|
Object.defineProperty(exports, "CustomEventType", {
|
|
278
297
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
298
|
+
get: function () { return AppContainer.CustomEventType; }
|
|
280
299
|
});
|
|
281
300
|
Object.defineProperty(exports, "ErrorType", {
|
|
282
301
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
302
|
+
get: function () { return AppContainer.ErrorType; }
|
|
284
303
|
});
|
|
285
304
|
Object.defineProperty(exports, "FeedbackInteractionType", {
|
|
286
305
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
306
|
+
get: function () { return AppContainer.FeedbackInteractionType; }
|
|
288
307
|
});
|
|
289
308
|
Object.defineProperty(exports, "FileStatusValue", {
|
|
290
309
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
310
|
+
get: function () { return AppContainer.FileStatusValue; }
|
|
292
311
|
});
|
|
293
312
|
Object.defineProperty(exports, "HomeScreenBackgroundType", {
|
|
294
313
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
314
|
+
get: function () { return AppContainer.HomeScreenBackgroundType; }
|
|
296
315
|
});
|
|
297
316
|
Object.defineProperty(exports, "IFrameItemDisplayOption", {
|
|
298
317
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
318
|
+
get: function () { return AppContainer.IFrameItemDisplayOption; }
|
|
300
319
|
});
|
|
301
320
|
Object.defineProperty(exports, "LauncherType", {
|
|
302
321
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
322
|
+
get: function () { return AppContainer.LauncherType; }
|
|
304
323
|
});
|
|
305
324
|
Object.defineProperty(exports, "MessageInputType", {
|
|
306
325
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
326
|
+
get: function () { return AppContainer.MessageInputType; }
|
|
308
327
|
});
|
|
309
328
|
Object.defineProperty(exports, "MessageResponseTypes", {
|
|
310
329
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
330
|
+
get: function () { return AppContainer.MessageResponseTypes; }
|
|
312
331
|
});
|
|
313
332
|
Object.defineProperty(exports, "MessageSendSource", {
|
|
314
333
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
334
|
+
get: function () { return AppContainer.MessageSendSource; }
|
|
316
335
|
});
|
|
317
336
|
Object.defineProperty(exports, "MinimizeButtonIconType", {
|
|
318
337
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
338
|
+
get: function () { return AppContainer.MinimizeButtonIconType; }
|
|
320
339
|
});
|
|
321
340
|
Object.defineProperty(exports, "OnErrorType", {
|
|
322
341
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
342
|
+
get: function () { return AppContainer.OnErrorType; }
|
|
324
343
|
});
|
|
325
344
|
Object.defineProperty(exports, "OptionItemPreference", {
|
|
326
345
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
346
|
+
get: function () { return AppContainer.OptionItemPreference; }
|
|
328
347
|
});
|
|
329
348
|
Object.defineProperty(exports, "ScreenShareState", {
|
|
330
349
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
350
|
+
get: function () { return AppContainer.ScreenShareState; }
|
|
332
351
|
});
|
|
333
352
|
Object.defineProperty(exports, "TourEndReason", {
|
|
334
353
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
354
|
+
get: function () { return AppContainer.TourEndReason; }
|
|
336
355
|
});
|
|
337
356
|
Object.defineProperty(exports, "TourStartReason", {
|
|
338
357
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
358
|
+
get: function () { return AppContainer.TourStartReason; }
|
|
340
359
|
});
|
|
341
360
|
Object.defineProperty(exports, "ViewChangeReason", {
|
|
342
361
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
362
|
+
get: function () { return AppContainer.ViewChangeReason; }
|
|
344
363
|
});
|
|
345
364
|
Object.defineProperty(exports, "ViewType", {
|
|
346
365
|
enumerable: true,
|
|
347
|
-
get: function () { return
|
|
366
|
+
get: function () { return AppContainer.ViewType; }
|
|
348
367
|
});
|
|
349
368
|
Object.defineProperty(exports, "WriteableElementName", {
|
|
350
369
|
enumerable: true,
|
|
351
|
-
get: function () { return
|
|
370
|
+
get: function () { return AppContainer.WriteableElementName; }
|
|
352
371
|
});
|
|
353
|
-
exports.ChatContainer =
|
|
354
|
-
exports.ChatCustomElement =
|
|
372
|
+
exports.ChatContainer = ChatContainerExport;
|
|
373
|
+
exports.ChatCustomElement = ChatCustomElementExport;
|
|
@@ -13,16 +13,16 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
*/
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var AppContainer = require('./AppContainer.js');
|
|
26
26
|
|
|
27
27
|
/*! js-cookie v3.0.5 | MIT */
|
|
28
28
|
/* eslint-disable no-var */
|
|
@@ -193,7 +193,7 @@ function getAnonymousUserID(useCookie) {
|
|
|
193
193
|
// Return the value of the cookie, looking in session storage first as that's our fallback if cookies aren't
|
|
194
194
|
// available.
|
|
195
195
|
let userID;
|
|
196
|
-
if (
|
|
196
|
+
if (AppContainer.IS_SESSION_STORAGE()) {
|
|
197
197
|
if (useCookie) {
|
|
198
198
|
userID = window.sessionStorage.getItem(ANONYMOUS_USER_ID_KEY) || api.get(ANONYMOUS_USER_ID_KEY);
|
|
199
199
|
}
|
|
@@ -218,10 +218,10 @@ function setAnonymousUserId(anonymousUserId, useCookie) {
|
|
|
218
218
|
api.set(ANONYMOUS_USER_ID_KEY, anonymousUserId, {
|
|
219
219
|
expires: COOKIE_DURATION,
|
|
220
220
|
sameSite: 'lax',
|
|
221
|
-
secure:
|
|
221
|
+
secure: AppContainer.isSecureHost(),
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
if ((!useCookie || !api.get(ANONYMOUS_USER_ID_KEY)) &&
|
|
224
|
+
if ((!useCookie || !api.get(ANONYMOUS_USER_ID_KEY)) && AppContainer.IS_SESSION_STORAGE()) {
|
|
225
225
|
// If the cookie failed to get set, it means we're in a higher security level and we need to attempt to use
|
|
226
226
|
// session storage instead. If tracking is disabled, browsers may disable localStorage and cookies, but still allow
|
|
227
227
|
// session storage. Falling back to session storage at least allows us to not bill each page view as an
|
|
@@ -233,7 +233,7 @@ function setAnonymousUserId(anonymousUserId, useCookie) {
|
|
|
233
233
|
* Generated a new anonymousUserId (MUST start with anonymous_ to be handled correctly downstream).
|
|
234
234
|
*/
|
|
235
235
|
function generateAndSetAnonymousUserId(useCookie) {
|
|
236
|
-
const anonymousUserId = `${ANONYMOUS_USER_ID_PREFIX}${
|
|
236
|
+
const anonymousUserId = `${ANONYMOUS_USER_ID_PREFIX}${AppContainer.uuid(AppContainer.UUIDType.USER)}`;
|
|
237
237
|
setAnonymousUserId(anonymousUserId, useCookie);
|
|
238
238
|
return anonymousUserId;
|
|
239
239
|
}
|
|
@@ -243,7 +243,7 @@ function generateAndSetAnonymousUserId(useCookie) {
|
|
|
243
243
|
*/
|
|
244
244
|
function clearAnonymousUserId() {
|
|
245
245
|
api.remove(ANONYMOUS_USER_ID_KEY);
|
|
246
|
-
if (
|
|
246
|
+
if (AppContainer.IS_SESSION_STORAGE()) {
|
|
247
247
|
window.sessionStorage.removeItem(ANONYMOUS_USER_ID_KEY);
|
|
248
248
|
}
|
|
249
249
|
}
|
package/dist/cjs/ar-dz.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ Built: Feb 3 2025 9:58 am -05:00
|
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
25
|
var highlight_js = require('./highlight_js.js');
|
|
26
|
-
var
|
|
26
|
+
var AppContainer = require('./AppContainer.js');
|
|
27
27
|
|
|
28
28
|
function _mergeNamespaces(n, m) {
|
|
29
29
|
m.forEach(function (e) {
|
|
@@ -43,7 +43,7 @@ function _mergeNamespaces(n, m) {
|
|
|
43
43
|
var arDz$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(_,e){module.exports=e(
|
|
46
|
+
!function(_,e){module.exports=e(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(_){function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-dz",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d}));
|
|
47
47
|
} (arDz$2));
|
|
48
48
|
|
|
49
49
|
var arDzExports = arDz$2.exports;
|
package/dist/cjs/ar-kw.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ Built: Feb 3 2025 9:58 am -05:00
|
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
25
|
var highlight_js = require('./highlight_js.js');
|
|
26
|
-
var
|
|
26
|
+
var AppContainer = require('./AppContainer.js');
|
|
27
27
|
|
|
28
28
|
function _mergeNamespaces(n, m) {
|
|
29
29
|
m.forEach(function (e) {
|
|
@@ -43,7 +43,7 @@ function _mergeNamespaces(n, m) {
|
|
|
43
43
|
var arKw$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(_,e){module.exports=e(
|
|
46
|
+
!function(_,e){module.exports=e(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(_){function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-kw",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d}));
|
|
47
47
|
} (arKw$2));
|
|
48
48
|
|
|
49
49
|
var arKwExports = arKw$2.exports;
|
package/dist/cjs/ar-ly.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ Built: Feb 3 2025 9:58 am -05:00
|
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
25
|
var highlight_js = require('./highlight_js.js');
|
|
26
|
-
var
|
|
26
|
+
var AppContainer = require('./AppContainer.js');
|
|
27
27
|
|
|
28
28
|
function _mergeNamespaces(n, m) {
|
|
29
29
|
m.forEach(function (e) {
|
|
@@ -43,7 +43,7 @@ function _mergeNamespaces(n, m) {
|
|
|
43
43
|
var arLy$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(_,e){module.exports=e(
|
|
46
|
+
!function(_,e){module.exports=e(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(_){function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"ar-ly",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekStart:6,weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(_){return _},meridiem:function(_){return _>12?"م":"ص"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return t.default.locale(n,null,!0),n}));
|
|
47
47
|
} (arLy$2));
|
|
48
48
|
|
|
49
49
|
var arLyExports = arLy$2.exports;
|
package/dist/cjs/ar-ma.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.7-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Feb
|
|
18
|
+
Built: Feb 12 2025 9:14 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ Built: Feb 3 2025 9:58 am -05:00
|
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
25
|
var highlight_js = require('./highlight_js.js');
|
|
26
|
-
var
|
|
26
|
+
var AppContainer = require('./AppContainer.js');
|
|
27
27
|
|
|
28
28
|
function _mergeNamespaces(n, m) {
|
|
29
29
|
m.forEach(function (e) {
|
|
@@ -43,7 +43,7 @@ function _mergeNamespaces(n, m) {
|
|
|
43
43
|
var arMa$2 = {exports: {}};
|
|
44
44
|
|
|
45
45
|
(function (module, exports) {
|
|
46
|
-
!function(e,_){module.exports=_(
|
|
46
|
+
!function(e,_){module.exports=_(AppContainer.dayjs_minExports);}(highlight_js.commonjsGlobal,(function(e){function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"ar-ma",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekStart:6,weekdaysShort:"احد_إثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d}));
|
|
47
47
|
} (arMa$2));
|
|
48
48
|
|
|
49
49
|
var arMaExports = arMa$2.exports;
|