@seamly/web-ui 25.3.0 → 25.4.0-beta.1

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.
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e={34:(e,t,i)=>{var n=i(4901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},81:(e,t,i)=>{var n=i(9565),a=i(9306),o=i(8551),r=i(6823),s=i(851),l=TypeError;e.exports=function(e,t){var i=arguments.length<2?s(e):t;if(a(i))return o(n(i,e));throw new l(r(e)+" is not iterable")}},116:(e,t,i)=>{var n=i(6518),a=i(9565),o=i(2652),r=i(9306),s=i(8551),l=i(1767),c=i(9539),d=i(4549)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(e){s(this);try{r(e)}catch(e){c(this,"throw",e)}if(d)return a(d,this,e);var t=l(this),i=0;return o(t,function(t,n){if(e(t,i++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},283:(e,t,i)=>{var n=i(9504),a=i(9039),o=i(4901),r=i(9297),s=i(3724),l=i(350).CONFIGURABLE,c=i(3706),d=i(1181),u=d.enforce,p=d.get,y=String,f=Object.defineProperty,m=n("".slice),g=n("".replace),h=n([].join),v=s&&!a(function(){return 8!==f(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,i){"Symbol("===m(y(t),0,7)&&(t="["+g(y(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!r(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),v&&i&&r(i,"arity")&&e.length!==i.arity&&f(e,"length",{value:i.arity});try{i&&r(i,"constructor")&&i.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=u(e);return r(n,"source")||(n.source=h(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return o(this)&&p(this).source||c(this)},"toString")},350:(e,t,i)=>{var n=i(3724),a=i(9297),o=Function.prototype,r=n&&Object.getOwnPropertyDescriptor,s=a(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&r(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},397:(e,t,i)=>{var n=i(7751);e.exports=n("document","documentElement")},421:e=>{e.exports={}},616:(e,t,i)=>{var n=i(9039);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},655:(e,t,i)=>{var n=i(6955),a=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},679:(e,t,i)=>{var n=i(1625),a=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new a("Incorrect invocation")}},684:e=>{e.exports=function(e,t){var i="function"==typeof Iterator&&Iterator.prototype[e];if(i)try{i.call({next:null},t).next()}catch(e){return!0}}},741:e=>{var t=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:t)(n)}},757:(e,t,i)=>{var n=i(7751),a=i(4901),o=i(1625),r=i(7040),s=Object;e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&o(t.prototype,s(e))}},851:(e,t,i)=>{var n=i(6955),a=i(5966),o=i(4117),r=i(6269),s=i(8227)("iterator");e.exports=function(e){if(!o(e))return a(e,s)||a(e,"@@iterator")||r[n(e)]}},1072:(e,t,i)=>{var n=i(1828),a=i(8727);e.exports=Object.keys||function(e){return n(e,a)}},1181:(e,t,i)=>{var n,a,o,r=i(8622),s=i(4576),l=i(34),c=i(6699),d=i(9297),u=i(7629),p=i(6119),y=i(421),f="Object already initialized",m=s.TypeError,g=s.WeakMap;if(r||u.state){var h=u.state||(u.state=new g);h.get=h.get,h.has=h.has,h.set=h.set,n=function(e,t){if(h.has(e))throw new m(f);return t.facade=e,h.set(e,t),t},a=function(e){return h.get(e)||{}},o=function(e){return h.has(e)}}else{var v=p("state");y[v]=!0,n=function(e,t){if(d(e,v))throw new m(f);return t.facade=e,c(e,v,t),t},a=function(e){return d(e,v)?e[v]:{}},o=function(e){return d(e,v)}}e.exports={set:n,get:a,has:o,enforce:function(e){return o(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=a(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return i}}}},1291:(e,t,i)=>{var n=i(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},1385:(e,t,i)=>{var n=i(9539);e.exports=function(e,t,i){for(var a=e.length-1;a>=0;a--)if(void 0!==e[a])try{i=n(e[a].iterator,t,i)}catch(e){t="throw",i=e}if("throw"===t)throw i;return i}},1454:(e,t,i)=>{i(1701)},1625:(e,t,i)=>{var n=i(9504);e.exports=n({}.isPrototypeOf)},1701:(e,t,i)=>{var n=i(6518),a=i(9565),o=i(9306),r=i(8551),s=i(1767),l=i(9462),c=i(6319),d=i(9539),u=i(684),p=i(4549),y=i(6395),f=!y&&!u("map",function(){}),m=!y&&!f&&p("map",TypeError),g=y||f||m,h=l(function(){var e=this.iterator,t=r(a(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(e){r(this);try{o(e)}catch(e){d(this,"throw",e)}return m?a(m,this,e):new h(s(this),{mapper:e})}})},1767:e=>{e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},1828:(e,t,i)=>{var n=i(9504),a=i(9297),o=i(5397),r=i(9617).indexOf,s=i(421),l=n([].push);e.exports=function(e,t){var i,n=o(e),c=0,d=[];for(i in n)!a(s,i)&&a(n,i)&&l(d,i);for(;t.length>c;)a(n,i=t[c++])&&(~r(d,i)||l(d,i));return d}},2106:(e,t,i)=>{var n=i(283),a=i(4913);e.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),a.f(e,t,i)}},2140:(e,t,i)=>{var n={};n[i(8227)("toStringTag")]="z",e.exports="[object z]"===String(n)},2195:(e,t,i)=>{var n=i(9504),a=n({}.toString),o=n("".slice);e.exports=function(e){return o(a(e),8,-1)}},2211:(e,t,i)=>{var n=i(9039);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2360:(e,t,i)=>{var n,a=i(8551),o=i(6801),r=i(8727),s=i(421),l=i(397),c=i(4055),d=i(6119),u="prototype",p="script",y=d("IE_PROTO"),f=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,i;h="undefined"!=typeof document?document.domain&&n?g(n):(t=c("iframe"),i="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var a=r.length;a--;)delete h[u][r[a]];return h()};s[y]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(f[u]=a(e),i=new f,f[u]=null,i[y]=e):i=h(),void 0===t?i:o.f(i,t)}},2489:(e,t,i)=>{var n=i(6518),a=i(9565),o=i(9306),r=i(8551),s=i(1767),l=i(9462),c=i(6319),d=i(6395),u=i(9539),p=i(684),y=i(4549),f=!d&&!p("filter",function(){}),m=!d&&!f&&y("filter",TypeError),g=d||f||m,h=l(function(){for(var e,t,i=this.iterator,n=this.predicate,o=this.next;;){if(e=r(a(o,i)),this.done=!!e.done)return;if(t=e.value,c(i,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(e){r(this);try{o(e)}catch(e){u(this,"throw",e)}return m?a(m,this,e):new h(s(this),{predicate:e})}})},2529:e=>{e.exports=function(e,t){return{value:e,done:t}}},2577:(e,t,i)=>{i(116)},2652:(e,t,i)=>{var n=i(6080),a=i(9565),o=i(8551),r=i(6823),s=i(4209),l=i(6198),c=i(1625),d=i(81),u=i(851),p=i(9539),y=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,i){var g,h,v,b,w,x,I,S=i&&i.that,T=!(!i||!i.AS_ENTRIES),M=!(!i||!i.IS_RECORD),j=!(!i||!i.IS_ITERATOR),E=!(!i||!i.INTERRUPTED),L=n(t,S),C=function(e){return g&&p(g,"normal"),new f(!0,e)},O=function(e){return T?(o(e),E?L(e[0],e[1],C):L(e[0],e[1])):E?L(e,C):L(e)};if(M)g=e.iterator;else if(j)g=e;else{if(!(h=u(e)))throw new y(r(e)+" is not iterable");if(s(h)){for(v=0,b=l(e);b>v;v++)if((w=O(e[v]))&&c(m,w))return w;return new f(!1)}g=d(e,h)}for(x=M?e.next:g.next;!(I=a(x,g)).done;){try{w=O(I.value)}catch(e){p(g,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new f(!1)}},2777:(e,t,i)=>{var n=i(9565),a=i(34),o=i(757),r=i(5966),s=i(4270),l=i(8227),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!a(e)||o(e))return e;var i,l=r(e,d);if(l){if(void 0===t&&(t="default"),i=n(l,e,t),!a(i)||o(i))return i;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},2787:(e,t,i)=>{var n=i(9297),a=i(4901),o=i(8981),r=i(6119),s=i(2211),l=r("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var i=t.constructor;return a(i)&&t instanceof i?i.prototype:t instanceof c?d:null}},2796:(e,t,i)=>{var n=i(9039),a=i(4901),o=/#|\.prototype\./,r=function(e,t){var i=l[s(e)];return i===d||i!==c&&(a(t)?n(t):!!t)},s=r.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=r.data={},c=r.NATIVE="N",d=r.POLYFILL="P";e.exports=r},2812:e=>{var t=TypeError;e.exports=function(e,i){if(e<i)throw new t("Not enough arguments");return e}},2839:(e,t,i)=>{var n=i(4576).navigator,a=n&&n.userAgent;e.exports=a?String(a):""},3392:(e,t,i)=>{var n=i(9504),a=0,o=Math.random(),r=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++a+o,36)}},3706:(e,t,i)=>{var n=i(9504),a=i(4901),o=i(7629),r=n(Function.toString);a(o.inspectSource)||(o.inspectSource=function(e){return r(e)}),e.exports=o.inspectSource},3717:(e,t)=>{t.f=Object.getOwnPropertySymbols},3724:(e,t,i)=>{var n=i(9039);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3949:(e,t,i)=>{i(7588)},4055:(e,t,i)=>{var n=i(4576),a=i(34),o=n.document,r=a(o)&&a(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},4114:(e,t,i)=>{var n=i(6518),a=i(8981),o=i(6198),r=i(4527),s=i(6837);n({target:"Array",proto:!0,arity:1,forced:i(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=a(this),i=o(t),n=arguments.length;s(i+n);for(var l=0;l<n;l++)t[i]=arguments[l],i++;return r(t,i),i}})},4117:e=>{e.exports=function(e){return null==e}},4209:(e,t,i)=>{var n=i(8227),a=i(6269),o=n("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||r[o]===e)}},4270:(e,t,i)=>{var n=i(9565),a=i(4901),o=i(34),r=TypeError;e.exports=function(e,t){var i,s;if("string"===t&&a(i=e.toString)&&!o(s=n(i,e)))return s;if(a(i=e.valueOf)&&!o(s=n(i,e)))return s;if("string"!==t&&a(i=e.toString)&&!o(s=n(i,e)))return s;throw new r("Can't convert object to primitive value")}},4376:(e,t,i)=>{var n=i(2195);e.exports=Array.isArray||function(e){return"Array"===n(e)}},4495:(e,t,i)=>{var n=i(9519),a=i(9039),o=i(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!a(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},4520:(e,t,i)=>{i(2489)},4527:(e,t,i)=>{var n=i(3724),a=i(4376),o=TypeError,r=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(a(e)&&!r(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4549:(e,t,i)=>{var n=i(4576);e.exports=function(e,t){var i=n.Iterator,a=i&&i.prototype,o=a&&a[e],r=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){r=!0}},-1)}catch(e){e instanceof t||(r=!1)}if(!r)return o}},4576:function(e,t,i){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4603:(e,t,i)=>{var n=i(6840),a=i(9504),o=i(655),r=i(2812),s=URLSearchParams,l=s.prototype,c=a(l.append),d=a(l.delete),u=a(l.forEach),p=a([].push),y=new s("a=1&a=2&b=3");y.delete("a",1),y.delete("b",void 0),y+""!="a=2"&&n(l,"delete",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return d(this,e);var n=[];u(this,function(e,t){p(n,{key:t,value:e})}),r(t,1);for(var a,s=o(e),l=o(i),y=0,f=0,m=!1,g=n.length;y<g;)a=n[y++],m||a.key===s?(m=!0,d(this,a.key)):f++;for(;f<g;)(a=n[f++]).key===s&&a.value===l||c(this,a.key,a.value)},{enumerable:!0,unsafe:!0})},4659:(e,t,i)=>{var n=i(3724),a=i(4913),o=i(6980);e.exports=function(e,t,i){n?a.f(e,t,o(0,i)):e[t]=i}},4901:e=>{var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},4913:(e,t,i)=>{var n=i(3724),a=i(5917),o=i(8686),r=i(8551),s=i(6969),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u="enumerable",p="configurable",y="writable";t.f=n?o?function(e,t,i){if(r(e),t=s(t),r(i),"function"==typeof e&&"prototype"===t&&"value"in i&&y in i&&!i[y]){var n=d(e,t);n&&n[y]&&(e[t]=i.value,i={configurable:p in i?i[p]:n[p],enumerable:u in i?i[u]:n[u],writable:!1})}return c(e,t,i)}:c:function(e,t,i){if(r(e),t=s(t),r(i),a)try{return c(e,t,i)}catch(e){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},5031:(e,t,i)=>{var n=i(7751),a=i(9504),o=i(8480),r=i(3717),s=i(8551),l=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),i=r.f;return i?l(t,i(e)):t}},5397:(e,t,i)=>{var n=i(7055),a=i(7750);e.exports=function(e){return n(a(e))}},5610:(e,t,i)=>{var n=i(1291),a=Math.max,o=Math.min;e.exports=function(e,t){var i=n(e);return i<0?a(i+t,0):o(i,t)}},5745:(e,t,i)=>{var n=i(7629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},5917:(e,t,i)=>{var n=i(3724),a=i(9039),o=i(4055);e.exports=!n&&!a(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},5966:(e,t,i)=>{var n=i(9306),a=i(4117);e.exports=function(e,t){var i=e[t];return a(i)?void 0:n(i)}},6080:(e,t,i)=>{var n=i(7476),a=i(9306),o=i(616),r=n(n.bind);e.exports=function(e,t){return a(e),void 0===t?e:o?r(e,t):function(){return e.apply(t,arguments)}}},6119:(e,t,i)=>{var n=i(5745),a=i(3392),o=n("keys");e.exports=function(e){return o[e]||(o[e]=a(e))}},6198:(e,t,i)=>{var n=i(8014);e.exports=function(e){return n(e.length)}},6269:e=>{e.exports={}},6279:(e,t,i)=>{var n=i(6840);e.exports=function(e,t,i){for(var a in t)n(e,a,t[a],i);return e}},6319:(e,t,i)=>{var n=i(8551),a=i(9539);e.exports=function(e,t,i,o){try{return o?t(n(i)[0],i[1]):t(i)}catch(t){a(e,"throw",t)}}},6395:e=>{e.exports=!1},6518:(e,t,i)=>{var n=i(4576),a=i(7347).f,o=i(6699),r=i(6840),s=i(9433),l=i(7740),c=i(2796);e.exports=function(e,t){var i,d,u,p,y,f=e.target,m=e.global,g=e.stat;if(i=m?n:g?n[f]||s(f,{}):n[f]&&n[f].prototype)for(d in t){if(p=t[d],u=e.dontCallGetSet?(y=a(i,d))&&y.value:i[d],!c(m?d:f+(g?".":"#")+d,e.forced)&&void 0!==u){if(typeof p==typeof u)continue;l(p,u)}(e.sham||u&&u.sham)&&o(p,"sham",!0),r(i,d,p,e)}}},6699:(e,t,i)=>{var n=i(3724),a=i(4913),o=i(6980);e.exports=n?function(e,t,i){return a.f(e,t,o(1,i))}:function(e,t,i){return e[t]=i,e}},6801:(e,t,i)=>{var n=i(3724),a=i(8686),o=i(4913),r=i(8551),s=i(5397),l=i(1072);t.f=n&&!a?Object.defineProperties:function(e,t){r(e);for(var i,n=s(t),a=l(t),c=a.length,d=0;c>d;)o.f(e,i=a[d++],n[i]);return e}},6823:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6837:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6840:(e,t,i)=>{var n=i(4901),a=i(4913),o=i(283),r=i(9433);e.exports=function(e,t,i,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(i)&&o(i,c,s),s.global)l?e[t]=i:r(t,i);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=i:a.f(e,t,{value:i,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6955:(e,t,i)=>{var n=i(2140),a=i(4901),o=i(2195),r=i(8227)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=s(e),r))?i:l?o(t):"Object"===(n=o(t))&&a(t.callee)?"Arguments":n}},6969:(e,t,i)=>{var n=i(2777),a=i(757);e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},6980:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7040:(e,t,i)=>{var n=i(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:(e,t,i)=>{var n=i(9504),a=i(9039),o=i(2195),r=Object,s=n("".split);e.exports=a(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):r(e)}:r},7347:(e,t,i)=>{var n=i(3724),a=i(9565),o=i(8773),r=i(6980),s=i(5397),l=i(6969),c=i(9297),d=i(5917),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=s(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return r(!a(o.f,e,t),e[t])}},7476:(e,t,i)=>{var n=i(2195),a=i(9504);e.exports=function(e){if("Function"===n(e))return a(e)}},7566:(e,t,i)=>{var n=i(6840),a=i(9504),o=i(655),r=i(2812),s=URLSearchParams,l=s.prototype,c=a(l.getAll),d=a(l.has),u=new s("a=1");!u.has("a",2)&&u.has("a",void 0)||n(l,"has",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return d(this,e);var n=c(this,e);r(t,1);for(var a=o(i),s=0;s<n.length;)if(n[s++]===a)return!0;return!1},{enumerable:!0,unsafe:!0})},7588:(e,t,i)=>{var n=i(6518),a=i(9565),o=i(2652),r=i(9306),s=i(8551),l=i(1767),c=i(9539),d=i(4549)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(e){s(this);try{r(e)}catch(e){c(this,"throw",e)}if(d)return a(d,this,e);var t=l(this),i=0;o(t,function(t){e(t,i++)},{IS_RECORD:!0})}})},7629:(e,t,i)=>{var n=i(6395),a=i(4576),o=i(9433),r="__core-js_shared__",s=e.exports=a[r]||o(r,{});(s.versions||(s.versions=[])).push({version:"3.46.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7657:(e,t,i)=>{var n,a,o,r=i(9039),s=i(4901),l=i(34),c=i(2360),d=i(2787),u=i(6840),p=i(8227),y=i(6395),f=p("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(a=d(d(o)))!==Object.prototype&&(n=a):m=!0),!l(n)||r(function(){var e={};return n[f].call(e)!==e})?n={}:y&&(n=c(n)),s(n[f])||u(n,f,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},7740:(e,t,i)=>{var n=i(9297),a=i(5031),o=i(7347),r=i(4913);e.exports=function(e,t,i){for(var s=a(t),l=r.f,c=o.f,d=0;d<s.length;d++){var u=s[d];n(e,u)||i&&n(i,u)||l(e,u,c(t,u))}}},7750:(e,t,i)=>{var n=i(4117),a=TypeError;e.exports=function(e){if(n(e))throw new a("Can't call method on "+e);return e}},7751:(e,t,i)=>{var n=i(4576),a=i(4901);e.exports=function(e,t){return arguments.length<2?(i=n[e],a(i)?i:void 0):n[e]&&n[e][t];var i}},8014:(e,t,i)=>{var n=i(1291),a=Math.min;e.exports=function(e){var t=n(e);return t>0?a(t,9007199254740991):0}},8111:(e,t,i)=>{var n=i(6518),a=i(4576),o=i(679),r=i(8551),s=i(4901),l=i(2787),c=i(2106),d=i(4659),u=i(9039),p=i(9297),y=i(8227),f=i(7657).IteratorPrototype,m=i(3724),g=i(6395),h="constructor",v="Iterator",b=y("toStringTag"),w=TypeError,x=a[v],I=g||!s(x)||x.prototype!==f||!u(function(){x({})}),S=function(){if(o(this,f),l(this)===f)throw new w("Abstract class Iterator not directly constructable")},T=function(e,t){m?c(f,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===f)throw new w("You can't redefine this property");p(this,e)?this[e]=t:d(this,e,t)}}):f[e]=t};p(f,b)||T(b,v),!I&&p(f,h)&&f[h]!==Object||T(h,S),S.prototype=f,n({global:!0,constructor:!0,forced:I},{Iterator:S})},8227:(e,t,i)=>{var n=i(4576),a=i(5745),o=i(9297),r=i(3392),s=i(4495),l=i(7040),c=n.Symbol,d=a("wks"),u=l?c.for||c:c&&c.withoutSetter||r;e.exports=function(e){return o(d,e)||(d[e]=s&&o(c,e)?c[e]:u("Symbol."+e)),d[e]}},8237:(e,t,i)=>{var n=i(6518),a=i(2652),o=i(9306),r=i(8551),s=i(1767),l=i(9539),c=i(4549),d=i(8745),u=i(9039),p=TypeError,y=u(function(){[].keys().reduce(function(){},void 0)}),f=!y&&c("reduce",p);n({target:"Iterator",proto:!0,real:!0,forced:y||f},{reduce:function(e){r(this);try{o(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,i=t?void 0:arguments[1];if(f)return d(f,this,t?[e]:[e,i]);var n=s(this),c=0;if(a(n,function(n){t?(t=!1,i=n):i=e(i,n,c),c++},{IS_RECORD:!0}),t)throw new p("Reduce of empty iterator with no initial value");return i}})},8480:(e,t,i)=>{var n=i(1828),a=i(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},8551:(e,t,i)=>{var n=i(34),a=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(a(e)+" is not an object")}},8622:(e,t,i)=>{var n=i(4576),a=i(4901),o=n.WeakMap;e.exports=a(o)&&/native code/.test(String(o))},8686:(e,t,i)=>{var n=i(3724),a=i(9039);e.exports=n&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8721:(e,t,i)=>{var n=i(3724),a=i(9504),o=i(2106),r=URLSearchParams.prototype,s=a(r.forEach);n&&!("size"in r)&&o(r,"size",{get:function(){var e=0;return s(this,function(){e++}),e},configurable:!0,enumerable:!0})},8727:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:(e,t,i)=>{var n=i(616),a=Function.prototype,o=a.apply,r=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?r.bind(o):function(){return r.apply(o,arguments)})},8773:(e,t)=>{var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!i.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:i},8872:(e,t,i)=>{i(8237)},8981:(e,t,i)=>{var n=i(7750),a=Object;e.exports=function(e){return a(n(e))}},8992:(e,t,i)=>{i(8111)},9039:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},9297:(e,t,i)=>{var n=i(9504),a=i(8981),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(a(e),t)}},9306:(e,t,i)=>{var n=i(4901),a=i(6823),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(a(e)+" is not a function")}},9433:(e,t,i)=>{var n=i(4576),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(i){n[e]=t}return t}},9462:(e,t,i)=>{var n=i(9565),a=i(2360),o=i(6699),r=i(6279),s=i(8227),l=i(1181),c=i(5966),d=i(7657).IteratorPrototype,u=i(2529),p=i(9539),y=i(1385),f=s("toStringTag"),m="IteratorHelper",g="WrapForValidIterator",h="normal",v="throw",b=l.set,w=function(e){var t=l.getterFor(e?g:m);return r(a(d),{next:function(){var i=t(this);if(e)return i.nextHandler();if(i.done)return u(void 0,!0);try{var n=i.nextHandler();return i.returnHandlerResult?n:u(n,i.done)}catch(e){throw i.done=!0,e}},return:function(){var i=t(this),a=i.iterator;if(i.done=!0,e){var o=c(a,"return");return o?n(o,a):u(void 0,!0)}if(i.inner)try{p(i.inner.iterator,h)}catch(e){return p(a,v,e)}if(i.openIters)try{y(i.openIters,h)}catch(e){return p(a,v,e)}return a&&p(a,h),u(void 0,!0)}})},x=w(!0),I=w(!1);o(I,f,"Iterator Helper"),e.exports=function(e,t,i){var n=function(n,a){a?(a.iterator=n.iterator,a.next=n.next):a=n,a.type=t?g:m,a.returnHandlerResult=!!i,a.nextHandler=e,a.counter=0,a.done=!1,b(this,a)};return n.prototype=t?x:I,n}},9504:(e,t,i)=>{var n=i(616),a=Function.prototype,o=a.call,r=n&&a.bind.bind(o,o);e.exports=n?r:function(e){return function(){return o.apply(e,arguments)}}},9519:(e,t,i)=>{var n,a,o=i(4576),r=i(2839),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(a=(n=d.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&r&&(!(n=r.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=r.match(/Chrome\/(\d+)/))&&(a=+n[1]),e.exports=a},9539:(e,t,i)=>{var n=i(9565),a=i(8551),o=i(5966);e.exports=function(e,t,i){var r,s;a(e);try{if(!(r=o(e,"return"))){if("throw"===t)throw i;return i}r=n(r,e)}catch(e){s=!0,r=e}if("throw"===t)throw i;if(s)throw r;return a(r),i}},9565:(e,t,i)=>{var n=i(616),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},9617:(e,t,i)=>{var n=i(5397),a=i(5610),o=i(6198),r=function(e){return function(t,i,r){var s=n(t),l=o(s);if(0===l)return!e&&-1;var c,d=a(r,l);if(e&&i!=i){for(;l>d;)if((c=s[d++])!=c)return!0}else for(;l>d;d++)if((e||d in s)&&s[d]===i)return e||d||0;return!e&&-1}};e.exports={includes:r(!0),indexOf:r(!1)}}},t={};function i(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};i.r(n),i.d(n,{SeamlyStaticCore:()=>Ae,default:()=>Fe}),i(4114);const a=require("@seamly/web-ui"),o=require("preact");i(8992),i(2577),i(8872),i(4603),i(7566),i(8721);const r=require("preact/hooks");i(1454);const s={direction:"to_translation_locale",locale:"nl",translatedBy:"deep_l",data:{}};function l(e){switch(e.payload.type){case"image":case"text":case"choice_prompt":return{...e,payload:{...e.payload,translatedBody:{...s,data:{...e.payload.body,text:e.payload.body.text?`NL - ${e.payload.body.text}`:void 0,description:e.payload.body.description?`NL - ${e.payload.body.description}`:void 0,buttonText:e.payload.body.buttonText?`NL - ${e.payload.body.buttonText}`:void 0,choices:e.payload.body.choices?e.payload.body.choices.map(e=>({...e,text:`NL - ${e.text}`})):void 0,prompt:e.payload.body.prompt?{...e.payload.body.prompt,text:`NL - ${e.payload.body.prompt.text}`}:void 0}}}};default:return e}}const c={events:[],config:{layoutMode:"inline",accountConfig:{},hideOnNoUserResponse:!1,showDisclaimer:!1,showSuggestions:!0,preChat:!0},context:{},initialState:{},unreadEvents:0,loadedImageEventIds:[],isLoading:!1,idleDetachCountdown:{hasCountdown:!1,isActive:!1},resumeConversationPrompt:!1,visibility:{visibility:a.visibilityStates.open},serviceInfo:{activeServiceSessionId:""},participantInfo:{participants:{},currentAgent:""},headerTitles:{title:"Test title",subTitle:"Test subtitle"},interrupt:{error:void 0},historyLoaded:!1,skiplinkTargetId:(0,a.randomId)(),optionsButtonId:(0,a.randomId)(),serviceData:{},options:{features:{},panelActive:!1,optionActive:"",userSelectedOptions:{}},entryMeta:{default:"text",active:"text",userSelected:null,options:{},optionsOverride:{}},currentUploads:[],processingFileUploads:[]},d={participants:{agent:{id:"agent",service:{expose:{map:{},version:2},meta:{},name:null,service_session_id:null,settings:{}}},user:{id:"user",service:{expose:{map:{},version:2},meta:{},name:null,service_session_id:null,settings:{}}}},currentAgent:"agent"},u={type:"info",payload:{body:{subtype:"new_topic",type:"divider"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),transactionId:"_1y9pz5fbyly",type:"divider"}},p={type:"info",payload:{body:{language:"Nederlands",restartButtonText:null,subtype:"new_translation",text:"[NL] Automatic translation to Dutch started. Please note that automatic translations may contain errors.",title:"[NL] Translating to Dutch",translationEnabled:!0,userLocale:"nl"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),occurredAt:0x5c68711878df3,participant:null,service:{meta:{},name:null,serviceSessionId:null},transactionId:null,translatedBody:null,type:"divider"}},y={type:"info",payload:{body:{language:"Nederlands",subtype:"new_translation",text:"[NL] Automatic translation to Dutch started. Please note that automatic translations may contain errors.",translationEnabled:!0,userLocale:"nl"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),occurredAt:0x5c68711878df3,participant:null,service:{meta:{},name:null,serviceSessionId:null},transactionId:null,translatedBody:null,type:"divider"}},f={type:"info",payload:{body:{language:"Nederlands",restartButtonText:"[NL] Start again",subtype:"new_translation",text:null,title:"[NL] Automatic translation to Dutch ended",translationEnabled:!1,userLocale:"nl"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),occurredAt:0x5c68711878df3,participant:null,service:{meta:{},name:null,serviceSessionId:null},transactionId:null,translatedBody:null,type:"divider"}},m={type:"info",payload:{body:{text:"This is a system generated info message",type:"text"},fromClient:!1,id:(0,a.randomId)(),participant:null,service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:null,type:"text"}},g={type:"info",payload:{body:{key:["info","sendTranscript","accepted"],variables:{emailAddress:"test@test.com"}},fromClient:!1,id:(0,a.randomId)(),participant:null,service:{meta:{},name:null,serviceSessionId:null},transactionId:null,type:"translation"}},h={title:"You're talking to",subTitle:"Mrs. Bot"},v={type:"participant",payload:{fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"received",participant:{avatar:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjNEE0OEMxIiBkPSJNMTAsMTQuOGMtMS4xLDAtMi0wLjktMi0yczAuOS0yLDItMnMyLDAuOSwyLDJTMTEuMSwxNC44LDEwLDE0Ljh6IE0xNS45LDE0LjhjMS4xLDAsMi0wLjksMi0ycy0wLjktMi0yLTIKCXMtMiwwLjktMiwyUzE0LjgsMTQuOCwxNS45LDE0Ljh6IE0yMS44LDEwLjhjLTEuMSwwLTIsMC45LTIsMnMwLjksMiwyLDJzMi0wLjksMi0yUzIyLjksMTAuOCwyMS44LDEwLjh6IE0yMS4zLDE4LjFIMTAuNwoJQzExLjcsMjMuOSwyMC4yLDIzLjksMjEuMywxOC4xeiIvPgo8L3N2Zz4K",id:"agent",introduction:"You're now talking to Mrs. Bot gimme a minit",name:"Mrs. Bot",service:{expose:{map:{},version:2},meta:{},name:null,service_session_id:null,settings:{}}},transactionId:"d63655bf-1d3d-42cf-b14e-4da9e2b6a642",type:"participant"}},b={type:"participant",payload:{fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"received",participant:{introduction:"Welcome, you are now chatting with Mrs. Bot 2, give me a minit to read back the chat history.",id:"agent",avatar:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjNEE0OEMxIiBkPSJNMTAuMSwxNC45Yy0xLjEsMC0yLTAuOS0yLTJzMC45LTIsMi0yczIsMC45LDIsMlMxMS4yLDE0LjksMTAuMSwxNC45eiBNMjEuOSwxMC45Yy0xLjEsMC0yLDAuOS0yLDIKCXMwLjksMiwyLDJzMi0wLjksMi0yUzIzLDEwLjksMjEuOSwxMC45eiBNMjEuNCwxOC4ySDEwLjhDMTEuOCwyNCwyMC4zLDI0LDIxLjQsMTguMnogTTE3LjIsMjUuM2gtMi40Yy0wLjYsMC0xLjIsMC40LTEuNCwxCgljLTUuMS0wLjItOS4yLTQuNC05LjQtOS42YzAuMSwwLDAuMiwwLjEsMC40LDAuMWgwLjFjMC44LDAsMS40LTAuNiwxLjQtMS40di00LjdjMC0wLjgtMC42LTEuNC0xLjQtMS40aDBjLTAuOCwwLTEuNCwwLjYtMS40LDEuNAoJdjIuN3YydjEuMWMwLDUuOSw0LjcsMTAuNiwxMC41LDEwLjhjMC4yLDAuNSwwLjcsMC44LDEuMiwwLjhoMi40YzAuOCwwLDEuNC0wLjYsMS40LTEuNFMxOCwyNS4zLDE3LjIsMjUuM3oiLz4KPC9zdmc+Cg==",name:"Two",service:{expose:{map:{},version:3},meta:{},name:"new service",serviceSessionId:(0,a.randomId)(),settings:{}}},transactionId:(0,a.randomId)(),type:"participant"}},w={type:"participant",payload:{fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"received",participant:{id:"user",introduction:"You're now talking to Mrs. Bot gimme a minit",name:"Mrs. Bot",service:{expose:{map:{},version:2},meta:{},name:null,service_session_id:null,settings:{}}},transactionId:"d63655bf-1d3d-42cf-b14e-4da9e2b6a642",type:"participant"}},x=({type:e,data:t,text:i})=>({type:"message",payload:{body:{type:e,text:i,data:t},participant:"agent",service:{meta:{additions:{}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},fromClient:!1,fromHistory:!0,id:"4efacb4d-28a0-454e-8e36-3f17eb598c5d",messageStatus:"read",transactionId:"6f9beee7-ce82-418e-9bec-8001079aa769",transactionLast:!0,type:"custom"}}),I={type:"message",payload:{body:{text:"What do you want to do?",type:"text",data:void 0},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"b947b684-93df-4bd9-a8ea-e2f1b5a7a480",transactionLast:!1,type:"text"}},S={type:"message",payload:{type:"splash",id:(0,a.randomId)(),body:{text:"Example splash message ✨",type:"text",variables:{}}}},T={type:"message",payload:{body:{text:"What do you want to do? This is a really long message from a bot that has a lot to say about a lot of things. Currently I am contemplating my own bot existence and constantly asking myself who I am. What do you want to do? This is a really long message from a bot that has a lot to say about a lot of things. Currently I am contemplating my own bot existence and constantly asking myself who I am. What do you want to do? This is a really long message from a bot that has a lot to say about a lot of things. Currently I am contemplating my own bot existence and constantly asking myself who I am.",type:"text"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"b947b684-93df-4bd9-a8ea-e2f1b5a7a480",transactionLast:!1,type:"text"}},M={type:"message",payload:{body:{text:"Bubble with <strong>bold</strong> <em>italic</em> <u>underline</u>",type:"text"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"text"}},j={type:"message",payload:{body:{text:'<a href="https://google.com" data-link-id="1">Link in same window</a> and <a href="https://google.com" data-link-id="2" target="_blank">link in new window</a> embedded in text',type:"text"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"text"}},E={type:"message",payload:{body:{text:'Here is a long link <a href="https://google.com" data-link-id="1">click me click me please click me yoohoooo please please click me here I am click me now what are you waiting for click me now now now now now click meeeeeeeeeeeeee</a> embedded in text',type:"text"},fromClient:!1,fromHistory:!0,id:"a964e54e-ea98-46ff-a952-979a47f162c0",messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"text"}},L={type:"message",payload:{body:{text:"\n <ul>\n <li>Short list item</li>\n <li>This list item is longer to showcase different type lengths of text in list items and how they reflow in the browser</li>\n <li>\n This list item has a nested list with 3 items in it.\n <ul>\n <li>First item</li>\n <li>second item</li>\n <li>Third item</li>\n </ul>\n </li>\n <li>Another one just to be sure :)</li>\n </ul>\n ",type:"text"},fromClient:!1,fromHistory:!0,id:"f5351010-0def-452d-818f-ca22ac61792a",messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"text"}},C={type:"message",payload:{body:{text:"\n <ol>\n <li>Short list item</li>\n <li>This list item is longer to showcase different type lengths of text in list items and how they reflow in the browser</li>\n <li>\n This list item has a nested list with 3 items in it.\n <ol>\n <li>First item</li>\n <li>second item</li>\n <li>Third item</li>\n </ol>\n </li>\n <li>Another one just to be sure :)</li>\n </ol>\n ",type:"text"},fromClient:!1,fromHistory:!0,id:"f5351010-0def-452d-818f-ca22ac61792a",messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"text"}},O={type:"message",payload:{body:{description:"Plaatje",isZoomable:!1,type:"image",url:"https://developers.seamly.ai/clients/web-ui/static/photos/image-square-small.jpg"},fromClient:!1,fromHistory:!0,id:"b44ef42c-880c-43ff-b067-499e7f2e81f7",messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"image"}},N={type:"message",payload:{body:{description:"Plaatje",isZoomable:!0,type:"image",url:"https://developers.seamly.ai/clients/web-ui/static/photos/image-portrait.jpg"},fromClient:!1,fromHistory:!0,id:"b44ef42c-880c-43ff-b067-499e7f2e81f8",messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"image"}},A={type:"message",payload:{body:{description:"test",source:"youtube",type:"video",url:"https://www.youtube.com/embed/K7Hn1rPQouU"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"video"}},k={type:"message",payload:{body:{choices:[{id:"703db9b3-2157-4d4a-9f9b-c382c6a10531",text:"Dialog (this is intentionally made longer for testing purposes)",type:"choice"},{id:"1eff6098-f14f-4683-a2b8-30d1c573d45e",text:"T-Dialog",type:"choice"},{id:"a8ba3ce8-3324-4e7a-accc-944ff78ac890",text:"Customers",type:"choice"},{id:"c89956ab-cf98-4b7e-9282-7087c988153d",text:"Features",type:"choice"},{id:"9fd9a28f-462d-4f07-9661-606dbe3b9466",category:"secondary",text:"Something else",type:"choice"}],chooseAgain:!0,prompt:{text:"Here are some choice prompt options to choose from",type:"text",variables:{}},type:"choice_prompt"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"b947b684-93df-4bd9-a8ea-e2f1b5a7a480",transactionLast:!0,type:"choice_prompt"}},z={type:"message",payload:{body:{text:"This is what the user typed",type:"text"},fromClient:!0,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"user",transactionId:"1cdefea9-7437-4672-bcf8-2c75dc99244c",transactionLast:null,type:"text"}},P={type:"message",payload:{body:{text:"This is what the user typed. And sometimes the user has quite a lot to say and then we get longer lines that need to wrap well and not break the styling so here goes with just such a line right here!!",type:"text"},fromClient:!0,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"user",transactionId:"1cdefea9-7437-4672-bcf8-2c75dc99244c",transactionLast:null,type:"text"}},D={type:"message",payload:{body:{text:'<a href="https://google.com" data-link-id="1">Link in same window</a> and <a href="https://google.com" data-link-id="2" target="_blank">link in new window</a> embedded in text',type:"text"},fromClient:!0,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"user",transactionId:"1cdefea9-7437-4672-bcf8-2c75dc99244c",transactionLast:null,type:"text"}},_={type:"upload",transactionId:(0,a.randomId)(),meta:{},body:{contentType:"plain/text",filename:"This-is-an-example.txt",filesize:12,id:(0,a.randomId)(),isDeleted:!1}},R={type:"upload",transactionId:(0,a.randomId)(),meta:{},body:{contentType:"application/pdf",filename:"This-is-a-sample.pdf",filesize:18810,id:"",isDeleted:!1,url:"https://pdfobject.com/pdf/sample.pdf"}},U={type:"upload",transactionId:(0,a.randomId)(),meta:{},body:{contentType:"image/jpeg",filename:"image-square-small.jpg",filesize:12020,id:"",isDeleted:!1,url:"https://developers.seamly.ai/clients/web-ui/static/photos/image-square-small.jpg"}},F={type:"message",payload:{..._,fromClient:!1,participant:"agent",id:(0,a.randomId)()}},H={type:"message",payload:{...R,fromClient:!1,participant:"agent",id:(0,a.randomId)()}},G={type:"message",payload:{...U,fromClient:!1,participant:"agent",id:(0,a.randomId)()}};sessionStorage.setItem(`image-${G.payload.id}`,G.payload.body.url);const B={...G,payload:{...G.payload,body:{...G.payload.body,isDeleted:!0,url:void 0},id:(0,a.randomId)()}},W={type:"message",payload:{...U,fromClient:!0,participant:"user",id:(0,a.randomId)()}};sessionStorage.setItem(`image-${W.payload.id}`,W.payload.body.url);const $={...W,payload:{...W.payload,id:(0,a.randomId)(),body:{...W.payload.body,url:null}}},q={isActive:!1,currentLocale:void 0,isAvailable:!1,showTranslationProposal:!1,languages:[],translatedEventGroups:{},containerId:(0,a.randomId)()},X=[{id:"1",question:"Invoices",categories:["mixed","short"]},{id:"2",question:"Temporary subscription pause",categories:["mixed","medium"]},{id:"3",question:"Cancellation",categories:["mixed","short"]},{id:"4",question:"Apps",categories:["mixed","medium"]},{id:"5",question:"At what date will my subscription end?",categories:["mixed","long"]},{id:"A",question:"Quotes",categories:["short"]},{id:"B",question:"How to get in touch with us",categories:["long"]}],J="unstarted",Y="messages",Z="errors",K="uploads",Q="features",V="options",ee="suggestions",te="minimizedWindow",ie="minimizedInline",ne="translations",ae={[J]:{heading:"Unstarted UI",description:"Test the loader here"},[Y]:{heading:"Messages",description:""},[Z]:{heading:"UI errors",description:""},[K]:{heading:"File uploads",description:""},[Q]:{heading:"Other features",description:""},[V]:{heading:"Options",description:""},[ee]:{heading:"Suggestions",description:""},[te]:{heading:"Minimized window",desciption:""},[ie]:{heading:"Minimized Inline",description:""},[ne]:{heading:"Translations",description:""}},oe={type:"message",payload:{type:"card",id:(0,a.randomId)(),body:{action:{ask:"",type:"ask"},buttonText:"Ask about pizzas!",description:"Pizza Margherita is a <strong>typical Neapolitan pizza</strong>.\n\nIt is made with San Marzano tomatoes, mozzarella cheese, fresh basil, salt, and extra-virgin olive oil.",image:"https://developers.seamly.ai/clients/web-ui/static/photos/card-square.jpg",title:"Pizza Margherita"}}},re={type:"message",payload:{type:"card",id:(0,a.randomId)(),body:{action:{link:"https://seamly.ai",newTab:!0,type:"navigate"},buttonText:"Order now!",description:"Pizza Margherita is a <strong>typical Neapolitan pizza</strong>.",image:"https://developers.seamly.ai/clients/web-ui/static/photos/card-landscape.jpg",title:"Pizza Margherita"}}},se={type:"message",payload:{type:"card",id:(0,a.randomId)(),body:{action:{topic:"Set topic",type:"topic"},buttonText:"Set topic! (title & description optional)",image:"https://developers.seamly.ai/clients/web-ui/static/photos/card-portrait.jpg"}}},le={type:"message",payload:{type:"card",id:(0,a.randomId)(),body:{action:{ask:"",type:"ask"},buttonText:"Ask about pizzas!",description:"Pizza Margherita is a <strong>typical Neapolitan pizza</strong>.\n\nIt is made with San Marzano tomatoes, mozzarella cheese, fresh basil, salt, and extra-virgin olive oil.",title:"Pizza Margherita"}}},ce={base:{category:J,headingText:"Standard with loader",description:"",...c,isLoading:!0},fullConversation:{category:Y,headingText:"Full demo conversation",description:"",...c,participantInfo:d,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[v,m,I,{...k,payload:{...k.payload,id:`${k.payload.id}XXX`}},T,b,z,M,D,u,O,F,H,G,B,P,A,j,E,N,W,$,L,C,k]},userMessages:{category:Y,headingText:"User messages",description:"",...c,participantInfo:d,events:[z,P,W,$,D]},withParticipants:{category:Y,headingText:"Messages with participant info",description:"",...c,config:{...c.config,overrideMessages:{agent:{showAvatar:!0,showName:!0},user:{showName:!0,showAvatar:!0}}},participantInfo:d,events:[I,z,T,P]},textMessages:{category:Y,headingText:"Text messages",description:"",...c,participantInfo:d,events:[I,T,M,j,E,L,C]},imageVideoMessages:{category:Y,headingText:"Download, image and video messages",description:"",...c,participantInfo:d,events:[O,A,N,F,H,G,B,W,$]},systemMessages:{category:Y,headingText:"System messages",description:"",...c,config:{overrideMessages:{timeIndicator:{enabled:!0,threshold:36e5}}},participantInfo:d,events:[{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()-432e6),id:(0,a.randomId)(),body:{text:"Long ago when a dialog started",type:"text"}}},v,w,b,u,g,...[p,f].map(l),m]},choicePromptMessages:{category:Y,headingText:"Choice prompt messages",description:"",...c,participantInfo:d,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[{...k,payload:{...k.payload,id:`${k.payload.id}XXX`}},I,k]},choicePromptMessageWithoutManualInput:{category:Y,headingText:"Choice prompt message without manual input",description:"",...c,entryMeta:{...c.entryMeta,options:{text:{allowManualInput:!1}}},events:[k],participantInfo:d,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"}},timeIndicators:{category:Y,headingText:"Time Indicators",description:"",...c,config:{overrideMessages:{timeIndicator:{enabled:!0,threshold:36e5}}},participantInfo:d,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()-432e6),id:(0,a.randomId)(),body:{text:"Long ago when a dialog started",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()-3456e5),id:(0,a.randomId)(),body:{text:"Above me should be a time indicator showing the full date",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()+1-3456e5),id:(0,a.randomId)(),body:{text:"Another message",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()+2-3456e5),id:(0,a.randomId)(),body:{text:"And another message",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()-864e5),id:(0,a.randomId)(),body:{text:'Above me should be a time indicator showing "yesterday"',type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()+1-864e5),id:(0,a.randomId)(),body:{text:"Another message",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()+2-864e5),id:(0,a.randomId)(),body:{text:"And another message",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*Date.now(),id:(0,a.randomId)(),body:{text:"Above me should be a time indicator showing me the dialog continues today",type:"text"}}}]},cards:{category:Y,headingText:"Cards",description:"",...c,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[oe,re,se,le]},carousel:{category:Y,headingText:"Carousel",description:"",...c,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[{type:"message",payload:{type:"carousel",id:(0,a.randomId)(),body:{cards:[oe.payload.body,re.payload.body,se.payload.body,le.payload.body]}}}]},errorWithAction:{category:Z,headingText:"Error with a user action",description:"",...c,interrupt:{error:new a.SeamlyGeneralError(new Error("general error"))}},errorWithoutAction:{category:Z,headingText:"Error without a user action",description:"",...c,interrupt:{error:new a.SeamlyOfflineError(new Error("seamly offline error"))}},privacyDisclaimer:{category:Q,headingText:"Privacy disclaimer",description:"",...c,config:{...c.config,showDisclaimer:!0}},characterLimit:{category:Q,headingText:"Singleline: Input character limit",description:"",...c,entryMeta:{default:"text",active:"text",userSelected:null,options:{text:{limit:120}},optionsOverride:{}}},inputLabel:{category:Q,headingText:"Singleline: Input label",...c,entryMeta:{default:"text",active:"text",options:{text:{limit:null}},optionsOverride:{text:{label:"What is your name?",limit:null,placeholder:"Please enter your name"}}}},inputLabelWithFileUploadToggle:{category:Q,headingText:"Singleline: Input label with file upload toggle button",...c,options:{...c.options,features:{uploads:{enabled:!0}}},entryMeta:{default:"text",active:"text",options:{text:{limit:null}},optionsOverride:{text:{label:"What is the title of the uploaded document?",limit:null,placeholder:"Please enter the title of the document"}}}},multilineCharacterLimit:{category:Q,headingText:"Multiline: Input character limit",description:"",...c,config:{...c.config,useMultilineUserInput:!0},entryMeta:{default:"text",active:"text",userSelected:null,options:{text:{limit:120}},optionsOverride:{}}},multilineInputLabel:{category:Q,headingText:"Multiline: Input label",...c,config:{...c.config,useMultilineUserInput:!0},entryMeta:{default:"text",active:"text",options:{text:{limit:null}},optionsOverride:{text:{label:"What is your name?",limit:null,placeholder:"Please enter your name"}}}},multilineInputLabelWithFileUploadToggle:{category:Q,headingText:"Multiline: Input label with file upload toggle button",...c,config:{...c.config,useMultilineUserInput:!0},options:{...c.options,features:{uploads:{enabled:!0}}},entryMeta:{default:"text",active:"text",options:{text:{limit:null}},optionsOverride:{text:{label:"What is the title of the uploaded document?",limit:null,placeholder:"Please enter the title of the document"}}}},abortTransactional:{category:Q,headingText:"Abort transaction",...c,events:[I,z],entryMeta:{default:"text",active:"text",options:{text:{limit:null}},optionsOverride:{},actions:{abortTransaction:{label:"Ask for another question",topicFallbackMessage:"Oops...",topicName:"abort_transaction"}},translatedActions:{}}},fileUploadToggle:{category:K,headingText:"File upload toggle button",description:"",...c,options:{...c.options,features:{uploads:{enabled:!0}}}},fileUploadToggleHidden:{category:K,headingText:"File upload toggle button hidden",description:"",...c,options:{...c.options,features:{uploads:{enabled:!1}}}},fileUploadInput:{category:K,headingText:"File upload input",description:"Click on upload button to see an error",styleGuideReset:!0,...c,config:{...c.config,accountConfig:{features:{uploads:!0}}},options:{...c.options,features:{uploads:{enabled:!0}}},entryMeta:{default:"text",active:"text",userSelected:"upload",options:{upload:{allowedMimeTypes:["image/*","application/pdf"],maxSize:10485760}},optionsOverride:{}}},fileUploadBusy:{category:K,headingText:"File upload in progress",description:"",styleGuideReset:!0,...c,config:{...c.config,accountConfig:{features:{uploads:!0}}},options:{...c.options,features:{uploads:{enabled:!0}}},entryMeta:{default:"text",active:"text",userSelected:"upload",options:{upload:{allowedMimeTypes:["image/*","application/pdf"],maxSize:10485760}},optionsOverride:{}},currentUploads:[{id:"_2olggurqhb4",name:"gGeyr3WepujbGn7khx.gif",progress:29,uploading:!0,complete:!1,error:"",uploadHandle:{abort:()=>{}}}]},fileUploadError:{category:K,headingText:"File upload errored",description:"",styleGuideReset:!0,...c,config:{...c.config,accountConfig:{features:{uploads:!0}}},options:{...c.options,features:{uploads:{enabled:!0}}},entryMeta:{default:"text",active:"text",userSelected:"upload",options:{upload:{allowedMimeTypes:["image/*","application/pdf"],maxSize:10485760}},optionsOverride:{}},currentUploads:[{id:"_2olggurqhb4",name:"gGeyr3WepujbGn7khx.gif",progress:0,uploading:!1,complete:!1,error:"Something went wrong with the upload",uploadHandle:{abort:()=>{}}}]},idleTimerCountdown:{category:Q,headingText:"Idle timer with countdown",description:"",...c,idleDetachCountdown:{hasCountdown:!0,isActive:!0,count:120,remaining:91,timer:{minutes:1,seconds:31}}},idleTimerNoCountdown:{category:Q,headingText:"Idle timer without countdown",description:"",...c,idleDetachCountdown:{hasCountdown:!0,isActive:!1,count:120,remaining:91,timer:{minutes:1,seconds:31}}},resumeConversationPrompt:{category:Q,headingText:"Resume conversation prompt",description:"",...c,participantInfo:d,resumeConversationPrompt:!0},optionsSingleTriggerAvailable:{category:V,headingText:"Single option available",description:"",...c,options:{...c.options,features:{sendTranscript:{enabled:!0}}}},optionsSingleTriggerUnavailable:{category:V,headingText:"Single option",description:"Option unavailable",...c,options:{...c.options,features:{sendTranscript:{enabled:!1}}}},optionsMultiple:{category:V,headingText:"Multiple options",description:"All options available",...c,options:{...c.options,features:{extraMenuItem:{enabled:!0},sendTranscript:{enabled:!0}}}},optionsMultipleUnavailable:{category:V,headingText:"Multiple options",description:"Some unavailable",...c,options:{...c.options,features:{extraMenuItem:{enabled:!1},sendTranscript:{enabled:!0}}}},optionSendTranscript:{category:V,headingText:"Send transcript option",description:"Press submit to view error message",...c,options:{...c.options,optionActive:"sendTranscript",panelActive:!0,features:{sendTranscript:{enabled:!0}}}},translationsAvailable:{category:ne,headingText:"Show translations available",description:"",...c,translations:{...q,isAvailable:!0,languages:[{locale:"nl",nativeName:"Dutch"},{locale:"en",nativeName:"English"}]}},translationsAvailableWithOptions:{category:ne,headingText:"Show translations available with other options available",description:"",...c,options:{...c.options,features:{sendTranscript:{enabled:!0}}},config:{...c.config,context:{...c.context,contentLocale:"nl",userLocale:"en"}},translations:{...q,isAvailable:!0,currentLocale:"lv",isActive:!0,languages:[{locale:"nl",nativeName:"Dutch"},{locale:"en",nativeName:"English"},{locale:"ar",nativeName:"Arabic"},{locale:"bg",nativeName:"Bulgarian"},{locale:"zh",nativeName:"Chinese"},{locale:"cs",nativeName:"Czech"},{locale:"da",nativeName:"Danish"},{locale:"et",nativeName:"Estonian"},{locale:"fi",nativeName:"Finnish"},{locale:"fr",nativeName:"French"},{locale:"de-informal",nativeName:"German"},{locale:"el",nativeName:"Greek"},{locale:"hu",nativeName:"Hungarian"},{locale:"it",nativeName:"Italian"},{locale:"ja",nativeName:"Japanese"},{locale:"lv",nativeName:"Latvian"},{locale:"pl",nativeName:"Polish"},{locale:"ro",nativeName:"Romanian"},{locale:"ru",nativeName:"Russian"},{locale:"sk",nativeName:"Slovak"},{locale:"sl",nativeName:"Slovenian"},{locale:"es-informal",nativeName:"Spanish"},{locale:"sv",nativeName:"Swedish"},{locale:"ti",nativeName:"Tigrinya"},{locale:"tr",nativeName:"Turkish"},{locale:"uk",nativeName:"Ukrainian"}]}},translationsActive:{category:ne,headingText:"Show translations active",description:"",...c,translations:{...q,currentLocale:"nl",isActive:!0,isAvailable:!0,languages:[{locale:"nl",nativeName:"Dutch"},{locale:"en",nativeName:"English"}]}},translationsActiveLarge:{category:ne,headingText:"Show translations active (large list)",description:"",...c,config:{...c.config,context:{...c.context,contentLocale:"nl",userLocale:"en"}},translations:{...q,currentLocale:"lv",isActive:!0,isAvailable:!0,languages:[{locale:"nl",nativeName:"Dutch"},{locale:"en",nativeName:"English"},{locale:"ar",nativeName:"Arabic"},{locale:"bg",nativeName:"Bulgarian"},{locale:"zh",nativeName:"Chinese"},{locale:"cs",nativeName:"Czech"},{locale:"da",nativeName:"Danish"},{locale:"et",nativeName:"Estonian"},{locale:"fi",nativeName:"Finnish"},{locale:"fr",nativeName:"French"},{locale:"de-informal",nativeName:"German"},{locale:"el",nativeName:"Greek"},{locale:"hu",nativeName:"Hungarian"},{locale:"it",nativeName:"Italian"},{locale:"ja",nativeName:"Japanese"},{locale:"lv",nativeName:"Latvian"},{locale:"pl",nativeName:"Polish"},{locale:"ro",nativeName:"Romanian"},{locale:"ru",nativeName:"Russian"},{locale:"sk",nativeName:"Slovak"},{locale:"sl",nativeName:"Slovenian"},{locale:"es-informal",nativeName:"Spanish"},{locale:"sv",nativeName:"Swedish"},{locale:"ti",nativeName:"Tigrinya"},{locale:"tr",nativeName:"Turkish"},{locale:"uk",nativeName:"Ukrainian"}]}},translationsFullConversation:{category:ne,headingText:"Show translated messages",description:"",...c,participantInfo:d,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[p,m,I,{...k,payload:{...k.payload,id:`${k.payload.id}XXX`}},T,z,M,u,y,f,O,F,H,G,B,P,A,j,E,N,W,$,L,C,k,f].map(l),translations:{...q,currentLocale:"nl",isActive:!0,isAvailable:!0,translatedEventGroups:{[p.payload.id]:[m,I,{...k,payload:{...k.payload,id:`${k.payload.id}XXX`}},T,z,M,u].map(e=>e.payload.id),[y.payload.id]:[O,F,H,G,B,P,A,j,E,N,W,$,L,C,k].map(e=>e.payload.id)},languages:[{locale:"nl",nativeName:"Dutch"},{locale:"en",nativeName:"English"}]}},translationProposal:{category:ne,headingText:"Show translation proposal",description:"",...c,events:[I,z,P],config:{...c.config,showDisclaimer:!0,context:{contentLocale:"nl-informal",userLocale:"en-GB"}},translations:{...q,translationProposal:{buttonLabel:"Activate",proposedLocale:"en-GB",srDismissButtonText:"Dismiss translation proposal",titleLabel:"Do you want to chat in English?"},isAvailable:!0,isActive:!1,languages:[{locale:"nl-informal",nativeName:"Dutch"},{locale:"en-GB",nativeName:"English"}]}},translationProposalWithoutTitle:{category:ne,headingText:"Show translation proposal without title",description:"",...c,events:[I,z,P],config:{...c.config,showDisclaimer:!0,context:{contentLocale:"nl-informal",userLocale:"en-GB"}},translations:{...q,translationProposal:{buttonLabel:"Activate",proposedLocale:"en-GB",srDismissButtonText:"Dismiss translation proposal"},isAvailable:!0,isActive:!1,languages:[{locale:"nl-informal",nativeName:"Dutch"},{locale:"en-GB",nativeName:"English"}]}}},de={minimizedInline:{category:ie,headingText:"Inline minimized",description:"",inline:{...c,config:{...c.config,layoutMode:"inline"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized}}},minimizedInlineCharacterLimit:{category:ie,headingText:"Inline minimized with limited characters",description:"",inline:{...c,config:{...c.config,layoutMode:"inline"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},entryMeta:{...c.entryMeta,options:{text:{limit:120}}}}},minimizedInlinePrechat:{category:ie,headingText:"Inline minimized with collapsed chat messages",description:"",inline:{...c,config:{...c.config,layoutMode:"inline",preChatEvents:[S]},visibility:{...c.visibility,visibility:a.visibilityStates.minimized}}},minimizedInlinePrechatSuggestions:{category:ie,headingText:"Inline minimized with collapsed chat messages & suggestions",description:"",inline:{...c,config:{...c.config,layoutMode:"inline",preChatEvents:[S]},serviceData:{suggestion:{body:X}},visibility:{...c.visibility,visibility:a.visibilityStates.minimized}}},inlineWithSuggestions:{category:ee,headingText:"Suggestions",description:"",inline:{...c,config:{...c.config,layoutMode:"inline"},visibility:{...c.visibility,visibility:a.visibilityStates.open},serviceData:{suggestion:{body:X}}}},minimizedInlineWithError:{category:ie,headingText:"Inline minimized with error",description:"",inline:{...c,config:{...c.config,layoutMode:"inline"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},interrupt:{error:new a.SeamlyOfflineError(new Error("seamly offline error"))}}}},ue={minimizedWindow:{category:te,headingText:"Unstarted minimized",description:"",window:{...c,config:{...c.config,layoutMode:"window"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized}}},minimizedWindowStarted:{category:te,headingText:"Started minimized",description:"",window:{...c,config:{...c.config,layoutMode:"window"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},participantInfo:d,headerTitles:h}},minimizedWindowStartedUnread:{category:te,headingText:"Minimized with unread messages",description:"",window:{...c,config:{...c.config,layoutMode:"window"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},participantInfo:d,headerTitles:h,unreadEvents:12}}},pe={suggestionsMessage:{category:Y,headingText:"Suggestions message",description:"",...c,events:[x(I.payload.body),{type:"service_data",payload:{type:"suggestion",body:X}}]}},ye=(e,t=[])=>{const i={...ce,fullConversation:{...ce.fullConversation,events:[S,...ce.fullConversation.events]},...pe,...t.reduce((e,t)=>{const{key:i,headingText:n,description:a,body:o}=t;return{...e,[i]:{category:Y,headingText:n,description:a,...c,participantInfo:d,events:[x(o)]}}},{})};return Object.keys(i).reduce((t,n)=>{const{headingText:a,category:o,description:r,...s}=i[n];return{...t,[n]:{headingText:a,description:r,category:o,...e.reduce((e,t)=>({...e,[t]:{...s,config:{...s.config,layoutMode:t}}}),{})}}},{})};i(4520),require("preact/compat");const fe=require("preact/jsx-runtime"),me=({setSelectedState:e,states:t,headingLevel:i})=>{const n=`h${i.toString()}`,o=`h${(parseInt(i,10)+1).toString()}`,r=(0,a.getUrlSearchParams)();return(0,fe.jsx)("nav",{"aria-label":"Style guide navigation",className:"nav--styleguide",children:(0,fe.jsx)("ol",{className:"list--styleguidestates",children:Object.keys(ae).map(i=>{const{heading:s,description:l}=ae[i],c=Object.keys(t).filter(e=>{const{category:n}=t[e];return n===i});return c.length>0&&(0,fe.jsxs)("li",{children:[(0,fe.jsx)(n,{children:s}),(0,fe.jsx)("span",{className:"category__description",children:l}),(0,fe.jsx)("ol",{children:c.map(i=>{const n={...t[i]};delete n.category;const{headingText:s,descriptionId:l,description:c,...d}=n;return(0,fe.jsxs)("li",{children:[(0,fe.jsx)(o,{id:l,children:s}),c&&(0,fe.jsx)("span",{className:"feature__description",children:c}),(0,fe.jsx)("ul",{className:"list--styleguidelayouts",children:Object.keys(d).map(t=>(0,fe.jsx)("li",{className:t===r?.layoutMode&&i===r?.feature?"state__selected":void 0,children:(0,fe.jsx)("a",{"aria-describedby":l,href:`${window.location.pathname}?${(0,a.getUrlSearchString)({layoutMode:t,feature:i})}`,"aria-current":t===r?.layoutMode&&i===r?.feature?"page":void 0,onClick:n=>{if(n.preventDefault(),"inline"===t){const e=window.document.querySelector(".chat-inline");e&&window.scroll({top:e.offsetTop,behavior:"smooth"})}var o;o={layoutMode:t,feature:i},window.history.pushState(null,"",`${window.location.pathname}?${(0,a.getUrlSearchString)(o)}`),e(o)},children:t.charAt(0).toUpperCase()+t.slice(1)})},t))})]},i)})})]},i)})})})};function ge(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}i(3949);var he=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),ve=()=>Math.random().toString(36).substring(7).split("").join("."),be={INIT:`@@redux/INIT${ve()}`,REPLACE:`@@redux/REPLACE${ve()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ve()}`};function we(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function xe(e,t,i){if("function"!=typeof e)throw new Error(ge(2));if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ge(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ge(1));return i(xe)(e,t)}let n=e,a=t,o=new Map,r=o,s=0,l=!1;function c(){r===o&&(r=new Map,o.forEach((e,t)=>{r.set(t,e)}))}function d(){if(l)throw new Error(ge(3));return a}function u(e){if("function"!=typeof e)throw new Error(ge(4));if(l)throw new Error(ge(5));let t=!0;c();const i=s++;return r.set(i,e),function(){if(t){if(l)throw new Error(ge(6));t=!1,c(),r.delete(i),o=null}}}function p(e){if(!we(e))throw new Error(ge(7));if(void 0===e.type)throw new Error(ge(8));if("string"!=typeof e.type)throw new Error(ge(17));if(l)throw new Error(ge(9));try{l=!0,a=n(a,e)}finally{l=!1}return(o=r).forEach(e=>{e()}),e}return p({type:be.INIT}),{dispatch:p,subscribe:u,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ge(10));n=e,p({type:be.REPLACE})},[he]:function(){const e=u;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ge(11));function i(){const e=t;e.next&&e.next(d())}return i(),{unsubscribe:e(i)}},[he](){return this}}}}}function Ie(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...i)=>e(t(...i)))}function Se(e){return({dispatch:t,getState:i})=>n=>a=>"function"==typeof a?a(t,i,e):n(a)}var Te=Se(),Me=Se,je="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ie:Ie.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Ee=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}},Le=e=>t=>{setTimeout(t,e)};function Ce(e){const t=function(e){const{thunk:t=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{};let o=new Ee;return t&&("boolean"==typeof t?o.push(Te):o.push(Me(t.extraArgument))),o},{reducer:i,middleware:n,devTools:a=!0,duplicateMiddlewareCheck:o=!0,preloadedState:r,enhancers:s}=e||{};let l,c;if("function"==typeof i)l=i;else{if(!we(i))throw new Error(`Minified Redux Toolkit error #${d=1}; visit https://redux-toolkit.js.org/Errors?code=${d} for the full message or use the non-minified dev environment for full errors. `);l=function(e){const t=Object.keys(e),i={};for(let n=0;n<t.length;n++){const a=t[n];"function"==typeof e[a]&&(i[a]=e[a])}const n=Object.keys(i);let a;try{!function(e){Object.keys(e).forEach(t=>{const i=e[t];if(void 0===i(void 0,{type:be.INIT}))throw new Error(ge(12));if(void 0===i(void 0,{type:be.PROBE_UNKNOWN_ACTION()}))throw new Error(ge(13))})}(i)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const r={};for(let a=0;a<n.length;a++){const s=n[a],l=i[s],c=e[s],d=l(c,t);if(void 0===d)throw t&&t.type,new Error(ge(14));r[s]=d,o=o||d!==c}return o=o||n.length!==Object.keys(e).length,o?r:e}}(i)}var d;c="function"==typeof n?n(t):t();let u=Ie;a&&(u=je({trace:!1,..."object"==typeof a&&a}));const p=function(...e){return t=>(i,n)=>{const a=t(i,n);let o=()=>{throw new Error(ge(15))};const r={getState:a.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map(e=>e(r));return o=Ie(...s)(a.dispatch),{...a,dispatch:o}}}(...c),y=(e=>function(t){const{autoBatch:i=!0}=t??{};let n=new Ee(e);return i&&n.push(((e={type:"raf"})=>t=>(...i)=>{const n=t(...i);let a=!0,o=!1,r=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Le(10):"callback"===e.type?e.queueNotification:Le(e.timeout),c=()=>{r=!1,o&&(o=!1,s.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>a&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return a=!e?.meta?.RTK_autoBatch,o=!a,o&&(r||(r=!0,l(c))),n.dispatch(e)}finally{a=!0}}})})("object"==typeof i?i:void 0)),n})(p);return xe(l,r,u(..."function"==typeof s?s(y):y()))}var{assign:Oe}=Object;Symbol.for("rtk-state-proxy-original");const Ne={send:()=>{},store:{get:e=>e,set:e=>e,delete:e=>e},sendContext:()=>{},hasConversation:()=>!1,connected:!1},Ae=({state:e,translations:t,participants:i=[],children:n})=>{const o=(0,r.useRef)(()=>{}),s=(0,r.useRef)({emit:()=>{},on:()=>{},off:()=>{}}),l=(0,r.useMemo)(()=>{const{translations:n,interrupt:o,config:r,visibility:l,...c}=e||{},d=Ce({reducer:{state:a.stateReducer,app:a.appReducer,config:a.configReducer,i18n:a.i18nReducer,translations:a.translationReducer,visibility:a.visibilityReducer,forms:a.formsReducer,interrupt:a.interruptReducer},preloadedState:{state:c,config:r,translations:n,interrupt:o,visibility:l},middleware:e=>e({thunk:{extraArgument:{api:Ne,eventBus:s.current}},serializableCheck:!1})}),{config:u}=d.getState();return d.dispatch((0,a.setConfig)(u)),u.preChatEvents&&d.dispatch((0,a.setPreChatEvents)(u.preChatEvents)),d.dispatch((0,a.setInitialLocale)("en-GB")),d.dispatch((0,a.setTranslations)(t)),i.forEach(e=>{d.dispatch((0,a.setParticipant)({participant:e,fromClient:"user"===e?.id}))}),d},[i,e,t]);return e&&(0,fe.jsx)(a.SeamlyStoreProvider,{store:l,children:(0,fe.jsx)(a.SeamlyEventBusContext.Provider,{value:s.current,children:(0,fe.jsx)(a.SeamlyApiContext.Provider,{value:Ne,children:(0,fe.jsx)(a.SeamlyLiveRegionContext.Provider,{value:o.current,children:(0,fe.jsx)(a.ComponentFilter,{children:(0,fe.jsx)(a.SeamlyActivityEventContext.Provider,{value:()=>{},children:(0,fe.jsx)(a.SeamlyFileUpload,{children:n})})})})})})})},ke=({state:e,customComponents:t={},translations:i,participants:n})=>{const[o,s]=(0,r.useState)(!0),{config:l}=e||{},{layoutMode:c}=l||{},d=t[c];return(0,r.useEffect)(()=>{s(!1),requestAnimationFrame(async()=>{await(0,a.timeout)(60),s(!0)})},[e]),o?d?(0,fe.jsx)(Ae,{state:e,translations:i,participants:n,children:(0,fe.jsx)(d,{})}):(0,fe.jsx)(Ae,{state:e,translations:i,participants:n,children:(0,fe.jsx)(a.View,{})}):null},ze=({tag:e,id:t,children:i})=>{const n=e;return(0,fe.jsx)(n,{id:t,children:i})},Pe=({config:e,styleGuideConfig:t,translations:i,headingLevel:n=2,participants:o})=>{const[s,l]=(0,r.useState)(null),[u,p]=(0,r.useState)(""),[y,f]=(0,r.useState)(!0),[m]=(0,r.useState)((0,a.randomId)()),{stateUpdateCallback:g,customMessageEventBodies:v}=t,[b]=(0,r.useState)(()=>{const e=(i=t.showLayoutModes||["inline","window"],{...ye(i,v),...-1!==i.indexOf("window")?{...ue,minimizedWindowPrechat:{category:te,headingText:"Minimized with collapsed chat messages",description:"",window:{...c,config:{...c.config,layoutMode:"window",preChatEvents:[S]},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},participantInfo:d,headerTitles:h}},minimizedWindowPrechatDelayed:{category:te,headingText:"Minimized with delayed collapsed chat messages",description:"",window:{...c,config:{...c.config,layoutMode:"window",preChatEvents:[S],preChat:{enterDelay:1e3,exitAfter:3e3}},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},participantInfo:d,headerTitles:h}},minimizedWindowPrechatDisabled:{category:te,headingText:"Minimized with disabled collapsed chat messages",description:"",window:{...c,config:{...c.config,layoutMode:"window",preChatEvents:[S],preChat:!1},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},participantInfo:d,headerTitles:h}}}:{},...de});var i;return Object.keys(e).reduce((t,i)=>({...t,[i]:{...e[i],descriptionId:(0,a.randomId)()}}),{})}),w=(0,r.useCallback)(e=>{l(g?g(e):e)},[l,g]),x=(0,r.useCallback)((t,i)=>{const n=(0,a.getSearchParamsByKeys)("apiKey","locale"),r=new URLSearchParams({...n,layoutMode:t,feature:i});window.history.replaceState(null,"",`?${r}`);const{headingText:s}=b[i];p(s);const l=b[i][t],{overrideMessages:c,showSuggestions:d}=l.config,u=o.find(e=>"agent"===e.id);return{...l,config:{...l.config,...e,showDisclaimer:l.config.showDisclaimer||e.showDisclaimer,context:{...e.context,...l.config?.context},layoutMode:l.config.layoutMode,...c?{messages:c}:{},showSuggestions:d},headerTitles:{...l.headerTitles,subTitle:u?.name||l.headerTitles.subTitle}}},[b,o,e]);(0,r.useEffect)(()=>{if(y){const e=document.querySelector('[aria-modal="true"]');e&&e.addEventListener("click",()=>{l(e=>e?{...e,visibility:{...e.visibility,visible:"minimized"}}:e)})}},[s,l,y]);const I=(0,r.useCallback)(()=>{const e=(0,a.getUrlSearchParams)(),{layoutMode:t,feature:i}={layoutMode:"inline",feature:"base",...e};w(x(t,i)),window.document.title="Style"},[x,w]);return(0,r.useEffect)(()=>{I()},[I]),(0,r.useEffect)(()=>{window.onpopstate=()=>{I()}},[I]),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)("section",{className:"chat-inline","aria-labelledby":m,children:[(0,fe.jsxs)(ze,{tag:`h${n.toString()}`,id:m,children:[(0,fe.jsx)("span",{className:"heading__context",children:"Current selected state:"}),`${u}`]}),(0,fe.jsx)("div",{children:y&&(0,fe.jsx)(ke,{customComponents:t.customComponents,translations:i,state:s,participants:o})})]}),(0,fe.jsx)("aside",{className:"page-aside markdown",children:(0,fe.jsx)("nav",{className:"page-controls",children:(0,fe.jsx)(me,{headingLevel:n,setSelectedState:({layoutMode:e,feature:t})=>{const i=x(e,t);w(i),i.styleGuideReset&&(f(!1),setTimeout(()=>{f(!0)}))},states:b})})})]})};class De extends a.Engine{constructor({styleGuideConfig:e,...t},i){super(t,i),this.styleGuideConfig=e||{}}async render(){const e={...this.config.customComponents||{},view:void 0},t=new a.API({namespace:this.config.namespace||"",config:this.config.api,context:this.config.context,layoutMode:this.config.layoutMode}),i=await t.getTranslations(this.config.context?.userLocale||"en-GB"),{agentParticipant:n,userParticipant:r}=await t.getConfig(),s=[{id:"user",...r},{id:"agent",introduction:"I am {{name}}",...n}],l={...this.config,customComponents:Object.keys(e).length?e:void 0};(0,o.render)((0,fe.jsx)(Pe,{config:l,styleGuideConfig:this.styleGuideConfig,translations:i,participants:s}),this.parentElement)}}const _e=De;class Re extends a.ExternalApi{constructor(e,t){super(e),this.styleGuideConfig=t}createInstance(e){const{userStyleGuideConfig:t,...i}=e;return new _e({styleGuideConfig:{...this.styleGuideConfig,...t},...i},this)}getUserConfig(e={},t){return super.getUserConfig({...e,...t})}}const Ue=Re,Fe=function(e,t){if(window.seamlyStyleGuide&&!Array.isArray(window.seamlyStyleGuide))throw new Error("Seamly UI has already been initialised. Use the window.seamly object to start new instances instead.");const i=Array.isArray(window.seamlyStyleGuide)?window.seamlyStyleGuide:[],n=new Ue(e,t);window.seamly=n,window.seamlyStyleGuide={push:n.push.bind(n)},n.push(...i)};module.exports=n})();
1
+ (()=>{"use strict";var e={9306(e,t,i){var n=i(4901),a=i(6823),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(a(e)+" is not a function")}},679(e,t,i){var n=i(1625),a=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new a("Incorrect invocation")}},8551(e,t,i){var n=i(34),a=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(a(e)+" is not an object")}},9617(e,t,i){var n=i(5397),a=i(5610),o=i(6198),r=function(e){return function(t,i,r){var s=n(t),l=o(s);if(0===l)return!e&&-1;var c,d=a(r,l);if(e&&i!=i){for(;l>d;)if((c=s[d++])!=c)return!0}else for(;l>d;d++)if((e||d in s)&&s[d]===i)return e||d||0;return!e&&-1}};e.exports={includes:r(!0),indexOf:r(!1)}},4527(e,t,i){var n=i(3724),a=i(4376),o=TypeError,r=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(a(e)&&!r(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},6319(e,t,i){var n=i(8551),a=i(9539);e.exports=function(e,t,i,o){try{return o?t(n(i)[0],i[1]):t(i)}catch(t){a(e,"throw",t)}}},2195(e,t,i){var n=i(9504),a=n({}.toString),o=n("".slice);e.exports=function(e){return o(a(e),8,-1)}},6955(e,t,i){var n=i(2140),a=i(4901),o=i(2195),r=i(8227)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=s(e),r))?i:l?o(t):"Object"===(n=o(t))&&a(t.callee)?"Arguments":n}},7740(e,t,i){var n=i(9297),a=i(5031),o=i(7347),r=i(4913);e.exports=function(e,t,i){for(var s=a(t),l=r.f,c=o.f,d=0;d<s.length;d++){var u=s[d];n(e,u)||i&&n(i,u)||l(e,u,c(t,u))}}},2211(e,t,i){var n=i(9039);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2529(e){e.exports=function(e,t){return{value:e,done:t}}},6699(e,t,i){var n=i(3724),a=i(4913),o=i(6980);e.exports=n?function(e,t,i){return a.f(e,t,o(1,i))}:function(e,t,i){return e[t]=i,e}},6980(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659(e,t,i){var n=i(3724),a=i(4913),o=i(6980);e.exports=function(e,t,i){n?a.f(e,t,o(0,i)):e[t]=i}},2106(e,t,i){var n=i(283),a=i(4913);e.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),a.f(e,t,i)}},6840(e,t,i){var n=i(4901),a=i(4913),o=i(283),r=i(9433);e.exports=function(e,t,i,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(i)&&o(i,c,s),s.global)l?e[t]=i:r(t,i);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=i:a.f(e,t,{value:i,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279(e,t,i){var n=i(6840);e.exports=function(e,t,i){for(var a in t)n(e,a,t[a],i);return e}},9433(e,t,i){var n=i(4576),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(i){n[e]=t}return t}},3724(e,t,i){var n=i(9039);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055(e,t,i){var n=i(4576),a=i(34),o=n.document,r=a(o)&&a(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},6837(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},8727(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839(e,t,i){var n=i(4576).navigator,a=n&&n.userAgent;e.exports=a?String(a):""},9519(e,t,i){var n,a,o=i(4576),r=i(2839),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(a=(n=d.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&r&&(!(n=r.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=r.match(/Chrome\/(\d+)/))&&(a=+n[1]),e.exports=a},6518(e,t,i){var n=i(4576),a=i(7347).f,o=i(6699),r=i(6840),s=i(9433),l=i(7740),c=i(2796);e.exports=function(e,t){var i,d,u,p,y,f=e.target,m=e.global,g=e.stat;if(i=m?n:g?n[f]||s(f,{}):n[f]&&n[f].prototype)for(d in t){if(p=t[d],u=e.dontCallGetSet?(y=a(i,d))&&y.value:i[d],!c(m?d:f+(g?".":"#")+d,e.forced)&&void 0!==u){if(typeof p==typeof u)continue;l(p,u)}(e.sham||u&&u.sham)&&o(p,"sham",!0),r(i,d,p,e)}}},9039(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},8745(e,t,i){var n=i(616),a=Function.prototype,o=a.apply,r=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?r.bind(o):function(){return r.apply(o,arguments)})},6080(e,t,i){var n=i(7476),a=i(9306),o=i(616),r=n(n.bind);e.exports=function(e,t){return a(e),void 0===t?e:o?r(e,t):function(){return e.apply(t,arguments)}}},616(e,t,i){var n=i(9039);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9565(e,t,i){var n=i(616),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},350(e,t,i){var n=i(3724),a=i(9297),o=Function.prototype,r=n&&Object.getOwnPropertyDescriptor,s=a(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&r(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},7476(e,t,i){var n=i(2195),a=i(9504);e.exports=function(e){if("Function"===n(e))return a(e)}},9504(e,t,i){var n=i(616),a=Function.prototype,o=a.call,r=n&&a.bind.bind(o,o);e.exports=n?r:function(e){return function(){return o.apply(e,arguments)}}},7751(e,t,i){var n=i(4576),a=i(4901);e.exports=function(e,t){return arguments.length<2?(i=n[e],a(i)?i:void 0):n[e]&&n[e][t];var i}},1767(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},851(e,t,i){var n=i(6955),a=i(5966),o=i(4117),r=i(6269),s=i(8227)("iterator");e.exports=function(e){if(!o(e))return a(e,s)||a(e,"@@iterator")||r[n(e)]}},81(e,t,i){var n=i(9565),a=i(9306),o=i(8551),r=i(6823),s=i(851),l=TypeError;e.exports=function(e,t){var i=arguments.length<2?s(e):t;if(a(i))return o(n(i,e));throw new l(r(e)+" is not iterable")}},5966(e,t,i){var n=i(9306),a=i(4117);e.exports=function(e,t){var i=e[t];return a(i)?void 0:n(i)}},4576(e,t,i){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297(e,t,i){var n=i(9504),a=i(8981),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(a(e),t)}},421(e){e.exports={}},397(e,t,i){var n=i(7751);e.exports=n("document","documentElement")},5917(e,t,i){var n=i(3724),a=i(9039),o=i(4055);e.exports=!n&&!a(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7055(e,t,i){var n=i(9504),a=i(9039),o=i(2195),r=Object,s=n("".split);e.exports=a(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):r(e)}:r},3706(e,t,i){var n=i(9504),a=i(4901),o=i(7629),r=n(Function.toString);a(o.inspectSource)||(o.inspectSource=function(e){return r(e)}),e.exports=o.inspectSource},1181(e,t,i){var n,a,o,r=i(8622),s=i(4576),l=i(34),c=i(6699),d=i(9297),u=i(7629),p=i(6119),y=i(421),f="Object already initialized",m=s.TypeError,g=s.WeakMap;if(r||u.state){var h=u.state||(u.state=new g);h.get=h.get,h.has=h.has,h.set=h.set,n=function(e,t){if(h.has(e))throw new m(f);return t.facade=e,h.set(e,t),t},a=function(e){return h.get(e)||{}},o=function(e){return h.has(e)}}else{var v=p("state");y[v]=!0,n=function(e,t){if(d(e,v))throw new m(f);return t.facade=e,c(e,v,t),t},a=function(e){return d(e,v)?e[v]:{}},o=function(e){return d(e,v)}}e.exports={set:n,get:a,has:o,enforce:function(e){return o(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=a(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return i}}}},4209(e,t,i){var n=i(8227),a=i(6269),o=n("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||r[o]===e)}},4376(e,t,i){var n=i(2195);e.exports=Array.isArray||function(e){return"Array"===n(e)}},4901(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2796(e,t,i){var n=i(9039),a=i(4901),o=/#|\.prototype\./,r=function(e,t){var i=l[s(e)];return i===d||i!==c&&(a(t)?n(t):!!t)},s=r.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=r.data={},c=r.NATIVE="N",d=r.POLYFILL="P";e.exports=r},4117(e){e.exports=function(e){return null==e}},34(e,t,i){var n=i(4901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},6395(e){e.exports=!1},757(e,t,i){var n=i(7751),a=i(4901),o=i(1625),r=i(7040),s=Object;e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&o(t.prototype,s(e))}},2652(e,t,i){var n=i(6080),a=i(9565),o=i(8551),r=i(6823),s=i(4209),l=i(6198),c=i(1625),d=i(81),u=i(851),p=i(9539),y=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,i){var g,h,v,b,w,x,I,S=i&&i.that,T=!(!i||!i.AS_ENTRIES),M=!(!i||!i.IS_RECORD),j=!(!i||!i.IS_ITERATOR),E=!(!i||!i.INTERRUPTED),C=n(t,S),L=function(e){return g&&p(g,"normal"),new f(!0,e)},O=function(e){return T?(o(e),E?C(e[0],e[1],L):C(e[0],e[1])):E?C(e,L):C(e)};if(M)g=e.iterator;else if(j)g=e;else{if(!(h=u(e)))throw new y(r(e)+" is not iterable");if(s(h)){for(v=0,b=l(e);b>v;v++)if((w=O(e[v]))&&c(m,w))return w;return new f(!1)}g=d(e,h)}for(x=M?e.next:g.next;!(I=a(x,g)).done;){try{w=O(I.value)}catch(e){p(g,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new f(!1)}},1385(e,t,i){var n=i(9539);e.exports=function(e,t,i){for(var a=e.length-1;a>=0;a--)if(void 0!==e[a])try{i=n(e[a].iterator,t,i)}catch(e){t="throw",i=e}if("throw"===t)throw i;return i}},9539(e,t,i){var n=i(9565),a=i(8551),o=i(5966);e.exports=function(e,t,i){var r,s;a(e);try{if(!(r=o(e,"return"))){if("throw"===t)throw i;return i}r=n(r,e)}catch(e){s=!0,r=e}if("throw"===t)throw i;if(s)throw r;return a(r),i}},9462(e,t,i){var n=i(9565),a=i(2360),o=i(6699),r=i(6279),s=i(8227),l=i(1181),c=i(5966),d=i(7657).IteratorPrototype,u=i(2529),p=i(9539),y=i(1385),f=s("toStringTag"),m="IteratorHelper",g="WrapForValidIterator",h="normal",v="throw",b=l.set,w=function(e){var t=l.getterFor(e?g:m);return r(a(d),{next:function(){var i=t(this);if(e)return i.nextHandler();if(i.done)return u(void 0,!0);try{var n=i.nextHandler();return i.returnHandlerResult?n:u(n,i.done)}catch(e){throw i.done=!0,e}},return:function(){var i=t(this),a=i.iterator;if(i.done=!0,e){var o=c(a,"return");return o?n(o,a):u(void 0,!0)}if(i.inner)try{p(i.inner.iterator,h)}catch(e){return p(a,v,e)}if(i.openIters)try{y(i.openIters,h)}catch(e){return p(a,v,e)}return a&&p(a,h),u(void 0,!0)}})},x=w(!0),I=w(!1);o(I,f,"Iterator Helper"),e.exports=function(e,t,i){var n=function(n,a){a?(a.iterator=n.iterator,a.next=n.next):a=n,a.type=t?g:m,a.returnHandlerResult=!!i,a.nextHandler=e,a.counter=0,a.done=!1,b(this,a)};return n.prototype=t?x:I,n}},684(e){e.exports=function(e,t){var i="function"==typeof Iterator&&Iterator.prototype[e];if(i)try{i.call({next:null},t).next()}catch(e){return!0}}},4549(e,t,i){var n=i(4576);e.exports=function(e,t){var i=n.Iterator,a=i&&i.prototype,o=a&&a[e],r=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){r=!0}},-1)}catch(e){e instanceof t||(r=!1)}if(!r)return o}},7657(e,t,i){var n,a,o,r=i(9039),s=i(4901),l=i(34),c=i(2360),d=i(2787),u=i(6840),p=i(8227),y=i(6395),f=p("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(a=d(d(o)))!==Object.prototype&&(n=a):m=!0),!l(n)||r(function(){var e={};return n[f].call(e)!==e})?n={}:y&&(n=c(n)),s(n[f])||u(n,f,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},6269(e){e.exports={}},6198(e,t,i){var n=i(8014);e.exports=function(e){return n(e.length)}},283(e,t,i){var n=i(9504),a=i(9039),o=i(4901),r=i(9297),s=i(3724),l=i(350).CONFIGURABLE,c=i(3706),d=i(1181),u=d.enforce,p=d.get,y=String,f=Object.defineProperty,m=n("".slice),g=n("".replace),h=n([].join),v=s&&!a(function(){return 8!==f(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,i){"Symbol("===m(y(t),0,7)&&(t="["+g(y(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!r(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),v&&i&&r(i,"arity")&&e.length!==i.arity&&f(e,"length",{value:i.arity});try{i&&r(i,"constructor")&&i.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=u(e);return r(n,"source")||(n.source=h(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return o(this)&&p(this).source||c(this)},"toString")},741(e){var t=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:t)(n)}},2360(e,t,i){var n,a=i(8551),o=i(6801),r=i(8727),s=i(421),l=i(397),c=i(4055),d=i(6119),u="prototype",p="script",y=d("IE_PROTO"),f=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,i;h="undefined"!=typeof document?document.domain&&n?g(n):(t=c("iframe"),i="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var a=r.length;a--;)delete h[u][r[a]];return h()};s[y]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(f[u]=a(e),i=new f,f[u]=null,i[y]=e):i=h(),void 0===t?i:o.f(i,t)}},6801(e,t,i){var n=i(3724),a=i(8686),o=i(4913),r=i(8551),s=i(5397),l=i(1072);t.f=n&&!a?Object.defineProperties:function(e,t){r(e);for(var i,n=s(t),a=l(t),c=a.length,d=0;c>d;)o.f(e,i=a[d++],n[i]);return e}},4913(e,t,i){var n=i(3724),a=i(5917),o=i(8686),r=i(8551),s=i(6969),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u="enumerable",p="configurable",y="writable";t.f=n?o?function(e,t,i){if(r(e),t=s(t),r(i),"function"==typeof e&&"prototype"===t&&"value"in i&&y in i&&!i[y]){var n=d(e,t);n&&n[y]&&(e[t]=i.value,i={configurable:p in i?i[p]:n[p],enumerable:u in i?i[u]:n[u],writable:!1})}return c(e,t,i)}:c:function(e,t,i){if(r(e),t=s(t),r(i),a)try{return c(e,t,i)}catch(e){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},7347(e,t,i){var n=i(3724),a=i(9565),o=i(8773),r=i(6980),s=i(5397),l=i(6969),c=i(9297),d=i(5917),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=s(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return r(!a(o.f,e,t),e[t])}},8480(e,t,i){var n=i(1828),a=i(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},3717(e,t){t.f=Object.getOwnPropertySymbols},2787(e,t,i){var n=i(9297),a=i(4901),o=i(8981),r=i(6119),s=i(2211),l=r("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var i=t.constructor;return a(i)&&t instanceof i?i.prototype:t instanceof c?d:null}},1625(e,t,i){var n=i(9504);e.exports=n({}.isPrototypeOf)},1828(e,t,i){var n=i(9504),a=i(9297),o=i(5397),r=i(9617).indexOf,s=i(421),l=n([].push);e.exports=function(e,t){var i,n=o(e),c=0,d=[];for(i in n)!a(s,i)&&a(n,i)&&l(d,i);for(;t.length>c;)a(n,i=t[c++])&&(~r(d,i)||l(d,i));return d}},1072(e,t,i){var n=i(1828),a=i(8727);e.exports=Object.keys||function(e){return n(e,a)}},8773(e,t){var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!i.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:i},4270(e,t,i){var n=i(9565),a=i(4901),o=i(34),r=TypeError;e.exports=function(e,t){var i,s;if("string"===t&&a(i=e.toString)&&!o(s=n(i,e)))return s;if(a(i=e.valueOf)&&!o(s=n(i,e)))return s;if("string"!==t&&a(i=e.toString)&&!o(s=n(i,e)))return s;throw new r("Can't convert object to primitive value")}},5031(e,t,i){var n=i(7751),a=i(9504),o=i(8480),r=i(3717),s=i(8551),l=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),i=r.f;return i?l(t,i(e)):t}},7750(e,t,i){var n=i(4117),a=TypeError;e.exports=function(e){if(n(e))throw new a("Can't call method on "+e);return e}},6119(e,t,i){var n=i(5745),a=i(3392),o=n("keys");e.exports=function(e){return o[e]||(o[e]=a(e))}},7629(e,t,i){var n=i(6395),a=i(4576),o=i(9433),r="__core-js_shared__",s=e.exports=a[r]||o(r,{});(s.versions||(s.versions=[])).push({version:"3.48.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745(e,t,i){var n=i(7629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},4495(e,t,i){var n=i(9519),a=i(9039),o=i(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!a(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},5610(e,t,i){var n=i(1291),a=Math.max,o=Math.min;e.exports=function(e,t){var i=n(e);return i<0?a(i+t,0):o(i,t)}},5397(e,t,i){var n=i(7055),a=i(7750);e.exports=function(e){return n(a(e))}},1291(e,t,i){var n=i(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8014(e,t,i){var n=i(1291),a=Math.min;e.exports=function(e){var t=n(e);return t>0?a(t,9007199254740991):0}},8981(e,t,i){var n=i(7750),a=Object;e.exports=function(e){return a(n(e))}},2777(e,t,i){var n=i(9565),a=i(34),o=i(757),r=i(5966),s=i(4270),l=i(8227),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!a(e)||o(e))return e;var i,l=r(e,d);if(l){if(void 0===t&&(t="default"),i=n(l,e,t),!a(i)||o(i))return i;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969(e,t,i){var n=i(2777),a=i(757);e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},2140(e,t,i){var n={};n[i(8227)("toStringTag")]="z",e.exports="[object z]"===String(n)},655(e,t,i){var n=i(6955),a=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},6823(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3392(e,t,i){var n=i(9504),a=0,o=Math.random(),r=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++a+o,36)}},7040(e,t,i){var n=i(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686(e,t,i){var n=i(3724),a=i(9039);e.exports=n&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2812(e){var t=TypeError;e.exports=function(e,i){if(e<i)throw new t("Not enough arguments");return e}},8622(e,t,i){var n=i(4576),a=i(4901),o=n.WeakMap;e.exports=a(o)&&/native code/.test(String(o))},8227(e,t,i){var n=i(4576),a=i(5745),o=i(9297),r=i(3392),s=i(4495),l=i(7040),c=n.Symbol,d=a("wks"),u=l?c.for||c:c&&c.withoutSetter||r;e.exports=function(e){return o(d,e)||(d[e]=s&&o(c,e)?c[e]:u("Symbol."+e)),d[e]}},4114(e,t,i){var n=i(6518),a=i(8981),o=i(6198),r=i(4527),s=i(6837);n({target:"Array",proto:!0,arity:1,forced:i(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=a(this),i=o(t),n=arguments.length;s(i+n);for(var l=0;l<n;l++)t[i]=arguments[l],i++;return r(t,i),i}})},8111(e,t,i){var n=i(6518),a=i(4576),o=i(679),r=i(8551),s=i(4901),l=i(2787),c=i(2106),d=i(4659),u=i(9039),p=i(9297),y=i(8227),f=i(7657).IteratorPrototype,m=i(3724),g=i(6395),h="constructor",v="Iterator",b=y("toStringTag"),w=TypeError,x=a[v],I=g||!s(x)||x.prototype!==f||!u(function(){x({})}),S=function(){if(o(this,f),l(this)===f)throw new w("Abstract class Iterator not directly constructable")},T=function(e,t){m?c(f,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===f)throw new w("You can't redefine this property");p(this,e)?this[e]=t:d(this,e,t)}}):f[e]=t};p(f,b)||T(b,v),!I&&p(f,h)&&f[h]!==Object||T(h,S),S.prototype=f,n({global:!0,constructor:!0,forced:I},{Iterator:S})},2489(e,t,i){var n=i(6518),a=i(9565),o=i(9306),r=i(8551),s=i(1767),l=i(9462),c=i(6319),d=i(6395),u=i(9539),p=i(684),y=i(4549),f=!d&&!p("filter",function(){}),m=!d&&!f&&y("filter",TypeError),g=d||f||m,h=l(function(){for(var e,t,i=this.iterator,n=this.predicate,o=this.next;;){if(e=r(a(o,i)),this.done=!!e.done)return;if(t=e.value,c(i,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(e){r(this);try{o(e)}catch(e){u(this,"throw",e)}return m?a(m,this,e):new h(s(this),{predicate:e})}})},116(e,t,i){var n=i(6518),a=i(9565),o=i(2652),r=i(9306),s=i(8551),l=i(1767),c=i(9539),d=i(4549)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(e){s(this);try{r(e)}catch(e){c(this,"throw",e)}if(d)return a(d,this,e);var t=l(this),i=0;return o(t,function(t,n){if(e(t,i++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},7588(e,t,i){var n=i(6518),a=i(9565),o=i(2652),r=i(9306),s=i(8551),l=i(1767),c=i(9539),d=i(4549)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(e){s(this);try{r(e)}catch(e){c(this,"throw",e)}if(d)return a(d,this,e);var t=l(this),i=0;o(t,function(t){e(t,i++)},{IS_RECORD:!0})}})},1701(e,t,i){var n=i(6518),a=i(9565),o=i(9306),r=i(8551),s=i(1767),l=i(9462),c=i(6319),d=i(9539),u=i(684),p=i(4549),y=i(6395),f=!y&&!u("map",function(){}),m=!y&&!f&&p("map",TypeError),g=y||f||m,h=l(function(){var e=this.iterator,t=r(a(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(e){r(this);try{o(e)}catch(e){d(this,"throw",e)}return m?a(m,this,e):new h(s(this),{mapper:e})}})},8237(e,t,i){var n=i(6518),a=i(2652),o=i(9306),r=i(8551),s=i(1767),l=i(9539),c=i(4549),d=i(8745),u=i(9039),p=TypeError,y=u(function(){[].keys().reduce(function(){},void 0)}),f=!y&&c("reduce",p);n({target:"Iterator",proto:!0,real:!0,forced:y||f},{reduce:function(e){r(this);try{o(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,i=t?void 0:arguments[1];if(f)return d(f,this,t?[e]:[e,i]);var n=s(this),c=0;if(a(n,function(n){t?(t=!1,i=n):i=e(i,n,c),c++},{IS_RECORD:!0}),t)throw new p("Reduce of empty iterator with no initial value");return i}})},8992(e,t,i){i(8111)},4520(e,t,i){i(2489)},2577(e,t,i){i(116)},3949(e,t,i){i(7588)},1454(e,t,i){i(1701)},8872(e,t,i){i(8237)},4603(e,t,i){var n=i(6840),a=i(9504),o=i(655),r=i(2812),s=URLSearchParams,l=s.prototype,c=a(l.append),d=a(l.delete),u=a(l.forEach),p=a([].push),y=new s("a=1&a=2&b=3");y.delete("a",1),y.delete("b",void 0),y+""!="a=2"&&n(l,"delete",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return d(this,e);var n=[];u(this,function(e,t){p(n,{key:t,value:e})}),r(t,1);for(var a,s=o(e),l=o(i),y=0,f=0,m=!1,g=n.length;y<g;)a=n[y++],m||a.key===s?(m=!0,d(this,a.key)):f++;for(;f<g;)(a=n[f++]).key===s&&a.value===l||c(this,a.key,a.value)},{enumerable:!0,unsafe:!0})},7566(e,t,i){var n=i(6840),a=i(9504),o=i(655),r=i(2812),s=URLSearchParams,l=s.prototype,c=a(l.getAll),d=a(l.has),u=new s("a=1");!u.has("a",2)&&u.has("a",void 0)||n(l,"has",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return d(this,e);var n=c(this,e);r(t,1);for(var a=o(i),s=0;s<n.length;)if(n[s++]===a)return!0;return!1},{enumerable:!0,unsafe:!0})},8721(e,t,i){var n=i(3724),a=i(9504),o=i(2106),r=URLSearchParams.prototype,s=a(r.forEach);n&&!("size"in r)&&o(r,"size",{get:function(){var e=0;return s(this,function(){e++}),e},configurable:!0,enumerable:!0})}},t={};function i(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};i.r(n),i.d(n,{SeamlyStaticCore:()=>Ae,default:()=>Fe}),i(4114);const a=require("@seamly/web-ui"),o=require("preact");i(8992),i(2577),i(8872),i(4603),i(7566),i(8721);const r=require("preact/hooks");i(1454);const s={direction:"to_translation_locale",locale:"nl",translatedBy:"deep_l",data:{}};function l(e){switch(e.payload.type){case"image":case"text":case"choice_prompt":return{...e,payload:{...e.payload,translatedBody:{...s,data:{...e.payload.body,text:e.payload.body.text?`NL - ${e.payload.body.text}`:void 0,description:e.payload.body.description?`NL - ${e.payload.body.description}`:void 0,buttonText:e.payload.body.buttonText?`NL - ${e.payload.body.buttonText}`:void 0,choices:e.payload.body.choices?e.payload.body.choices.map(e=>({...e,text:`NL - ${e.text}`})):void 0,prompt:e.payload.body.prompt?{...e.payload.body.prompt,text:`NL - ${e.payload.body.prompt.text}`}:void 0}}}};default:return e}}const c={events:[],config:{layoutMode:"inline",accountConfig:{},hideOnNoUserResponse:!1,showDisclaimer:!1,showSuggestions:!0,preChat:!0},context:{},initialState:{},unreadEvents:0,loadedImageEventIds:[],isLoading:!1,idleDetachCountdown:{hasCountdown:!1,isActive:!1},resumeConversationPrompt:!1,visibility:{visibility:a.visibilityStates.open,showPreChat:!0,showContinueChat:!0},serviceInfo:{activeServiceSessionId:""},participantInfo:{participants:{},currentAgent:""},headerTitles:{title:"Test title",subTitle:"Test subtitle"},interrupt:{error:void 0},historyLoaded:!1,skiplinkTargetId:(0,a.randomId)(),optionsButtonId:(0,a.randomId)(),serviceData:{},options:{features:{},panelActive:!1,optionActive:"",userSelectedOptions:{}},entryMeta:{default:"text",active:"text",userSelected:null,options:{},optionsOverride:{}},currentUploads:[],processingFileUploads:[]},d={participants:{agent:{id:"agent",service:{expose:{map:{},version:2},meta:{},name:null,service_session_id:null,settings:{}}},user:{id:"user",service:{expose:{map:{},version:2},meta:{},name:null,service_session_id:null,settings:{}}}},currentAgent:"agent"},u={type:"info",payload:{body:{subtype:"new_topic",type:"divider"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),transactionId:"_1y9pz5fbyly",type:"divider"}},p={type:"info",payload:{body:{language:"Nederlands",restartButtonText:null,subtype:"new_translation",text:"[NL] Automatic translation to Dutch started. Please note that automatic translations may contain errors.",title:"[NL] Translating to Dutch",translationEnabled:!0,userLocale:"nl"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),occurredAt:0x5c68711878df3,participant:null,service:{meta:{},name:null,serviceSessionId:null},transactionId:null,translatedBody:null,type:"divider"}},y={type:"info",payload:{body:{language:"Nederlands",subtype:"new_translation",text:"[NL] Automatic translation to Dutch started. Please note that automatic translations may contain errors.",translationEnabled:!0,userLocale:"nl"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),occurredAt:0x5c68711878df3,participant:null,service:{meta:{},name:null,serviceSessionId:null},transactionId:null,translatedBody:null,type:"divider"}},f={type:"info",payload:{body:{language:"Nederlands",restartButtonText:"[NL] Start again",subtype:"new_translation",text:null,title:"[NL] Automatic translation to Dutch ended",translationEnabled:!1,userLocale:"nl"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),occurredAt:0x5c68711878df3,participant:null,service:{meta:{},name:null,serviceSessionId:null},transactionId:null,translatedBody:null,type:"divider"}},m={type:"info",payload:{body:{text:"This is a system generated info message",type:"text"},fromClient:!1,id:(0,a.randomId)(),participant:null,service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:null,type:"text"}},g={type:"info",payload:{body:{key:["info","sendTranscript","accepted"],variables:{emailAddress:"test@test.com"}},fromClient:!1,id:(0,a.randomId)(),participant:null,service:{meta:{},name:null,serviceSessionId:null},transactionId:null,type:"translation"}},h={title:"You're talking to",subTitle:"Mrs. Bot"},v={type:"participant",payload:{fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"received",participant:{avatar:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjNEE0OEMxIiBkPSJNMTAsMTQuOGMtMS4xLDAtMi0wLjktMi0yczAuOS0yLDItMnMyLDAuOSwyLDJTMTEuMSwxNC44LDEwLDE0Ljh6IE0xNS45LDE0LjhjMS4xLDAsMi0wLjksMi0ycy0wLjktMi0yLTIKCXMtMiwwLjktMiwyUzE0LjgsMTQuOCwxNS45LDE0Ljh6IE0yMS44LDEwLjhjLTEuMSwwLTIsMC45LTIsMnMwLjksMiwyLDJzMi0wLjksMi0yUzIyLjksMTAuOCwyMS44LDEwLjh6IE0yMS4zLDE4LjFIMTAuNwoJQzExLjcsMjMuOSwyMC4yLDIzLjksMjEuMywxOC4xeiIvPgo8L3N2Zz4K",id:"agent",introduction:"You're now talking to Mrs. Bot gimme a minit",name:"Mrs. Bot",service:{expose:{map:{},version:2},meta:{},name:null,service_session_id:null,settings:{}}},transactionId:"d63655bf-1d3d-42cf-b14e-4da9e2b6a642",type:"participant"}},b={type:"participant",payload:{fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"received",participant:{introduction:"Welcome, you are now chatting with Mrs. Bot 2, give me a minit to read back the chat history.",id:"agent",avatar:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjNEE0OEMxIiBkPSJNMTAuMSwxNC45Yy0xLjEsMC0yLTAuOS0yLTJzMC45LTIsMi0yczIsMC45LDIsMlMxMS4yLDE0LjksMTAuMSwxNC45eiBNMjEuOSwxMC45Yy0xLjEsMC0yLDAuOS0yLDIKCXMwLjksMiwyLDJzMi0wLjksMi0yUzIzLDEwLjksMjEuOSwxMC45eiBNMjEuNCwxOC4ySDEwLjhDMTEuOCwyNCwyMC4zLDI0LDIxLjQsMTguMnogTTE3LjIsMjUuM2gtMi40Yy0wLjYsMC0xLjIsMC40LTEuNCwxCgljLTUuMS0wLjItOS4yLTQuNC05LjQtOS42YzAuMSwwLDAuMiwwLjEsMC40LDAuMWgwLjFjMC44LDAsMS40LTAuNiwxLjQtMS40di00LjdjMC0wLjgtMC42LTEuNC0xLjQtMS40aDBjLTAuOCwwLTEuNCwwLjYtMS40LDEuNAoJdjIuN3YydjEuMWMwLDUuOSw0LjcsMTAuNiwxMC41LDEwLjhjMC4yLDAuNSwwLjcsMC44LDEuMiwwLjhoMi40YzAuOCwwLDEuNC0wLjYsMS40LTEuNFMxOCwyNS4zLDE3LjIsMjUuM3oiLz4KPC9zdmc+Cg==",name:"Two",service:{expose:{map:{},version:3},meta:{},name:"new service",serviceSessionId:(0,a.randomId)(),settings:{}}},transactionId:(0,a.randomId)(),type:"participant"}},w={type:"participant",payload:{fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"received",participant:{id:"user",introduction:"You're now talking to Mrs. Bot gimme a minit",name:"Mrs. Bot",service:{expose:{map:{},version:2},meta:{},name:null,service_session_id:null,settings:{}}},transactionId:"d63655bf-1d3d-42cf-b14e-4da9e2b6a642",type:"participant"}},x=({type:e,data:t,text:i})=>({type:"message",payload:{body:{type:e,text:i,data:t},participant:"agent",service:{meta:{additions:{}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},fromClient:!1,fromHistory:!0,id:"4efacb4d-28a0-454e-8e36-3f17eb598c5d",messageStatus:"read",transactionId:"6f9beee7-ce82-418e-9bec-8001079aa769",transactionLast:!0,type:"custom"}}),I={type:"message",payload:{body:{text:"What do you want to do?",type:"text",data:void 0},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"b947b684-93df-4bd9-a8ea-e2f1b5a7a480",transactionLast:!1,type:"text"}},S={type:"message",payload:{type:"splash",id:(0,a.randomId)(),body:{text:"Example splash message ✨",type:"text",variables:{}}}},T={type:"message",payload:{body:{text:"What do you want to do? This is a really long message from a bot that has a lot to say about a lot of things. Currently I am contemplating my own bot existence and constantly asking myself who I am. What do you want to do? This is a really long message from a bot that has a lot to say about a lot of things. Currently I am contemplating my own bot existence and constantly asking myself who I am. What do you want to do? This is a really long message from a bot that has a lot to say about a lot of things. Currently I am contemplating my own bot existence and constantly asking myself who I am.",type:"text"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"b947b684-93df-4bd9-a8ea-e2f1b5a7a480",transactionLast:!1,type:"text"}},M={type:"message",payload:{body:{text:"Bubble with <strong>bold</strong> <em>italic</em> <u>underline</u>",type:"text"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"text"}},j={type:"message",payload:{body:{text:'<a href="https://google.com" data-link-id="1">Link in same window</a> and <a href="https://google.com" data-link-id="2" target="_blank">link in new window</a> embedded in text',type:"text"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"text"}},E={type:"message",payload:{body:{text:'Here is a long link <a href="https://google.com" data-link-id="1">click me click me please click me yoohoooo please please click me here I am click me now what are you waiting for click me now now now now now click meeeeeeeeeeeeee</a> embedded in text',type:"text"},fromClient:!1,fromHistory:!0,id:"a964e54e-ea98-46ff-a952-979a47f162c0",messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"text"}},C={type:"message",payload:{body:{text:"\n <ul>\n <li>Short list item</li>\n <li>This list item is longer to showcase different type lengths of text in list items and how they reflow in the browser</li>\n <li>\n This list item has a nested list with 3 items in it.\n <ul>\n <li>First item</li>\n <li>second item</li>\n <li>Third item</li>\n </ul>\n </li>\n <li>Another one just to be sure :)</li>\n </ul>\n ",type:"text"},fromClient:!1,fromHistory:!0,id:"f5351010-0def-452d-818f-ca22ac61792a",messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"text"}},L={type:"message",payload:{body:{text:"\n <ol>\n <li>Short list item</li>\n <li>This list item is longer to showcase different type lengths of text in list items and how they reflow in the browser</li>\n <li>\n This list item has a nested list with 3 items in it.\n <ol>\n <li>First item</li>\n <li>second item</li>\n <li>Third item</li>\n </ol>\n </li>\n <li>Another one just to be sure :)</li>\n </ol>\n ",type:"text"},fromClient:!1,fromHistory:!0,id:"f5351010-0def-452d-818f-ca22ac61792a",messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"text"}},O={type:"message",payload:{body:{description:"Plaatje",isZoomable:!1,type:"image",url:"https://developers.seamly.ai/clients/web-ui/static/photos/image-square-small.jpg"},fromClient:!1,fromHistory:!0,id:"b44ef42c-880c-43ff-b067-499e7f2e81f7",messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"image"}},N={type:"message",payload:{body:{description:"Plaatje",isZoomable:!0,type:"image",url:"https://developers.seamly.ai/clients/web-ui/static/photos/image-portrait.jpg"},fromClient:!1,fromHistory:!0,id:"b44ef42c-880c-43ff-b067-499e7f2e81f8",messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"image"}},A={type:"message",payload:{body:{description:"test",source:"youtube",type:"video",url:"https://www.youtube.com/embed/K7Hn1rPQouU"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{hideFeedback:"true"}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"d0cc13da-337a-4108-9db1-cb8a3b3a1446",transactionLast:!1,type:"video"}},k={type:"message",payload:{body:{choices:[{id:"703db9b3-2157-4d4a-9f9b-c382c6a10531",text:"Dialog (this is intentionally made longer for testing purposes)",type:"choice"},{id:"1eff6098-f14f-4683-a2b8-30d1c573d45e",text:"T-Dialog",type:"choice"},{id:"a8ba3ce8-3324-4e7a-accc-944ff78ac890",text:"Customers",type:"choice"},{id:"c89956ab-cf98-4b7e-9282-7087c988153d",text:"Features",type:"choice"},{id:"9fd9a28f-462d-4f07-9661-606dbe3b9466",category:"secondary",text:"Something else",type:"choice"}],chooseAgain:!0,prompt:{text:"Here are some choice prompt options to choose from",type:"text",variables:{}},type:"choice_prompt"},fromClient:!1,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"agent",service:{meta:{additions:{}},name:"bot",serviceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},transactionId:"b947b684-93df-4bd9-a8ea-e2f1b5a7a480",transactionLast:!0,type:"choice_prompt"}},z={type:"message",payload:{body:{text:"This is what the user typed",type:"text"},fromClient:!0,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"user",transactionId:"1cdefea9-7437-4672-bcf8-2c75dc99244c",transactionLast:null,type:"text"}},P={type:"message",payload:{body:{text:"This is what the user typed. And sometimes the user has quite a lot to say and then we get longer lines that need to wrap well and not break the styling so here goes with just such a line right here!!",type:"text"},fromClient:!0,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"user",transactionId:"1cdefea9-7437-4672-bcf8-2c75dc99244c",transactionLast:null,type:"text"}},D={type:"message",payload:{body:{text:'<a href="https://google.com" data-link-id="1">Link in same window</a> and <a href="https://google.com" data-link-id="2" target="_blank">link in new window</a> embedded in text',type:"text"},fromClient:!0,fromHistory:!0,id:(0,a.randomId)(),messageStatus:"read",participant:"user",transactionId:"1cdefea9-7437-4672-bcf8-2c75dc99244c",transactionLast:null,type:"text"}},_={type:"upload",transactionId:(0,a.randomId)(),meta:{},body:{contentType:"plain/text",filename:"This-is-an-example.txt",filesize:12,id:(0,a.randomId)(),isDeleted:!1}},R={type:"upload",transactionId:(0,a.randomId)(),meta:{},body:{contentType:"application/pdf",filename:"This-is-a-sample.pdf",filesize:18810,id:"",isDeleted:!1,url:"https://pdfobject.com/pdf/sample.pdf"}},U={type:"upload",transactionId:(0,a.randomId)(),meta:{},body:{contentType:"image/jpeg",filename:"image-square-small.jpg",filesize:12020,id:"",isDeleted:!1,url:"https://developers.seamly.ai/clients/web-ui/static/photos/image-square-small.jpg"}},F={type:"message",payload:{..._,fromClient:!1,participant:"agent",id:(0,a.randomId)()}},H={type:"message",payload:{...R,fromClient:!1,participant:"agent",id:(0,a.randomId)()}},G={type:"message",payload:{...U,fromClient:!1,participant:"agent",id:(0,a.randomId)()}};sessionStorage.setItem(`image-${G.payload.id}`,G.payload.body.url);const B={...G,payload:{...G.payload,body:{...G.payload.body,isDeleted:!0,url:void 0},id:(0,a.randomId)()}},W={type:"message",payload:{...U,fromClient:!0,participant:"user",id:(0,a.randomId)()}};sessionStorage.setItem(`image-${W.payload.id}`,W.payload.body.url);const $={...W,payload:{...W.payload,id:(0,a.randomId)(),body:{...W.payload.body,url:null}}},q={isActive:!1,currentLocale:void 0,isAvailable:!1,showTranslationProposal:!1,languages:[],translatedEventGroups:{},containerId:(0,a.randomId)()},X=[{id:"1",question:"Invoices",categories:["mixed","short"]},{id:"2",question:"Temporary subscription pause",categories:["mixed","medium"]},{id:"3",question:"Cancellation",categories:["mixed","short"]},{id:"4",question:"Apps",categories:["mixed","medium"]},{id:"5",question:"At what date will my subscription end?",categories:["mixed","long"]},{id:"A",question:"Quotes",categories:["short"]},{id:"B",question:"How to get in touch with us",categories:["long"]}],J="unstarted",Y="messages",Z="errors",K="uploads",Q="features",V="options",ee="suggestions",te="minimizedWindow",ie="minimizedInline",ne="translations",ae={[J]:{heading:"Unstarted UI",description:"Test the loader here"},[Y]:{heading:"Messages",description:""},[Z]:{heading:"UI errors",description:""},[K]:{heading:"File uploads",description:""},[Q]:{heading:"Other features",description:""},[V]:{heading:"Options",description:""},[ee]:{heading:"Suggestions",description:""},[te]:{heading:"Minimized window",desciption:""},[ie]:{heading:"Minimized Inline",description:""},[ne]:{heading:"Translations",description:""}},oe={type:"message",payload:{type:"card",id:(0,a.randomId)(),body:{action:{ask:"",type:"ask"},buttonText:"Ask about pizzas!",description:"Pizza Margherita is a <strong>typical Neapolitan pizza</strong>.\n\nIt is made with San Marzano tomatoes, mozzarella cheese, fresh basil, salt, and extra-virgin olive oil.",image:"https://developers.seamly.ai/clients/web-ui/static/photos/card-square.jpg",title:"Pizza Margherita"}}},re={type:"message",payload:{type:"card",id:(0,a.randomId)(),body:{action:{link:"https://seamly.ai",newTab:!0,type:"navigate"},buttonText:"Order now!",description:"Pizza Margherita is a <strong>typical Neapolitan pizza</strong>.",image:"https://developers.seamly.ai/clients/web-ui/static/photos/card-landscape.jpg",title:"Pizza Margherita"}}},se={type:"message",payload:{type:"card",id:(0,a.randomId)(),body:{action:{topic:"Set topic",type:"topic"},buttonText:"Set topic! (title & description optional)",image:"https://developers.seamly.ai/clients/web-ui/static/photos/card-portrait.jpg"}}},le={type:"message",payload:{type:"card",id:(0,a.randomId)(),body:{action:{ask:"",type:"ask"},buttonText:"Ask about pizzas!",description:"Pizza Margherita is a <strong>typical Neapolitan pizza</strong>.\n\nIt is made with San Marzano tomatoes, mozzarella cheese, fresh basil, salt, and extra-virgin olive oil.",title:"Pizza Margherita"}}},ce={base:{category:J,headingText:"Standard with loader",description:"",...c,isLoading:!0},fullConversation:{category:Y,headingText:"Full demo conversation",description:"",...c,participantInfo:d,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[v,m,I,{...k,payload:{...k.payload,id:`${k.payload.id}XXX`}},T,b,z,M,D,u,O,F,H,G,B,P,A,j,E,N,W,$,C,L,k]},userMessages:{category:Y,headingText:"User messages",description:"",...c,participantInfo:d,events:[z,P,W,$,D]},withParticipants:{category:Y,headingText:"Messages with participant info",description:"",...c,config:{...c.config,overrideMessages:{agent:{showAvatar:!0,showName:!0},user:{showName:!0,showAvatar:!0}}},participantInfo:d,events:[I,z,T,P]},textMessages:{category:Y,headingText:"Text messages",description:"",...c,participantInfo:d,events:[I,T,M,j,E,C,L]},imageVideoMessages:{category:Y,headingText:"Download, image and video messages",description:"",...c,participantInfo:d,events:[O,A,N,F,H,G,B,W,$]},systemMessages:{category:Y,headingText:"System messages",description:"",...c,config:{overrideMessages:{timeIndicator:{enabled:!0,threshold:36e5}}},participantInfo:d,events:[{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()-432e6),id:(0,a.randomId)(),body:{text:"Long ago when a dialog started",type:"text"}}},v,w,b,u,g,...[p,f].map(l),m]},choicePromptMessages:{category:Y,headingText:"Choice prompt messages",description:"",...c,participantInfo:d,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[{...k,payload:{...k.payload,id:`${k.payload.id}XXX`}},I,k]},choicePromptMessageWithoutManualInput:{category:Y,headingText:"Choice prompt message without manual input",description:"",...c,entryMeta:{...c.entryMeta,options:{text:{allowManualInput:!1}}},events:[k],participantInfo:d,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"}},timeIndicators:{category:Y,headingText:"Time Indicators",description:"",...c,config:{overrideMessages:{timeIndicator:{enabled:!0,threshold:36e5}}},participantInfo:d,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()-432e6),id:(0,a.randomId)(),body:{text:"Long ago when a dialog started",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()-3456e5),id:(0,a.randomId)(),body:{text:"Above me should be a time indicator showing the full date",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()+1-3456e5),id:(0,a.randomId)(),body:{text:"Another message",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()+2-3456e5),id:(0,a.randomId)(),body:{text:"And another message",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()-864e5),id:(0,a.randomId)(),body:{text:'Above me should be a time indicator showing "yesterday"',type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()+1-864e5),id:(0,a.randomId)(),body:{text:"Another message",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*(Date.now()+2-864e5),id:(0,a.randomId)(),body:{text:"And another message",type:"text"}}},{type:"message",payload:{...I.payload,occurredAt:1e3*Date.now(),id:(0,a.randomId)(),body:{text:"Above me should be a time indicator showing me the dialog continues today",type:"text"}}}]},cards:{category:Y,headingText:"Cards",description:"",...c,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[oe,re,se,le]},carousel:{category:Y,headingText:"Carousel",description:"",...c,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[{type:"message",payload:{type:"carousel",id:(0,a.randomId)(),body:{cards:[oe.payload.body,re.payload.body,se.payload.body,le.payload.body]}}}]},errorWithAction:{category:Z,headingText:"Error with a user action",description:"",...c,interrupt:{error:new a.SeamlyGeneralError(new Error("general error"))}},errorWithoutAction:{category:Z,headingText:"Error without a user action",description:"",...c,interrupt:{error:new a.SeamlyOfflineError(new Error("seamly offline error"))}},privacyDisclaimer:{category:Q,headingText:"Privacy disclaimer",description:"",...c,config:{...c.config,showDisclaimer:!0}},characterLimit:{category:Q,headingText:"Singleline: Input character limit",description:"",...c,entryMeta:{default:"text",active:"text",userSelected:null,options:{text:{limit:120}},optionsOverride:{}}},inputLabel:{category:Q,headingText:"Singleline: Input label",...c,entryMeta:{default:"text",active:"text",options:{text:{limit:null}},optionsOverride:{text:{label:"What is your name?",limit:null,placeholder:"Please enter your name"}}}},inputLabelWithFileUploadToggle:{category:Q,headingText:"Singleline: Input label with file upload toggle button",...c,options:{...c.options,features:{uploads:{enabled:!0}}},entryMeta:{default:"text",active:"text",options:{text:{limit:null}},optionsOverride:{text:{label:"What is the title of the uploaded document?",limit:null,placeholder:"Please enter the title of the document"}}}},multilineCharacterLimit:{category:Q,headingText:"Multiline: Input character limit",description:"",...c,config:{...c.config,useMultilineUserInput:!0},entryMeta:{default:"text",active:"text",userSelected:null,options:{text:{limit:120}},optionsOverride:{}}},multilineInputLabel:{category:Q,headingText:"Multiline: Input label",...c,config:{...c.config,useMultilineUserInput:!0},entryMeta:{default:"text",active:"text",options:{text:{limit:null}},optionsOverride:{text:{label:"What is your name?",limit:null,placeholder:"Please enter your name"}}}},multilineInputLabelWithFileUploadToggle:{category:Q,headingText:"Multiline: Input label with file upload toggle button",...c,config:{...c.config,useMultilineUserInput:!0},options:{...c.options,features:{uploads:{enabled:!0}}},entryMeta:{default:"text",active:"text",options:{text:{limit:null}},optionsOverride:{text:{label:"What is the title of the uploaded document?",limit:null,placeholder:"Please enter the title of the document"}}}},abortTransactional:{category:Q,headingText:"Abort transaction",...c,events:[I,z],entryMeta:{default:"text",active:"text",options:{text:{limit:null}},optionsOverride:{},actions:{abortTransaction:{label:"Ask for another question",topicFallbackMessage:"Oops...",topicName:"abort_transaction"}},translatedActions:{}}},fileUploadToggle:{category:K,headingText:"File upload toggle button",description:"",...c,options:{...c.options,features:{uploads:{enabled:!0}}}},fileUploadToggleHidden:{category:K,headingText:"File upload toggle button hidden",description:"",...c,options:{...c.options,features:{uploads:{enabled:!1}}}},fileUploadInput:{category:K,headingText:"File upload input",description:"Click on upload button to see an error",styleGuideReset:!0,...c,config:{...c.config,accountConfig:{features:{uploads:!0}}},options:{...c.options,features:{uploads:{enabled:!0}}},entryMeta:{default:"text",active:"text",userSelected:"upload",options:{upload:{allowedMimeTypes:["image/*","application/pdf"],maxSize:10485760}},optionsOverride:{}}},fileUploadBusy:{category:K,headingText:"File upload in progress",description:"",styleGuideReset:!0,...c,config:{...c.config,accountConfig:{features:{uploads:!0}}},options:{...c.options,features:{uploads:{enabled:!0}}},entryMeta:{default:"text",active:"text",userSelected:"upload",options:{upload:{allowedMimeTypes:["image/*","application/pdf"],maxSize:10485760}},optionsOverride:{}},currentUploads:[{id:"_2olggurqhb4",name:"gGeyr3WepujbGn7khx.gif",progress:29,uploading:!0,complete:!1,error:"",uploadHandle:{abort:()=>{}}}]},fileUploadError:{category:K,headingText:"File upload errored",description:"",styleGuideReset:!0,...c,config:{...c.config,accountConfig:{features:{uploads:!0}}},options:{...c.options,features:{uploads:{enabled:!0}}},entryMeta:{default:"text",active:"text",userSelected:"upload",options:{upload:{allowedMimeTypes:["image/*","application/pdf"],maxSize:10485760}},optionsOverride:{}},currentUploads:[{id:"_2olggurqhb4",name:"gGeyr3WepujbGn7khx.gif",progress:0,uploading:!1,complete:!1,error:"Something went wrong with the upload",uploadHandle:{abort:()=>{}}}]},idleTimerCountdown:{category:Q,headingText:"Idle timer with countdown",description:"",...c,idleDetachCountdown:{hasCountdown:!0,isActive:!0,count:120,remaining:91,timer:{minutes:1,seconds:31}}},idleTimerNoCountdown:{category:Q,headingText:"Idle timer without countdown",description:"",...c,idleDetachCountdown:{hasCountdown:!0,isActive:!1,count:120,remaining:91,timer:{minutes:1,seconds:31}}},resumeConversationPrompt:{category:Q,headingText:"Resume conversation prompt",description:"",...c,participantInfo:d,resumeConversationPrompt:!0},optionsSingleTriggerAvailable:{category:V,headingText:"Single option available",description:"",...c,options:{...c.options,features:{sendTranscript:{enabled:!0}}}},optionsSingleTriggerUnavailable:{category:V,headingText:"Single option",description:"Option unavailable",...c,options:{...c.options,features:{sendTranscript:{enabled:!1}}}},optionsMultiple:{category:V,headingText:"Multiple options",description:"All options available",...c,options:{...c.options,features:{extraMenuItem:{enabled:!0},sendTranscript:{enabled:!0}}}},optionsMultipleUnavailable:{category:V,headingText:"Multiple options",description:"Some unavailable",...c,options:{...c.options,features:{extraMenuItem:{enabled:!1},sendTranscript:{enabled:!0}}}},optionSendTranscript:{category:V,headingText:"Send transcript option",description:"Press submit to view error message",...c,options:{...c.options,optionActive:"sendTranscript",panelActive:!0,features:{sendTranscript:{enabled:!0}}}},translationsAvailable:{category:ne,headingText:"Show translations available",description:"",...c,translations:{...q,isAvailable:!0,languages:[{locale:"nl",nativeName:"Dutch"},{locale:"en",nativeName:"English"}]}},translationsAvailableWithOptions:{category:ne,headingText:"Show translations available with other options available",description:"",...c,options:{...c.options,features:{sendTranscript:{enabled:!0}}},config:{...c.config,context:{...c.context,contentLocale:"nl",userLocale:"en"}},translations:{...q,isAvailable:!0,currentLocale:"lv",isActive:!0,languages:[{locale:"nl",nativeName:"Dutch"},{locale:"en",nativeName:"English"},{locale:"ar",nativeName:"Arabic"},{locale:"bg",nativeName:"Bulgarian"},{locale:"zh",nativeName:"Chinese"},{locale:"cs",nativeName:"Czech"},{locale:"da",nativeName:"Danish"},{locale:"et",nativeName:"Estonian"},{locale:"fi",nativeName:"Finnish"},{locale:"fr",nativeName:"French"},{locale:"de-informal",nativeName:"German"},{locale:"el",nativeName:"Greek"},{locale:"hu",nativeName:"Hungarian"},{locale:"it",nativeName:"Italian"},{locale:"ja",nativeName:"Japanese"},{locale:"lv",nativeName:"Latvian"},{locale:"pl",nativeName:"Polish"},{locale:"ro",nativeName:"Romanian"},{locale:"ru",nativeName:"Russian"},{locale:"sk",nativeName:"Slovak"},{locale:"sl",nativeName:"Slovenian"},{locale:"es-informal",nativeName:"Spanish"},{locale:"sv",nativeName:"Swedish"},{locale:"ti",nativeName:"Tigrinya"},{locale:"tr",nativeName:"Turkish"},{locale:"uk",nativeName:"Ukrainian"}]}},translationsActive:{category:ne,headingText:"Show translations active",description:"",...c,translations:{...q,currentLocale:"nl",isActive:!0,isAvailable:!0,languages:[{locale:"nl",nativeName:"Dutch"},{locale:"en",nativeName:"English"}]}},translationsActiveLarge:{category:ne,headingText:"Show translations active (large list)",description:"",...c,config:{...c.config,context:{...c.context,contentLocale:"nl",userLocale:"en"}},translations:{...q,currentLocale:"lv",isActive:!0,isAvailable:!0,languages:[{locale:"nl",nativeName:"Dutch"},{locale:"en",nativeName:"English"},{locale:"ar",nativeName:"Arabic"},{locale:"bg",nativeName:"Bulgarian"},{locale:"zh",nativeName:"Chinese"},{locale:"cs",nativeName:"Czech"},{locale:"da",nativeName:"Danish"},{locale:"et",nativeName:"Estonian"},{locale:"fi",nativeName:"Finnish"},{locale:"fr",nativeName:"French"},{locale:"de-informal",nativeName:"German"},{locale:"el",nativeName:"Greek"},{locale:"hu",nativeName:"Hungarian"},{locale:"it",nativeName:"Italian"},{locale:"ja",nativeName:"Japanese"},{locale:"lv",nativeName:"Latvian"},{locale:"pl",nativeName:"Polish"},{locale:"ro",nativeName:"Romanian"},{locale:"ru",nativeName:"Russian"},{locale:"sk",nativeName:"Slovak"},{locale:"sl",nativeName:"Slovenian"},{locale:"es-informal",nativeName:"Spanish"},{locale:"sv",nativeName:"Swedish"},{locale:"ti",nativeName:"Tigrinya"},{locale:"tr",nativeName:"Turkish"},{locale:"uk",nativeName:"Ukrainian"}]}},translationsFullConversation:{category:ne,headingText:"Show translated messages",description:"",...c,participantInfo:d,serviceInfo:{activeServiceSessionId:"3942159e-9878-469e-9120-f44fd6be0f35"},events:[p,m,I,{...k,payload:{...k.payload,id:`${k.payload.id}XXX`}},T,z,M,u,y,f,O,F,H,G,B,P,A,j,E,N,W,$,C,L,k,f].map(l),translations:{...q,currentLocale:"nl",isActive:!0,isAvailable:!0,translatedEventGroups:{[p.payload.id]:[m,I,{...k,payload:{...k.payload,id:`${k.payload.id}XXX`}},T,z,M,u].map(e=>e.payload.id),[y.payload.id]:[O,F,H,G,B,P,A,j,E,N,W,$,C,L,k].map(e=>e.payload.id)},languages:[{locale:"nl",nativeName:"Dutch"},{locale:"en",nativeName:"English"}]}},translationProposal:{category:ne,headingText:"Show translation proposal",description:"",...c,events:[I,z,P],config:{...c.config,showDisclaimer:!0,context:{contentLocale:"nl-informal",userLocale:"en-GB"}},translations:{...q,translationProposal:{buttonLabel:"Activate",proposedLocale:"en-GB",srDismissButtonText:"Dismiss translation proposal",titleLabel:"Do you want to chat in English?"},isAvailable:!0,isActive:!1,languages:[{locale:"nl-informal",nativeName:"Dutch"},{locale:"en-GB",nativeName:"English"}]}},translationProposalWithoutTitle:{category:ne,headingText:"Show translation proposal without title",description:"",...c,events:[I,z,P],config:{...c.config,showDisclaimer:!0,context:{contentLocale:"nl-informal",userLocale:"en-GB"}},translations:{...q,translationProposal:{buttonLabel:"Activate",proposedLocale:"en-GB",srDismissButtonText:"Dismiss translation proposal"},isAvailable:!0,isActive:!1,languages:[{locale:"nl-informal",nativeName:"Dutch"},{locale:"en-GB",nativeName:"English"}]}}},de={minimizedInline:{category:ie,headingText:"Inline minimized",description:"",inline:{...c,config:{...c.config,layoutMode:"inline"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized}}},minimizedInlineCharacterLimit:{category:ie,headingText:"Inline minimized with limited characters",description:"",inline:{...c,config:{...c.config,layoutMode:"inline"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},entryMeta:{...c.entryMeta,options:{text:{limit:120}}}}},minimizedInlinePrechat:{category:ie,headingText:"Inline minimized with collapsed chat messages",description:"",inline:{...c,config:{...c.config,layoutMode:"inline",preChatEvents:[S]},visibility:{...c.visibility,visibility:a.visibilityStates.minimized}}},minimizedInlinePrechatSuggestions:{category:ie,headingText:"Inline minimized with collapsed chat messages & suggestions",description:"",inline:{...c,config:{...c.config,layoutMode:"inline",preChatEvents:[S]},serviceData:{suggestion:{body:X}},visibility:{...c.visibility,visibility:a.visibilityStates.minimized}}},inlineWithSuggestions:{category:ee,headingText:"Suggestions",description:"",inline:{...c,config:{...c.config,layoutMode:"inline"},visibility:{...c.visibility,visibility:a.visibilityStates.open},serviceData:{suggestion:{body:X}}}},minimizedInlineWithError:{category:ie,headingText:"Inline minimized with error",description:"",inline:{...c,config:{...c.config,layoutMode:"inline"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},interrupt:{error:new a.SeamlyOfflineError(new Error("seamly offline error"))}}}},ue={minimizedWindow:{category:te,headingText:"Unstarted minimized",description:"",window:{...c,config:{...c.config,layoutMode:"window"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized}}},minimizedWindowStarted:{category:te,headingText:"Started minimized",description:"",window:{...c,config:{...c.config,layoutMode:"window"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},participantInfo:d,headerTitles:h}},minimizedWindowStartedUnread:{category:te,headingText:"Minimized with unread messages",description:"",window:{...c,config:{...c.config,layoutMode:"window"},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},participantInfo:d,headerTitles:h,unreadEvents:12}}},pe={suggestionsMessage:{category:Y,headingText:"Suggestions message",description:"",...c,events:[x(I.payload.body),{type:"service_data",payload:{type:"suggestion",body:X}}]}},ye=(e,t=[])=>{const i={...ce,fullConversation:{...ce.fullConversation,events:[S,...ce.fullConversation.events]},...pe,...t.reduce((e,t)=>{const{key:i,headingText:n,description:a,body:o}=t;return{...e,[i]:{category:Y,headingText:n,description:a,...c,participantInfo:d,events:[x(o)]}}},{})};return Object.keys(i).reduce((t,n)=>{const{headingText:a,category:o,description:r,...s}=i[n];return{...t,[n]:{headingText:a,description:r,category:o,...e.reduce((e,t)=>({...e,[t]:{...s,config:{...s.config,layoutMode:t}}}),{})}}},{})};i(4520),require("preact/compat");const fe=require("preact/jsx-runtime"),me=({setSelectedState:e,states:t,headingLevel:i})=>{const n=`h${i.toString()}`,o=`h${(parseInt(i,10)+1).toString()}`,r=(0,a.getUrlSearchParams)();return(0,fe.jsx)("nav",{"aria-label":"Style guide navigation",className:"nav--styleguide",children:(0,fe.jsx)("ol",{className:"list--styleguidestates",children:Object.keys(ae).map(i=>{const{heading:s,description:l}=ae[i],c=Object.keys(t).filter(e=>{const{category:n}=t[e];return n===i});return c.length>0&&(0,fe.jsxs)("li",{children:[(0,fe.jsx)(n,{children:s}),(0,fe.jsx)("span",{className:"category__description",children:l}),(0,fe.jsx)("ol",{children:c.map(i=>{const n={...t[i]};delete n.category;const{headingText:s,descriptionId:l,description:c,...d}=n;return(0,fe.jsxs)("li",{children:[(0,fe.jsx)(o,{id:l,children:s}),c&&(0,fe.jsx)("span",{className:"feature__description",children:c}),(0,fe.jsx)("ul",{className:"list--styleguidelayouts",children:Object.keys(d).map(t=>(0,fe.jsx)("li",{className:t===r?.layoutMode&&i===r?.feature?"state__selected":void 0,children:(0,fe.jsx)("a",{"aria-describedby":l,href:`${window.location.pathname}?${(0,a.getUrlSearchString)({layoutMode:t,feature:i})}`,"aria-current":t===r?.layoutMode&&i===r?.feature?"page":void 0,onClick:n=>{if(n.preventDefault(),"inline"===t){const e=window.document.querySelector(".chat-inline");e&&window.scroll({top:e.offsetTop,behavior:"smooth"})}var o;o={layoutMode:t,feature:i},window.history.pushState(null,"",`${window.location.pathname}?${(0,a.getUrlSearchString)(o)}`),e(o)},children:t.charAt(0).toUpperCase()+t.slice(1)})},t))})]},i)})})]},i)})})})};function ge(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}i(3949);var he=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),ve=()=>Math.random().toString(36).substring(7).split("").join("."),be={INIT:`@@redux/INIT${ve()}`,REPLACE:`@@redux/REPLACE${ve()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ve()}`};function we(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function xe(e,t,i){if("function"!=typeof e)throw new Error(ge(2));if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ge(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ge(1));return i(xe)(e,t)}let n=e,a=t,o=new Map,r=o,s=0,l=!1;function c(){r===o&&(r=new Map,o.forEach((e,t)=>{r.set(t,e)}))}function d(){if(l)throw new Error(ge(3));return a}function u(e){if("function"!=typeof e)throw new Error(ge(4));if(l)throw new Error(ge(5));let t=!0;c();const i=s++;return r.set(i,e),function(){if(t){if(l)throw new Error(ge(6));t=!1,c(),r.delete(i),o=null}}}function p(e){if(!we(e))throw new Error(ge(7));if(void 0===e.type)throw new Error(ge(8));if("string"!=typeof e.type)throw new Error(ge(17));if(l)throw new Error(ge(9));try{l=!0,a=n(a,e)}finally{l=!1}return(o=r).forEach(e=>{e()}),e}return p({type:be.INIT}),{dispatch:p,subscribe:u,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ge(10));n=e,p({type:be.REPLACE})},[he]:function(){const e=u;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ge(11));function i(){const e=t;e.next&&e.next(d())}return i(),{unsubscribe:e(i)}},[he](){return this}}}}}function Ie(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...i)=>e(t(...i)))}function Se(e){return({dispatch:t,getState:i})=>n=>a=>"function"==typeof a?a(t,i,e):n(a)}var Te=Se(),Me=Se,je="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ie:Ie.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Ee=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}},Ce=e=>t=>{setTimeout(t,e)};function Le(e){const t=function(e){const{thunk:t=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{};let o=new Ee;return t&&("boolean"==typeof t?o.push(Te):o.push(Me(t.extraArgument))),o},{reducer:i,middleware:n,devTools:a=!0,duplicateMiddlewareCheck:o=!0,preloadedState:r,enhancers:s}=e||{};let l,c;if("function"==typeof i)l=i;else{if(!we(i))throw new Error(`Minified Redux Toolkit error #${d=1}; visit https://redux-toolkit.js.org/Errors?code=${d} for the full message or use the non-minified dev environment for full errors. `);l=function(e){const t=Object.keys(e),i={};for(let n=0;n<t.length;n++){const a=t[n];"function"==typeof e[a]&&(i[a]=e[a])}const n=Object.keys(i);let a;try{!function(e){Object.keys(e).forEach(t=>{const i=e[t];if(void 0===i(void 0,{type:be.INIT}))throw new Error(ge(12));if(void 0===i(void 0,{type:be.PROBE_UNKNOWN_ACTION()}))throw new Error(ge(13))})}(i)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const r={};for(let a=0;a<n.length;a++){const s=n[a],l=i[s],c=e[s],d=l(c,t);if(void 0===d)throw t&&t.type,new Error(ge(14));r[s]=d,o=o||d!==c}return o=o||n.length!==Object.keys(e).length,o?r:e}}(i)}var d;c="function"==typeof n?n(t):t();let u=Ie;a&&(u=je({trace:!1,..."object"==typeof a&&a}));const p=function(...e){return t=>(i,n)=>{const a=t(i,n);let o=()=>{throw new Error(ge(15))};const r={getState:a.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map(e=>e(r));return o=Ie(...s)(a.dispatch),{...a,dispatch:o}}}(...c),y=(e=>function(t){const{autoBatch:i=!0}=t??{};let n=new Ee(e);return i&&n.push(((e={type:"raf"})=>t=>(...i)=>{const n=t(...i);let a=!0,o=!1,r=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Ce(10):"callback"===e.type?e.queueNotification:Ce(e.timeout),c=()=>{r=!1,o&&(o=!1,s.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>a&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return a=!e?.meta?.RTK_autoBatch,o=!a,o&&(r||(r=!0,l(c))),n.dispatch(e)}finally{a=!0}}})})("object"==typeof i?i:void 0)),n})(p);return xe(l,r,u(..."function"==typeof s?s(y):y()))}var{assign:Oe}=Object;Symbol.for("rtk-state-proxy-original");const Ne={send:()=>{},store:{get:e=>e,set:e=>e,delete:e=>e},sendContext:()=>{},hasConversation:()=>!1,connected:!1},Ae=({state:e,translations:t,participants:i=[],children:n})=>{const o=(0,r.useRef)(()=>{}),s=(0,r.useRef)({emit:()=>{},on:()=>{},off:()=>{}}),l=(0,r.useMemo)(()=>{const{translations:n,interrupt:o,config:r,visibility:l,...c}=e||{},d=Le({reducer:{state:a.stateReducer,app:a.appReducer,config:a.configReducer,i18n:a.i18nReducer,translations:a.translationReducer,visibility:a.visibilityReducer,forms:a.formsReducer,interrupt:a.interruptReducer},preloadedState:{state:c,config:r,translations:n,interrupt:o,visibility:l},middleware:e=>e({thunk:{extraArgument:{api:Ne,eventBus:s.current}},serializableCheck:!1})}),{config:u}=d.getState();return d.dispatch((0,a.setConfig)(u)),u.preChatEvents&&d.dispatch((0,a.setPreChatEvents)(u.preChatEvents)),d.dispatch((0,a.setInitialLocale)("en-GB")),d.dispatch((0,a.setTranslations)(t)),i.forEach(e=>{d.dispatch((0,a.setParticipant)({participant:e,fromClient:"user"===e?.id}))}),d},[i,e,t]);return e&&(0,fe.jsx)(a.SeamlyStoreProvider,{store:l,children:(0,fe.jsx)(a.SeamlyEventBusContext.Provider,{value:s.current,children:(0,fe.jsx)(a.SeamlyApiContext.Provider,{value:Ne,children:(0,fe.jsx)(a.SeamlyLiveRegionContext.Provider,{value:o.current,children:(0,fe.jsx)(a.ComponentFilter,{children:(0,fe.jsx)(a.SeamlyActivityEventContext.Provider,{value:()=>{},children:(0,fe.jsx)(a.SeamlyFileUpload,{children:n})})})})})})})},ke=({state:e,customComponents:t={},translations:i,participants:n})=>{const[o,s]=(0,r.useState)(!0),{config:l}=e||{},{layoutMode:c}=l||{},d=t[c];return(0,r.useEffect)(()=>{s(!1),requestAnimationFrame(async()=>{await(0,a.timeout)(60),s(!0)})},[e]),o?d?(0,fe.jsx)(Ae,{state:e,translations:i,participants:n,children:(0,fe.jsx)(d,{})}):(0,fe.jsx)(Ae,{state:e,translations:i,participants:n,children:(0,fe.jsx)(a.View,{})}):null},ze=({tag:e,id:t,children:i})=>{const n=e;return(0,fe.jsx)(n,{id:t,children:i})},Pe=({config:e,styleGuideConfig:t,translations:i,headingLevel:n=2,participants:o})=>{const[s,l]=(0,r.useState)(null),[u,p]=(0,r.useState)(""),[y,f]=(0,r.useState)(!0),[m]=(0,r.useState)((0,a.randomId)()),{stateUpdateCallback:g,customMessageEventBodies:v}=t,[b]=(0,r.useState)(()=>{const e=(i=t.showLayoutModes||["inline","window"],{...ye(i,v),...-1!==i.indexOf("window")?{...ue,minimizedWindowPrechat:{category:te,headingText:"Minimized with collapsed chat messages",description:"",window:{...c,config:{...c.config,layoutMode:"window",preChatEvents:[S],preChat:!0},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},participantInfo:d,headerTitles:h}},minimizedWindowPrechatDelayed:{category:te,headingText:"Minimized with delayed collapsed chat messages",description:"",window:{...c,config:{...c.config,layoutMode:"window",preChatEvents:[S],preChat:{enterDelay:1e3,exitAfter:3e3}},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},participantInfo:d,headerTitles:h}},minimizedWindowPrechatDisabled:{category:te,headingText:"Minimized with disabled collapsed chat messages",description:"",window:{...c,config:{...c.config,layoutMode:"window",preChatEvents:[S],preChat:!1},visibility:{...c.visibility,visibility:a.visibilityStates.minimized},participantInfo:d,headerTitles:h}}}:{},...de});var i;return Object.keys(e).reduce((t,i)=>({...t,[i]:{...e[i],descriptionId:(0,a.randomId)()}}),{})}),w=(0,r.useCallback)(e=>{l(g?g(e):e)},[l,g]),x=(0,r.useCallback)((t,i)=>{const n=(0,a.getSearchParamsByKeys)("apiKey","locale"),r=new URLSearchParams({...n,layoutMode:t,feature:i});window.history.replaceState(null,"",`?${r}`);const{headingText:s}=b[i];p(s);const l=b[i][t],{overrideMessages:c,showSuggestions:d}=l.config,u=o.find(e=>"agent"===e.id);return{...l,config:{...l.config,...e,showDisclaimer:l.config.showDisclaimer||e.showDisclaimer,context:{...e.context,...l.config?.context},layoutMode:l.config.layoutMode,...c?{messages:c}:{},showSuggestions:d},headerTitles:{...l.headerTitles,subTitle:u?.name||l.headerTitles.subTitle}}},[b,o,e]);(0,r.useEffect)(()=>{if(y){const e=document.querySelector('[aria-modal="true"]');e&&e.addEventListener("click",()=>{l(e=>e?{...e,visibility:{...e.visibility,visible:"minimized"}}:e)})}},[s,l,y]);const I=(0,r.useCallback)(()=>{const e=(0,a.getUrlSearchParams)(),{layoutMode:t,feature:i}={layoutMode:"inline",feature:"base",...e};w(x(t,i)),window.document.title="Style"},[x,w]);return(0,r.useEffect)(()=>{I()},[I]),(0,r.useEffect)(()=>{window.onpopstate=()=>{I()}},[I]),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)("section",{className:"chat-inline","aria-labelledby":m,children:[(0,fe.jsxs)(ze,{tag:`h${n.toString()}`,id:m,children:[(0,fe.jsx)("span",{className:"heading__context",children:"Current selected state:"}),`${u}`]}),(0,fe.jsx)("div",{children:y&&(0,fe.jsx)(ke,{customComponents:t.customComponents,translations:i,state:s,participants:o})})]}),(0,fe.jsx)("aside",{className:"page-aside markdown",children:(0,fe.jsx)("nav",{className:"page-controls",children:(0,fe.jsx)(me,{headingLevel:n,setSelectedState:({layoutMode:e,feature:t})=>{const i=x(e,t);w(i),i.styleGuideReset&&(f(!1),setTimeout(()=>{f(!0)}))},states:b})})})]})};class De extends a.Engine{constructor({styleGuideConfig:e,...t},i){super(t,i),this.styleGuideConfig=e||{}}async render(){const e={...this.config.customComponents||{},view:void 0},t=new a.API({namespace:this.config.namespace||"",config:this.config.api,context:this.config.context,layoutMode:this.config.layoutMode}),i=await t.getTranslations(this.config.context?.userLocale||"en-GB"),{agentParticipant:n,userParticipant:r}=await t.getConfig(),s=[{id:"user",...r},{id:"agent",introduction:"I am {{name}}",...n}],l={...this.config,customComponents:Object.keys(e).length?e:void 0};(0,o.render)((0,fe.jsx)(Pe,{config:l,styleGuideConfig:this.styleGuideConfig,translations:i,participants:s}),this.parentElement)}}const _e=De;class Re extends a.ExternalApi{constructor(e,t){super(e),this.styleGuideConfig=t}createInstance(e){const{userStyleGuideConfig:t,...i}=e;return new _e({styleGuideConfig:{...this.styleGuideConfig,...t},...i},this)}getUserConfig(e={},t){return super.getUserConfig({...e,...t})}}const Ue=Re,Fe=function(e,t){if(window.seamlyStyleGuide&&!Array.isArray(window.seamlyStyleGuide))throw new Error("Seamly UI has already been initialised. Use the window.seamly object to start new instances instead.");const i=Array.isArray(window.seamlyStyleGuide)?window.seamlyStyleGuide:[],n=new Ue(e,t);window.seamly=n,window.seamlyStyleGuide={push:n.push.bind(n)},n.push(...i)};module.exports=n})();
2
2
  //# sourceMappingURL=~/style-guide.min.js.map