@opencx/widget 5.0.0-beta.0 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Si,g as ue,r as R,a as J,d as S,P as ne,j as ye,
|
|
1
|
+
import{c as Si,g as ue,r as R,a as J,d as S,P as ne,j as ye,h as Im}from"./widget.js";var km=Array.isArray,Fe=km,Dm=typeof Si=="object"&&Si&&Si.Object===Object&&Si,Zh=Dm,Nm=Zh,Lm=typeof self=="object"&&self&&self.Object===Object&&self,Rm=Nm||Lm||Function("return this")(),dt=Rm,Bm=dt,Fm=Bm.Symbol,hi=Fm,Qs=hi,Jh=Object.prototype,zm=Jh.hasOwnProperty,Um=Jh.toString,vn=Qs?Qs.toStringTag:void 0;function Wm(e){var t=zm.call(e,vn),r=e[vn];try{e[vn]=void 0;var n=!0}catch{}var i=Um.call(e);return n&&(t?e[vn]=r:delete e[vn]),i}var Km=Wm,Gm=Object.prototype,Hm=Gm.toString;function qm(e){return Hm.call(e)}var Vm=qm,el=hi,Xm=Km,Ym=Vm,Zm="[object Null]",Jm="[object Undefined]",tl=el?el.toStringTag:void 0;function Qm(e){return e==null?e===void 0?Jm:Zm:tl&&tl in Object(e)?Xm(e):Ym(e)}var Pt=Qm;function eg(e){return e!=null&&typeof e=="object"}var $t=eg,tg=Pt,rg=$t,ng="[object Symbol]";function ig(e){return typeof e=="symbol"||rg(e)&&tg(e)==ng}var tn=ig,ag=Fe,og=tn,ug=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cg=/^\w*$/;function sg(e,t){if(ag(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||og(e)?!0:cg.test(e)||!ug.test(e)||t!=null&&e in Object(t)}var Kc=sg;function lg(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lt=lg;const rn=ue(Lt);var fg=Pt,pg=Lt,hg="[object AsyncFunction]",dg="[object Function]",vg="[object GeneratorFunction]",yg="[object Proxy]";function mg(e){if(!pg(e))return!1;var t=fg(e);return t==dg||t==vg||t==hg||t==yg}var Gc=mg;const q=ue(Gc);var gg=dt,bg=gg["__core-js_shared__"],xg=bg,Lo=xg,rl=function(){var e=/[^.]+$/.exec(Lo&&Lo.keys&&Lo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wg(e){return!!rl&&rl in e}var Og=wg,Ag=Function.prototype,Sg=Ag.toString;function _g(e){if(e!=null){try{return Sg.call(e)}catch{}try{return e+""}catch{}}return""}var Qh=_g,Pg=Gc,$g=Og,Tg=Lt,Eg=Qh,jg=/[\\^$.*+?()[\]{}|]/g,Mg=/^\[object .+?Constructor\]$/,Cg=Function.prototype,Ig=Object.prototype,kg=Cg.toString,Dg=Ig.hasOwnProperty,Ng=RegExp("^"+kg.call(Dg).replace(jg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lg(e){if(!Tg(e)||$g(e))return!1;var t=Pg(e)?Ng:Mg;return t.test(Eg(e))}var Rg=Lg;function Bg(e,t){return e==null?void 0:e[t]}var Fg=Bg,zg=Rg,Ug=Fg;function Wg(e,t){var r=Ug(e,t);return zg(r)?r:void 0}var sr=Wg,Kg=sr,Gg=Kg(Object,"create"),Ua=Gg,nl=Ua;function Hg(){this.__data__=nl?nl(null):{},this.size=0}var qg=Hg;function Vg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xg=Vg,Yg=Ua,Zg="__lodash_hash_undefined__",Jg=Object.prototype,Qg=Jg.hasOwnProperty;function eb(e){var t=this.__data__;if(Yg){var r=t[e];return r===Zg?void 0:r}return Qg.call(t,e)?t[e]:void 0}var tb=eb,rb=Ua,nb=Object.prototype,ib=nb.hasOwnProperty;function ab(e){var t=this.__data__;return rb?t[e]!==void 0:ib.call(t,e)}var ob=ab,ub=Ua,cb="__lodash_hash_undefined__";function sb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ub&&t===void 0?cb:t,this}var lb=sb,fb=qg,pb=Xg,hb=tb,db=ob,vb=lb;function nn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nn.prototype.clear=fb;nn.prototype.delete=pb;nn.prototype.get=hb;nn.prototype.has=db;nn.prototype.set=vb;var yb=nn;function mb(){this.__data__=[],this.size=0}var gb=mb;function bb(e,t){return e===t||e!==e&&t!==t}var Hc=bb,xb=Hc;function wb(e,t){for(var r=e.length;r--;)if(xb(e[r][0],t))return r;return-1}var Wa=wb,Ob=Wa,Ab=Array.prototype,Sb=Ab.splice;function _b(e){var t=this.__data__,r=Ob(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Sb.call(t,r,1),--this.size,!0}var Pb=_b,$b=Wa;function Tb(e){var t=this.__data__,r=$b(t,e);return r<0?void 0:t[r][1]}var Eb=Tb,jb=Wa;function Mb(e){return jb(this.__data__,e)>-1}var Cb=Mb,Ib=Wa;function kb(e,t){var r=this.__data__,n=Ib(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Db=kb,Nb=gb,Lb=Pb,Rb=Eb,Bb=Cb,Fb=Db;function an(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}an.prototype.clear=Nb;an.prototype.delete=Lb;an.prototype.get=Rb;an.prototype.has=Bb;an.prototype.set=Fb;var Ka=an,zb=sr,Ub=dt,Wb=zb(Ub,"Map"),qc=Wb,il=yb,Kb=Ka,Gb=qc;function Hb(){this.size=0,this.__data__={hash:new il,map:new(Gb||Kb),string:new il}}var qb=Hb;function Vb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Xb=Vb,Yb=Xb;function Zb(e,t){var r=e.__data__;return Yb(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ga=Zb,Jb=Ga;function Qb(e){var t=Jb(this,e).delete(e);return this.size-=t?1:0,t}var e0=Qb,t0=Ga;function r0(e){return t0(this,e).get(e)}var n0=r0,i0=Ga;function a0(e){return i0(this,e).has(e)}var o0=a0,u0=Ga;function c0(e,t){var r=u0(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var s0=c0,l0=qb,f0=e0,p0=n0,h0=o0,d0=s0;function on(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}on.prototype.clear=l0;on.prototype.delete=f0;on.prototype.get=p0;on.prototype.has=h0;on.prototype.set=d0;var Vc=on,ed=Vc,v0="Expected a function";function Xc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(v0);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Xc.Cache||ed),r}Xc.Cache=ed;var td=Xc;const y0=ue(td);var m0=td,g0=500;function b0(e){var t=m0(e,function(n){return r.size===g0&&r.clear(),n}),r=t.cache;return t}var x0=b0,w0=x0,O0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A0=/\\(\\)?/g,S0=w0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(O0,function(r,n,i,a){t.push(i?a.replace(A0,"$1"):n||r)}),t}),_0=S0;function P0(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Yc=P0,al=hi,$0=Yc,T0=Fe,E0=tn,ol=al?al.prototype:void 0,ul=ol?ol.toString:void 0;function rd(e){if(typeof e=="string")return e;if(T0(e))return $0(e,rd)+"";if(E0(e))return ul?ul.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var j0=rd,M0=j0;function C0(e){return e==null?"":M0(e)}var nd=C0,I0=Fe,k0=Kc,D0=_0,N0=nd;function L0(e,t){return I0(e)?e:k0(e,t)?[e]:D0(N0(e))}var id=L0,R0=tn;function B0(e){if(typeof e=="string"||R0(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ha=B0,F0=id,z0=Ha;function U0(e,t){t=F0(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[z0(t[r++])];return r&&r==n?e:void 0}var Zc=U0,W0=Zc;function K0(e,t,r){var n=e==null?void 0:W0(e,t);return n===void 0?r:n}var ad=K0;const qe=ue(ad);function G0(e){return e==null}var H0=G0;const Y=ue(H0);var q0=Pt,V0=Fe,X0=$t,Y0="[object String]";function Z0(e){return typeof e=="string"||!V0(e)&&X0(e)&&q0(e)==Y0}var J0=Z0;const nr=ue(J0);var od={exports:{}},ie={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|
package/dist-embed/script.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";const d=window,i=document.currentScript;function r(){if(!(i!=null&&i.src))return null;try{return new URL("widget.js",i.src).href}catch{return null}}function l(e,t){for(const n of e.queue.splice(0))t(n)}window.openCXWidgetVersion="5.0.0-beta.
|
|
1
|
+
(function(){"use strict";const d=window,i=document.currentScript;function r(){if(!(i!=null&&i.src))return null;try{return new URL("widget.js",i.src).href}catch{return null}}function l(e,t){for(const n of e.queue.splice(0))t(n)}window.openCXWidgetVersion="5.0.0-beta.2";let o=d.__openCXWidgetLoaderState__;const u=window.initOpenScript;if(typeof u=="function"&&(!o||u!==o.stub))o&&l(o,u);else{if(!o){const t=[];o={queue:t,stub:s=>t.push(s),moduleRequested:!1},d.__openCXWidgetLoaderState__=o}const e=o;if(window.initOpenScript!==e.stub&&(window.initOpenScript=e.stub),!e.moduleRequested){const t=r();if(!t)console.error("[opencx] could not resolve the widget module URL from this script tag; the widget will not load");else{e.moduleRequested=!0;const n=document.createElement("script");n.type="module",n.src=t;const s=i==null?void 0:i.nonce;s&&(n.nonce=s),n.onload=()=>{const c=window.initOpenScript;if(c===e.stub||typeof c!="function"){console.error("[opencx] the widget module loaded but did not install initOpenScript; check that",t,"is the widget build published beside script.js");return}l(e,c)},n.onerror=()=>{e.moduleRequested=!1,console.error("[opencx] failed to load the widget module from",t)},(document.head||document.documentElement).append(n)}}}})();
|