tocco-widget-utils 3.15.1 → 3.15.2-playground

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,3 +1,226 @@
1
+ 3.15.2-playground
2
+ - initial release for version 3.15
3
+
4
+ 3.15.1-playground
5
+ - restore old width of modal and add some minor responsiveness fixes
6
+ - fix calendar round theme styling
7
+ - improve checkbox styling
8
+ - Improve tile view styling
9
+ - remove left padding on top positioned side panels
10
+
11
+ 3.15.0-playground
12
+ - initial release for version 3.15
13
+
14
+ 3.15.61
15
+ - remove left padding on top positioned side panels
16
+
17
+ 3.15.60
18
+ - Improve tile view styling
19
+
20
+ 3.15.59
21
+ - fix calendar round theme styling
22
+ - improve checkbox styling
23
+
24
+ 3.15.58
25
+ - restore old width of modal and add some minor responsiveness fixes
26
+
27
+ 3.15.57
28
+ - fix <br> in confirm message for simple action
29
+
30
+ 3.15.56
31
+ - handle singleTempFilterKey in notifications
32
+ - migrate messageHelper to temp filter
33
+
34
+ 3.15.55
35
+ - add breakWords to tile cellRenderer
36
+ - fix floating-ui menu positioning on mobile
37
+
38
+ 3.15.54
39
+ - handle duplicated nodes in Tree
40
+
41
+ 3.15.53
42
+ - define 12px border radius as large
43
+ - optimize space values
44
+ - improve new round design
45
+
46
+ 3.15.52
47
+ - change display of StyledSidepanelContent to flex so elements within can take remaining height via flex properties
48
+
49
+ 3.15.51
50
+ - fix validation in EditableCellRenderer
51
+
52
+ 3.15.50
53
+ - revert back table link styling
54
+
55
+ 3.15.49
56
+ - add resize observer to LayoutContainer
57
+ - avoid pin actions in widgets
58
+ - fix date field input issues
59
+
60
+ 3.15.48
61
+ - fix year dropdown selection issue in DatePicker
62
+
63
+ 3.15.47
64
+ - new checkbox and radio styling
65
+
66
+ 3.15.46
67
+ - memoize value in BooleanSingleSelect
68
+
69
+ 3.15.45
70
+ - fix scrollbar styling to avoid WP template override
71
+
72
+ 3.15.44
73
+ - integrate tree entity config endpoint
74
+
75
+ 3.15.43
76
+ - do not add undefined paths to form values
77
+ - add/extend border radii for rounded corners
78
+ - add rounded corners to components
79
+ - improve sort button styling
80
+ - improve widget button and list styling
81
+
82
+ 3.15.42
83
+ - improve generic tree view
84
+
85
+ 3.15.41
86
+ - fix scrollbar behavior when modal is open
87
+ - downgrade styled-components to 6.2.0, because version 6.3.0 causes a flickering scrollbar
88
+
89
+ 3.15.40
90
+ - fix button heights
91
+ - fix datepicker value deletion issue
92
+ - add react-datepicker year selection workaround
93
+ - remove GlobalStyles from ModalContent to prevent removal when new Modal is rendered
94
+ - add GlobalModalStyles to global styles
95
+
96
+ 3.15.39
97
+ - improve widget button styling
98
+
99
+ 3.15.38
100
+ - add CKEditor workaround for Firefox 148+
101
+
102
+ 3.15.37
103
+ - improve pin action functions for context menu
104
+
105
+ 3.15.36
106
+ - add Tree component for hierarchical navigation with expand/collapse and add node features
107
+ - improve data protection styling
108
+ - improve tree view styling
109
+
110
+ 3.15.35
111
+ - Adjust datepicker styles to match the v8 styling
112
+
113
+ 3.15.34
114
+ - Add FilterResult for temporary filters
115
+
116
+ 3.15.33
117
+ - Improve pin actions identifier and fix pinning
118
+ - Add new button styling for pinned actions
119
+ - Improve pinned actions functionality
120
+
121
+ 3.15.32
122
+ - Improve entities breadcrumbs to avoid flickering
123
+
124
+ 3.15.31
125
+ - Update client dependencies
126
+ - Upgrade jsdom to 28.0.0
127
+
128
+ 3.15.30
129
+ - Add favorite actions functionality
130
+
131
+ 3.15.29
132
+ - adjust question helper
133
+
134
+ 3.15.28
135
+ - support single/multiple choice dropdown question
136
+ - Fix single select field dropdown blur
137
+
138
+ 3.15.27
139
+ - always render description field in form
140
+ - Improve icon placement in location and address fields in read-only mode
141
+
142
+ 3.15.26
143
+ - Optimize enter handling in select field to prevent wrong suggestions selected on fast enter
144
+
145
+ 3.15.25
146
+ - Fix breadcrumb flickering during navigation by disabling startTransition in React Router v7.
147
+
148
+ 3.15.24
149
+ - Fix various sonar issues to improve code quality
150
+
151
+ 3.15.23
152
+ - fix overflowing elemnts in StatedValueBoxes
153
+
154
+ 3.15.22
155
+ - make closing modal on location change optional
156
+ - fix max-width of child elements in StyledInputArea
157
+
158
+ 3.15.21
159
+ - fix actions in lists with parent
160
+
161
+ 3.15.20
162
+ - add list breadcrumb to actions in relation view
163
+
164
+ 3.15.19
165
+ - Add context menu to table
166
+ - Add parent object to actions to allow for relative navigation
167
+
168
+ 3.15.18
169
+ - Enable registration of logout socket action handler during session validation
170
+
171
+ 3.15.17
172
+ - enable label wrappers to wrap
173
+
174
+ 3.15.16
175
+ - make links inside dashboard and last used to fill whole parent area
176
+
177
+ 3.15.15
178
+ - add prop to enable x-overflow in StyledParagraphs
179
+
180
+ 3.15.14
181
+ - add detail breadcrumb to single selection list actions
182
+
183
+ 3.15.13
184
+ - remove obselete bottom padding of table footer in infoboxes
185
+
186
+ 3.15.12
187
+ - replace tocco-helmet with native react 19 document metadata
188
+
189
+ 3.15.11
190
+ - create accent colors for searchfilters and remove light shade
191
+
192
+ 3.15.10
193
+ - add/swap icons to interaction elements on dashboard and last used popover
194
+
195
+ 3.15.9
196
+ - refactor pre-input blocking for number and integer to ensure correct sync validation in order to show validation messages
197
+
198
+ 3.15.8
199
+ - adjust order of action logic
200
+
201
+ 3.15.7
202
+ - fix dropdown selection in address field
203
+ - fix interactive styling of background color for buttons
204
+
205
+ 3.15.6
206
+ - enable typescript rules for eslint
207
+ - fix import order lint errors
208
+ - fix unused variables and import order lint errors
209
+ - fix various ts lint errors
210
+
211
+ 3.15.5
212
+ - improve ShareAnswerModal ui/ux
213
+
214
+ 3.15.4
215
+ - fix datepicker styling after update
216
+
217
+ 3.15.3
218
+ - scroll active SidepanelHorizontalButton into view when coming from outside
219
+ - ignore undefined field errors
220
+
221
+ 3.15.2
222
+ - Improve contrast in multiple searchfilter infobox
223
+
1
224
  3.15.1
2
225
  - Reimprove contrast in big numbers infobox by adding dark colors and readableColor
3
226
 
package/dist/bootstrap.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["tocco-widget-utils-bootstrap"]=e():t["tocco-widget-utils-bootstrap"]=e()}(this,(()=>(()=>{var t={2:(t,e,r)=>{var n=r(2199),o=r(4664),c=r(5950);t.exports=function(t){return n(t,c,o)}},79:(t,e,r)=>{var n=r(3702),o=r(80),c=r(4739),a=r(8655),i=r(1175);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},80:(t,e,r)=>{var n=r(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},270:(t,e,r)=>{var n=r(7068),o=r(346);t.exports=function t(e,r,c,a,i){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,c,a,t,i))}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},317:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},361:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},659:(t,e,r)=>{var n=r(1873),o=Object.prototype,c=o.hasOwnProperty,a=o.toString,i=n?n.toStringTag:void 0;t.exports=function(t){var e=c.call(t,i),r=t[i];try{t[i]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[i]=r:delete t[i]),o}},689:(t,e,r)=>{var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,c,a,i){var s=1&r,u=n(t),p=u.length;if(p!=n(e).length&&!s)return!1;for(var f=p;f--;){var l=u[f];if(!(s?l in e:o.call(e,l)))return!1}var h=i.get(t),d=i.get(e);if(h&&d)return h==e&&d==t;var v=!0;i.set(t,e),i.set(e,t);for(var y=s;++f<p;){var b=t[l=u[f]],g=e[l];if(c)var w=s?c(g,b,l,e,t,i):c(b,g,l,t,e,i);if(!(void 0===w?b===g||a(b,g,r,c,i):w)){v=!1;break}y||(y="constructor"==l)}if(v&&!y){var x=t.constructor,m=e.constructor;x==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof m&&m instanceof m||(v=!1)}return i.delete(t),i.delete(e),v}},695:(t,e,r)=>{var n=r(8096),o=r(2428),c=r(6449),a=r(3656),i=r(361),s=r(7167),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=c(t),p=!r&&o(t),f=!r&&!p&&a(t),l=!r&&!p&&!f&&s(t),h=r||p||f||l,d=h?n(t.length,String):[],v=d.length;for(var y in t)!e&&!u.call(t,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,v))||d.push(y);return d}},938:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},945:(t,e,r)=>{var n=r(79),o=r(8223),c=r(3661);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new c(a)}return r.set(t,e),this.size=r.size,this}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},1380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1420:(t,e,r)=>{var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},1459:t=>{t.exports=function(t){return this.__data__.has(t)}},1549:(t,e,r)=>{var n=r(2032),o=r(3862),c=r(6721),a=r(2749),i=r(5749);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},1873:(t,e,r)=>{var n=r(9325).Symbol;t.exports=n},1882:(t,e,r)=>{var n=r(2552),o=r(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1986:(t,e,r)=>{var n=r(1873),o=r(7828),c=r(5288),a=r(5911),i=r(317),s=r(4247),u=n?n.prototype:void 0,p=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,f,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=i;case"[object Set]":var d=1&n;if(h||(h=s),t.size!=e.size&&!d)return!1;var v=l.get(t);if(v)return v==e;n|=2,l.set(t,e);var y=a(h(t),h(e),n,u,f,l);return l.delete(t),y;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1}},2032:(t,e,r)=>{var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},2199:(t,e,r)=>{var n=r(4528),o=r(6449);t.exports=function(t,e,r){var c=e(t);return o(t)?c:n(c,r(t))}},2207:(t,e,r)=>{t.exports=r(7452)},2404:(t,e,r)=>{var n=r(270);t.exports=function(t,e){return n(t,e)}},2428:(t,e,r)=>{var n=r(7534),o=r(346),c=Object.prototype,a=c.hasOwnProperty,i=c.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!i.call(t,"callee")};t.exports=s},2552:(t,e,r)=>{var n=r(1873),o=r(659),c=r(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):c(t)}},2651:(t,e,r)=>{var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},2749:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},2804:(t,e,r)=>{var n=r(6110)(r(9325),"Promise");t.exports=n},2949:(t,e,r)=>{var n=r(2651);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},3040:(t,e,r)=>{var n=r(1549),o=r(79),c=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(c||o),string:new n}}},3093:t=>{"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.15.1","description":"","license":"AGPL-3.0+","scripts":{"compile:prod":"cd ../../../ && yarn run compile:prod --package=widget-utils","prepack":"yarn run compile:prod","test":"jest"},"devDependencies":{"tocco-util":"*","tocco-widget-placeholder":"*"}}')},3345:t=>{t.exports=function(){return[]}},3605:t=>{t.exports=function(t){return this.__data__.get(t)}},3650:(t,e,r)=>{var n=r(4335)(Object.keys,Object);t.exports=n},3656:(t,e,r)=>{t=r.nmd(t);var n=r(9325),o=r(9935),c=e&&!e.nodeType&&e,a=c&&t&&!t.nodeType&&t,i=a&&a.exports===c?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||o;t.exports=s},3661:(t,e,r)=>{var n=r(3040),o=r(7670),c=r(289),a=r(4509),i=r(2949);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},4218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},4247:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},4248:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4335:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4509:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},4528:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4664:(t,e,r)=>{var n=r(9770),o=r(3345),c=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return c.call(t,e)})))}:o;t.exports=i},4739:(t,e,r)=>{var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},4840:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},4894:(t,e,r)=>{var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4901:(t,e,r)=>{var n=r(2552),o=r(294),c=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return c(t)&&o(t.length)&&!!a[n(t)]}},5083:(t,e,r)=>{var n=r(1882),o=r(7296),c=r(3805),a=r(7473),i=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,p=s.toString,f=u.hasOwnProperty,l=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!c(t)||o(t))&&(n(t)?l:i).test(a(t))}},5288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},5481:(t,e,r)=>{var n=r(9325)["__core-js_shared__"];t.exports=n},5527:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},5580:(t,e,r)=>{var n=r(6110)(r(9325),"DataView");t.exports=n},5735:t=>{function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(r)}t.exports=e},5749:(t,e,r)=>{var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5861:(t,e,r)=>{var n=r(5580),o=r(8223),c=r(2804),a=r(6545),i=r(8303),s=r(2552),u=r(7473),p="[object Map]",f="[object Promise]",l="[object Set]",h="[object WeakMap]",d="[object DataView]",v=u(n),y=u(o),b=u(c),g=u(a),w=u(i),x=s;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=p||c&&x(c.resolve())!=f||a&&x(new a)!=l||i&&x(new i)!=h)&&(x=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case v:return d;case y:return p;case b:return f;case g:return l;case w:return h}return e}),t.exports=x},5911:(t,e,r)=>{var n=r(8859),o=r(4248),c=r(9219);t.exports=function(t,e,r,a,i,s){var u=1&r,p=t.length,f=e.length;if(p!=f&&!(u&&f>p))return!1;var l=s.get(t),h=s.get(e);if(l&&h)return l==e&&h==t;var d=-1,v=!0,y=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++d<p;){var b=t[d],g=e[d];if(a)var w=u?a(g,b,d,e,t,s):a(b,g,d,t,e,s);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!o(e,(function(t,e){if(!c(y,e)&&(b===t||i(b,t,r,a,s)))return y.push(e)}))){v=!1;break}}else if(b!==g&&!i(b,g,r,a,s)){v=!1;break}}return s.delete(t),s.delete(e),v}},5950:(t,e,r)=>{var n=r(695),o=r(8984),c=r(4894);t.exports=function(t){return c(t)?n(t):o(t)}},6009:(t,e,r)=>{t=r.nmd(t);var n=r(4840),o=e&&!e.nodeType&&e,c=o&&t&&!t.nodeType&&t,a=c&&c.exports===o&&n.process,i=function(){try{var t=c&&c.require&&c.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=i},6025:(t,e,r)=>{var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},6110:(t,e,r)=>{var n=r(5083),o=r(392);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},6396:t=>{t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},6449:t=>{var e=Array.isArray;t.exports=e},6545:(t,e,r)=>{var n=r(6110)(r(9325),"Set");t.exports=n},6721:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},7068:(t,e,r)=>{var n=r(7217),o=r(5911),c=r(1986),a=r(689),i=r(5861),s=r(6449),u=r(3656),p=r(7167),f="[object Arguments]",l="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,y,b){var g=s(t),w=s(e),x=g?l:i(t),m=w?l:i(e),j=(x=x==f?h:x)==h,_=(m=m==f?h:m)==h,O=x==m;if(O&&u(t)){if(!u(e))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new n),g||p(t)?o(t,e,r,v,y,b):c(t,e,x,r,v,y,b);if(!(1&r)){var k=j&&d.call(t,"__wrapped__"),P=_&&d.call(e,"__wrapped__");if(k||P){var E=k?t.value():t,S=P?e.value():e;return b||(b=new n),y(E,S,r,v,b)}}return!!O&&(b||(b=new n),a(t,e,r,v,y,b))}},7167:(t,e,r)=>{var n=r(4901),o=r(7301),c=r(6009),a=c&&c.isTypedArray,i=a?o(a):n;t.exports=i},7217:(t,e,r)=>{var n=r(79),o=r(1420),c=r(938),a=r(3605),i=r(9817),s=r(945);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=c,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,t.exports=u},7296:(t,e,r)=>{var n,o=r(5481),c=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!c&&c in t}},7301:t=>{t.exports=function(t){return function(e){return t(e)}}},7452:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,c=Object.create(o.prototype),a=new S(n||[]);return c._invoke=function(t,e,r){var n=f;return function(o,c){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw c;return L()}for(r.method=o,r.arg=c;;){var a=r.delegate;if(a){var i=k(a,r);if(i){if(i===v)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=p(t,e,r);if("normal"===s.type){if(n=r.done?d:l,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),c}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",l="suspendedYield",h="executing",d="completed",v={};function y(){}function b(){}function g(){}var w={};w[c]=function(){return this};var x=Object.getPrototypeOf,m=x&&x(x(A([])));m&&m!==r&&n.call(m,c)&&(w=m);var j=g.prototype=y.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,c,a,i){var s=p(t[o],t,c);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,i)}),(function(t){r("throw",t,a,i)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,i)}))}i(s.arg)}var o;this._invoke=function(t,n){function c(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(c,c):c()}}function k(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=p(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:e,done:!0}}return b.prototype=j.constructor=g,g.constructor=b,b.displayName=s(g,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,i,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},_(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(e,r,n,o,c){void 0===c&&(c=Promise);var a=new O(u(e,r,n,o),c);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(j),s(j,i,"Generator"),j[c]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return i.type="throw",i.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var a=this.tryEntries[c],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===t||"continue"===t)&&c.tryLoc<=e&&e<=c.finallyLoc&&(c=null);var a=c?c.completion:{};return a.type=t,a.arg=e,c?(this.method="next",this.next=c.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},7473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7534:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},7670:(t,e,r)=>{var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},7828:(t,e,r)=>{var n=r(9325).Uint8Array;t.exports=n},8096:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},8223:(t,e,r)=>{var n=r(6110)(r(9325),"Map");t.exports=n},8303:(t,e,r)=>{var n=r(6110)(r(9325),"WeakMap");t.exports=n},8655:(t,e,r)=>{var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},8859:(t,e,r)=>{var n=r(3661),o=r(1380),c=r(1459);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=c,t.exports=a},8984:(t,e,r)=>{var n=r(5527),o=r(3650),c=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))c.call(t,r)&&"constructor"!=r&&e.push(r);return e}},9092:t=>{function e(t,e,r,n,o,c,a){try{var i=t[c](a),s=i.value}catch(t){return void r(t)}i.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,c){var a=t.apply(r,n);function i(t){e(a,o,c,i,s,"next",t)}function s(t){e(a,o,c,i,s,"throw",t)}i(void 0)}))}}},9219:t=>{t.exports=function(t,e){return t.has(e)}},9325:(t,e,r)=>{var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,c=n||o||Function("return this")();t.exports=c},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9770:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,c=[];++r<n;){var a=t[r];e(a,r,t)&&(c[o++]=a)}return c}},9817:t=>{t.exports=function(t){return this.__data__.has(t)}},9935:t=>{t.exports=function(){return!1}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var c=e[n]={id:n,loaded:!1,exports:{}};return t[n](c,c.exports,r),c.loaded=!0,c.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);return(()=>{"use strict";var t=r(9092),e=r.n(t),n=r(2207),o=r.n(n);const c=function(){var t;window.console&&(t=console).log.apply(t,arguments)},a=function(){window.console&&(console.error||console.log).apply(void 0,arguments)};var i=function(t){return"/js/tocco-".concat(t,"/dist/")},s=function(t,e){var r=t!==e?e:"index";return"".concat(i(t)).concat(r,".js")},u=function(t){return new Promise((function(e,r){var n=document.createElement("script");n.src=t,n.async=!0,n.type="text/javascript",n.onload=function(){e()},n.onerror=function(){r(new Error("Could not load script."))},n.crossorogin=!0;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}))};const p=u,f=s;var l=r(2404),h=r.n(l),d="toccoBootstrap",v="toccoMethods",y="tqlMeta",b="toccoBackendUrl",g="data-tocco-widget-key",w="data-tocco-visibility-status",x="widget-utils",m="widget-placeholder",j=r(6396),_=r.n(j);function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Headers;r.set("Content-Type","application/json");var n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({headers:r,method:"GET",credentials:"include"},e);return fetch(t,n)},P=function(t){var e=t.ok,r=t.status;return t.json().then((function(t){return{ok:e,status:r,body:t}}))},E=r(5735),S=r.n(E);function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var T=function(t){var e=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return e.protocol+"//"+e.host},z=function(){var t=window.toccoTheme;if(t&&"object"===S()(t))return t},D=function(t){return t&&Object.keys(t).length>0&&"function"==typeof t[Object.keys(t)[0]]},U=function(t){var e=window.toccoEventHandlers;if(D(e))return e;if(e){var r=e[t];if(D(r))return r}return{}},C=function(t,e){window[v]=L(L({},window[v]),{},_()({},t,e))},I=function(){return r(3093).version},N=function(t){var r=t.backendUrl,n=t.assetUrl,i=I(),s={version:i,backendUrl:r,assetUrl:n},u=function(t){var r=t.backendUrl;return function(){var t=e()(o().mark((function t(e,n){var c,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={method:"POST",body:JSON.stringify(n)},t.next=1,k("".concat(r,"/nice2/rest/entities/2.0/").concat(e,"/search?_omitLinks=true"),c).then(P).then((function(t){return null==t?void 0:t.body})).catch((function(t){a("Could not execute tql.",t)}));case 1:return i=t.sent,t.abrupt("return",i);case 2:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()}(s),p=window[y];if(p)return c("tocco-widget-utils - tql function is already initialized"),void(!h()(p,s)&&a("More than one tql function with different settings has been found. Add only one tql function per page.","\nInitialized tql function:",p,"\nIgnored tql function:",s));window.tql=u,window[y]=s,c("tocco-widget-utils - v".concat(i," - tql"))},F="error",R=function(){var t=e()(o().mark((function t(e,r,n){var c,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c="ERROR MESSAGE: ".concat(n.message," \nSTACK: ").concat(n.stack?n.stack.substring(0,1e3):"-"),i="".concat(r,"\n").concat(c),a(i),t.next=1,V(F,e,i);case 1:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),M=function(){var t=e()(o().mark((function t(e,r){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a(r),t.next=1,V(F,e,r);case 1:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),V=function(){var t=e()(o().mark((function t(e,r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,k("".concat(r,"/nice2/log?level=").concat(e,"&message=").concat(encodeURI(n)),{method:"POST"});case 1:t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}}),t,null,[[0,2]])})));return function(e,r,n){return t.apply(this,arguments)}}(),q=function(t,e,r){try{var n=document.getElementById(e)||function(t){var e=document.createElement("style");return e.id=t,document.head.appendChild(e),e}(e);n.innerHTML=r}catch(e){R(t,"Could not apply global styles.",e)}};const B=function(t){var e=t.backendUrl,r="[".concat(w,"] {display: none;}");q(e,"tocco-initial-visibility-status-styles",r)};function G(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function W(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?G(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var $=function(){var t=e()(o().mark((function t(e,r,n,c,a){var i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,p("".concat(r).concat(f(x,m)));case 1:t.next=3;break;case 2:return t.prev=2,s=t.catch(0),R(e,"Could not fetch package 'tocco-".concat(x,"'."),s),t.abrupt("return");case 3:try{i="".concat(r,"/js/tocco-").concat(x,"/dist/"),window.reactRegistry.render(m,n,c,a,{},i)}catch(t){R(e,"Could not render app '".concat(m,"'."),t)}case 4:case"end":return t.stop()}}),t,null,[[0,2]])})));return function(e,r,n,o,c){return t.apply(this,arguments)}}(),H=function(){var t=e()(o().mark((function t(e,r,n,c,a){var i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=z(),t.next=1,$(e,r,n,c,W(W(W({backendUrl:e},a?{locale:a}:{}),i?{customTheme:i}:{}),{},{placeholder:"error",appContext:{embedType:"widget"}}));case 1:case"end":return t.stop()}}),t)})));return function(e,r,n,o,c){return t.apply(this,arguments)}}();function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function K(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Y=function(t){return t.getAttribute(g)},Q=function(){var t=I().split(".").slice(0,2).map((function(t,e){return 0===e?t:t.padStart(2,"0")})).join("");return"https://".concat(t,".docs.tocco.ch/Web/widgets/Web_Einbindung_Tocco_Widgets_Fehlermeldungen.html")},X=function(t,e,r){var n=e.ok,o=e.status,c=e.body;return n?e:(403===o&&"INVALID_DOMAIN"===(null==c?void 0:c.errorCode)&&M(t,"".concat(c.message,". Visit ").concat(Q()," for further information.")),403===o&&"INACTIVE"===(null==c?void 0:c.errorCode)&&M(t,"".concat(c.message,". Visit ").concat(Q()," for further information.")),void(404===o&&M(t,"Widget config '".concat(r,"' not found. Visit ").concat(Q()," for further information."))))},Z=function(t,e,r){return function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var a=o[0].status;!function(t,e,r){var n=r.map((function(t){return"[".concat("data-tocco-widget-ref",'="').concat(e,'"][').concat(w,'~="').concat(t,'"]')})).join(",\n"),o="".concat(n," {\n display: inherit;\n}");q(t,"".concat("tocco-visibility-status-styles","-").concat(e),o)}(t,e,a),"function"==typeof r&&r.apply(void 0,o)}},tt=function(){var t=e()(o().mark((function t(e,r,n){var c,a,i,s,u,l,h,d,v,y,b,g,w,x,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=Y(n),t.next=1,k("".concat(e,"/nice2/rest/widget/configs/").concat(c)).then(P).then((function(t){return X(e,t,c)})).then((function(t){return null==t?void 0:t.body})).catch((function(t){R(e,"Could not fetch widget config '".concat(c,"'. Visit ").concat(Q()," for further information."),t)}));case 1:if(!(a=t.sent)){t.next=10;break}return i=a.appName,s=a.packageName,u=a.locale,l=a.config,t.prev=2,t.next=3,p("".concat(r).concat(f(s,i)));case 3:t.next=6;break;case 4:return t.prev=4,x=t.catch(2),R(e,"Could not fetch package 'tocco-".concat(s,"'. Visit ").concat(Q()," for further information."),x),t.next=5,H(e,r,n,c,u);case 5:return t.abrupt("return");case 6:h=U(c),d=K(K({},h),{},{onVisibilityStatusChange:Z(e,c,h.onVisibilityStatusChange)}),v=z(),y=K(K(K({backendUrl:e},v?{customTheme:v}:{}),{},{locale:u},l),{},{appContext:{embedType:"widget",widgetConfigKey:c}},d),b="".concat(r,"/js/tocco-").concat(s,"/dist/"),t.prev=7,g=window.reactRegistry.render(i,n,c,y,d,b),C(c,g),t.next=9;break;case 8:return t.prev=8,m=t.catch(7),R(e,"Could not render app '".concat(i,"'. Visit ").concat(Q()," for further information."),m),t.next=9,H(e,r,n,c,u);case 9:t.next=11;break;case 10:return w=document.documentElement.lang,t.next=11,H(e,r,n,c,w);case 11:case"end":return t.stop()}}),t,null,[[2,4],[7,8]])})));return function(e,r,n){return t.apply(this,arguments)}}(),et=function(t){var e=I(),r=K({version:e},t),n=window[d];return n?(c("tocco-widget-utils - bootstrap script is already initialized"),!h()(n,r)&&a("More than one bootstrap script with different settings has been found. Add only one bootstrap script per page.","\nInitialized bootstrap script:",n,"\nIgnored bootstrap script:",r),!1):(window[d]=r,c("tocco-widget-utils - v".concat(e," - bootstrap")),!0)},rt=function(){var t=e()(o().mark((function t(e){var r,n,c,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(et(e)){t.next=1;break}return t.abrupt("return");case 1:return r=e.backendUrl,n=e.assetUrl,c=document.querySelectorAll("[".concat(g,"]")),a=Array.prototype.slice.call(c),t.next=2,Promise.all(a.map((function(t){return tt(r,n,t)})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();const nt=rt;var ot,ct;ot=T(document),ct={backendUrl:window[b]?window[b]:ot,assetUrl:ot},B(ct),N(ct),document.addEventListener("DOMContentLoaded",e()(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.React&&window.reactRegistry){t.next=4;break}return t.next=1,p("".concat(ct.assetUrl,"/js/umd-react/dist/react.production.min.js"));case 1:return t.next=2,p("".concat(ct.assetUrl,"/js/umd-react/dist/react-dom.production.min.js"));case 2:return t.next=3,p("".concat(ct.assetUrl,"/nice2/javascript/nice2-newclient-react-registry.release.js"));case 3:t.next=5;break;case 4:c("tocco-widget-utils - React and react-registry already loaded - v".concat(window.React.version));case 5:return t.next=6,nt(ct);case 6:case"end":return t.stop()}}),t)}))))})(),{}})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["tocco-widget-utils-bootstrap"]=e():t["tocco-widget-utils-bootstrap"]=e()}(this,(()=>(()=>{var t={9092(t){function e(t,e,r,n,o,c,a){try{var i=t[c](a),s=i.value}catch(t){return void r(t)}i.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,c){var a=t.apply(r,n);function i(t){e(a,o,c,i,s,"next",t)}function s(t){e(a,o,c,i,s,"throw",t)}i(void 0)}))}}},6396(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},5735(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(r)}t.exports=e},2207(t,e,r){t.exports=r(7452)},5580(t,e,r){var n=r(6110)(r(9325),"DataView");t.exports=n},1549(t,e,r){var n=r(2032),o=r(3862),c=r(6721),a=r(2749),i=r(5749);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},79(t,e,r){var n=r(3702),o=r(80),c=r(4739),a=r(8655),i=r(1175);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},8223(t,e,r){var n=r(6110)(r(9325),"Map");t.exports=n},3661(t,e,r){var n=r(3040),o=r(7670),c=r(289),a=r(4509),i=r(2949);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=a,s.prototype.set=i,t.exports=s},2804(t,e,r){var n=r(6110)(r(9325),"Promise");t.exports=n},6545(t,e,r){var n=r(6110)(r(9325),"Set");t.exports=n},8859(t,e,r){var n=r(3661),o=r(1380),c=r(1459);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=c,t.exports=a},7217(t,e,r){var n=r(79),o=r(1420),c=r(938),a=r(3605),i=r(9817),s=r(945);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=c,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,t.exports=u},1873(t,e,r){var n=r(9325).Symbol;t.exports=n},7828(t,e,r){var n=r(9325).Uint8Array;t.exports=n},8303(t,e,r){var n=r(6110)(r(9325),"WeakMap");t.exports=n},9770(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,c=[];++r<n;){var a=t[r];e(a,r,t)&&(c[o++]=a)}return c}},695(t,e,r){var n=r(8096),o=r(2428),c=r(6449),a=r(3656),i=r(361),s=r(7167),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=c(t),p=!r&&o(t),f=!r&&!p&&a(t),l=!r&&!p&&!f&&s(t),h=r||p||f||l,d=h?n(t.length,String):[],v=d.length;for(var y in t)!e&&!u.call(t,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,v))||d.push(y);return d}},4528(t){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4248(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},6025(t,e,r){var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},2199(t,e,r){var n=r(4528),o=r(6449);t.exports=function(t,e,r){var c=e(t);return o(t)?c:n(c,r(t))}},2552(t,e,r){var n=r(1873),o=r(659),c=r(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):c(t)}},7534(t,e,r){var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},270(t,e,r){var n=r(7068),o=r(346);t.exports=function t(e,r,c,a,i){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,c,a,t,i))}},7068(t,e,r){var n=r(7217),o=r(5911),c=r(1986),a=r(689),i=r(5861),s=r(6449),u=r(3656),p=r(7167),f="[object Arguments]",l="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,y,b){var g=s(t),w=s(e),x=g?l:i(t),m=w?l:i(e),j=(x=x==f?h:x)==h,_=(m=m==f?h:m)==h,O=x==m;if(O&&u(t)){if(!u(e))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new n),g||p(t)?o(t,e,r,v,y,b):c(t,e,x,r,v,y,b);if(!(1&r)){var k=j&&d.call(t,"__wrapped__"),P=_&&d.call(e,"__wrapped__");if(k||P){var E=k?t.value():t,S=P?e.value():e;return b||(b=new n),y(E,S,r,v,b)}}return!!O&&(b||(b=new n),a(t,e,r,v,y,b))}},5083(t,e,r){var n=r(1882),o=r(7296),c=r(3805),a=r(7473),i=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,p=s.toString,f=u.hasOwnProperty,l=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!c(t)||o(t))&&(n(t)?l:i).test(a(t))}},4901(t,e,r){var n=r(2552),o=r(294),c=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return c(t)&&o(t.length)&&!!a[n(t)]}},8984(t,e,r){var n=r(5527),o=r(3650),c=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))c.call(t,r)&&"constructor"!=r&&e.push(r);return e}},8096(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7301(t){t.exports=function(t){return function(e){return t(e)}}},9219(t){t.exports=function(t,e){return t.has(e)}},5481(t,e,r){var n=r(9325)["__core-js_shared__"];t.exports=n},5911(t,e,r){var n=r(8859),o=r(4248),c=r(9219);t.exports=function(t,e,r,a,i,s){var u=1&r,p=t.length,f=e.length;if(p!=f&&!(u&&f>p))return!1;var l=s.get(t),h=s.get(e);if(l&&h)return l==e&&h==t;var d=-1,v=!0,y=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++d<p;){var b=t[d],g=e[d];if(a)var w=u?a(g,b,d,e,t,s):a(b,g,d,t,e,s);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!o(e,(function(t,e){if(!c(y,e)&&(b===t||i(b,t,r,a,s)))return y.push(e)}))){v=!1;break}}else if(b!==g&&!i(b,g,r,a,s)){v=!1;break}}return s.delete(t),s.delete(e),v}},1986(t,e,r){var n=r(1873),o=r(7828),c=r(5288),a=r(5911),i=r(317),s=r(4247),u=n?n.prototype:void 0,p=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,f,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=i;case"[object Set]":var d=1&n;if(h||(h=s),t.size!=e.size&&!d)return!1;var v=l.get(t);if(v)return v==e;n|=2,l.set(t,e);var y=a(h(t),h(e),n,u,f,l);return l.delete(t),y;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1}},689(t,e,r){var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,c,a,i){var s=1&r,u=n(t),p=u.length;if(p!=n(e).length&&!s)return!1;for(var f=p;f--;){var l=u[f];if(!(s?l in e:o.call(e,l)))return!1}var h=i.get(t),d=i.get(e);if(h&&d)return h==e&&d==t;var v=!0;i.set(t,e),i.set(e,t);for(var y=s;++f<p;){var b=t[l=u[f]],g=e[l];if(c)var w=s?c(g,b,l,e,t,i):c(b,g,l,t,e,i);if(!(void 0===w?b===g||a(b,g,r,c,i):w)){v=!1;break}y||(y="constructor"==l)}if(v&&!y){var x=t.constructor,m=e.constructor;x==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof m&&m instanceof m||(v=!1)}return i.delete(t),i.delete(e),v}},4840(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2(t,e,r){var n=r(2199),o=r(4664),c=r(5950);t.exports=function(t){return n(t,c,o)}},2651(t,e,r){var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},6110(t,e,r){var n=r(5083),o=r(392);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},659(t,e,r){var n=r(1873),o=Object.prototype,c=o.hasOwnProperty,a=o.toString,i=n?n.toStringTag:void 0;t.exports=function(t){var e=c.call(t,i),r=t[i];try{t[i]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[i]=r:delete t[i]),o}},4664(t,e,r){var n=r(9770),o=r(3345),c=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return c.call(t,e)})))}:o;t.exports=i},5861(t,e,r){var n=r(5580),o=r(8223),c=r(2804),a=r(6545),i=r(8303),s=r(2552),u=r(7473),p="[object Map]",f="[object Promise]",l="[object Set]",h="[object WeakMap]",d="[object DataView]",v=u(n),y=u(o),b=u(c),g=u(a),w=u(i),x=s;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=p||c&&x(c.resolve())!=f||a&&x(new a)!=l||i&&x(new i)!=h)&&(x=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case v:return d;case y:return p;case b:return f;case g:return l;case w:return h}return e}),t.exports=x},392(t){t.exports=function(t,e){return null==t?void 0:t[e]}},2032(t,e,r){var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721(t,e,r){var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},2749(t,e,r){var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},5749(t,e,r){var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},361(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},4218(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296(t,e,r){var n,o=r(5481),c=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!c&&c in t}},5527(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3702(t){t.exports=function(){this.__data__=[],this.size=0}},80(t,e,r){var n=r(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},4739(t,e,r){var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},8655(t,e,r){var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175(t,e,r){var n=r(6025);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},3040(t,e,r){var n=r(1549),o=r(79),c=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(c||o),string:new n}}},7670(t,e,r){var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},289(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509(t,e,r){var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},2949(t,e,r){var n=r(2651);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},317(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},1042(t,e,r){var n=r(6110)(Object,"create");t.exports=n},3650(t,e,r){var n=r(4335)(Object.keys,Object);t.exports=n},6009(t,e,r){t=r.nmd(t);var n=r(4840),o=e&&!e.nodeType&&e,c=o&&t&&!t.nodeType&&t,a=c&&c.exports===o&&n.process,i=function(){try{var t=c&&c.require&&c.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=i},9350(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335(t){t.exports=function(t,e){return function(r){return t(e(r))}}},9325(t,e,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,c=n||o||Function("return this")();t.exports=c},1380(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459(t){t.exports=function(t){return this.__data__.has(t)}},4247(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},1420(t,e,r){var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},938(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},3605(t){t.exports=function(t){return this.__data__.get(t)}},9817(t){t.exports=function(t){return this.__data__.has(t)}},945(t,e,r){var n=r(79),o=r(8223),c=r(3661);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new c(a)}return r.set(t,e),this.size=r.size,this}},7473(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5288(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2428(t,e,r){var n=r(7534),o=r(346),c=Object.prototype,a=c.hasOwnProperty,i=c.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!i.call(t,"callee")};t.exports=s},6449(t){var e=Array.isArray;t.exports=e},4894(t,e,r){var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3656(t,e,r){t=r.nmd(t);var n=r(9325),o=r(9935),c=e&&!e.nodeType&&e,a=c&&t&&!t.nodeType&&t,i=a&&a.exports===c?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||o;t.exports=s},2404(t,e,r){var n=r(270);t.exports=function(t,e){return n(t,e)}},1882(t,e,r){var n=r(2552),o=r(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},294(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7167(t,e,r){var n=r(4901),o=r(7301),c=r(6009),a=c&&c.isTypedArray,i=a?o(a):n;t.exports=i},5950(t,e,r){var n=r(695),o=r(8984),c=r(4894);t.exports=function(t){return c(t)?n(t):o(t)}},3345(t){t.exports=function(){return[]}},9935(t){t.exports=function(){return!1}},7452(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,c=Object.create(o.prototype),a=new S(n||[]);return c._invoke=function(t,e,r){var n=f;return function(o,c){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw c;return L()}for(r.method=o,r.arg=c;;){var a=r.delegate;if(a){var i=k(a,r);if(i){if(i===v)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=p(t,e,r);if("normal"===s.type){if(n=r.done?d:l,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),c}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",l="suspendedYield",h="executing",d="completed",v={};function y(){}function b(){}function g(){}var w={};w[c]=function(){return this};var x=Object.getPrototypeOf,m=x&&x(x(A([])));m&&m!==r&&n.call(m,c)&&(w=m);var j=g.prototype=y.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,c,a,i){var s=p(t[o],t,c);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,i)}),(function(t){r("throw",t,a,i)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,i)}))}i(s.arg)}var o;this._invoke=function(t,n){function c(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(c,c):c()}}function k(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=p(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:e,done:!0}}return b.prototype=j.constructor=g,g.constructor=b,b.displayName=s(g,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,i,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},_(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(e,r,n,o,c){void 0===c&&(c=Promise);var a=new O(u(e,r,n,o),c);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(j),s(j,i,"Generator"),j[c]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return i.type="throw",i.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var a=this.tryEntries[c],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===t||"continue"===t)&&c.tryLoc<=e&&e<=c.finallyLoc&&(c=null);var a=c?c.completion:{};return a.type=t,a.arg=e,c?(this.method="next",this.next=c.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},3093(t){"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.15.2-playground","description":"","license":"AGPL-3.0+","scripts":{"compile:prod":"cd ../../../ && yarn run compile:prod --package=widget-utils","prepack":"yarn run compile:prod","test":"jest"},"devDependencies":{"tocco-util":"*","tocco-widget-placeholder":"*"},"stableVersion":"3.15.0-ai-playground"}')}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var c=e[n]={id:n,loaded:!1,exports:{}};return t[n](c,c.exports,r),c.loaded=!0,c.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);return(()=>{"use strict";var t=r(9092),e=r.n(t),n=r(2207),o=r.n(n);const c=function(){var t;window.console&&(t=console).log.apply(t,arguments)},a=function(){window.console&&(console.error||console.log).apply(void 0,arguments)};var i=function(t){return"/js/tocco-".concat(t,"/dist/")},s=function(t,e){var r=t!==e?e:"index";return"".concat(i(t)).concat(r,".js")},u=function(t){return new Promise((function(e,r){var n=document.createElement("script");n.src=t,n.async=!0,n.type="text/javascript",n.onload=function(){e()},n.onerror=function(){r(new Error("Could not load script."))},n.crossorogin=!0;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}))};const p=u,f=s;var l=r(2404),h=r.n(l),d="toccoBootstrap",v="toccoMethods",y="tqlMeta",b="toccoBackendUrl",g="data-tocco-widget-key",w="data-tocco-visibility-status",x="widget-utils",m="widget-placeholder",j=r(6396),_=r.n(j);function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Headers;r.set("Content-Type","application/json");var n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({headers:r,method:"GET",credentials:"include"},e);return fetch(t,n)},P=function(t){var e=t.ok,r=t.status;return t.json().then((function(t){return{ok:e,status:r,body:t}}))},E=r(5735),S=r.n(E);function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var T=function(t){var e=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return e.protocol+"//"+e.host},z=function(){var t=window.toccoTheme;if(t&&"object"===S()(t))return t},D=function(t){return t&&Object.keys(t).length>0&&"function"==typeof t[Object.keys(t)[0]]},U=function(t){var e=window.toccoEventHandlers;if(D(e))return e;if(e){var r=e[t];if(D(r))return r}return{}},C=function(t,e){window[v]=L(L({},window[v]),{},_()({},t,e))},I=function(){return r(3093).version},N=function(t){var r=t.backendUrl,n=t.assetUrl,i=I(),s={version:i,backendUrl:r,assetUrl:n},u=function(t){var r=t.backendUrl;return function(){var t=e()(o().mark((function t(e,n){var c,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={method:"POST",body:JSON.stringify(n)},t.next=1,k("".concat(r,"/nice2/rest/entities/2.0/").concat(e,"/search?_omitLinks=true"),c).then(P).then((function(t){return null==t?void 0:t.body})).catch((function(t){a("Could not execute tql.",t)}));case 1:return i=t.sent,t.abrupt("return",i);case 2:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()}(s),p=window[y];if(p)return c("tocco-widget-utils - tql function is already initialized"),void(!h()(p,s)&&a("More than one tql function with different settings has been found. Add only one tql function per page.","\nInitialized tql function:",p,"\nIgnored tql function:",s));window.tql=u,window[y]=s,c("tocco-widget-utils - v".concat(i," - tql"))},F="error",R=function(){var t=e()(o().mark((function t(e,r,n){var c,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c="ERROR MESSAGE: ".concat(n.message," \nSTACK: ").concat(n.stack?n.stack.substring(0,1e3):"-"),i="".concat(r,"\n").concat(c),a(i),t.next=1,V(F,e,i);case 1:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),M=function(){var t=e()(o().mark((function t(e,r){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a(r),t.next=1,V(F,e,r);case 1:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),V=function(){var t=e()(o().mark((function t(e,r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,k("".concat(r,"/nice2/log?level=").concat(e,"&message=").concat(encodeURI(n)),{method:"POST"});case 1:t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}}),t,null,[[0,2]])})));return function(e,r,n){return t.apply(this,arguments)}}(),q=function(t,e,r){try{var n=document.getElementById(e)||function(t){var e=document.createElement("style");return e.id=t,document.head.appendChild(e),e}(e);n.innerHTML=r}catch(e){R(t,"Could not apply global styles.",e)}};const B=function(t){var e=t.backendUrl,r="[".concat(w,"] {display: none;}");q(e,"tocco-initial-visibility-status-styles",r)};function G(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function W(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?G(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var $=function(){var t=e()(o().mark((function t(e,r,n,c,a){var i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,p("".concat(r).concat(f(x,m)));case 1:t.next=3;break;case 2:return t.prev=2,s=t.catch(0),R(e,"Could not fetch package 'tocco-".concat(x,"'."),s),t.abrupt("return");case 3:try{i="".concat(r,"/js/tocco-").concat(x,"/dist/"),window.reactRegistry.render(m,n,c,a,{},i)}catch(t){R(e,"Could not render app '".concat(m,"'."),t)}case 4:case"end":return t.stop()}}),t,null,[[0,2]])})));return function(e,r,n,o,c){return t.apply(this,arguments)}}(),H=function(){var t=e()(o().mark((function t(e,r,n,c,a){var i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=z(),t.next=1,$(e,r,n,c,W(W(W({backendUrl:e},a?{locale:a}:{}),i?{customTheme:i}:{}),{},{placeholder:"error",appContext:{embedType:"widget"}}));case 1:case"end":return t.stop()}}),t)})));return function(e,r,n,o,c){return t.apply(this,arguments)}}();function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function K(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){_()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Y=function(t){return t.getAttribute(g)},Q=function(){var t=I().split(".").slice(0,2).map((function(t,e){return 0===e?t:t.padStart(2,"0")})).join("");return"https://".concat(t,".docs.tocco.ch/Web/widgets/Web_Einbindung_Tocco_Widgets_Fehlermeldungen.html")},X=function(t,e,r){var n=e.ok,o=e.status,c=e.body;return n?e:(403===o&&"INVALID_DOMAIN"===(null==c?void 0:c.errorCode)&&M(t,"".concat(c.message,". Visit ").concat(Q()," for further information.")),403===o&&"INACTIVE"===(null==c?void 0:c.errorCode)&&M(t,"".concat(c.message,". Visit ").concat(Q()," for further information.")),void(404===o&&M(t,"Widget config '".concat(r,"' not found. Visit ").concat(Q()," for further information."))))},Z=function(t,e,r){return function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var a=o[0].status;!function(t,e,r){var n=r.map((function(t){return"[".concat("data-tocco-widget-ref",'="').concat(e,'"][').concat(w,'~="').concat(t,'"]')})).join(",\n"),o="".concat(n," {\n display: inherit;\n}");q(t,"".concat("tocco-visibility-status-styles","-").concat(e),o)}(t,e,a),"function"==typeof r&&r.apply(void 0,o)}},tt=function(){var t=e()(o().mark((function t(e,r,n){var c,a,i,s,u,l,h,d,v,y,b,g,w,x,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=Y(n),t.next=1,k("".concat(e,"/nice2/rest/widget/configs/").concat(c)).then(P).then((function(t){return X(e,t,c)})).then((function(t){return null==t?void 0:t.body})).catch((function(t){R(e,"Could not fetch widget config '".concat(c,"'. Visit ").concat(Q()," for further information."),t)}));case 1:if(!(a=t.sent)){t.next=10;break}return i=a.appName,s=a.packageName,u=a.locale,l=a.config,t.prev=2,t.next=3,p("".concat(r).concat(f(s,i)));case 3:t.next=6;break;case 4:return t.prev=4,x=t.catch(2),R(e,"Could not fetch package 'tocco-".concat(s,"'. Visit ").concat(Q()," for further information."),x),t.next=5,H(e,r,n,c,u);case 5:return t.abrupt("return");case 6:h=U(c),d=K(K({},h),{},{onVisibilityStatusChange:Z(e,c,h.onVisibilityStatusChange)}),v=z(),y=K(K(K({backendUrl:e},v?{customTheme:v}:{}),{},{locale:u},l),{},{appContext:{embedType:"widget",widgetConfigKey:c}},d),b="".concat(r,"/js/tocco-").concat(s,"/dist/"),t.prev=7,g=window.reactRegistry.render(i,n,c,y,d,b),C(c,g),t.next=9;break;case 8:return t.prev=8,m=t.catch(7),R(e,"Could not render app '".concat(i,"'. Visit ").concat(Q()," for further information."),m),t.next=9,H(e,r,n,c,u);case 9:t.next=11;break;case 10:return w=document.documentElement.lang,t.next=11,H(e,r,n,c,w);case 11:case"end":return t.stop()}}),t,null,[[2,4],[7,8]])})));return function(e,r,n){return t.apply(this,arguments)}}(),et=function(t){var e=I(),r=K({version:e},t),n=window[d];return n?(c("tocco-widget-utils - bootstrap script is already initialized"),!h()(n,r)&&a("More than one bootstrap script with different settings has been found. Add only one bootstrap script per page.","\nInitialized bootstrap script:",n,"\nIgnored bootstrap script:",r),!1):(window[d]=r,c("tocco-widget-utils - v".concat(e," - bootstrap")),!0)},rt=function(){var t=e()(o().mark((function t(e){var r,n,c,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(et(e)){t.next=1;break}return t.abrupt("return");case 1:return r=e.backendUrl,n=e.assetUrl,c=document.querySelectorAll("[".concat(g,"]")),a=Array.prototype.slice.call(c),t.next=2,Promise.all(a.map((function(t){return tt(r,n,t)})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();const nt=rt;var ot,ct;ot=T(document),ct={backendUrl:window[b]?window[b]:ot,assetUrl:ot},B(ct),N(ct),document.addEventListener("DOMContentLoaded",e()(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.React&&window.reactRegistry){t.next=4;break}return t.next=1,p("".concat(ct.assetUrl,"/js/umd-react/dist/react.production.min.js"));case 1:return t.next=2,p("".concat(ct.assetUrl,"/js/umd-react/dist/react-dom.production.min.js"));case 2:return t.next=3,p("".concat(ct.assetUrl,"/nice2/javascript/nice2-newclient-react-registry.release.js"));case 3:t.next=5;break;case 4:c("tocco-widget-utils - React and react-registry already loaded - v".concat(window.React.version));case 5:return t.next=6,nt(ct);case 6:case"end":return t.stop()}}),t)}))))})(),{}})()));
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunktocco_widget_utils=this.webpackChunktocco_widget_utils||[]).push([[389],{8389(t,e,r){r.r(e),r.d(e,{default:()=>y});var n,c=r(6396),o=r.n(c),i=r(2189),s=r.n(i),p=r(1510),u=r(4116),l=r(7488),O=(0,p.Ay)(u.A).withConfig({displayName:"StyledIcon"})(n||(n=s()(["\n color: ",";\n"])),l.t7.color("loadingSpinner")),a=r(4848);function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const y=function(t){var e=t.size,r=t.style,n=t.icon;return(0,a.jsx)(O,f(f({},r),{},{style:{fontSize:e},spin:!0,icon:n||"circle-notch"}))}}}]);