deep-chat-dev 9.0.330 → 9.0.332
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/custom-elements.json +22254 -22254
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.js +1 -1
- package/dist/utils/webComponent/internalHTML.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/deepChat.js
CHANGED
|
@@ -128,7 +128,7 @@ function(){var _request3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(functio
|
|
|
128
128
|
function R(e,t,n,s,r){var _this16;_classCallCheck(this,R);var o;_this16=_callSuper(this,R,[e,r]),_this16.insertKeyPlaceholderText="API Key",_this16.keyHelpUrl="",_this16.asyncCallInProgress=!1,_this16.systemMessage="",Object.assign(_this16.rawBody,(o=e.connect)==null?void 0:o.additionalBodyProps),_this16._keyVerificationDetails=t,_this16._buildHeadersFunc=n,s&&_this16.setApiKeyProperties(s),_this16.connectSettings=_this16.buildConnectSettings(_this16.key||"",e.connect);return _this16;}_inherits(R,_Kt);return _createClass(R,[{key:"setApiKeyProperties",value:function setApiKeyProperties(e){this.key=e.key,e.validateKeyProperty&&(this.validateKeyProperty=e.validateKeyProperty);}},{key:"buildConnectSettings",value:function buildConnectSettings(e,t){var _n$headers;var n=t!==null&&t!==void 0?t:{};return(_n$headers=n.headers)!==null&&_n$headers!==void 0?_n$headers:n.headers={},Object.assign(n.headers,this._buildHeadersFunc(e)),n;}},{key:"completeConfig",value:function completeConfig(e,t){e.system_prompt&&(this.systemMessage=e.system_prompt),t&&(this.functionHandler=t),delete e.system_prompt,delete e.key,delete e.function_handler,Object.assign(this.rawBody,e);}},{key:"keyAuthenticated",value:function keyAuthenticated(e,t){this.connectSettings=this.buildConnectSettings(t,this.connectSettings),this.key=t,e();}// prettier-ignore
|
|
129
129
|
},{key:"verifyKey",value:function verifyKey(e,t){var _this$_keyVerificatio=this._keyVerificationDetails,n=_this$_keyVerificatio.url,s=_this$_keyVerificatio.method,r=_this$_keyVerificatio.handleVerificationResult,o=_this$_keyVerificatio.createHeaders,a=_this$_keyVerificatio.body,c=_this$_keyVerificatio.augmentUrl,l=(o==null?void 0:o(e))||this._buildHeadersFunc(e),d=(c==null?void 0:c(e))||n;ie.verifyKey(e,d,l,s,this.keyAuthenticated.bind(this,t.onSuccess),t.onFail,t.onLoad,r,a);}},{key:"isDirectConnection",value:function isDirectConnection(){return!0;}},{key:"processMessages",value:function processMessages(e){return fn.getCharacterLimitMessages(e,this.totalMessagesMaxCharLength?this.totalMessagesMaxCharLength-this.systemMessage.length:-1);}},{key:"addSystemMessage",value:function addSystemMessage(e){this.systemMessage&&e.unshift({role:"system",content:this.systemMessage});}},{key:"callDirectServiceServiceAPI",value:function(){var _callDirectServiceServiceAPI=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee33(e,t,n,s,r){var o,a;return _regenerator().w(function(_context33){while(1)switch(_context33.n){case 0:if(this.connectSettings){_context33.n=1;break;}throw new Error(Ie);case 1:o=n(this.rawBody,t),a=s?this.stream:!1;if(!(a&&(_typeof(a)!==B||!a.simulation)||o.stream)){_context33.n=2;break;}o.stream=!0,s!=null&&s.readable&&(this.stream={readable:!0}),F.request(this,o,e);_context33.n=4;break;case 2:_context33.n=3;return ie.request(this,o,e,r);case 3:return _context33.a(2,_context33.v);case 4:return _context33.a(2);}},_callee33,this);}));function callDirectServiceServiceAPI(_x66,_x67,_x68,_x69,_x70){return _callDirectServiceServiceAPI.apply(this,arguments);}return callDirectServiceServiceAPI;}()},{key:"callToolFunction",value:function(){var _callToolFunction=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee34(e,t){var r,o,n,a,c,_t14,_t15;return _regenerator().w(function(_context34){while(1)switch(_context34.n){case 0:this.asyncCallInProgress=!0;_context34.n=1;return e(t);case 1:n=_context34.v;if(Array.isArray(n)){_context34.n=6;break;}if(!n[h]){_context34.n=5;break;}a=_defineProperty({},h,n[h]);_context34.n=2;return(o=(r=this.deepChat).responseInterceptor)==null?void 0:o.call(r,a);case 2:_t14=_context34.v;if(_t14){_context34.n=3;break;}_t14=a;case 3:c=_t14;if(!Array.isArray(c)){_context34.n=4;break;}throw Error("Function tool response interceptor cannot return an array");case 4:return _context34.a(2,{processedResponse:c});case 5:throw Error(un);case 6:_context34.n=7;return Promise.all(n);case 7:_t15=_context34.v;return _context34.a(2,{responses:_t15});}},_callee34,this);}));function callToolFunction(_x71,_x72){return _callToolFunction.apply(this,arguments);}return callToolFunction;}()},{key:"makeAnotherRequest",value:function makeAnotherRequest(e,t,n){try{return t&&(this.stream?F.request(this,e,t):ie.request(this,e,t)),_defineProperty({},h,n||"");}catch(s){throw this.asyncCallInProgress=!1,s;}}},{key:"genereteAPIKeyName",value:function genereteAPIKeyName(e){return"".concat(e," API Key");}},{key:"extractStreamResultWToolsGeneric",value:function(){var _extractStreamResultWToolsGeneric=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35(e,t,n,s,r){var o,a,c;return _regenerator().w(function(_context35){while(1)switch(_context35.n){case 0:o=t.delta,a=t.finish_reason;if(!(a==="tool_calls")){_context35.n=1;break;}c={tool_calls:e._streamToolCalls};return _context35.a(2,(e._streamToolCalls=void 0,this.handleToolsGeneric(c,n,e.messages,s,r)));case 1:o!=null&&o.tool_calls&&(e._streamToolCalls?o.tool_calls.forEach(function(c,l){e._streamToolCalls&&(e._streamToolCalls[l]["function"].arguments+=c["function"].arguments);}):e._streamToolCalls=o.tool_calls);case 2:return _context35.a(2,_defineProperty({},h,(o==null?void 0:o.content)||""));}},_callee35,this);}));function extractStreamResultWToolsGeneric(_x73,_x74,_x75,_x76,_x77){return _extractStreamResultWToolsGeneric.apply(this,arguments);}return extractStreamResultWToolsGeneric;}()},{key:"handleToolsGeneric",value:function(){var _handleToolsGeneric=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee36(e,t,n,s,r){var o,a,_yield$this$callToolF,c,l;return _regenerator().w(function(_context36){while(1)switch(_context36.n){case 0:if(!(!e.tool_calls||!s||!t)){_context36.n=1;break;}throw Error(Wt);case 1:o=JSON.parse(JSON.stringify(s));a=e.tool_calls.map(function(d){return{name:d["function"].name,arguments:d["function"].arguments};});_context36.n=2;return this.callToolFunction(t,a);case 2:_yield$this$callToolF=_context36.v;c=_yield$this$callToolF.responses;l=_yield$this$callToolF.processedResponse;if(!l){_context36.n=3;break;}return _context36.a(2,l);case 3:if(!(r&&(o.messages=o.messages.slice(o.messages.length-1),r.message&&o.messages.unshift({role:"system",content:r.message})),o.messages.push({tool_calls:e.tool_calls,role:bt,content:null}),!c.find(function(_ref25){var d=_ref25.response;return typeof d!="string";})&&a.length===c.length)){_context36.n=4;break;}return _context36.a(2,(c.forEach(function(d,p){var g;var u=(g=e.tool_calls)==null?void 0:g[p];o==null||o.messages.push({role:"tool",tool_call_id:u==null?void 0:u.id,name:u==null?void 0:u["function"].name,content:d.response});}),this.makeAnotherRequest(o,n)));case 4:throw Error(un);case 5:return _context36.a(2);}},_callee36,this);}));function handleToolsGeneric(_x78,_x79,_x80,_x81,_x82){return _handleToolsGeneric.apply(this,arguments);}return handleToolsGeneric;}()},{key:"updateSessionId",value:function updateSessionId(e){this.messages&&this.messages.messageToElements.length>0&&(this.messages.messageToElements[this.messages.messageToElements.length-1][0]._sessionId=e);}}],[{key:"getRoleViaUser",value:function getRoleViaUser(e){return e===U?U:bt;}},{key:"getRoleViaAI",value:function getRoleViaAI(e){return e===J?bt:U;}},{key:"getImageContent",value:function getImageContent(e){return e.filter(function(t){return t.type===j;}).map(function(t){return _defineProperty(_defineProperty({},T,Ne),Ne,{url:t[A]||""});}).filter(function(t){return t[Ne].url.length>0;});}},{key:"getTextWImagesContent",value:function getTextWImagesContent(e){if(e[y]&&e[y].length>0){var t=this.getImageContent(e[y]);return e[h]&&e[h].trim().length>0&&t.unshift(_defineProperty(_defineProperty({},T,h),h,e[h])),t.length>0?t:e[h]||"";}return e[h]||"";}},{key:"getTextWFilesContent",value:function getTextWFilesContent(e,t){if(e[y]&&e[y].length>0){var n=t(e[y]);return e[h]&&e[h].trim().length>0&&n.unshift(_defineProperty(_defineProperty({},T,h),h,e[h])),n;}return e[h]||"";}}]);}(Kt);var Ms=/*#__PURE__*/function(){function Ms(){_classCallCheck(this,Ms);}return _createClass(Ms,null,[{key:"waitForPropertiesToBeUpdatedBeforeRender",value:function waitForPropertiesToBeUpdatedBeforeRender(e){e._propUpdated_=!1,setTimeout(function(){e._propUpdated_?Ms.waitForPropertiesToBeUpdatedBeforeRender(e):(e._waitingToRender_=!1,e.onRender());});}},{key:"attemptRender",value:function attemptRender(e){e._propUpdated_=!0,e._waitingToRender_||(e._waitingToRender_=!0,Ms.waitForPropertiesToBeUpdatedBeforeRender(e));}}]);}();var pt=/*#__PURE__*/function(_HTMLElement){// If this is not working, try using propertyName directly
|
|
130
130
|
function pt(){var _this17;_classCallCheck(this,pt);_this17=_callSuper(this,pt),_this17._waitingToRender_=!1,_this17._propUpdated_=!1,Object.keys(pt._attributeToProperty_).forEach(function(e){var t=pt._attributeToProperty_[e];_this17.constructPropertyAccessors(t),_this17.hasOwnProperty(e)||_this17.constructPropertyAccessors(t,e);});return _this17;}_inherits(pt,_HTMLElement);return _createClass(pt,[{key:"constructPropertyAccessors",value:// need to be called here as accessors need to be set for the class instance
|
|
131
|
-
function constructPropertyAccessors(e,t){var n;Object.defineProperty(this,t||e,{get:function get(){return n;},set:function set(o){n=o,console.log("reference 1"),console.log(n),console.log("reference 2"),console.log(o),t?this[e]=o:Ms.attemptRender(this);}});}},{key:"attributeChangedCallback",value:function attributeChangedCallback(e,t,n){if(t===n)return;var s=pt._attributes_[e](n),r=pt._attributeToProperty_[e];this[r]=s;}},{key:"onRender",value:function onRender(){}}],[{key:"observedAttributes",get:function get(){return Object.keys(pt._attributes_)||[];}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));pt._attributes_={},pt._attributeToProperty_={};var Si=pt;var sl="<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path d=\"\n\t\t\tM669.727,273.516c-22.891-2.476-46.15-3.895-69.727-4.248c-103.025,0.457-209.823,25.517-310.913,73.536\n\t\t\tc-75.058,37.122-148.173,89.529-211.67,154.174C46.232,529.978,6.431,577.76,0,628.74c0.76,44.162,48.153,98.67,77.417,131.764\n\t\t\tc59.543,62.106,130.754,113.013,211.67,154.174c2.75,1.335,5.51,2.654,8.276,3.955l-75.072,131.102l102.005,60.286l551.416-960.033\n\t\t\tl-98.186-60.008L669.727,273.516z M902.563,338.995l-74.927,129.857c34.47,44.782,54.932,100.006,54.932,159.888\n\t\t\tc0,149.257-126.522,270.264-282.642,270.264c-6.749,0-13.29-0.728-19.922-1.172l-49.585,85.84c22.868,2.449,45.99,4.233,69.58,4.541\n\t\t\tc103.123-0.463,209.861-25.812,310.84-73.535c75.058-37.122,148.246-89.529,211.743-154.174\n\t\t\tc31.186-32.999,70.985-80.782,77.417-131.764c-0.76-44.161-48.153-98.669-77.417-131.763\n\t\t\tc-59.543-62.106-130.827-113.013-211.743-154.175C908.108,341.478,905.312,340.287,902.563,338.995L902.563,338.995z\n\t\t\tM599.927,358.478c6.846,0,13.638,0.274,20.361,0.732l-58.081,100.561c-81.514,16.526-142.676,85.88-142.676,168.897\n\t\t\tc0,20.854,3.841,40.819,10.913,59.325c0.008,0.021-0.008,0.053,0,0.074l-58.228,100.854\n\t\t\tc-34.551-44.823-54.932-100.229-54.932-160.182C317.285,479.484,443.808,358.477,599.927,358.478L599.927,358.478z M768.896,570.513\n\t\t\tL638.013,797.271c81.076-16.837,141.797-85.875,141.797-168.603C779.81,608.194,775.724,588.729,768.896,570.513L768.896,570.513z\"\n\t\t\t/>\n</svg>\n",il="<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path id=\"path6686\" inkscape:connector-curvature=\"0\" d=\"M779.843,599.925c0,95.331-80.664,172.612-180.169,172.612\n\t\t\tc-99.504,0-180.168-77.281-180.168-172.612c0-95.332,80.664-172.612,180.168-172.612\n\t\t\tC699.179,427.312,779.843,504.594,779.843,599.925z M600,240.521c-103.025,0.457-209.814,25.538-310.904,73.557\n\t\t\tc-75.058,37.122-148.206,89.496-211.702,154.141C46.208,501.218,6.431,549,0,599.981c0.76,44.161,48.13,98.669,77.394,131.763\n\t\t\tc59.543,62.106,130.786,113.018,211.702,154.179c94.271,45.751,198.616,72.092,310.904,73.557\n\t\t\tc103.123-0.464,209.888-25.834,310.866-73.557c75.058-37.122,148.243-89.534,211.74-154.179\n\t\t\tc31.185-32.999,70.962-80.782,77.394-131.763c-0.76-44.161-48.13-98.671-77.394-131.764\n\t\t\tc-59.543-62.106-130.824-112.979-211.74-154.141C816.644,268.36,712.042,242.2,600,240.521z M599.924,329.769\n\t\t\tc156.119,0,282.675,120.994,282.675,270.251c0,149.256-126.556,270.25-282.675,270.25S317.249,749.275,317.249,600.02\n\t\t\tC317.249,450.763,443.805,329.769,599.924,329.769L599.924,329.769z\"/>\n</svg>\n";var _t=/*#__PURE__*/function(){function _t(){_classCallCheck(this,_t);}return _createClass(_t,null,[{key:"createSVGElement",value:function createSVGElement(e){return new DOMParser().parseFromString(e,"image/svg+xml").documentElement;}}]);}();var Tt=/*#__PURE__*/function(){function Tt(){_classCallCheck(this,Tt);}return _createClass(Tt,null,[{key:"changeVisibility",value:// prettier-ignore
|
|
131
|
+
function constructPropertyAccessors(e,t){var n;Object.defineProperty(this,t||e,{get:function get(){return n;},set:function set(o){n=o,console.log("reference 1"),console.log(n),console.log("reference 2"),console.log(o),console.log(t),t?this[e]=o:Ms.attemptRender(this);}});}},{key:"attributeChangedCallback",value:function attributeChangedCallback(e,t,n){if(t===n)return;var s=pt._attributes_[e](n),r=pt._attributeToProperty_[e];this[r]=s;}},{key:"onRender",value:function onRender(){}}],[{key:"observedAttributes",get:function get(){return Object.keys(pt._attributes_)||[];}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));pt._attributes_={},pt._attributeToProperty_={};var Si=pt;var sl="<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path d=\"\n\t\t\tM669.727,273.516c-22.891-2.476-46.15-3.895-69.727-4.248c-103.025,0.457-209.823,25.517-310.913,73.536\n\t\t\tc-75.058,37.122-148.173,89.529-211.67,154.174C46.232,529.978,6.431,577.76,0,628.74c0.76,44.162,48.153,98.67,77.417,131.764\n\t\t\tc59.543,62.106,130.754,113.013,211.67,154.174c2.75,1.335,5.51,2.654,8.276,3.955l-75.072,131.102l102.005,60.286l551.416-960.033\n\t\t\tl-98.186-60.008L669.727,273.516z M902.563,338.995l-74.927,129.857c34.47,44.782,54.932,100.006,54.932,159.888\n\t\t\tc0,149.257-126.522,270.264-282.642,270.264c-6.749,0-13.29-0.728-19.922-1.172l-49.585,85.84c22.868,2.449,45.99,4.233,69.58,4.541\n\t\t\tc103.123-0.463,209.861-25.812,310.84-73.535c75.058-37.122,148.246-89.529,211.743-154.174\n\t\t\tc31.186-32.999,70.985-80.782,77.417-131.764c-0.76-44.161-48.153-98.669-77.417-131.763\n\t\t\tc-59.543-62.106-130.827-113.013-211.743-154.175C908.108,341.478,905.312,340.287,902.563,338.995L902.563,338.995z\n\t\t\tM599.927,358.478c6.846,0,13.638,0.274,20.361,0.732l-58.081,100.561c-81.514,16.526-142.676,85.88-142.676,168.897\n\t\t\tc0,20.854,3.841,40.819,10.913,59.325c0.008,0.021-0.008,0.053,0,0.074l-58.228,100.854\n\t\t\tc-34.551-44.823-54.932-100.229-54.932-160.182C317.285,479.484,443.808,358.477,599.927,358.478L599.927,358.478z M768.896,570.513\n\t\t\tL638.013,797.271c81.076-16.837,141.797-85.875,141.797-168.603C779.81,608.194,775.724,588.729,768.896,570.513L768.896,570.513z\"\n\t\t\t/>\n</svg>\n",il="<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path id=\"path6686\" inkscape:connector-curvature=\"0\" d=\"M779.843,599.925c0,95.331-80.664,172.612-180.169,172.612\n\t\t\tc-99.504,0-180.168-77.281-180.168-172.612c0-95.332,80.664-172.612,180.168-172.612\n\t\t\tC699.179,427.312,779.843,504.594,779.843,599.925z M600,240.521c-103.025,0.457-209.814,25.538-310.904,73.557\n\t\t\tc-75.058,37.122-148.206,89.496-211.702,154.141C46.208,501.218,6.431,549,0,599.981c0.76,44.161,48.13,98.669,77.394,131.763\n\t\t\tc59.543,62.106,130.786,113.018,211.702,154.179c94.271,45.751,198.616,72.092,310.904,73.557\n\t\t\tc103.123-0.464,209.888-25.834,310.866-73.557c75.058-37.122,148.243-89.534,211.74-154.179\n\t\t\tc31.185-32.999,70.962-80.782,77.394-131.763c-0.76-44.161-48.13-98.671-77.394-131.764\n\t\t\tc-59.543-62.106-130.824-112.979-211.74-154.141C816.644,268.36,712.042,242.2,600,240.521z M599.924,329.769\n\t\t\tc156.119,0,282.675,120.994,282.675,270.251c0,149.256-126.556,270.25-282.675,270.25S317.249,749.275,317.249,600.02\n\t\t\tC317.249,450.763,443.805,329.769,599.924,329.769L599.924,329.769z\"/>\n</svg>\n";var _t=/*#__PURE__*/function(){function _t(){_classCallCheck(this,_t);}return _createClass(_t,null,[{key:"createSVGElement",value:function createSVGElement(e){return new DOMParser().parseFromString(e,"image/svg+xml").documentElement;}}]);}();var Tt=/*#__PURE__*/function(){function Tt(){_classCallCheck(this,Tt);}return _createClass(Tt,null,[{key:"changeVisibility",value:// prettier-ignore
|
|
132
132
|
function changeVisibility(e,t,n,s){s.target.id===Tt.VISIBLE_ICON_ID?(t[_].display="none",n[_].display="block",e.type="password"):(t[_].display="block",n[_].display="none",e.type=h);}},{key:"createIconElement",value:function createIconElement(e,t){var n=_t.createSVGElement(e);return n.id=t,n[m].add("visibility-icon"),n;}// prettier-ignore
|
|
133
133
|
},{key:"create",value:function create(e){var t=S();t.id="visibility-icon-container";var n=Tt.createIconElement(il,Tt.VISIBLE_ICON_ID);n[_].display="none",t.appendChild(n);var s=Tt.createIconElement(sl,"not-visible-icon");return t.appendChild(s),t.onclick=Tt.changeVisibility.bind(this,e,n,s),t;}}]);}();Tt.VISIBLE_ICON_ID="visible-icon";var xi=Tt;var Ae=/*#__PURE__*/function(){function Ae(){_classCallCheck(this,Ae);}return _createClass(Ae,null,[{key:"createCautionText",value:function createCautionText(){var e=S("a");return e[m].add("insert-key-input-help-text"),e.innerText="Please exercise CAUTION when inserting your API key outside of deepchat.dev or localhost!!",e;}},{key:"createHelpLink",value:function createHelpLink(e){var t=S("a");return t[m].add("insert-key-input-help-text"),t.href=e,t.innerText="Find more info here",t.target="_blank",t;}},{key:"createFailText",value:function createFailText(){var e=S();return e.id="insert-key-input-invalid-text",e[_].display="none",e;}},{key:"createHelpTextContainer",value:function createHelpTextContainer(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;var n=S();n.id="insert-key-help-text-container";var s=S();s.id="insert-key-help-text-contents";var r=Ae.createFailText();if(s.appendChild(r),e){var o=Ae.createHelpLink(e);s.appendChild(o);}if(t===!0){var _o3=Ae.createCautionText();s.appendChild(_o3);}return n.appendChild(s),{helpTextContainerElement:n,failTextElement:r};}},{key:"onFail",value:function onFail(e,t,n,s){e[m].replace("insert-key-input-valid","insert-key-input-invalid"),n.innerText=s,n[_].display="block",t.innerText="Start",e[m].remove("loading");}},{key:"onLoad",value:function onLoad(e,t){e[m].add("loading"),t.innerHTML='<div id="loading-key"></div>';}// prettier-ignore
|
|
134
134
|
},{key:"verifyKey",value:function verifyKey(e,t,n){var s=e.value.trim();n.verifyKey(s,t);}// prettier-ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internalHTML.d.ts","sourceRoot":"","sources":["../../../src/utils/webComponent/internalHTML.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD,qBAAa,YAAa,SAAQ,WAAW;IAC3C,iBAAiB,UAAS;IAC1B,aAAa,UAAS;IACtB,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAM;IAChE,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAM;IAEzD,MAAM,KAAK,kBAAkB,aAE5B;;IAgBD,OAAO,CAAC,0BAA0B;
|
|
1
|
+
{"version":3,"file":"internalHTML.d.ts","sourceRoot":"","sources":["../../../src/utils/webComponent/internalHTML.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD,qBAAa,YAAa,SAAQ,WAAW;IAC3C,iBAAiB,UAAS;IAC1B,aAAa,UAAS;IACtB,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAM;IAChE,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAM;IAEzD,MAAM,KAAK,kBAAkB,aAE5B;;IAgBD,OAAO,CAAC,0BAA0B;IAyBlC,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAOlF,QAAQ;CACT"}
|