tocco-widget-utils 3.12.39 → 3.12.41
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 +6 -0
- package/dist/bootstrap.js +1 -1
- package/dist/chunk-103.12b85ed826418dd1849b.js +1 -0
- package/dist/chunk-389.a059e77b91e374d5a754.js +1 -0
- package/dist/chunk-638.3755ef865d880ba082f7.js +1 -0
- package/dist/chunk-phone-formatter.de303b52fe9122f782db.js +1 -0
- package/dist/chunk-vendor-fontawesome.f0908a7fd50179fffd6a.js +1 -0
- package/dist/chunk-vendor-icons.758be0c6155a45f494cf.js +1 -0
- package/dist/tql.js +1 -1
- package/dist/widget-placeholder.js +10 -59
- package/package.json +1 -1
- package/dist/chunk-103.f677923c13b8718424b3.js +0 -1
- package/dist/chunk-264.66f1082d2eefcc5e8e2d.js +0 -1
- package/dist/chunk-389.4ec64a8ab073482cd020.js +0 -1
- package/dist/chunk-code-editor.8360fc5f38b8052c71e8.js +0 -1
- package/dist/chunk-html-editor.e6cd8f05dd79d71862bd.js +0 -6
- package/dist/chunk-phone-formatter.244385ed506451ec7825.js +0 -1
- package/dist/chunk-vendor-fontawesome.9015172a1abd41d36469.js +0 -1
- package/dist/chunk-vendor-icons.9a187c582b30047b0ad4.js +0 -1
- package/dist/chunk-vendor-libphonenumber-js.105fdb32443a3da35b6c.js +0 -1
package/dist/tql.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["tocco-widget-utils-tql"]=r():t["tocco-widget-utils-tql"]=r()}(self,(()=>(()=>{var t={79092:t=>{function r(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}}},26396:t=>{t.exports=function(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}},85735:t=>{function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},92207:(t,r,e)=>{t.exports=e(7452)},55580:(t,r,e)=>{var n=e(56110)(e(9325),"DataView");t.exports=n},21549:(t,r,e)=>{var n=e(22032),o=e(63862),i=e(66721),a=e(12749),c=e(35749);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},80079:(t,r,e)=>{var n=e(63702),o=e(70080),i=e(24739),a=e(48655),c=e(31175);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},68223:(t,r,e)=>{var n=e(56110)(e(9325),"Map");t.exports=n},53661:(t,r,e)=>{var n=e(63040),o=e(17670),i=e(90289),a=e(4509),c=e(72949);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},32804:(t,r,e)=>{var n=e(56110)(e(9325),"Promise");t.exports=n},76545:(t,r,e)=>{var n=e(56110)(e(9325),"Set");t.exports=n},38859:(t,r,e)=>{var n=e(53661),o=e(31380),i=e(51459);function a(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new n;++r<e;)this.add(t[r])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},37217:(t,r,e)=>{var n=e(80079),o=e(51420),i=e(90938),a=e(63605),c=e(29817),u=e(80945);function s(t){var r=this.__data__=new n(t);this.size=r.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},51873:(t,r,e)=>{var n=e(9325).Symbol;t.exports=n},37828:(t,r,e)=>{var n=e(9325).Uint8Array;t.exports=n},28303:(t,r,e)=>{var n=e(56110)(e(9325),"WeakMap");t.exports=n},79770:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}},70695:(t,r,e)=>{var n=e(78096),o=e(72428),i=e(56449),a=e(3656),c=e(30361),u=e(37167),s=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=i(t),p=!e&&o(t),f=!e&&!p&&a(t),l=!e&&!p&&!f&&u(t),h=e||p||f||l,v=h?n(t.length,String):[],y=v.length;for(var d in t)!r&&!s.call(t,d)||h&&("length"==d||f&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||c(d,y))||v.push(d);return v}},14528:t=>{t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},14248:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},26025:(t,r,e)=>{var n=e(75288);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},82199:(t,r,e)=>{var n=e(14528),o=e(56449);t.exports=function(t,r,e){var i=r(t);return o(t)?i:n(i,e(t))}},72552:(t,r,e)=>{var n=e(51873),o=e(659),i=e(59350),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):i(t)}},27534:(t,r,e)=>{var n=e(72552),o=e(40346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},60270:(t,r,e)=>{var n=e(87068),o=e(40346);t.exports=function t(r,e,i,a,c){return r===e||(null==r||null==e||!o(r)&&!o(e)?r!=r&&e!=e:n(r,e,i,a,t,c))}},87068:(t,r,e)=>{var n=e(37217),o=e(25911),i=e(21986),a=e(50689),c=e(5861),u=e(56449),s=e(3656),p=e(37167),f="[object Arguments]",l="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,y,d,b){var g=u(t),_=u(r),x=g?l:c(t),w=_?l:c(r),j=(x=x==f?h:x)==h,m=(w=w==f?h:w)==h,O=x==w;if(O&&s(t)){if(!s(r))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new n),g||p(t)?o(t,r,e,y,d,b):i(t,r,x,e,y,d,b);if(!(1&e)){var L=j&&v.call(t,"__wrapped__"),P=m&&v.call(r,"__wrapped__");if(L||P){var E=L?t.value():t,S=P?r.value():r;return b||(b=new n),d(E,S,e,y,b)}}return!!O&&(b||(b=new n),a(t,r,e,y,d,b))}},45083:(t,r,e)=>{var n=e(1882),o=e(87296),i=e(23805),a=e(47473),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,p=u.toString,f=s.hasOwnProperty,l=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:c).test(a(t))}},4901:(t,r,e)=>{var n=e(72552),o=e(30294),i=e(40346),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 i(t)&&o(t.length)&&!!a[n(t)]}},88984:(t,r,e)=>{var n=e(55527),o=e(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))i.call(t,e)&&"constructor"!=e&&r.push(e);return r}},78096:t=>{t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},27301:t=>{t.exports=function(t){return function(r){return t(r)}}},19219:t=>{t.exports=function(t,r){return t.has(r)}},55481:(t,r,e)=>{var n=e(9325)["__core-js_shared__"];t.exports=n},25911:(t,r,e)=>{var n=e(38859),o=e(14248),i=e(19219);t.exports=function(t,r,e,a,c,u){var s=1&e,p=t.length,f=r.length;if(p!=f&&!(s&&f>p))return!1;var l=u.get(t),h=u.get(r);if(l&&h)return l==r&&h==t;var v=-1,y=!0,d=2&e?new n:void 0;for(u.set(t,r),u.set(r,t);++v<p;){var b=t[v],g=r[v];if(a)var _=s?a(g,b,v,r,t,u):a(b,g,v,t,r,u);if(void 0!==_){if(_)continue;y=!1;break}if(d){if(!o(r,(function(t,r){if(!i(d,r)&&(b===t||c(b,t,e,a,u)))return d.push(r)}))){y=!1;break}}else if(b!==g&&!c(b,g,e,a,u)){y=!1;break}}return u.delete(t),u.delete(r),y}},21986:(t,r,e)=>{var n=e(51873),o=e(37828),i=e(75288),a=e(25911),c=e(20317),u=e(84247),s=n?n.prototype:void 0,p=s?s.valueOf:void 0;t.exports=function(t,r,e,n,s,f,l){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!f(new o(t),new o(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var h=c;case"[object Set]":var v=1&n;if(h||(h=u),t.size!=r.size&&!v)return!1;var y=l.get(t);if(y)return y==r;n|=2,l.set(t,r);var d=a(h(t),h(r),n,s,f,l);return l.delete(t),d;case"[object Symbol]":if(p)return p.call(t)==p.call(r)}return!1}},50689:(t,r,e)=>{var n=e(50002),o=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,i,a,c){var u=1&e,s=n(t),p=s.length;if(p!=n(r).length&&!u)return!1;for(var f=p;f--;){var l=s[f];if(!(u?l in r:o.call(r,l)))return!1}var h=c.get(t),v=c.get(r);if(h&&v)return h==r&&v==t;var y=!0;c.set(t,r),c.set(r,t);for(var d=u;++f<p;){var b=t[l=s[f]],g=r[l];if(i)var _=u?i(g,b,l,r,t,c):i(b,g,l,t,r,c);if(!(void 0===_?b===g||a(b,g,e,i,c):_)){y=!1;break}d||(d="constructor"==l)}if(y&&!d){var x=t.constructor,w=r.constructor;x==w||!("constructor"in t)||!("constructor"in r)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return c.delete(t),c.delete(r),y}},34840:(t,r,e)=>{var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},50002:(t,r,e)=>{var n=e(82199),o=e(4664),i=e(95950);t.exports=function(t){return n(t,i,o)}},12651:(t,r,e)=>{var n=e(74218);t.exports=function(t,r){var e=t.__data__;return n(r)?e["string"==typeof r?"string":"hash"]:e.map}},56110:(t,r,e)=>{var n=e(45083),o=e(10392);t.exports=function(t,r){var e=o(t,r);return n(e)?e:void 0}},659:(t,r,e)=>{var n=e(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var r=i.call(t,c),e=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(r?t[c]=e:delete t[c]),o}},4664:(t,r,e)=>{var n=e(79770),o=e(63345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(r){return i.call(t,r)})))}:o;t.exports=c},5861:(t,r,e)=>{var n=e(55580),o=e(68223),i=e(32804),a=e(76545),c=e(28303),u=e(72552),s=e(47473),p="[object Map]",f="[object Promise]",l="[object Set]",h="[object WeakMap]",v="[object DataView]",y=s(n),d=s(o),b=s(i),g=s(a),_=s(c),x=u;(n&&x(new n(new ArrayBuffer(1)))!=v||o&&x(new o)!=p||i&&x(i.resolve())!=f||a&&x(new a)!=l||c&&x(new c)!=h)&&(x=function(t){var r=u(t),e="[object Object]"==r?t.constructor:void 0,n=e?s(e):"";if(n)switch(n){case y:return v;case d:return p;case b:return f;case g:return l;case _:return h}return r}),t.exports=x},10392:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},22032:(t,r,e)=>{var n=e(81042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},63862:t=>{t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},66721:(t,r,e)=>{var n=e(81042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(n){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return o.call(r,t)?r[t]:void 0}},12749:(t,r,e)=>{var n=e(81042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return n?void 0!==r[t]:o.call(r,t)}},35749:(t,r,e)=>{var n=e(81042);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},30361:t=>{var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},74218:t=>{t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},87296:(t,r,e)=>{var n,o=e(55481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},55527:t=>{var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},63702:t=>{t.exports=function(){this.__data__=[],this.size=0}},70080:(t,r,e)=>{var n=e(26025),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0)&&(e==r.length-1?r.pop():o.call(r,e,1),--this.size,!0)}},24739:(t,r,e)=>{var n=e(26025);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},48655:(t,r,e)=>{var n=e(26025);t.exports=function(t){return n(this.__data__,t)>-1}},31175:(t,r,e)=>{var n=e(26025);t.exports=function(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}},63040:(t,r,e)=>{var n=e(21549),o=e(80079),i=e(68223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},17670:(t,r,e)=>{var n=e(12651);t.exports=function(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r}},90289:(t,r,e)=>{var n=e(12651);t.exports=function(t){return n(this,t).get(t)}},4509:(t,r,e)=>{var n=e(12651);t.exports=function(t){return n(this,t).has(t)}},72949:(t,r,e)=>{var n=e(12651);t.exports=function(t,r){var e=n(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this}},20317:t=>{t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}},81042:(t,r,e)=>{var n=e(56110)(Object,"create");t.exports=n},3650:(t,r,e)=>{var n=e(74335)(Object.keys,Object);t.exports=n},86009:(t,r,e)=>{t=e.nmd(t);var n=e(34840),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},59350:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},74335:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},9325:(t,r,e)=>{var n=e(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},31380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},51459:t=>{t.exports=function(t){return this.__data__.has(t)}},84247:t=>{t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}},51420:(t,r,e)=>{var n=e(80079);t.exports=function(){this.__data__=new n,this.size=0}},90938:t=>{t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},63605:t=>{t.exports=function(t){return this.__data__.get(t)}},29817:t=>{t.exports=function(t){return this.__data__.has(t)}},80945:(t,r,e)=>{var n=e(80079),o=e(68223),i=e(53661);t.exports=function(t,r){var e=this.__data__;if(e instanceof n){var a=e.__data__;if(!o||a.length<199)return a.push([t,r]),this.size=++e.size,this;e=this.__data__=new i(a)}return e.set(t,r),this.size=e.size,this}},47473:t=>{var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},75288:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},72428:(t,r,e)=>{var n=e(27534),o=e(40346),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},56449:t=>{var r=Array.isArray;t.exports=r},64894:(t,r,e)=>{var n=e(1882),o=e(30294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3656:(t,r,e)=>{t=e.nmd(t);var n=e(9325),o=e(89935),i=r&&!r.nodeType&&r,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},2404:(t,r,e)=>{var n=e(60270);t.exports=function(t,r){return n(t,r)}},1882:(t,r,e)=>{var n=e(72552),o=e(23805);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},30294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},23805:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},40346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},37167:(t,r,e)=>{var n=e(4901),o=e(27301),i=e(86009),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},95950:(t,r,e)=>{var n=e(70695),o=e(88984),i=e(64894);t.exports=function(t){return i(t)?n(t):o(t)}},63345:t=>{t.exports=function(){return[]}},89935:t=>{t.exports=function(){return!1}},7452:t=>{var r=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,r,e){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return k()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=h;var u=p(t,r,e);if("normal"===u.type){if(n=e.done?v:l,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=v,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",l="suspendedYield",h="executing",v="completed",y={};function d(){}function b(){}function g(){}var _={};_[i]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(A([])));w&&w!==e&&n.call(w,i)&&(_=w);var j=g.prototype=d.prototype=Object.create(_);function m(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function O(t,r){function e(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}function L(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,L(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function E(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:k}}function k(){return{value:r,done:!0}}return b.prototype=j.constructor=g,g.constructor=b,b.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===b||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},m(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new O(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(j),u(j,c,"Generator"),j[i]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},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 e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,r){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&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;E(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},53093:t=>{"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.12.39","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":"*"}}')}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,e),i.loaded=!0,i.exports}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),e.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);return(()=>{"use strict";e(85735);var t=e(26396),r=e.n(t),n="tqlMeta",o="toccoBackendUrl";var i=function(t){var r=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return r.protocol+"//"+r.host},a=e(79092),c=e.n(a),u=e(92207),s=e.n(u),p=e(2404),f=e.n(p);const l=function(){var t;window.console&&(t=console).log.apply(t,arguments)},h=function(){window.console&&(console.error||console.log).apply(void 0,arguments)};function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}var y,d,b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Headers;n.set("Content-Type","application/json");var o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){r()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}({headers:n,method:"GET",credentials:"include"},e);return fetch(t,o)},g=function(t){var r=t.ok,e=t.status;return t.json().then((function(t){return{ok:r,status:e,body:t}}))},_=function(t){var r=t.backendUrl,o=t.assetUrl,i=e(53093).version,a={version:i,backendUrl:r,assetUrl:o},u=function(t){var r=t.backendUrl;return function(){var t=c()(s().mark((function t(e,n){var o,i;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={method:"POST",body:JSON.stringify(n)},t.next=3,b("".concat(r,"/nice2/rest/entities/2.0/").concat(e,"/search?_omitLinks=true"),o).then(g).then((function(t){return null==t?void 0:t.body})).catch((function(t){h("Could not execute tql.",t)}));case 3:return i=t.sent,t.abrupt("return",i);case 5:case"end":return t.stop()}}),t)})));return function(r,e){return t.apply(this,arguments)}}()}(a),p=window[n];if(p)return l("tocco-widget-utils - tql function is already initialized"),void(!f()(p,a)&&h("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:",a));window.tql=u,window[n]=a,l("tocco-widget-utils - v".concat(i," - tql"))};y=i(document),d={backendUrl:window[o]?window[o]:y,assetUrl:y},_(d)})(),{}})()));
|
|
1
|
+
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["tocco-widget-utils-tql"]=r():t["tocco-widget-utils-tql"]=r()}(this,(()=>(()=>{var t={9092:t=>{function r(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}}},6396:t=>{t.exports=function(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}},5735:t=>{function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},2207:(t,r,e)=>{t.exports=e(7452)},5580:(t,r,e)=>{var n=e(6110)(e(9325),"DataView");t.exports=n},1549:(t,r,e)=>{var n=e(2032),o=e(3862),i=e(6721),a=e(2749),c=e(5749);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},79:(t,r,e)=>{var n=e(3702),o=e(80),i=e(4739),a=e(8655),c=e(1175);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},8223:(t,r,e)=>{var n=e(6110)(e(9325),"Map");t.exports=n},3661:(t,r,e)=>{var n=e(3040),o=e(7670),i=e(289),a=e(4509),c=e(2949);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},2804:(t,r,e)=>{var n=e(6110)(e(9325),"Promise");t.exports=n},6545:(t,r,e)=>{var n=e(6110)(e(9325),"Set");t.exports=n},8859:(t,r,e)=>{var n=e(3661),o=e(1380),i=e(1459);function a(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new n;++r<e;)this.add(t[r])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},7217:(t,r,e)=>{var n=e(79),o=e(1420),i=e(938),a=e(3605),c=e(9817),u=e(945);function s(t){var r=this.__data__=new n(t);this.size=r.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},1873:(t,r,e)=>{var n=e(9325).Symbol;t.exports=n},7828:(t,r,e)=>{var n=e(9325).Uint8Array;t.exports=n},8303:(t,r,e)=>{var n=e(6110)(e(9325),"WeakMap");t.exports=n},9770:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}},695:(t,r,e)=>{var n=e(8096),o=e(2428),i=e(6449),a=e(3656),c=e(361),u=e(7167),s=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=i(t),p=!e&&o(t),f=!e&&!p&&a(t),l=!e&&!p&&!f&&u(t),h=e||p||f||l,v=h?n(t.length,String):[],y=v.length;for(var d in t)!r&&!s.call(t,d)||h&&("length"==d||f&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||c(d,y))||v.push(d);return v}},4528:t=>{t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},4248:t=>{t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},6025:(t,r,e)=>{var n=e(5288);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},2199:(t,r,e)=>{var n=e(4528),o=e(6449);t.exports=function(t,r,e){var i=r(t);return o(t)?i:n(i,e(t))}},2552:(t,r,e)=>{var n=e(1873),o=e(659),i=e(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):i(t)}},7534:(t,r,e)=>{var n=e(2552),o=e(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},270:(t,r,e)=>{var n=e(7068),o=e(346);t.exports=function t(r,e,i,a,c){return r===e||(null==r||null==e||!o(r)&&!o(e)?r!=r&&e!=e:n(r,e,i,a,t,c))}},7068:(t,r,e)=>{var n=e(7217),o=e(5911),i=e(1986),a=e(689),c=e(5861),u=e(6449),s=e(3656),p=e(7167),f="[object Arguments]",l="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,y,d,b){var g=u(t),_=u(r),x=g?l:c(t),w=_?l:c(r),j=(x=x==f?h:x)==h,m=(w=w==f?h:w)==h,O=x==w;if(O&&s(t)){if(!s(r))return!1;g=!0,j=!1}if(O&&!j)return b||(b=new n),g||p(t)?o(t,r,e,y,d,b):i(t,r,x,e,y,d,b);if(!(1&e)){var L=j&&v.call(t,"__wrapped__"),P=m&&v.call(r,"__wrapped__");if(L||P){var E=L?t.value():t,S=P?r.value():r;return b||(b=new n),d(E,S,e,y,b)}}return!!O&&(b||(b=new n),a(t,r,e,y,d,b))}},5083:(t,r,e)=>{var n=e(1882),o=e(7296),i=e(3805),a=e(7473),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,p=u.toString,f=s.hasOwnProperty,l=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:c).test(a(t))}},4901:(t,r,e)=>{var n=e(2552),o=e(294),i=e(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 i(t)&&o(t.length)&&!!a[n(t)]}},8984:(t,r,e)=>{var n=e(5527),o=e(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))i.call(t,e)&&"constructor"!=e&&r.push(e);return r}},8096:t=>{t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},7301:t=>{t.exports=function(t){return function(r){return t(r)}}},9219:t=>{t.exports=function(t,r){return t.has(r)}},5481:(t,r,e)=>{var n=e(9325)["__core-js_shared__"];t.exports=n},5911:(t,r,e)=>{var n=e(8859),o=e(4248),i=e(9219);t.exports=function(t,r,e,a,c,u){var s=1&e,p=t.length,f=r.length;if(p!=f&&!(s&&f>p))return!1;var l=u.get(t),h=u.get(r);if(l&&h)return l==r&&h==t;var v=-1,y=!0,d=2&e?new n:void 0;for(u.set(t,r),u.set(r,t);++v<p;){var b=t[v],g=r[v];if(a)var _=s?a(g,b,v,r,t,u):a(b,g,v,t,r,u);if(void 0!==_){if(_)continue;y=!1;break}if(d){if(!o(r,(function(t,r){if(!i(d,r)&&(b===t||c(b,t,e,a,u)))return d.push(r)}))){y=!1;break}}else if(b!==g&&!c(b,g,e,a,u)){y=!1;break}}return u.delete(t),u.delete(r),y}},1986:(t,r,e)=>{var n=e(1873),o=e(7828),i=e(5288),a=e(5911),c=e(317),u=e(4247),s=n?n.prototype:void 0,p=s?s.valueOf:void 0;t.exports=function(t,r,e,n,s,f,l){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!f(new o(t),new o(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var h=c;case"[object Set]":var v=1&n;if(h||(h=u),t.size!=r.size&&!v)return!1;var y=l.get(t);if(y)return y==r;n|=2,l.set(t,r);var d=a(h(t),h(r),n,s,f,l);return l.delete(t),d;case"[object Symbol]":if(p)return p.call(t)==p.call(r)}return!1}},689:(t,r,e)=>{var n=e(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,i,a,c){var u=1&e,s=n(t),p=s.length;if(p!=n(r).length&&!u)return!1;for(var f=p;f--;){var l=s[f];if(!(u?l in r:o.call(r,l)))return!1}var h=c.get(t),v=c.get(r);if(h&&v)return h==r&&v==t;var y=!0;c.set(t,r),c.set(r,t);for(var d=u;++f<p;){var b=t[l=s[f]],g=r[l];if(i)var _=u?i(g,b,l,r,t,c):i(b,g,l,t,r,c);if(!(void 0===_?b===g||a(b,g,e,i,c):_)){y=!1;break}d||(d="constructor"==l)}if(y&&!d){var x=t.constructor,w=r.constructor;x==w||!("constructor"in t)||!("constructor"in r)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return c.delete(t),c.delete(r),y}},4840:(t,r,e)=>{var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},2:(t,r,e)=>{var n=e(2199),o=e(4664),i=e(5950);t.exports=function(t){return n(t,i,o)}},2651:(t,r,e)=>{var n=e(4218);t.exports=function(t,r){var e=t.__data__;return n(r)?e["string"==typeof r?"string":"hash"]:e.map}},6110:(t,r,e)=>{var n=e(5083),o=e(392);t.exports=function(t,r){var e=o(t,r);return n(e)?e:void 0}},659:(t,r,e)=>{var n=e(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var r=i.call(t,c),e=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(r?t[c]=e:delete t[c]),o}},4664:(t,r,e)=>{var n=e(9770),o=e(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(r){return i.call(t,r)})))}:o;t.exports=c},5861:(t,r,e)=>{var n=e(5580),o=e(8223),i=e(2804),a=e(6545),c=e(8303),u=e(2552),s=e(7473),p="[object Map]",f="[object Promise]",l="[object Set]",h="[object WeakMap]",v="[object DataView]",y=s(n),d=s(o),b=s(i),g=s(a),_=s(c),x=u;(n&&x(new n(new ArrayBuffer(1)))!=v||o&&x(new o)!=p||i&&x(i.resolve())!=f||a&&x(new a)!=l||c&&x(new c)!=h)&&(x=function(t){var r=u(t),e="[object Object]"==r?t.constructor:void 0,n=e?s(e):"";if(n)switch(n){case y:return v;case d:return p;case b:return f;case g:return l;case _:return h}return r}),t.exports=x},392:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},2032:(t,r,e)=>{var n=e(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862:t=>{t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},6721:(t,r,e)=>{var n=e(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(n){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return o.call(r,t)?r[t]:void 0}},2749:(t,r,e)=>{var n=e(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return n?void 0!==r[t]:o.call(r,t)}},5749:(t,r,e)=>{var n=e(1042);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},361:t=>{var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},4218:t=>{t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},7296:(t,r,e)=>{var n,o=e(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5527:t=>{var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},80:(t,r,e)=>{var n=e(6025),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0)&&(e==r.length-1?r.pop():o.call(r,e,1),--this.size,!0)}},4739:(t,r,e)=>{var n=e(6025);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},8655:(t,r,e)=>{var n=e(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175:(t,r,e)=>{var n=e(6025);t.exports=function(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}},3040:(t,r,e)=>{var n=e(1549),o=e(79),i=e(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670:(t,r,e)=>{var n=e(2651);t.exports=function(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r}},289:(t,r,e)=>{var n=e(2651);t.exports=function(t){return n(this,t).get(t)}},4509:(t,r,e)=>{var n=e(2651);t.exports=function(t){return n(this,t).has(t)}},2949:(t,r,e)=>{var n=e(2651);t.exports=function(t,r){var e=n(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this}},317:t=>{t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}},1042:(t,r,e)=>{var n=e(6110)(Object,"create");t.exports=n},3650:(t,r,e)=>{var n=e(4335)(Object.keys,Object);t.exports=n},6009:(t,r,e)=>{t=e.nmd(t);var n=e(4840),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},9350:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},4335:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},9325:(t,r,e)=>{var n=e(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},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 r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}},1420:(t,r,e)=>{var n=e(79);t.exports=function(){this.__data__=new n,this.size=0}},938:t=>{t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},3605:t=>{t.exports=function(t){return this.__data__.get(t)}},9817:t=>{t.exports=function(t){return this.__data__.has(t)}},945:(t,r,e)=>{var n=e(79),o=e(8223),i=e(3661);t.exports=function(t,r){var e=this.__data__;if(e instanceof n){var a=e.__data__;if(!o||a.length<199)return a.push([t,r]),this.size=++e.size,this;e=this.__data__=new i(a)}return e.set(t,r),this.size=e.size,this}},7473:t=>{var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5288:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},2428:(t,r,e)=>{var n=e(7534),o=e(346),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},6449:t=>{var r=Array.isArray;t.exports=r},4894:(t,r,e)=>{var n=e(1882),o=e(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3656:(t,r,e)=>{t=e.nmd(t);var n=e(9325),o=e(9935),i=r&&!r.nodeType&&r,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},2404:(t,r,e)=>{var n=e(270);t.exports=function(t,r){return n(t,r)}},1882:(t,r,e)=>{var n=e(2552),o=e(3805);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},7167:(t,r,e)=>{var n=e(4901),o=e(7301),i=e(6009),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},5950:(t,r,e)=>{var n=e(695),o=e(8984),i=e(4894);t.exports=function(t){return i(t)?n(t):o(t)}},3345:t=>{t.exports=function(){return[]}},9935:t=>{t.exports=function(){return!1}},7452:t=>{var r=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,r,e){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return k()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=h;var u=p(t,r,e);if("normal"===u.type){if(n=e.done?v:l,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=v,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",l="suspendedYield",h="executing",v="completed",y={};function d(){}function b(){}function g(){}var _={};_[i]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(A([])));w&&w!==e&&n.call(w,i)&&(_=w);var j=g.prototype=d.prototype=Object.create(_);function m(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function O(t,r){function e(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}function L(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,L(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function E(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:k}}function k(){return{value:r,done:!0}}return b.prototype=j.constructor=g,g.constructor=b,b.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===b||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},m(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new O(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(j),u(j,c,"Generator"),j[i]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},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 e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,r){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&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;E(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},3093:t=>{"use strict";t.exports=JSON.parse('{"name":"tocco-widget-utils","version":"3.12.41","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":"*"}}')}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,e),i.loaded=!0,i.exports}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),e.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);return(()=>{"use strict";e(5735);var t=e(6396),r=e.n(t),n="tqlMeta",o="toccoBackendUrl";var i=function(t){var r=function(t){return t.startsWith("http")?new URL(t):window.location}(t.currentScript.getAttribute("src"));return r.protocol+"//"+r.host},a=e(9092),c=e.n(a),u=e(2207),s=e.n(u),p=e(2404),f=e.n(p);const l=function(){var t;window.console&&(t=console).log.apply(t,arguments)},h=function(){window.console&&(console.error||console.log).apply(void 0,arguments)};function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}var y,d,b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Headers;n.set("Content-Type","application/json");var o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){r()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}({headers:n,method:"GET",credentials:"include"},e);return fetch(t,o)},g=function(t){var r=t.ok,e=t.status;return t.json().then((function(t){return{ok:r,status:e,body:t}}))},_=function(t){var r=t.backendUrl,o=t.assetUrl,i=e(3093).version,a={version:i,backendUrl:r,assetUrl:o},u=function(t){var r=t.backendUrl;return function(){var t=c()(s().mark((function t(e,n){var o,i;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={method:"POST",body:JSON.stringify(n)},t.next=3,b("".concat(r,"/nice2/rest/entities/2.0/").concat(e,"/search?_omitLinks=true"),o).then(g).then((function(t){return null==t?void 0:t.body})).catch((function(t){h("Could not execute tql.",t)}));case 3:return i=t.sent,t.abrupt("return",i);case 5:case"end":return t.stop()}}),t)})));return function(r,e){return t.apply(this,arguments)}}()}(a),p=window[n];if(p)return l("tocco-widget-utils - tql function is already initialized"),void(!f()(p,a)&&h("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:",a));window.tql=u,window[n]=a,l("tocco-widget-utils - v".concat(i," - tql"))};y=i(document),d={backendUrl:window[o]?window[o]:y,assetUrl:y},_(d)})(),{}})()));
|