@signalwire/cfb 0.0.19 → 0.0.20-dev.202609041528.837337b.0
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/dist/main.js +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(xo,Ns){typeof exports=="object"&&typeof module<"u"?Ns(exports):typeof define=="function"&&define.amd?define(["exports"],Ns):(xo=typeof globalThis<"u"?globalThis:xo||self,Ns(xo.CFB={}))})(this,(function(xo){"use strict";/**
|
|
2
|
-
* Visual Builder v0.0.19 [
|
|
2
|
+
* Visual Builder v0.0.19 [837337b] (https://signalwire.com)
|
|
3
3
|
* Copyright 2018-2026 SignalWire.
|
|
4
4
|
*/
|
|
5
5
|
function Ns(e,t){for(var r=0;r<t.length;r++){const s=t[r];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(s,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sc={exports:{}},Os={},_c={exports:{}},Te={};var cp;function Rv(){if(cp)return Te;cp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.iterator;function y(k){return k===null||typeof k!="object"?null:(k=E&&k[E]||k["@@iterator"],typeof k=="function"?k:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,_={};function S(k,j,ee){this.props=k,this.context=j,this.refs=_,this.updater=ee||v}S.prototype.isReactComponent={},S.prototype.setState=function(k,j){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,j,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function R(){}R.prototype=S.prototype;function N(k,j,ee){this.props=k,this.context=j,this.refs=_,this.updater=ee||v}var b=N.prototype=new R;b.constructor=N,w(b,S.prototype),b.isPureReactComponent=!0;var T=Array.isArray,L=Object.prototype.hasOwnProperty,D={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function K(k,j,ee){var oe,se={},ue=null,pe=null;if(j!=null)for(oe in j.ref!==void 0&&(pe=j.ref),j.key!==void 0&&(ue=""+j.key),j)L.call(j,oe)&&!V.hasOwnProperty(oe)&&(se[oe]=j[oe]);var de=arguments.length-2;if(de===1)se.children=ee;else if(1<de){for(var he=Array(de),Re=0;Re<de;Re++)he[Re]=arguments[Re+2];se.children=he}if(k&&k.defaultProps)for(oe in de=k.defaultProps,de)se[oe]===void 0&&(se[oe]=de[oe]);return{$$typeof:e,type:k,key:ue,ref:pe,props:se,_owner:D.current}}function X(k,j){return{$$typeof:e,type:k.type,key:j,ref:k.ref,props:k.props,_owner:k._owner}}function G(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function te(k){var j={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ee){return j[ee]})}var re=/\/+/g;function J(k,j){return typeof k=="object"&&k!==null&&k.key!=null?te(""+k.key):j.toString(36)}function C(k,j,ee,oe,se){var ue=typeof k;(ue==="undefined"||ue==="boolean")&&(k=null);var pe=!1;if(k===null)pe=!0;else switch(ue){case"string":case"number":pe=!0;break;case"object":switch(k.$$typeof){case e:case t:pe=!0}}if(pe)return pe=k,se=se(pe),k=oe===""?"."+J(pe,0):oe,T(se)?(ee="",k!=null&&(ee=k.replace(re,"$&/")+"/"),C(se,j,ee,"",function(Re){return Re})):se!=null&&(G(se)&&(se=X(se,ee+(!se.key||pe&&pe.key===se.key?"":(""+se.key).replace(re,"$&/")+"/")+k)),j.push(se)),1;if(pe=0,oe=oe===""?".":oe+":",T(k))for(var de=0;de<k.length;de++){ue=k[de];var he=oe+J(ue,de);pe+=C(ue,j,ee,he,se)}else if(he=y(k),typeof he=="function")for(k=he.call(k),de=0;!(ue=k.next()).done;)ue=ue.value,he=oe+J(ue,de++),pe+=C(ue,j,ee,he,se);else if(ue==="object")throw j=String(k),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return pe}function z(k,j,ee){if(k==null)return k;var oe=[],se=0;return C(k,oe,"","",function(ue){return j.call(ee,ue,se++)}),oe}function H(k){if(k._status===-1){var j=k._result;j=j(),j.then(function(ee){(k._status===0||k._status===-1)&&(k._status=1,k._result=ee)},function(ee){(k._status===0||k._status===-1)&&(k._status=2,k._result=ee)}),k._status===-1&&(k._status=0,k._result=j)}if(k._status===1)return k._result.default;throw k._result}var W={current:null},P={transition:null},U={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:P,ReactCurrentOwner:D};function $(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:z,forEach:function(k,j,ee){z(k,function(){j.apply(this,arguments)},ee)},count:function(k){var j=0;return z(k,function(){j++}),j},toArray:function(k){return z(k,function(j){return j})||[]},only:function(k){if(!G(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Te.Component=S,Te.Fragment=r,Te.Profiler=i,Te.PureComponent=N,Te.StrictMode=s,Te.Suspense=f,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,Te.act=$,Te.cloneElement=function(k,j,ee){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var oe=w({},k.props),se=k.key,ue=k.ref,pe=k._owner;if(j!=null){if(j.ref!==void 0&&(ue=j.ref,pe=D.current),j.key!==void 0&&(se=""+j.key),k.type&&k.type.defaultProps)var de=k.type.defaultProps;for(he in j)L.call(j,he)&&!V.hasOwnProperty(he)&&(oe[he]=j[he]===void 0&&de!==void 0?de[he]:j[he])}var he=arguments.length-2;if(he===1)oe.children=ee;else if(1<he){de=Array(he);for(var Re=0;Re<he;Re++)de[Re]=arguments[Re+2];oe.children=de}return{$$typeof:e,type:k.type,key:se,ref:ue,props:oe,_owner:pe}},Te.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:a,_context:k},k.Consumer=k},Te.createElement=K,Te.createFactory=function(k){var j=K.bind(null,k);return j.type=k,j},Te.createRef=function(){return{current:null}},Te.forwardRef=function(k){return{$$typeof:u,render:k}},Te.isValidElement=G,Te.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:H}},Te.memo=function(k,j){return{$$typeof:p,type:k,compare:j===void 0?null:j}},Te.startTransition=function(k){var j=P.transition;P.transition={};try{k()}finally{P.transition=j}},Te.unstable_act=$,Te.useCallback=function(k,j){return W.current.useCallback(k,j)},Te.useContext=function(k){return W.current.useContext(k)},Te.useDebugValue=function(){},Te.useDeferredValue=function(k){return W.current.useDeferredValue(k)},Te.useEffect=function(k,j){return W.current.useEffect(k,j)},Te.useId=function(){return W.current.useId()},Te.useImperativeHandle=function(k,j,ee){return W.current.useImperativeHandle(k,j,ee)},Te.useInsertionEffect=function(k,j){return W.current.useInsertionEffect(k,j)},Te.useLayoutEffect=function(k,j){return W.current.useLayoutEffect(k,j)},Te.useMemo=function(k,j){return W.current.useMemo(k,j)},Te.useReducer=function(k,j,ee){return W.current.useReducer(k,j,ee)},Te.useRef=function(k){return W.current.useRef(k)},Te.useState=function(k){return W.current.useState(k)},Te.useSyncExternalStore=function(k,j,ee){return W.current.useSyncExternalStore(k,j,ee)},Te.useTransition=function(){return W.current.useTransition()},Te.version="18.3.1",Te}var up;function Ts(){return up||(up=1,_c.exports=Rv()),_c.exports}var dp;function Nv(){if(dp)return Os;dp=1;var e=Ts(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(u,f,p){var m,E={},y=null,v=null;p!==void 0&&(y=""+p),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(v=f.ref);for(m in f)s.call(f,m)&&!a.hasOwnProperty(m)&&(E[m]=f[m]);if(u&&u.defaultProps)for(m in f=u.defaultProps,f)E[m]===void 0&&(E[m]=f[m]);return{$$typeof:t,type:u,key:y,ref:v,props:E,_owner:i.current}}return Os.Fragment=r,Os.jsx=c,Os.jsxs=c,Os}var fp;function Ov(){return fp||(fp=1,Sc.exports=Nv()),Sc.exports}var h=Ov(),Tv=Object.create,wc=Object.defineProperty,Cv=Object.getOwnPropertyDescriptor,Av=Object.getOwnPropertyNames,Iv=Object.getPrototypeOf,bv=Object.prototype.hasOwnProperty,Lv=(e,t,r)=>t in e?wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dv=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},kv=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Av(t))!bv.call(e,i)&&i!==r&&wc(e,i,{get:()=>t[i],enumerable:!(s=Cv(t,i))||s.enumerable});return e},Mv=(e,t,r)=>(r=e!=null?Tv(Iv(e)):{},kv(wc(r,"default",{value:e,enumerable:!0}),e)),fr=(e,t,r)=>Lv(e,typeof t!="symbol"?t+"":t,r),Pv=Dv((e,t)=>{(function(r,s){"use strict";typeof define=="function"&&define.amd?define(s):typeof t=="object"&&t.exports?t.exports=s():r.log=s()})(e,function(){"use strict";var r=function(){},s="undefined",i=typeof window!==s&&typeof window.navigator!==s&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"];function c(S,R){var N=S[R];if(typeof N.bind=="function")return N.bind(S);try{return Function.prototype.bind.call(N,S)}catch{return function(){return Function.prototype.apply.apply(N,[S,arguments])}}}function u(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function f(S){return S==="debug"&&(S="log"),typeof console===s?!1:S==="trace"&&i?u:console[S]!==void 0?c(console,S):console.log!==void 0?c(console,"log"):r}function p(S,R){for(var N=0;N<a.length;N++){var b=a[N];this[b]=N<S?r:this.methodFactory(b,S,R)}this.log=this.debug}function m(S,R,N){return function(){typeof console!==s&&(p.call(this,R,N),this[S].apply(this,arguments))}}function E(S,R,N){return f(S)||m.apply(this,arguments)}function y(S,R,N){var b=this,T;R=R??"WARN";var L="loglevel";typeof S=="string"?L+=":"+S:typeof S=="symbol"&&(L=void 0);function D(G){var te=(a[G]||"silent").toUpperCase();if(!(typeof window===s||!L)){try{window.localStorage[L]=te;return}catch{}try{window.document.cookie=encodeURIComponent(L)+"="+te+";"}catch{}}}function V(){var G;if(!(typeof window===s||!L)){try{G=window.localStorage[L]}catch{}if(typeof G===s)try{var te=window.document.cookie,re=te.indexOf(encodeURIComponent(L)+"=");re!==-1&&(G=/^([^;]+)/.exec(te.slice(re))[1])}catch{}return b.levels[G]===void 0&&(G=void 0),G}}function K(){if(!(typeof window===s||!L)){try{window.localStorage.removeItem(L);return}catch{}try{window.document.cookie=encodeURIComponent(L)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}b.name=S,b.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},b.methodFactory=N||E,b.getLevel=function(){return T},b.setLevel=function(G,te){if(typeof G=="string"&&b.levels[G.toUpperCase()]!==void 0&&(G=b.levels[G.toUpperCase()]),typeof G=="number"&&G>=0&&G<=b.levels.SILENT){if(T=G,te!==!1&&D(G),p.call(b,G,S),typeof console===s&&G<b.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+G},b.setDefaultLevel=function(G){R=G,V()||b.setLevel(G,!1)},b.resetLevel=function(){b.setLevel(R,!1),K()},b.enableAll=function(G){b.setLevel(b.levels.TRACE,G)},b.disableAll=function(G){b.setLevel(b.levels.SILENT,G)};var X=V();X==null&&(X=R),b.setLevel(X,!1)}var v=new y,w={};v.getLogger=function(S){if(typeof S!="symbol"&&typeof S!="string"||S==="")throw new TypeError("You must supply a name when creating a logger.");var R=w[S];return R||(R=w[S]=new y(S,v.getLevel(),v.methodFactory)),R};var _=typeof window!==s?window.log:void 0;return v.noConflict=function(){return typeof window!==s&&window.log===v&&(window.log=_),v},v.getLoggers=function(){return w},v.default=v,v})}),Uv="/api/ai/ai_agents",Fv="/api/swml_scripts",jv=Mv(Pv()),Vv=()=>new Date().toISOString(),Cs=jv.default.getLogger("signalwire"),$v=Cs.methodFactory;Cs.methodFactory=(e,t,r)=>{let s=$v(e,t,r);return function(...i){i.unshift(Vv(),"-"),s(...i)}};var Hv=Cs.getLevel();Cs.setLevel(Hv);var Ge=()=>Cs,Bv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",zv=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=Bv[r[e]&63];return t},Qi=Ge(),Wv=e=>typeof e=="object"&&e!==null&&"id"in e&&"type"in e&&"data"in e&&"position"in e,Gv=e=>{if(!Wv(e))throw Qi.error("nodeToDBShape: Invalid node",e),new Error;return{data:e.data,id:e.id,position:e.position,type:e.type}},Yv=e=>typeof e=="object"&&e!==null&&"id"in e&&"source"in e&&"sourceHandle"in e&&"target"in e&&"targetHandle"in e,Kv=e=>{if(!Yv(e))throw Qi.error("edgeToDBShape: Invalid edge",e),new Error;return{id:e.id,source:e.source,sourceHandle:e.sourceHandle??null,target:e.target,targetHandle:e.targetHandle??null}},pp=e=>e?.trim()?.toLowerCase(),So=e=>e.replace(/\s/g,""),Rc=e=>{if(!(!e||typeof e=="string"&&e.trim().length===0))try{return JSON.parse(e)}catch(t){return Qi.error(t),typeof e=="string"?e.trim():e}},Nc=e=>typeof e=="string"?e.trim():typeof e=="number"&&isNaN(e)||e==null||typeof e=="object"||typeof e=="function"||typeof e=="symbol"?"":String(e),Xv=e=>e.split(",").map(t=>t.trim()).filter(Boolean),qi=e=>{let t=Rc(e);return t&&typeof t=="object"&&Object.keys(t).length?t:void 0},De=()=>zv(),Oc=(e,t)=>{try{let r=new URL(e);return t&&(Object.entries(t).forEach(([s,i])=>{i&&r.searchParams.set(s,String(i))}),r.searchParams.sort()),r.toString()}catch(r){throw Qi.error("buildUrlWithParams",r),r}},hp=e=>{let t=e===void 0?void 0:parseInt(e,10);return t===void 0||Number.isNaN(t)||t<=0?void 0:t},Tc=({callStateEvents:e,callStateUrl:t,connections:r,defaultFrom:s,defaultTimeout:i,callOrder:a})=>{let c=hp(i),u=So(s),f=Xv(e),p=t?.trim(),m=r.map(({connectConfirmUrl:y,connectConfirmEnabled:v,connectFrom:w,connectTimeout:_,connectTo:S})=>({call_state_events:f.length>0?f:void 0,call_state_url:p||void 0,confirm:v?y:void 0,from:So(w)||u||"%{call.from}",timeout:hp(_)??c,to:So(S)}));m.length||m.push({from:"%{call.from}",timeout:void 0,to:""});let E={switch:{case:{connected:[]},default:[{switch:{case:{busy:[],decline:[],error:[],noAnswer:[]},default:["hangup"],variable:"connect_failed_reason"}}],variable:"connect_result"}};switch(a){case"single":return[{connect:m[0]},E];case"serial":return[{connect:{serial:m}},E];case"parallel":return[{connect:{parallel:m}},E];default:return Ge().warn(`The type '${a}' is not supported yet.`),[{connect:m[0]},E]}},Qv=/\bmale\b/i,qv=/\bfemale\b/i,Jv=e=>{if(e){if(qv.test(e))return"female";if(Qv.test(e))return"male"}},mp=(e,t)=>{if(typeof e=="object"&&!Array.isArray(e)){t.language&&(e.say_language=t.language);let r=Jv(t.gender);r&&(e.say_gender=r),t.voice&&(e.say_voice=t.voice)}return e},gp=(e,t)=>{if(typeof e=="object"&&!Array.isArray(e)){let r="url"in e?e.url:e.play,s,i=t.text?.trim();if(Array.isArray(t.url)){let a=t.url.map(c=>c?.trim()).filter(Boolean);s=a?.length===1?a[0]:a}else s=t.url?.trim();(!t.selected||t.selected==="url")&&s?r=s:(!t.selected||t.selected==="text")&&i&&(r=`say:${i}`),"url"in e?e.url=r:e.play=r}return e},Zv={aiAgent:({data:{agent:e}})=>({ai:{agent:e}}),answer:({data:{maxDuration:e}})=>e?{answer:{max_duration:e}}:"answer",cond:()=>({cond:[]}),condRequest:({data:e})=>[{request:{body:Rc(e.body),connect_timeout:e.connectTimeout,headers:qi(e.headers),method:e.method,save_variables:e.saveVariables,timeout:e.timeout,url:e.url}},{switch:{case:{success:[]},default:[],variable:"request_result"}}],executeSWML:({data:e})=>({execute:{dest:e.dest,meta:qi(e.meta),params:qi(e.params),result:[]}}),forwardAddress:({data:e})=>Tc(e),forwardPhone:({data:e})=>Tc(e),forwardResource:({data:e})=>Tc(e),handleCall:()=>"start",hangup:({data:{reason:e}})=>e?{hangup:{reason:e}}:"hangup",play:({data:e})=>{let{volume:t}=e,r=mp(gp({url:"say:Unknown TTS"},e),e);return t&&(r.volume=t),{play:r}},promptPlay:({data:e})=>{let{digitTimeout:t,initialTimeout:r,options:s,volume:i}=e,a=mp(gp({play:"say:Unknown value"},e),e);i&&(a.volume=i),r&&(a.initial_timeout=parseInt(r,10)),t&&(a.digit_timeout=parseInt(t,10));let c=s.reduce((u,f)=>{let p=pp(f.command);p&&u.speechHints.push(p);let m=So(f.digit);return m&&(u.maxDigits=Math.max(u.maxDigits,m.length)),u},{maxDigits:-1,speechHints:[]});return c.speechHints.length&&(a.speech_hints=c.speechHints,a.speech_language="en-US"),c.maxDigits>0&&(a.max_digits=c.maxDigits),[{prompt:a},{switch:{case:{failed:[{play:"say:Error while gathering input."},"hangup"],no_input:[],no_match:[]},default:[{switch:{case:{},default:[],variable:"prompt_value"}}],variable:"prompt_result"}}]},record:({data:e})=>{let t={beep:e.beep,direction:e.direction,format:e.format,input_sensitivity:e.inputSensitivity,stereo:e.stereo,terminators:e.terminators?.trim()||void 0};return e.endSilenceTimeout&&(t.end_silence_timeout=parseInt(e.endSilenceTimeout,10)),e.initialTimeout&&(t.initial_timeout=parseInt(e.initialTimeout,10)),e.maxLength&&(t.max_length=parseInt(e.maxLength,10)),{record:t}},recordCallStart:({data:e})=>({record_call:{beep:e.beep,control_id:e.controlId,direction:e.direction,format:e.format,input_sensitivity:e.inputSensitivity,stereo:e.stereo,terminators:e.terminators?.trim()||void 0}}),recordCallStop:({data:e})=>({stop_record_call:e.controlId}),request:({data:e})=>[{request:{body:Rc(e.body),connect_timeout:e.connectTimeout,headers:qi(e.headers),method:e.method,save_variables:e.saveVariables,timeout:e.timeout,url:e.url}},{switch:{case:{success:[]},default:[],variable:"request_result"}}],sendSms:({data:e})=>{let{fromNumber:t,toNumber:r,body:s}=e;return{send_sms:{body:s,from_number:So(t),to_number:So(r)}}},set:({data:{variables:e}})=>{let t={};return e.forEach(({key:r,value:s})=>{t[r]=s}),{set:t}},unset:({data:{variables:e}})=>({unset:e.map(({key:t})=>t)})},zr=e=>{try{return Zv[e.__type](e.node)}catch(t){throw Ge().error("Unknown Verb",e),t}},ex="1.0.0",tx=e=>{let t=Ge(),r=new Set,s=new Map,i=new Set,a=new Map([["main",[]]]),c=new Map,u="",f=T=>a.has(T),p=T=>i.has(T),m=T=>i.add(T);e.nodes.forEach(T=>{s.set(T.id,{children:[],node:T}),T.type==="handleCall"&&(u=T.id)}),e.edges.forEach(T=>{let L=s.get(T.source),D=s.get(T.target);if(!L||!D)return t.warn("Invalid edge:",T);L.children.push(T.target),T.sourceHandle&&c.set(T.sourceHandle,D),r.has(T.target)&&a.set(T.target,[]),r.add(T.target)});let E=[...a.keys()],y=(T,L)=>{let D=c.get(L.id);if(D){let V=[];a.set(L.id,V),L.digit&&(T[L.digit]=V);let K=pp(L.command);K&&(T[K]=V);let X=f(D.node.id);if(X){let G={transfer:D.node.id};L.digit&&T[L.digit]?.push(G),K&&!T[K]?.includes(G)&&T[K]?.push(G)}R({current:D,sectionName:X?D.node.id:L.id})}return T},v=(T,L)=>{let D=c.get(L.id);if(D){let V=[];a.set(L.id,V),T[L.result]=V;let K=f(D.node.id);K&&T[L.result]?.push({transfer:D.node.id}),R({current:D,sectionName:K?D.node.id:L.id})}return T},w={else:(T,L)=>{if(L.result==="success")return T;let D=c.get(L.id);if(D){let V=[];a.set(L.id,V),T=V;let K=f(D.node.id);K&&T.push({transfer:D.node.id}),R({current:D,sectionName:K?D.node.id:L.id})}return T},then:(T,L)=>{if(L.result!=="success")return T;let D=c.get(L.id);if(D){let V=[];a.set(L.id,V),T=V;let K=f(D.node.id);K&&T.push({transfer:D.node.id}),R({current:D,sectionName:K?D.node.id:L.id})}return T}},_={fallback:T=>{let L=c.get(T),D={else:[]};if(L){let V=[];a.set(T,V),D.else=V;let K=f(L.node.id);K&&D.else.push({transfer:L.node.id}),R({current:L,sectionName:K?L.node.id:T})}return D},options:(T,L)=>{let D=c.get(L.id),V={then:[],when:L.value};if(D){let K=[];a.set(L.id,K),V.then=K;let X=f(D.node.id);X&&V.then.push({transfer:D.node.id}),T.push(V),R({current:D,sectionName:X?D.node.id:L.id})}return T}},S=T=>{let L=c.get(T),D=[];if(L){let V=[];a.set(T,V),D=V;let K=f(L.node.id);K&&D.push({transfer:L.node.id}),R({current:L,sectionName:K?L.node.id:T})}return D},R=({sectionName:T,current:L})=>{if(p(L.node.id))return;m(L.node.id);let D=a.get(T);if(!D){t.warn("Unknown section name:",T);return}switch(L.node.type){case"promptPlay":{let V=zr({__type:L.node.type,node:L.node});if(!Array.isArray(V)){t.warn("Invalid gather node",V);return}L.node.data?.results?.length&&(V[1].switch.case={...V[1].switch.case,...L.node.data.results.reduce(v,{})}),V[1].switch.default[0].switch.case=L.node.data.options.reduce(y,{}),V[1].switch.case?.no_match&&(V[1].switch.default[0].switch.default=V[1].switch.case.no_match),D.push(...V);return}case"cond":{let V=zr({__type:L.node.type,node:L.node});V.cond=L.node.data.options.reduce(_.options,[]),V.cond.push(_.fallback(L.node.data.fallback)),D.push(V);return}case"condRequest":{let V=zr({__type:L.node.type,node:L.node}),K=L.node.data.options.reduce(_.options,[]),X=_.fallback(L.node.data.fallback),G={cond:[...K,X]};V[1].switch.case.success=[G],V[1].switch.default=S(L.node.data.error),D.push(...V);return}case"executeSWML":{let V=zr({__type:L.node.type,node:L.node}),K=L.node.data.options.reduce(_.options,[]),X=_.fallback(L.node.data.fallback);V.execute.result=[...K,X],D.push(V);return}case"forwardPhone":case"forwardAddress":case"forwardResource":{let V=zr({__type:L.node.type,node:L.node});if(!Array.isArray(V)){t.warn("Invalid connect node",V);return}L.node.data.options.length&&(V[1].switch.case.connected=L.node.data.options.reduce(w.then,[]),V[1].switch.default[0].switch.case=L.node.data.options.filter(K=>K.result!=="success").reduce(v,{})),D.push(...V);return}case"request":{let V=zr({__type:L.node.type,node:L.node});if(!Array.isArray(V)){t.warn("Invalid request node",V);return}V[1].switch.case.success=L.node.data.options.reduce(w.then,[]),V[1].switch.default=L.node.data.options.reduce(w.else,[]),D.push(...V);return}default:{let V=zr({__type:L.node.type,node:L.node});L.node.type!=="handleCall"&&D.push(V),L.children.forEach(K=>{let X=s.get(K);if(!X)return t.warn("Invalid Child Node",K);let G=f(K);G&&D.push({transfer:K}),R({current:X,sectionName:G?K:T})});break}}},N=s.get(u);N&&R({current:N,sectionName:"main"});let b={};return E.forEach(T=>{let L=a.get(T);L&&(b[T]=L)}),t.debug("sections",JSON.stringify(b)),{sections:b,version:ex}},nx=class _v extends Error{constructor(t,r){super(r),fr(this,"code",t),fr(this,"message",r),fr(this,"name","AuthError"),Object.setPrototypeOf(this,_v.prototype)}},rx=class wv extends Error{constructor(t,r,s){super(r),fr(this,"code",t),fr(this,"message",r),fr(this,"response",s),fr(this,"name","HttpError"),Object.setPrototypeOf(this,wv.prototype)}},Ep=Ge();async function ox(e,t){let r=await fetch(e,t);if(!r.ok){if(r.status===401)throw new nx(r.status,"Unauthorized");let s;try{s=await r.json()}catch(a){Ep.error(a)}let i=s?.errors?JSON.stringify(s.errors):`Error Code: ${r.status}`;throw new rx(r.status,i,s)}try{r.parsedBody??(r.parsedBody=await r.json())}catch(s){Ep.error(s)}return r}var sx=({timeout:e=3e4,...t},r=ox)=>async(s,i)=>{let a={...i?.body?{"Content-Type":"application/json"}:{},...t.headers,...i?.headers},c=lx({...t,...i,headers:a});c.credentials="same-origin";let u;if(e){let f=new AbortController,p=f.signal;c.signal=p,u=setTimeout(()=>{f.abort()},e)}try{return{body:(await r(ax({searchParams:i?.searchParams,url:s}),c)).parsedBody}}finally{u&&clearTimeout(u)}},ix=e=>typeof e=="string"?e:JSON.stringify(e),lx=e=>Object.entries(e).reduce((t,[r,s])=>r==="body"?{...t,body:ix(s)}:s!=null?{...t,[r]:s}:t,{}),ax=({url:e,searchParams:t})=>{let r=new URL(e);return t&&Object.entries(t).forEach(([s,i])=>{i!=null&&r.searchParams.append(s,i)}),r.toString()},Cc=e=>{let t=Ge(),r=sx(e);return{deployFlow:async s=>{if(!e.deployFlowURL)throw new Error("deployFlowURL is not defined");let i={document_version:s.documentVersion},a=await r(e.deployFlowURL,{body:i,method:"POST"});return t.info("deployFlow",a.body),a.body},getAiAgents:async()=>{try{if(!e.getAiAgentsURL)throw new Error("getAiAgentsURL is not defined");let{body:s}=await r(e.getAiAgentsURL);return t.info("getAiAgents",s),s}catch(s){throw t.error("Could not load AI agents. URL:",e.getAiAgentsURL),s}},getFlow:async()=>{try{if(!e.getFlowURL)throw new Error("getFlowURL is not defined");let{body:s}=await r(e.getFlowURL);return t.info("getFlow",s),s}catch(s){if(t.error("Could not load flow. URL:",e.getFlowURL),s instanceof Error)throw s;return{}}},getFlowVersions:async(s={})=>{if(!e.deployFlowURL)throw new Error("deployFlowURL is not defined");let{pageNumber:i,pageSize:a}=s,c=Oc(e.deployFlowURL,{page_number:i,page_size:a});try{let{body:u}=await r(c);return t.info("getFlowVersions",u),u.data}catch(u){throw t.error("Could not load flow versions. URL:",c),u}},getSwmlScripts:async(s={})=>{try{if(!e.getSwmlScriptsURL)throw new Error("getSwmlScriptsURL is not defined");let{ids:i,name:a}=s,c=Oc(e.getSwmlScriptsURL,{ids:i,name:a}),{body:u}=await r(c);return t.info("getSwmlScripts",u),u}catch(i){throw t.error("Could not load SWML scripts. URL:",e.getSwmlScriptsURL),i}},putFlow:async s=>{if(!e.updateFlowURL)throw new Error("updateFlowURL is not defined");let i={type:"call_flow",document_version:s.documentVersion+1,flow_data:{flowDataVersion:s.flowDataVersion,nodes:s.nodes.map(Gv),edges:s.edges.map(Kv)},relayml:tx({nodes:s.nodes,edges:s.edges})},a=await r(e.updateFlowURL,{body:i,method:"PUT"});return t.info("putFlow",a.body),a.body}}},Ac=[{from:"0.0.0",to:"0.0.1",run:e=>(e.nodes=e.nodes.map(t=>("missingRequiredParams"in t.data&&delete t.data.missingRequiredParams,t.data.initial=!1,"initialTimeout"in t.data&&(t.data.initialTimeout=Nc(t.data.initialTimeout)),(t.type==="play"||t.type==="promptPlay")&&"selected"in t.data&&!t.data.selected&&(t.data.url?t.data.selected="url":t.data.text&&(t.data.selected="text")),t)),e)},{from:"0.0.1",to:"0.0.2",run:e=>(e.nodes=e.nodes.map(t=>{if("terminators"in t.data){let{terminators:r=""}=t.data;r.trim()||delete t.data.terminators}return t}),e)},{from:"0.0.2",to:"0.0.3",run:e=>(e.nodes=e.nodes.map(t=>{if(t.type==="forwardAddress"||t.type==="forwardPhone"||t.type==="forwardResource"){let{destinations:r=[],destinationType:s,initial:i,options:a,sessionTimeout:c,type:u,valid:f}=t.data,p=r.map(m=>({connectFrom:"",connectTimeout:"",connectTo:m,id:De()}));t.data={callOrder:u,connections:p,defaultFrom:"",defaultTimeout:c?`${c}`:"",destinationType:s,initial:i,options:a,valid:f===void 0||f}}return t}),e)},{from:"0.0.3",to:"0.0.4",run:e=>(e.nodes=e.nodes.map(t=>((t.type==="answer"||t.type==="handleCall"||t.type==="hangup")&&(t.data.valid=!0),t)),e)},{from:"0.0.4",to:"0.0.5",run:e=>(e.nodes=e.nodes.map(t=>((t.type==="forwardAddress"||t.type==="forwardPhone"||t.type==="forwardResource")&&(t.data={callStateEvents:"",callStateUrl:"",...t.data}),t)),e)},{from:"0.0.5",to:"0.0.6",run:e=>(e&&"builderVersion"in e&&typeof e.builderVersion=="string"&&(e.flowDataVersion=e.builderVersion,delete e.builderVersion),e)},{from:"0.0.6",to:"0.0.7",run:e=>(e.nodes=e.nodes.map(t=>{if((t.type==="forwardAddress"||t.type==="forwardPhone"||t.type==="forwardResource")&&"connections"in t.data&&"connections"in t.data){let r=()=>({connectFrom:"",connectTimeout:"",connectTo:"",id:De()});t.data.connections.length===0&&(t.data.connections=[r()],t.data.valid=!1)}return t}),e)},{from:"0.0.7",to:"0.0.8",run:e=>(e.nodes=e.nodes.map(t=>(t.type==="promptPlay"&&!("digitTimeout"in t.data)&&(t.data={...t.data,digitTimeout:""}),t)),e)},{from:"0.0.8",to:"0.0.9",run:e=>(e.nodes=e.nodes.map(t=>(t.type==="record"&&(t.data={endSilenceTimeout:"",initialTimeout:"",maxLength:"",...t.data}),t)),e)},{from:"0.0.9",to:"0.0.10",run:e=>(e.nodes=e.nodes.map(t=>((t.type==="forwardAddress"||t.type==="forwardPhone"||t.type==="forwardResource")&&"connections"in t.data&&"connections"in t.data&&(t.data.connections=t.data.connections.map(r=>({connectConfirmDisplayName:"",connectConfirmEnabled:!1,connectConfirmId:"",connectConfirmUrl:"",...r}))),t)),e)}],cx=e=>{let t=Ac.findIndex(r=>r.from===e);return t>=0?Ac.slice(t):Ac},yp=class{constructor({dbRecord:e}){fr(this,"dbRecord"),this.dbRecord=e}get logger(){return Ge()}get flowData(){return this.dbRecord.flow_data}set flowData(e){this.dbRecord.flow_data=e}updateToVersion(e){this.flowData&&("builderVersion"in this.flowData?this.flowData.builderVersion=e:"flowDataVersion"in this.flowData&&(this.flowData.flowDataVersion=e))}versionFrom(){let e="";return this.flowData&&("builderVersion"in this.flowData?e=this.flowData.builderVersion:"flowDataVersion"in this.flowData&&(e=this.flowData.flowDataVersion)),e}migrateTo(e){let t=this.versionFrom();if(this.flowData&&t!==e){this.logger.info(`Migrate data from "${t}" to "${e}"`);let r=cx(t);for(let{run:s,to:i}of r){try{this.flowData=s(this.flowData),this.updateToVersion(i)}catch(a){console.error("Run migration:",a)}if(i===e)break}this.logger.debug("Migrated flow data",this.flowData)}else this.logger.info("Flow data up to date. No need to migrate!");return this.dbRecord}},I=Ts();const ne=Xi(I),vp=Ns({__proto__:null,default:ne},[I]);var Ji={},Ic={exports:{}},Ot={},bc={exports:{}},Lc={};var xp;function ux(){return xp||(xp=1,(function(e){function t(P,U){var $=P.length;P.push(U);e:for(;0<$;){var k=$-1>>>1,j=P[k];if(0<i(j,U))P[k]=U,P[$]=j,$=k;else break e}}function r(P){return P.length===0?null:P[0]}function s(P){if(P.length===0)return null;var U=P[0],$=P.pop();if($!==U){P[0]=$;e:for(var k=0,j=P.length,ee=j>>>1;k<ee;){var oe=2*(k+1)-1,se=P[oe],ue=oe+1,pe=P[ue];if(0>i(se,$))ue<j&&0>i(pe,se)?(P[k]=pe,P[ue]=$,k=ue):(P[k]=se,P[oe]=$,k=oe);else if(ue<j&&0>i(pe,$))P[k]=pe,P[ue]=$,k=ue;else break e}}return U}function i(P,U){var $=P.sortIndex-U.sortIndex;return $!==0?$:P.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],p=[],m=1,E=null,y=3,v=!1,w=!1,_=!1,S=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(P){for(var U=r(p);U!==null;){if(U.callback===null)s(p);else if(U.startTime<=P)s(p),U.sortIndex=U.expirationTime,t(f,U);else break;U=r(p)}}function T(P){if(_=!1,b(P),!w)if(r(f)!==null)w=!0,H(L);else{var U=r(p);U!==null&&W(T,U.startTime-P)}}function L(P,U){w=!1,_&&(_=!1,R(K),K=-1),v=!0;var $=y;try{for(b(U),E=r(f);E!==null&&(!(E.expirationTime>U)||P&&!te());){var k=E.callback;if(typeof k=="function"){E.callback=null,y=E.priorityLevel;var j=k(E.expirationTime<=U);U=e.unstable_now(),typeof j=="function"?E.callback=j:E===r(f)&&s(f),b(U)}else s(f);E=r(f)}if(E!==null)var ee=!0;else{var oe=r(p);oe!==null&&W(T,oe.startTime-U),ee=!1}return ee}finally{E=null,y=$,v=!1}}var D=!1,V=null,K=-1,X=5,G=-1;function te(){return!(e.unstable_now()-G<X)}function re(){if(V!==null){var P=e.unstable_now();G=P;var U=!0;try{U=V(!0,P)}finally{U?J():(D=!1,V=null)}}else D=!1}var J;if(typeof N=="function")J=function(){N(re)};else if(typeof MessageChannel<"u"){var C=new MessageChannel,z=C.port2;C.port1.onmessage=re,J=function(){z.postMessage(null)}}else J=function(){S(re,0)};function H(P){V=P,D||(D=!0,J())}function W(P,U){K=S(function(){P(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,H(L))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(P){switch(y){case 1:case 2:case 3:var U=3;break;default:U=y}var $=y;y=U;try{return P()}finally{y=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,U){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var $=y;y=P;try{return U()}finally{y=$}},e.unstable_scheduleCallback=function(P,U,$){var k=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?k+$:k):$=k,P){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=$+j,P={id:m++,callback:U,priorityLevel:P,startTime:$,expirationTime:j,sortIndex:-1},$>k?(P.sortIndex=$,t(p,P),r(f)===null&&P===r(p)&&(_?(R(K),K=-1):_=!0,W(T,$-k))):(P.sortIndex=j,t(f,P),w||v||(w=!0,H(L))),P},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(P){var U=y;return function(){var $=y;y=U;try{return P.apply(this,arguments)}finally{y=$}}}})(Lc)),Lc}var Sp;function dx(){return Sp||(Sp=1,bc.exports=ux()),bc.exports}var _p;function fx(){if(_p)return Ot;_p=1;var e=Ts(),t=dx();function r(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+n+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function a(n,o){c(n,o),c(n+"Capture",o)}function c(n,o){for(i[n]=o,n=0;n<o.length;n++)s.add(o[n])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},E={};function y(n){return f.call(E,n)?!0:f.call(m,n)?!1:p.test(n)?E[n]=!0:(m[n]=!0,!1)}function v(n,o,l,d){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function w(n,o,l,d){if(o===null||typeof o>"u"||v(n,o,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function _(n,o,l,d,g,x,O){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=l,this.propertyName=n,this.type=o,this.sanitizeURL=x,this.removeEmptyString=O}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){S[n]=new _(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];S[o]=new _(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){S[n]=new _(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){S[n]=new _(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){S[n]=new _(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){S[n]=new _(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){S[n]=new _(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){S[n]=new _(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){S[n]=new _(n,5,!1,n.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function N(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var o=n.replace(R,N);S[o]=new _(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(R,N);S[o]=new _(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(R,N);S[o]=new _(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){S[n]=new _(n,1,!1,n.toLowerCase(),null,!1,!1)}),S.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){S[n]=new _(n,1,!1,n.toLowerCase(),null,!0,!0)});function b(n,o,l,d){var g=S.hasOwnProperty(o)?S[o]:null;(g!==null?g.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(w(o,l,g,d)&&(l=null),d||g===null?y(o)&&(l===null?n.removeAttribute(o):n.setAttribute(o,""+l)):g.mustUseProperty?n[g.propertyName]=l===null?g.type===3?!1:"":l:(o=g.attributeName,d=g.attributeNamespace,l===null?n.removeAttribute(o):(g=g.type,l=g===3||g===4&&l===!0?"":""+l,d?n.setAttributeNS(d,o,l):n.setAttribute(o,l))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,L=Symbol.for("react.element"),D=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),te=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),P=Symbol.iterator;function U(n){return n===null||typeof n!="object"?null:(n=P&&n[P]||n["@@iterator"],typeof n=="function"?n:null)}var $=Object.assign,k;function j(n){if(k===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);k=o&&o[1]||""}return`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalwire/cfb",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20-dev.202609041528.837337b.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@floating-ui/react": "^0.27.19",
|
|
18
18
|
"@fortawesome/pro-solid-svg-icons": "^6.3.0",
|
|
19
|
-
"@sw-cfb/core": "0.0.
|
|
19
|
+
"@sw-cfb/core": "0.0.14-dev.202609041528.837337b.0",
|
|
20
20
|
"i18next": "^23.16.8",
|
|
21
21
|
"i18next-browser-languagedetector": "^7.2.2",
|
|
22
22
|
"react": "^18.3.1",
|