@loomhq/record-sdk 2.35.20-draft → 2.35.21
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/cjs/index.js +1777 -637
- package/dist/cjs/is-supported.js +1 -1
- package/dist/esm/index.js +1777 -637
- package/dist/esm/is-supported.js +1 -1
- package/package.json +66 -64
- package/dist/is-supported.d.ts +0 -16
- package/dist/record-sdk.d.ts +0 -185
package/dist/esm/is-supported.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var ri=Object.create;var ee=Object.defineProperty;var oi=Object.getOwnPropertyDescriptor;var ti=Object.getOwnPropertyNames;var ai=Object.getPrototypeOf,si=Object.prototype.hasOwnProperty;var ni=e=>ee(e,"__esModule",{value:!0});var ci=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var di=(e,s,v)=>{if(s&&typeof s=="object"||typeof s=="function")for(let w of ti(s))!si.call(e,w)&&w!=="default"&&ee(e,w,{get:()=>s[w],enumerable:!(v=oi(s,w))||v.enumerable});return e},li=e=>di(ni(ee(e!=null?ri(ai(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var he=ci((C,z)=>{(function(e,s){"use strict";var v="0.7.31",w="",k="?",f="function",g="undefined",O="object",P="string",Ze="major",o="model",t="name",i="type",r="vendor",a="version",_="architecture",A="console",l="mobile",n="tablet",E="smarttv",x="wearable",ae="embedded",H=255,F="Amazon",Y="Apple",se="ASUS",ne="BlackBerry",D="Browser",M="Chrome",Qe="Edge",U="Firefox",L="Google",ce="Huawei",j="LG",X="Microsoft",de="Motorola",q="Opera",K="Samsung",$="Sony",le="Xiaomi",Z="Zebra",me="Facebook",Je=function(c,u){var d={};for(var b in c)u[b]&&u[b].length%2==0?d[b]=u[b].concat(c[b]):d[b]=c[b];return d},B=function(c){for(var u={},d=0;d<c.length;d++)u[c[d].toUpperCase()]=c[d];return u},ue=function(c,u){return typeof c===P?R(u).indexOf(R(c))!==-1:!1},R=function(c){return c.toLowerCase()},ei=function(c){return typeof c===P?c.replace(/[^\d\.]/g,w).split(".")[0]:s},Q=function(c,u){if(typeof c===P)return c=c.replace(/^\s\s*/,w).replace(/\s\s*$/,w),typeof u===g?c:c.substring(0,H)},I=function(c,u){for(var d=0,b,m,V,p,T,S;d<u.length&&!T;){var be=u[d],ve=u[d+1];for(b=m=0;b<be.length&&!T;)if(T=be[b++].exec(c),T)for(V=0;V<ve.length;V++)S=T[++m],p=ve[V],typeof p===O&&p.length>0?p.length===2?typeof p[1]==f?this[p[0]]=p[1].call(this,S):this[p[0]]=p[1]:p.length===3?typeof p[1]===f&&!(p[1].exec&&p[1].test)?this[p[0]]=S?p[1].call(this,S,p[2]):s:this[p[0]]=S?S.replace(p[1],p[2]):s:p.length===4&&(this[p[0]]=S?p[3].call(this,S.replace(p[1],p[2])):s):this[p]=S||s;d+=2}},J=function(c,u){for(var d in u)if(typeof u[d]===O&&u[d].length>0){for(var b=0;b<u[d].length;b++)if(ue(u[d][b],c))return d===k?s:d}else if(ue(u[d],c))return d===k?s:d;return c},ii={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},pe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0","2000":"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0","7":"NT 6.1","8":"NT 6.2","8.1":"NT 6.3","10":["NT 6.4","NT 10.0"],RT:"ARM"},we={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[a,[t,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[a,[t,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[t,a],[/opios[\/ ]+([\w\.]+)/i],[a,[t,q+" Mini"]],[/\bopr\/([\w\.]+)/i],[a,[t,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[t,a],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[a,[t,"UC"+D]],[/\bqbcore\/([\w\.]+)/i],[a,[t,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[a,[t,"WeChat"]],[/konqueror\/([\w\.]+)/i],[a,[t,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[a,[t,"IE"]],[/yabrowser\/([\w\.]+)/i],[a,[t,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[t,/(.+)/,"$1 Secure "+D],a],[/\bfocus\/([\w\.]+)/i],[a,[t,U+" Focus"]],[/\bopt\/([\w\.]+)/i],[a,[t,q+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[a,[t,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[a,[t,"Dolphin"]],[/coast\/([\w\.]+)/i],[a,[t,q+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[a,[t,"MIUI "+D]],[/fxios\/([-\w\.]+)/i],[a,[t,U]],[/\bqihu|(qi?ho?o?|360)browser/i],[[t,"360 "+D]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[t,/(.+)/,"$1 "+D],a],[/(comodo_dragon)\/([\w\.]+)/i],[[t,/_/g," "],a],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[t,a],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[t],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[t,me],a],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[t,a],[/\bgsa\/([\w\.]+) .*safari\//i],[a,[t,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[a,[t,M+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[t,M+" WebView"],a],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[a,[t,"Android "+D]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[t,a],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[a,[t,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[a,t],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[t,[a,J,ii]],[/(webkit|khtml)\/([\w\.]+)/i],[t,a],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[t,"Netscape"],a],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[a,[t,U+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[t,a]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[_,"amd64"]],[/(ia32(?=;))/i],[[_,R]],[/((?:i[346]|x)86)[;\)]/i],[[_,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[_,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[_,"armhf"]],[/windows (ce|mobile); ppc;/i],[[_,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[_,/ower/,w,R]],[/(sun4\w)[;\)]/i],[[_,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[_,R]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[o,[r,K],[i,n]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[o,[r,K],[i,l]],[/\((ip(?:hone|od)[\w ]*);/i],[o,[r,Y],[i,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[o,[r,Y],[i,n]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[o,[r,ce],[i,n]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[o,[r,ce],[i,l]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[o,/_/g," "],[r,le],[i,l]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[o,/_/g," "],[r,le],[i,n]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[o,[r,"OPPO"],[i,l]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[o,[r,"Vivo"],[i,l]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[o,[r,"Realme"],[i,l]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[o,[r,de],[i,l]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[o,[r,de],[i,n]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[o,[r,j],[i,n]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[o,[r,j],[i,l]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[o,[r,"Lenovo"],[i,n]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[o,/_/g," "],[r,"Nokia"],[i,l]],[/(pixel c)\b/i],[o,[r,L],[i,n]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[o,[r,L],[i,l]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[r,$],[i,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[o,"Xperia Tablet"],[r,$],[i,n]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[o,[r,"OnePlus"],[i,l]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[o,[r,F],[i,n]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[o,/(.+)/g,"Fire Phone $1"],[r,F],[i,l]],[/(playbook);[-\w\),; ]+(rim)/i],[o,r,[i,n]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[o,[r,ne],[i,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[o,[r,se],[i,n]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[o,[r,se],[i,l]],[/(nexus 9)/i],[o,[r,"HTC"],[i,n]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[r,[o,/_/g," "],[i,l]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[o,[r,"Acer"],[i,n]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[o,[r,"Meizu"],[i,l]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[o,[r,"Sharp"],[i,l]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[r,o,[i,l]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[r,o,[i,n]],[/(surface duo)/i],[o,[r,X],[i,n]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[o,[r,"Fairphone"],[i,l]],[/(u304aa)/i],[o,[r,"AT&T"],[i,l]],[/\bsie-(\w*)/i],[o,[r,"Siemens"],[i,l]],[/\b(rct\w+) b/i],[o,[r,"RCA"],[i,n]],[/\b(venue[\d ]{2,7}) b/i],[o,[r,"Dell"],[i,n]],[/\b(q(?:mv|ta)\w+) b/i],[o,[r,"Verizon"],[i,n]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[o,[r,"Barnes & Noble"],[i,n]],[/\b(tm\d{3}\w+) b/i],[o,[r,"NuVision"],[i,n]],[/\b(k88) b/i],[o,[r,"ZTE"],[i,n]],[/\b(nx\d{3}j) b/i],[o,[r,"ZTE"],[i,l]],[/\b(gen\d{3}) b.+49h/i],[o,[r,"Swiss"],[i,l]],[/\b(zur\d{3}) b/i],[o,[r,"Swiss"],[i,n]],[/\b((zeki)?tb.*\b) b/i],[o,[r,"Zeki"],[i,n]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[r,"Dragon Touch"],o,[i,n]],[/\b(ns-?\w{0,9}) b/i],[o,[r,"Insignia"],[i,n]],[/\b((nxa|next)-?\w{0,9}) b/i],[o,[r,"NextBook"],[i,n]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[r,"Voice"],o,[i,l]],[/\b(lvtel\-)?(v1[12]) b/i],[[r,"LvTel"],o,[i,l]],[/\b(ph-1) /i],[o,[r,"Essential"],[i,l]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[o,[r,"Envizen"],[i,n]],[/\b(trio[-\w\. ]+) b/i],[o,[r,"MachSpeed"],[i,n]],[/\btu_(1491) b/i],[o,[r,"Rotor"],[i,n]],[/(shield[\w ]+) b/i],[o,[r,"Nvidia"],[i,n]],[/(sprint) (\w+)/i],[r,o,[i,l]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[r,X],[i,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[o,[r,Z],[i,n]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[o,[r,Z],[i,l]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[r,o,[i,A]],[/droid.+; (shield) bui/i],[o,[r,"Nvidia"],[i,A]],[/(playstation [345portablevi]+)/i],[o,[r,$],[i,A]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[o,[r,X],[i,A]],[/smart-tv.+(samsung)/i],[r,[i,E]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[r,K],[i,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[r,j],[i,E]],[/(apple) ?tv/i],[r,[o,Y+" TV"],[i,E]],[/crkey/i],[[o,M+"cast"],[r,L],[i,E]],[/droid.+aft(\w)( bui|\))/i],[o,[r,F],[i,E]],[/\(dtv[\);].+(aquos)/i],[o,[r,"Sharp"],[i,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[r,Q],[o,Q],[i,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,E]],[/((pebble))app/i],[r,o,[i,x]],[/droid.+; (glass) \d/i],[o,[r,L],[i,x]],[/droid.+; (wt63?0{2,3})\)/i],[o,[r,Z],[i,x]],[/(quest( 2)?)/i],[o,[r,me],[i,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[r,[i,ae]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[o,[i,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[o,[i,n]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,n]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[i,l]],[/(android[-\w\. ]{0,9});.+buil/i],[o,[r,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[a,[t,Qe+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[a,[t,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[t,a],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[a,t]],os:[[/microsoft (windows) (vista|xp)/i],[t,a],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[t,[a,J,pe]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[t,"Windows"],[a,J,pe]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[a,/_/g,"."],[t,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[t,"Mac OS"],[a,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[a,t],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[t,a],[/\(bb(10);/i],[a,[t,ne]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[a,[t,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[a,[t,U+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[a,[t,"webOS"]],[/crkey\/([\d\.]+)/i],[a,[t,M+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[t,"Chromium OS"],a],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[t,a],[/(sunos) ?([\w\.\d]*)/i],[[t,"Solaris"],a],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[t,a]]},h=function(c,u){if(typeof c===O&&(u=c,c=s),!(this instanceof h))return new h(c,u).getResult();var d=c||(typeof e!==g&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:w),b=u?Je(we,u):we;return this.getBrowser=function(){var m={};return m[t]=s,m[a]=s,I.call(m,d,b.browser),m.major=ei(m.version),m},this.getCPU=function(){var m={};return m[_]=s,I.call(m,d,b.cpu),m},this.getDevice=function(){var m={};return m[r]=s,m[o]=s,m[i]=s,I.call(m,d,b.device),m},this.getEngine=function(){var m={};return m[t]=s,m[a]=s,I.call(m,d,b.engine),m},this.getOS=function(){var m={};return m[t]=s,m[a]=s,I.call(m,d,b.os),m},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return d},this.setUA=function(m){return d=typeof m===P&&m.length>H?Q(m,H):m,this},this.setUA(d),this};h.VERSION=v,h.BROWSER=B([t,a,Ze]),h.CPU=B([_]),h.DEVICE=B([o,r,i,A,l,E,n,x,ae]),h.ENGINE=h.OS=B([t,a]),typeof C!==g?(typeof z!==g&&z.exports&&(C=z.exports=h),C.UAParser=h):typeof define===f&&define.amd?define(function(){return h}):typeof e!==g&&(e.UAParser=h);var y=typeof e!==g&&(e.jQuery||e.Zepto);if(y&&!y.ua){var G=new h;y.ua=G.getResult(),y.ua.get=function(){return G.getUA()},y.ua.set=function(c){G.setUA(c);var u=G.getResult();for(var d in u)y.ua[d]=u[d]}}})(typeof window=="object"?window:C)});var Ke=li(he());var ge;(function(e){e.First="first-authentication-step",e.Second="second-authentication-step"})(ge||(ge={}));var fe;(function(e){e.Admin="admin",e.Creator="creator",e.CreatorLite="creator_lite",e.Guest="guest",e.Viewer="viewer"})(fe||(fe={}));var W;(function(e){e.Fatal="fatal",e.Error="error",e.Warning="warn",e.Info="info",e.Debug="debug"})(W||(W={}));var _e;(function(e){e.Initiated="Shared Auth Flow Initiated",e.GraphQLSubscribed="Shared Auth GraphQL Subscribed",e.GraphQLHeardBack="Shared Auth GraphQL Heard Back",e.SessionRequestTokenReceived="Shared Auth Received Session Request Token",e.LoginSuccess="Shared Auth Login Success"})(_e||(_e={}));var Ee;(function(e){e.EXTENSION_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002187698-Getting-started-with-the-Chrome-Extension",e.DESKTOP_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002207917-Getting-started-with-the-Desktop-App",e.CHROME_EXTENSION_INSTALL="https://chrome.google.com/webstore/detail/loom-video-recorder-scree/liecbddmkiiihnedobmlmillhodjkdmb"})(Ee||(Ee={}));var Se;(function(e){e.Production="https://loom.com",e.Staging="https://stage.loom.com",e.Development="https://loomlocal.com:4444"})(Se||(Se={}));var ke;(function(e){e.INITIATE_LOOM_RECORDER_FROM_BUTTON="initiate-loom-recorder-from-script"})(ke||(ke={}));var Oe;(function(e){e.V5="v5"})(Oe||(Oe={}));var De;(function(e){e.CHROME="chrome",e.SDK="sdk"})(De||(De={}));var ye;(function(e){e.CloseModal="close-modal",e.DeleteRecording="delete-modal",e.RedoRecording="restart-recording",e.InsertRecording="insert-recording"})(ye||(ye={}));var Ae;(function(e){e.RecordingControls="recording-controls",e.Authentication="authentication",e.Offline="offline",e.SystemPermissions="system-permissions",e.MemberVideoLimitPaywall="member-video-limit-paywall",e.ErrorModal="error-modal"})(Ae||(Ae={}));var xe;(function(e){e.OnboardingTutorial="onboarding-tutorial",e.PreRecording="pre-recording",e.Countdown="countdown",e.Recording="recording",e.Paused="paused",e.PostRecording="post-recording",e.Closed="closed"})(xe||(xe={}));var Re;(function(e){e.ScreenAndCamera="screen_cam",e.ScreenOnly="screen",e.CameraOnly="cam"})(Re||(Re={}));var Ie;(function(e){e.Camera="cam",e.Desktop="desktop",e.Tab="tab"})(Ie||(Ie={}));var Te;(function(e){e.Success="success",e.Failed="failed"})(Te||(Te={}));var Ce;(function(e){e[e.WS_CLOSE_CODE_NORMAL=1e3]="WS_CLOSE_CODE_NORMAL",e[e.WS_CLOSE_CODE_GOING_AWAY=1001]="WS_CLOSE_CODE_GOING_AWAY",e[e.WS_CLOSE_UNSUPPORTED_DATA=1003]="WS_CLOSE_UNSUPPORTED_DATA",e[e.WS_CLOSE_CODE_ABNORMAL_CLOSE=1006]="WS_CLOSE_CODE_ABNORMAL_CLOSE"})(Ce||(Ce={}));var Ne;(function(e){e.Abandoning="wrucore-is-abandoning",e.Abandoned="wrucore-is-abandoned",e.Intitializing="wrucore-is-initializing",e.Ready="wrucore-is-ready",e.Starting="wrucore-is-starting",e.Recording="wrucore-is-recording",e.Pausing="wrucore-is-pausing",e.Paused="wrucore-is-paused",e.Resuming="wrucore-is-resuming",e.Resumed="wrucore-is-resumed",e.Cancelling="wrucore-is-cancelling",e.Cancelled="wrucore-is-cancelled",e.MediaStreamStopped="wrucore-is-media-stream-stopped",e.Completing="wrucore-is-completing",e.FinishedUploading="wrucore-is-finished-uploading",e.Completed="wrucore-is-completed",e.Unknown="wrucore-unknown-state"})(Ne||(Ne={}));var Pe;(function(e){e.Lowest="lowest",e.Low="low",e.Normal="normal",e.High="high",e.Highest="highest"})(Pe||(Pe={}));var Me;(function(e){e.Development="loom-media-dev",e.Test="loom-media-test",e.Stage="loom-media-staging",e.Production="loom-media-production"})(Me||(Me={}));var Ue;(function(e){e.USWest2="us-west-2"})(Ue||(Ue={}));var ie;(function(e){e.Granted="granted",e.Prompt="prompt",e.Denied="denied"})(ie||(ie={}));var Le;(function(e){e.PermissionDismissedError="PermissionDismissedError"})(Le||(Le={}));var re;(function(e){e.Development="development",e.Testbench="testbench",e.Staging="staging",e.Production="production"})(re||(re={}));var oe;(function(e){e.Development="https://loomlocal.com:4444",e.Staging="https://stage.loom.com",e.Production="https://www.loom.com"})(oe||(oe={}));var qe;(function(e){e.TEAM_PLATFORM_QA_AUTH="team-platform-qa-auth",e.ENABLE_SDK_MEMBER_VIDEO_LIMITS="enable-sdk-member-video-limits",e.GUEST_RECORDING_LIMITS="guest-recording-limits",e.ROLLOUT_INTEGRATIONS_APP_ASSET_CDN="rollout-integrations-app-asset-cdn",e.ROLLOUT_SDK_KEY_HARDENING_BACKEND="rollout-sdk-key-hardening-backend",e.ROLLOUT_SDK_CUSTOM_KEY_PAIR_AUTH_ENFORCEMENT="rollout-sdk-custom-key-pair-auth-enforcement",e.DISABLE_RECORD_SDK_IS_SUPPORTED_METHOD="disable-record-sdk-is-supported-method"})(qe||(qe={}));var Be;(function(e){e.Closed="closed",e.PreRecording="pre-recording",e.ActiveRecording="active-recording",e.PostRecording="post-recording"})(Be||(Be={}));var Ge;(function(e){e.ContentContainer="lo-engage-ext-container",e.Shadow="loom-shadow",e.PreRecordingOverlay="lo-pre-recording-overlay"})(Ge||(Ge={}));var Ve;(function(e){e.PermissionsStep="permissions-step",e.RecorderSettingsStep="recorder-settings-step",e.RecordingControlsStep="recording-controls-step",e.StartRecordingStep="start-recording-step",e.PermissionsBlockedStep="permissions-blocked-step"})(Ve||(Ve={}));var ze;(function(e){e.IncompatibleBrowser="incompatible-browser",e.ThirdPartyCookiesDisabled="third-party-cookies-disabled",e.NoMediaStreamsSupport="no-media-streams-support",e.GenericError="generic-error"})(ze||(ze={}));var We;(function(e){e.Custom="SDK Custom",e.Standard="SDK Standard"})(We||(We={}));var te="integrations.media-devices",mi=te+".request_device_permissions",Si=mi+".failed",ki=te+".has_media_device_permissions",Oi=te+".display_surface_selected";var He;(function(e){e.UserDeclined="User declined",e.MissingPermissions="Missing Permissions",e.UnableToOpen="Unable to open stream"})(He||(He={}));var Fe=e=>{let s=navigator==null?void 0:navigator.mediaDevices;if(!((s==null?void 0:s.getUserMedia)&&(s==null?void 0:s.getDisplayMedia))){let{userAgent:v}=navigator;return e({level:W.Warning,message:"Media Utilities: Browser does not provide full navigator.mediaDevices support",context:{mediaDevices:s,userAgent:v}}),!1}return!0};var ui=e=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(e.pathname))return"https://loomlocal.com:4444";let s="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(s,"ig").test(e.origin)?e.origin:"https://www.loom.com"},Ye="loomhq:3pc.supported",pi="loomhq:3pc.unsupported",wi=e=>{let s=document.createElement("iframe"),v=new URLSearchParams(e);return s.id="3pc",s.src=`${ui(location)}/generic/third-party-cookie-check?${v}`,s.style.display="block",s.style.width="0",s.style.height="0",s.style.border="none",s.style.visibility="hidden",new Promise(w=>{let k=f=>{if(![Ye,pi].includes(f.data))return;let O=f.data===Ye;w(O),document.body.removeChild(s),window.removeEventListener("message",k)};window.addEventListener("message",k),document.body.appendChild(s)})},je=wi;var Xe=e=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(e.pathname))return"https://loomlocal.com:4444";let s="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(s,"ig").test(e.origin)?e.origin:"https://www.loom.com"};var $e="2.35.20",bi=["Chrome","Chrome Headless","Edge","Brave"],N;(function(w){w.IncompatibleBrowser="incompatible-browser",w.ThirdPartyCookiesDisabled="third-party-cookies-disabled",w.NoMediaStreamsSupport="no-media-streams-support"})(N||(N={}));var vi=e=>bi.includes(e.browserName||"")?e.thirdPartyCookieSupport?e.hasMediaStreamsSupport?{supported:!0,error:void 0}:{supported:!1,error:N.NoMediaStreamsSupport}:{supported:!1,error:N.ThirdPartyCookiesDisabled}:{supported:!1,error:N.IncompatibleBrowser},hi=async({loomSDKVersion:e,browserName:s,browserVersion:v,thirdPartyCookieSupport:w,hasMediaStreamsSupport:k})=>{let f=new URL("integrations-app/sdk/is-supported",Xe(location));return await fetch(f.toString(),{method:"POST",headers:{["Content-Type"]:"application/json"},body:JSON.stringify({loomSDKVersion:e,browserName:s,browserVersion:v,thirdPartyCookieSupport:w,hasMediaStreamsSupport:k})})},Mi=async()=>{let{getBrowser:e}=new Ke.default,{name:s,version:v}=e(),w=await je({loomSDKVersion:$e}),k=Fe(({})=>{}),f={loomSDKVersion:$e,browserName:s,browserVersion:v,thirdPartyCookieSupport:w,hasMediaStreamsSupport:k},g;try{g=await hi(f)}catch(O){return vi(f)}if(g.status!==200){let O=await g.json();return{supported:!1,error:O.errors[0]}}return{supported:!0,error:void 0}};export{Mi as isSupported};
|
|
1
|
+
var ri=Object.create;var ee=Object.defineProperty;var oi=Object.getOwnPropertyDescriptor;var ti=Object.getOwnPropertyNames;var ai=Object.getPrototypeOf,si=Object.prototype.hasOwnProperty;var ni=e=>ee(e,"__esModule",{value:!0});var ci=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var di=(e,s,v)=>{if(s&&typeof s=="object"||typeof s=="function")for(let w of ti(s))!si.call(e,w)&&w!=="default"&&ee(e,w,{get:()=>s[w],enumerable:!(v=oi(s,w))||v.enumerable});return e},li=e=>di(ni(ee(e!=null?ri(ai(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var ge=ci((C,z)=>{(function(e,s){"use strict";var v="0.7.31",w="",k="?",f="function",h="undefined",O="object",P="string",Ze="major",o="model",t="name",i="type",r="vendor",a="version",_="architecture",A="console",l="mobile",n="tablet",E="smarttv",x="wearable",ae="embedded",H=255,F="Amazon",Y="Apple",se="ASUS",ne="BlackBerry",D="Browser",M="Chrome",Qe="Edge",U="Firefox",L="Google",ce="Huawei",j="LG",X="Microsoft",de="Motorola",q="Opera",K="Samsung",$="Sony",le="Xiaomi",Z="Zebra",me="Facebook",Je=function(c,u){var d={};for(var b in c)u[b]&&u[b].length%2==0?d[b]=u[b].concat(c[b]):d[b]=c[b];return d},B=function(c){for(var u={},d=0;d<c.length;d++)u[c[d].toUpperCase()]=c[d];return u},ue=function(c,u){return typeof c===P?I(u).indexOf(I(c))!==-1:!1},I=function(c){return c.toLowerCase()},ei=function(c){return typeof c===P?c.replace(/[^\d\.]/g,w).split(".")[0]:s},Q=function(c,u){if(typeof c===P)return c=c.replace(/^\s\s*/,w).replace(/\s\s*$/,w),typeof u===h?c:c.substring(0,H)},R=function(c,u){for(var d=0,b,m,V,p,T,S;d<u.length&&!T;){var be=u[d],ve=u[d+1];for(b=m=0;b<be.length&&!T;)if(T=be[b++].exec(c),T)for(V=0;V<ve.length;V++)S=T[++m],p=ve[V],typeof p===O&&p.length>0?p.length===2?typeof p[1]==f?this[p[0]]=p[1].call(this,S):this[p[0]]=p[1]:p.length===3?typeof p[1]===f&&!(p[1].exec&&p[1].test)?this[p[0]]=S?p[1].call(this,S,p[2]):s:this[p[0]]=S?S.replace(p[1],p[2]):s:p.length===4&&(this[p[0]]=S?p[3].call(this,S.replace(p[1],p[2])):s):this[p]=S||s;d+=2}},J=function(c,u){for(var d in u)if(typeof u[d]===O&&u[d].length>0){for(var b=0;b<u[d].length;b++)if(ue(u[d][b],c))return d===k?s:d}else if(ue(u[d],c))return d===k?s:d;return c},ii={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},pe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0","2000":"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0","7":"NT 6.1","8":"NT 6.2","8.1":"NT 6.3","10":["NT 6.4","NT 10.0"],RT:"ARM"},we={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[a,[t,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[a,[t,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[t,a],[/opios[\/ ]+([\w\.]+)/i],[a,[t,q+" Mini"]],[/\bopr\/([\w\.]+)/i],[a,[t,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[t,a],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[a,[t,"UC"+D]],[/\bqbcore\/([\w\.]+)/i],[a,[t,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[a,[t,"WeChat"]],[/konqueror\/([\w\.]+)/i],[a,[t,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[a,[t,"IE"]],[/yabrowser\/([\w\.]+)/i],[a,[t,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[t,/(.+)/,"$1 Secure "+D],a],[/\bfocus\/([\w\.]+)/i],[a,[t,U+" Focus"]],[/\bopt\/([\w\.]+)/i],[a,[t,q+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[a,[t,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[a,[t,"Dolphin"]],[/coast\/([\w\.]+)/i],[a,[t,q+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[a,[t,"MIUI "+D]],[/fxios\/([-\w\.]+)/i],[a,[t,U]],[/\bqihu|(qi?ho?o?|360)browser/i],[[t,"360 "+D]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[t,/(.+)/,"$1 "+D],a],[/(comodo_dragon)\/([\w\.]+)/i],[[t,/_/g," "],a],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[t,a],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[t],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[t,me],a],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[t,a],[/\bgsa\/([\w\.]+) .*safari\//i],[a,[t,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[a,[t,M+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[t,M+" WebView"],a],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[a,[t,"Android "+D]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[t,a],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[a,[t,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[a,t],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[t,[a,J,ii]],[/(webkit|khtml)\/([\w\.]+)/i],[t,a],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[t,"Netscape"],a],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[a,[t,U+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[t,a]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[_,"amd64"]],[/(ia32(?=;))/i],[[_,I]],[/((?:i[346]|x)86)[;\)]/i],[[_,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[_,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[_,"armhf"]],[/windows (ce|mobile); ppc;/i],[[_,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[_,/ower/,w,I]],[/(sun4\w)[;\)]/i],[[_,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[_,I]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[o,[r,K],[i,n]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[o,[r,K],[i,l]],[/\((ip(?:hone|od)[\w ]*);/i],[o,[r,Y],[i,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[o,[r,Y],[i,n]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[o,[r,ce],[i,n]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[o,[r,ce],[i,l]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[o,/_/g," "],[r,le],[i,l]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[o,/_/g," "],[r,le],[i,n]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[o,[r,"OPPO"],[i,l]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[o,[r,"Vivo"],[i,l]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[o,[r,"Realme"],[i,l]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[o,[r,de],[i,l]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[o,[r,de],[i,n]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[o,[r,j],[i,n]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[o,[r,j],[i,l]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[o,[r,"Lenovo"],[i,n]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[o,/_/g," "],[r,"Nokia"],[i,l]],[/(pixel c)\b/i],[o,[r,L],[i,n]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[o,[r,L],[i,l]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[r,$],[i,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[o,"Xperia Tablet"],[r,$],[i,n]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[o,[r,"OnePlus"],[i,l]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[o,[r,F],[i,n]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[o,/(.+)/g,"Fire Phone $1"],[r,F],[i,l]],[/(playbook);[-\w\),; ]+(rim)/i],[o,r,[i,n]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[o,[r,ne],[i,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[o,[r,se],[i,n]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[o,[r,se],[i,l]],[/(nexus 9)/i],[o,[r,"HTC"],[i,n]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[r,[o,/_/g," "],[i,l]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[o,[r,"Acer"],[i,n]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[o,[r,"Meizu"],[i,l]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[o,[r,"Sharp"],[i,l]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[r,o,[i,l]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[r,o,[i,n]],[/(surface duo)/i],[o,[r,X],[i,n]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[o,[r,"Fairphone"],[i,l]],[/(u304aa)/i],[o,[r,"AT&T"],[i,l]],[/\bsie-(\w*)/i],[o,[r,"Siemens"],[i,l]],[/\b(rct\w+) b/i],[o,[r,"RCA"],[i,n]],[/\b(venue[\d ]{2,7}) b/i],[o,[r,"Dell"],[i,n]],[/\b(q(?:mv|ta)\w+) b/i],[o,[r,"Verizon"],[i,n]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[o,[r,"Barnes & Noble"],[i,n]],[/\b(tm\d{3}\w+) b/i],[o,[r,"NuVision"],[i,n]],[/\b(k88) b/i],[o,[r,"ZTE"],[i,n]],[/\b(nx\d{3}j) b/i],[o,[r,"ZTE"],[i,l]],[/\b(gen\d{3}) b.+49h/i],[o,[r,"Swiss"],[i,l]],[/\b(zur\d{3}) b/i],[o,[r,"Swiss"],[i,n]],[/\b((zeki)?tb.*\b) b/i],[o,[r,"Zeki"],[i,n]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[r,"Dragon Touch"],o,[i,n]],[/\b(ns-?\w{0,9}) b/i],[o,[r,"Insignia"],[i,n]],[/\b((nxa|next)-?\w{0,9}) b/i],[o,[r,"NextBook"],[i,n]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[r,"Voice"],o,[i,l]],[/\b(lvtel\-)?(v1[12]) b/i],[[r,"LvTel"],o,[i,l]],[/\b(ph-1) /i],[o,[r,"Essential"],[i,l]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[o,[r,"Envizen"],[i,n]],[/\b(trio[-\w\. ]+) b/i],[o,[r,"MachSpeed"],[i,n]],[/\btu_(1491) b/i],[o,[r,"Rotor"],[i,n]],[/(shield[\w ]+) b/i],[o,[r,"Nvidia"],[i,n]],[/(sprint) (\w+)/i],[r,o,[i,l]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[r,X],[i,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[o,[r,Z],[i,n]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[o,[r,Z],[i,l]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[r,o,[i,A]],[/droid.+; (shield) bui/i],[o,[r,"Nvidia"],[i,A]],[/(playstation [345portablevi]+)/i],[o,[r,$],[i,A]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[o,[r,X],[i,A]],[/smart-tv.+(samsung)/i],[r,[i,E]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[r,K],[i,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[r,j],[i,E]],[/(apple) ?tv/i],[r,[o,Y+" TV"],[i,E]],[/crkey/i],[[o,M+"cast"],[r,L],[i,E]],[/droid.+aft(\w)( bui|\))/i],[o,[r,F],[i,E]],[/\(dtv[\);].+(aquos)/i],[o,[r,"Sharp"],[i,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[r,Q],[o,Q],[i,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,E]],[/((pebble))app/i],[r,o,[i,x]],[/droid.+; (glass) \d/i],[o,[r,L],[i,x]],[/droid.+; (wt63?0{2,3})\)/i],[o,[r,Z],[i,x]],[/(quest( 2)?)/i],[o,[r,me],[i,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[r,[i,ae]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[o,[i,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[o,[i,n]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,n]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[i,l]],[/(android[-\w\. ]{0,9});.+buil/i],[o,[r,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[a,[t,Qe+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[a,[t,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[t,a],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[a,t]],os:[[/microsoft (windows) (vista|xp)/i],[t,a],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[t,[a,J,pe]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[t,"Windows"],[a,J,pe]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[a,/_/g,"."],[t,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[t,"Mac OS"],[a,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[a,t],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[t,a],[/\(bb(10);/i],[a,[t,ne]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[a,[t,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[a,[t,U+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[a,[t,"webOS"]],[/crkey\/([\d\.]+)/i],[a,[t,M+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[t,"Chromium OS"],a],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[t,a],[/(sunos) ?([\w\.\d]*)/i],[[t,"Solaris"],a],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[t,a]]},g=function(c,u){if(typeof c===O&&(u=c,c=s),!(this instanceof g))return new g(c,u).getResult();var d=c||(typeof e!==h&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:w),b=u?Je(we,u):we;return this.getBrowser=function(){var m={};return m[t]=s,m[a]=s,R.call(m,d,b.browser),m.major=ei(m.version),m},this.getCPU=function(){var m={};return m[_]=s,R.call(m,d,b.cpu),m},this.getDevice=function(){var m={};return m[r]=s,m[o]=s,m[i]=s,R.call(m,d,b.device),m},this.getEngine=function(){var m={};return m[t]=s,m[a]=s,R.call(m,d,b.engine),m},this.getOS=function(){var m={};return m[t]=s,m[a]=s,R.call(m,d,b.os),m},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return d},this.setUA=function(m){return d=typeof m===P&&m.length>H?Q(m,H):m,this},this.setUA(d),this};g.VERSION=v,g.BROWSER=B([t,a,Ze]),g.CPU=B([_]),g.DEVICE=B([o,r,i,A,l,E,n,x,ae]),g.ENGINE=g.OS=B([t,a]),typeof C!==h?(typeof z!==h&&z.exports&&(C=z.exports=g),C.UAParser=g):typeof define===f&&define.amd?define(function(){return g}):typeof e!==h&&(e.UAParser=g);var y=typeof e!==h&&(e.jQuery||e.Zepto);if(y&&!y.ua){var G=new g;y.ua=G.getResult(),y.ua.get=function(){return G.getUA()},y.ua.set=function(c){G.setUA(c);var u=G.getResult();for(var d in u)y.ua[d]=u[d]}}})(typeof window=="object"?window:C)});var Ke=li(ge());var he;(function(e){e.First="first-authentication-step",e.Second="second-authentication-step"})(he||(he={}));var fe;(function(e){e.Admin="admin",e.Creator="creator",e.CreatorLite="creator_lite",e.Guest="guest",e.Viewer="viewer"})(fe||(fe={}));var W;(function(e){e.Fatal="fatal",e.Error="error",e.Warning="warn",e.Info="info",e.Debug="debug"})(W||(W={}));var _e;(function(e){e.Initiated="Shared Auth Flow Initiated",e.GraphQLSubscribed="Shared Auth GraphQL Subscribed",e.GraphQLHeardBack="Shared Auth GraphQL Heard Back",e.SessionRequestTokenReceived="Shared Auth Received Session Request Token",e.LoginSuccess="Shared Auth Login Success"})(_e||(_e={}));var Ee;(function(e){e.EXTENSION_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002187698-Getting-started-with-the-Chrome-Extension",e.DESKTOP_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002207917-Getting-started-with-the-Desktop-App",e.CHROME_EXTENSION_INSTALL="https://chrome.google.com/webstore/detail/loom-video-recorder-scree/liecbddmkiiihnedobmlmillhodjkdmb"})(Ee||(Ee={}));var Se;(function(e){e.Production="https://loom.com",e.Staging="https://stage.loom.com",e.Development="https://loomlocal.com:4444"})(Se||(Se={}));var ke;(function(e){e.INITIATE_LOOM_RECORDER_FROM_BUTTON="initiate-loom-recorder-from-script"})(ke||(ke={}));var Oe;(function(e){e.V5="v5",e.V3="v3"})(Oe||(Oe={}));var De;(function(e){e.CHROME="chrome",e.SDK="sdk"})(De||(De={}));var ye;(function(e){e.CloseModal="close-modal",e.DeleteRecording="delete-modal",e.RedoRecording="restart-recording",e.InsertRecording="insert-recording"})(ye||(ye={}));var Ae;(function(e){e.RecordingControls="recording-controls",e.Authentication="authentication",e.Offline="offline",e.SystemPermissions="system-permissions",e.MemberVideoLimitPaywall="member-video-limit-paywall",e.ErrorModal="error-modal"})(Ae||(Ae={}));var xe;(function(e){e.OnboardingTutorial="onboarding-tutorial",e.PreRecording="pre-recording",e.Countdown="countdown",e.Recording="recording",e.Paused="paused",e.PostRecording="post-recording",e.Closed="closed"})(xe||(xe={}));var Ie;(function(e){e.ScreenAndCamera="screen_cam",e.ScreenOnly="screen",e.CameraOnly="cam"})(Ie||(Ie={}));var Re;(function(e){e.Camera="cam",e.Desktop="desktop",e.Tab="tab"})(Re||(Re={}));var Te;(function(e){e.Success="success",e.Failed="failed"})(Te||(Te={}));var Ce;(function(e){e[e.WS_CLOSE_CODE_NORMAL=1e3]="WS_CLOSE_CODE_NORMAL",e[e.WS_CLOSE_CODE_GOING_AWAY=1001]="WS_CLOSE_CODE_GOING_AWAY",e[e.WS_CLOSE_UNSUPPORTED_DATA=1003]="WS_CLOSE_UNSUPPORTED_DATA",e[e.WS_CLOSE_CODE_ABNORMAL_CLOSE=1006]="WS_CLOSE_CODE_ABNORMAL_CLOSE"})(Ce||(Ce={}));var Ne;(function(e){e.Abandoning="wrucore-is-abandoning",e.Abandoned="wrucore-is-abandoned",e.Intitializing="wrucore-is-initializing",e.Ready="wrucore-is-ready",e.Starting="wrucore-is-starting",e.Recording="wrucore-is-recording",e.Pausing="wrucore-is-pausing",e.Paused="wrucore-is-paused",e.Resuming="wrucore-is-resuming",e.Resumed="wrucore-is-resumed",e.Cancelling="wrucore-is-cancelling",e.Cancelled="wrucore-is-cancelled",e.MediaStreamStopped="wrucore-is-media-stream-stopped",e.Completing="wrucore-is-completing",e.FinishedUploading="wrucore-is-finished-uploading",e.Completed="wrucore-is-completed",e.Unknown="wrucore-unknown-state"})(Ne||(Ne={}));var Pe;(function(e){e.Lowest="lowest",e.Low="low",e.Normal="normal",e.High="high",e.Highest="highest"})(Pe||(Pe={}));var Me;(function(e){e.Development="loom-media-dev",e.Test="loom-media-test",e.Stage="loom-media-staging",e.Production="loom-media-production"})(Me||(Me={}));var Ue;(function(e){e.USWest2="us-west-2"})(Ue||(Ue={}));var ie;(function(e){e.Granted="granted",e.Prompt="prompt",e.Denied="denied"})(ie||(ie={}));var Le;(function(e){e.PermissionDismissedError="PermissionDismissedError"})(Le||(Le={}));var re;(function(e){e.Development="development",e.Testbench="testbench",e.Staging="staging",e.Production="production"})(re||(re={}));var oe;(function(e){e.Development="https://loomlocal.com:4444",e.Staging="https://stage.loom.com",e.Production="https://www.loom.com"})(oe||(oe={}));var qe;(function(e){e.TEAM_PLATFORM_QA_AUTH="team-platform-qa-auth",e.ENABLE_SDK_MEMBER_VIDEO_LIMITS="enable-sdk-member-video-limits",e.GUEST_RECORDING_LIMITS="guest-recording-limits",e.ROLLOUT_INTEGRATIONS_APP_ASSET_CDN="rollout-integrations-app-asset-cdn",e.ROLLOUT_SDK_KEY_HARDENING_BACKEND="rollout-sdk-key-hardening-backend",e.ROLLOUT_SDK_CUSTOM_KEY_PAIR_AUTH_ENFORCEMENT="rollout-sdk-custom-key-pair-auth-enforcement",e.DISABLE_RECORD_SDK_IS_SUPPORTED_METHOD="disable-record-sdk-is-supported-method"})(qe||(qe={}));var Be;(function(e){e.Closed="closed",e.PreRecording="pre-recording",e.ActiveRecording="active-recording",e.PostRecording="post-recording"})(Be||(Be={}));var Ge;(function(e){e.ContentContainer="lo-engage-ext-container",e.Shadow="loom-shadow",e.PreRecordingOverlay="lo-pre-recording-overlay"})(Ge||(Ge={}));var Ve;(function(e){e.PermissionsStep="permissions-step",e.RecorderSettingsStep="recorder-settings-step",e.RecordingControlsStep="recording-controls-step",e.StartRecordingStep="start-recording-step",e.PermissionsBlockedStep="permissions-blocked-step"})(Ve||(Ve={}));var ze;(function(e){e.IncompatibleBrowser="incompatible-browser",e.ThirdPartyCookiesDisabled="third-party-cookies-disabled",e.NoMediaStreamsSupport="no-media-streams-support",e.GenericError="generic-error"})(ze||(ze={}));var We;(function(e){e.Custom="SDK Custom",e.Standard="SDK Standard"})(We||(We={}));var te="integrations.media-devices",mi=te+".request_device_permissions",Ei=mi+".failed",Si=te+".has_media_device_permissions",ki=te+".display_surface_selected";var He;(function(e){e.UserDeclined="User declined",e.MissingPermissions="Missing Permissions",e.UnableToOpen="Unable to open stream"})(He||(He={}));var Fe=e=>{let s=navigator==null?void 0:navigator.mediaDevices;if(!((s==null?void 0:s.getUserMedia)&&(s==null?void 0:s.getDisplayMedia))){let{userAgent:v}=navigator;return e({level:W.Warning,message:"Media Utilities: Browser does not provide full navigator.mediaDevices support",context:{mediaDevices:s,userAgent:v}}),!1}return!0};var ui=e=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(e.pathname))return"https://loomlocal.com:4444";let s="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(s,"ig").test(e.origin)?e.origin:"https://www.loom.com"},Ye="loomhq:3pc.supported",pi="loomhq:3pc.unsupported",wi=e=>{let s=document.createElement("iframe"),v=new URLSearchParams(e);return s.id="3pc",s.src=`${ui(location)}/generic/third-party-cookie-check?${v}`,s.style.display="block",s.style.width="0",s.style.height="0",s.style.border="none",s.style.visibility="hidden",new Promise(w=>{let k=f=>{if(![Ye,pi].includes(f.data))return;let O=f.data===Ye;w(O),document.body.removeChild(s),window.removeEventListener("message",k)};window.addEventListener("message",k),document.body.appendChild(s)})},je=wi;var Xe=e=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(e.pathname))return"https://loomlocal.com:4444";let s="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(s,"ig").test(e.origin)?e.origin:"https://www.loom.com"};var $e="2.35.21",bi=["Chrome","Chrome Headless","Edge","Brave"],N;(function(w){w.IncompatibleBrowser="incompatible-browser",w.ThirdPartyCookiesDisabled="third-party-cookies-disabled",w.NoMediaStreamsSupport="no-media-streams-support"})(N||(N={}));var vi=e=>bi.includes(e.browserName||"")?e.thirdPartyCookieSupport?e.hasMediaStreamsSupport?{supported:!0,error:void 0}:{supported:!1,error:N.NoMediaStreamsSupport}:{supported:!1,error:N.ThirdPartyCookiesDisabled}:{supported:!1,error:N.IncompatibleBrowser},gi=async({loomSDKVersion:e,browserName:s,browserVersion:v,thirdPartyCookieSupport:w,hasMediaStreamsSupport:k})=>{let f=new URL("integrations-app/sdk/is-supported",Xe(location));return await fetch(f.toString(),{method:"POST",headers:{["Content-Type"]:"application/json"},body:JSON.stringify({loomSDKVersion:e,browserName:s,browserVersion:v,thirdPartyCookieSupport:w,hasMediaStreamsSupport:k})})},Mi=async()=>{let{getBrowser:e}=new Ke.default,{name:s,version:v}=e(),w=await je({loomSDKVersion:$e}),k=Fe(()=>{}),f={loomSDKVersion:$e,browserName:s,browserVersion:v,thirdPartyCookieSupport:w,hasMediaStreamsSupport:k},h;try{h=await gi(f)}catch(O){return vi(f)}if(h.status!==200){let O=await h.json();return{supported:!1,error:O.errors[0]}}return{supported:!0,error:void 0}};export{Mi as isSupported};
|
package/package.json
CHANGED
|
@@ -1,65 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loomhq/record-sdk",
|
|
3
|
-
"version": "2.35.20-draft",
|
|
4
3
|
"description": "The Loom Software Development Kit.",
|
|
4
|
+
"version": "2.35.21",
|
|
5
5
|
"author": "@loomhq/platform",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"dist/is-supported.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"engines": {
|
|
18
|
-
"node": ">=12",
|
|
19
|
-
"npm": ">=6"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"/dist/esm",
|
|
23
|
-
"/dist/cjs",
|
|
24
|
-
"/dist/record-sdk.d.ts",
|
|
25
|
-
"/dist/is-supported.d.ts"
|
|
26
|
-
],
|
|
27
|
-
"exports": {
|
|
28
|
-
".": {
|
|
29
|
-
"require": "./dist/cjs/index.js",
|
|
30
|
-
"import": "./dist/esm/index.js"
|
|
31
|
-
},
|
|
32
|
-
"./package.json": "./package.json",
|
|
33
|
-
"./is-supported": {
|
|
34
|
-
"require": "./dist/cjs/is-supported.js",
|
|
35
|
-
"import": "./dist/esm/is-supported.js"
|
|
36
|
-
}
|
|
6
|
+
"ava": {
|
|
7
|
+
"extensions": [
|
|
8
|
+
"ts"
|
|
9
|
+
],
|
|
10
|
+
"require": [
|
|
11
|
+
"ts-node/register"
|
|
12
|
+
]
|
|
37
13
|
},
|
|
38
14
|
"devDependencies": {
|
|
39
|
-
"@babel/core": "^7.
|
|
40
|
-
"@babel/preset-env": "^7.
|
|
15
|
+
"@babel/core": "^7.18.13",
|
|
16
|
+
"@babel/preset-env": "^7.18.10",
|
|
41
17
|
"@emotion/cache": "^11.4.0",
|
|
42
18
|
"@emotion/core": "10.1.1",
|
|
43
|
-
"@emotion/react": "^11.
|
|
19
|
+
"@emotion/react": "^11.9.3",
|
|
44
20
|
"@emotion/styled": "10.0.27",
|
|
45
21
|
"@loomhq/bundler": "1.0.7",
|
|
46
|
-
"@loomhq/camera-bubble": "12.
|
|
47
|
-
"@loomhq/enums": "2.3.
|
|
22
|
+
"@loomhq/camera-bubble": "12.2.1",
|
|
23
|
+
"@loomhq/enums": "2.3.5",
|
|
48
24
|
"@loomhq/esbuild-plugin-umd": "^0.4.2",
|
|
49
25
|
"@loomhq/iframe-redux": "0.1.5",
|
|
50
|
-
"@loomhq/lens": "10.
|
|
26
|
+
"@loomhq/lens": "^10.47.1",
|
|
51
27
|
"@loomhq/media-utilities": "2.1.3",
|
|
52
|
-
"@loomhq/outcomes": "2.1.
|
|
53
|
-
"@loomhq/sdk-background": "1.26.
|
|
54
|
-
"@loomhq/sdk-store": "0.23.
|
|
28
|
+
"@loomhq/outcomes": "2.1.34",
|
|
29
|
+
"@loomhq/sdk-background": "1.26.24",
|
|
30
|
+
"@loomhq/sdk-store": "0.23.9",
|
|
55
31
|
"@loomhq/third-party-cookie-check": "2.0.10",
|
|
56
32
|
"@loomhq/tsconfig": "1.0.4",
|
|
57
33
|
"@reduxjs/toolkit": "^1.5.0",
|
|
58
34
|
"@testing-library/jest-dom": "^5.11.9",
|
|
59
|
-
"@testing-library/react": "^
|
|
60
|
-
"@types/jest": "^
|
|
61
|
-
"@types/
|
|
62
|
-
"@types/react
|
|
35
|
+
"@testing-library/react": "^12.0.0",
|
|
36
|
+
"@types/jest": "^27.5.2",
|
|
37
|
+
"@types/node": "^16.11.7",
|
|
38
|
+
"@types/react": "^17.0.48",
|
|
39
|
+
"@types/react-dom": "^17.0.17",
|
|
40
|
+
"@types/react-redux": "^7.1.24",
|
|
63
41
|
"@types/redux-mock-store": "^1.0.2",
|
|
64
42
|
"@types/ua-parser-js": "^0.7.35",
|
|
65
43
|
"babel-jest": "^26.6.3",
|
|
@@ -68,46 +46,70 @@
|
|
|
68
46
|
"deepmerge": "^4.2.2",
|
|
69
47
|
"esbuild-plugin-text-replace": "^1.1.3",
|
|
70
48
|
"eventemitter3": "^4.0.7",
|
|
71
|
-
"jest": "^
|
|
49
|
+
"jest": "^27.5.1",
|
|
72
50
|
"jwt-decode": "^3.1.2",
|
|
73
51
|
"memoize-one": "^5.1.1",
|
|
52
|
+
"prop-types": "^15.6.1",
|
|
74
53
|
"raf": "^3.4.1",
|
|
75
|
-
"react": "17.0.
|
|
76
|
-
"react-dom": "17.0.
|
|
54
|
+
"react": "^17.0.2",
|
|
55
|
+
"react-dom": "^17.0.2",
|
|
77
56
|
"react-draggable": "^4.4.3",
|
|
78
57
|
"react-error-boundary": "^3.1.0",
|
|
79
|
-
"react-redux": "^7.2.
|
|
80
|
-
"react-shadow": "^19.0.
|
|
58
|
+
"react-redux": "^7.2.6",
|
|
59
|
+
"react-shadow": "^19.0.3",
|
|
81
60
|
"redux": "^4.0.5",
|
|
82
61
|
"redux-mock-store": "^1.5.4",
|
|
83
62
|
"redux-thunk": "^2.3.0",
|
|
84
63
|
"rollup": "^2.57.0",
|
|
85
64
|
"rollup-plugin-dts": "^4.0.0",
|
|
86
65
|
"serialize-error": "^8.0.1",
|
|
87
|
-
"ts-jest": "^
|
|
88
|
-
"ts-node": "^10.
|
|
89
|
-
"typescript": "^4.
|
|
66
|
+
"ts-jest": "^27.1.3",
|
|
67
|
+
"ts-node": "^10.8.0",
|
|
68
|
+
"typescript": "^4.7.4",
|
|
90
69
|
"ua-parser-js": "^0.7.25"
|
|
91
70
|
},
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=12",
|
|
73
|
+
"npm": ">=6"
|
|
74
|
+
},
|
|
75
|
+
"exports": {
|
|
76
|
+
".": {
|
|
77
|
+
"require": "./dist/cjs/index.js",
|
|
78
|
+
"import": "./dist/esm/index.js"
|
|
79
|
+
},
|
|
80
|
+
"./package.json": "./package.json",
|
|
81
|
+
"./is-supported": {
|
|
82
|
+
"require": "./dist/cjs/is-supported.js",
|
|
83
|
+
"import": "./dist/esm/is-supported.js"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"files": [
|
|
87
|
+
"/dist/esm",
|
|
88
|
+
"/dist/cjs",
|
|
89
|
+
"/dist/record-sdk.d.ts",
|
|
90
|
+
"/dist/is-supported.d.ts"
|
|
91
|
+
],
|
|
92
|
+
"license": "SEE LICENSE IN license.md",
|
|
93
|
+
"main": "./dist/cjs/index.js",
|
|
94
|
+
"module": "./dist/esm/index.js",
|
|
92
95
|
"publishConfig": {
|
|
93
96
|
"access": "public"
|
|
94
97
|
},
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
"types": "./dist/record-sdk.d.ts",
|
|
99
|
+
"typesVersions": {
|
|
100
|
+
"*": {
|
|
101
|
+
"is-supported": [
|
|
102
|
+
"dist/is-supported.d.ts"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
102
105
|
},
|
|
103
106
|
"scripts": {
|
|
104
|
-
"clean:build": "rm -rf ./dist",
|
|
105
107
|
"build": "node build.mjs",
|
|
106
108
|
"build:types": "pnpm build:types:declarations && pnpm build:types:bundle",
|
|
107
|
-
"build:types:declarations": "tsc",
|
|
108
109
|
"build:types:bundle": "rollup -c || true",
|
|
110
|
+
"build:types:declarations": "tsc",
|
|
111
|
+
"clean:build": "rm -rf ./dist",
|
|
109
112
|
"test": "jest --maxWorkers=2",
|
|
110
113
|
"test:cypress": "cypress run"
|
|
111
|
-
}
|
|
112
|
-
"readme": "# @loomhq/record-sdk\n\nSee our [docs site](https://dev.loom.com) for a detailed guide on how to use the sdk!\n"
|
|
114
|
+
}
|
|
113
115
|
}
|
package/dist/is-supported.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare type IsSupportedFunction = () => Promise<{
|
|
2
|
-
supported: boolean;
|
|
3
|
-
error: SDKUnsupportedReasons | undefined;
|
|
4
|
-
}>;
|
|
5
|
-
declare enum SDKUnsupportedReasons {
|
|
6
|
-
IncompatibleBrowser = "incompatible-browser",
|
|
7
|
-
ThirdPartyCookiesDisabled = "third-party-cookies-disabled",
|
|
8
|
-
NoMediaStreamsSupport = "no-media-streams-support"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Check if the client being initialized is compatible with loom features.
|
|
12
|
-
* @returns Support information
|
|
13
|
-
*/
|
|
14
|
-
declare const isSupported: IsSupportedFunction;
|
|
15
|
-
|
|
16
|
-
export { SDKUnsupportedReasons, isSupported };
|
package/dist/record-sdk.d.ts
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
declare type IsSupportedFunction = () => Promise<{
|
|
2
|
-
supported: boolean;
|
|
3
|
-
error: SDKUnsupportedReasons | undefined;
|
|
4
|
-
}>;
|
|
5
|
-
declare enum SDKUnsupportedReasons {
|
|
6
|
-
IncompatibleBrowser = "incompatible-browser",
|
|
7
|
-
ThirdPartyCookiesDisabled = "third-party-cookies-disabled",
|
|
8
|
-
NoMediaStreamsSupport = "no-media-streams-support"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Check if the client being initialized is compatible with loom features.
|
|
12
|
-
* @returns Support information
|
|
13
|
-
*/
|
|
14
|
-
declare const isSupported: IsSupportedFunction;
|
|
15
|
-
|
|
16
|
-
declare enum Environment {
|
|
17
|
-
Development = "development",
|
|
18
|
-
Testbench = "testbench",
|
|
19
|
-
Staging = "staging",
|
|
20
|
-
Production = "production"
|
|
21
|
-
}
|
|
22
|
-
declare enum RecordingType {
|
|
23
|
-
ScreenAndCamera = "screen_cam",
|
|
24
|
-
ScreenOnly = "screen",
|
|
25
|
-
CameraOnly = "cam"
|
|
26
|
-
}
|
|
27
|
-
interface SDKStyles {
|
|
28
|
-
/**
|
|
29
|
-
* Font family to be used instead of loom defaults. This is 1:1 with `font-family`.
|
|
30
|
-
*/
|
|
31
|
-
fontFamily?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Base font unit size used to calculate the font size for the text.
|
|
34
|
-
*/
|
|
35
|
-
fontUnitSize?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Collection of record button color options
|
|
38
|
-
*/
|
|
39
|
-
recordButtonColor?: string;
|
|
40
|
-
recordButtonHoverColor?: string;
|
|
41
|
-
recordButtonActiveColor?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Collection of primary color overrides
|
|
44
|
-
*/
|
|
45
|
-
primaryColor?: string;
|
|
46
|
-
primaryHoverColor?: string;
|
|
47
|
-
primaryActiveColor?: string;
|
|
48
|
-
}
|
|
49
|
-
interface SDKConfig {
|
|
50
|
-
bubbleResizable: boolean;
|
|
51
|
-
insertButtonText: string;
|
|
52
|
-
disablePreviewModal?: boolean;
|
|
53
|
-
enableOnboardingTutorial?: boolean;
|
|
54
|
-
allowedRecordingTypes?: [RecordingType, ...RecordingType[]];
|
|
55
|
-
/**
|
|
56
|
-
* The default selection for recording type. If `allowedRecordingTypes` is specified, should
|
|
57
|
-
* include this default type in the list. If unspecified, defaults to Screen and Camera
|
|
58
|
-
*/
|
|
59
|
-
defaultRecordingType?: RecordingType;
|
|
60
|
-
/**
|
|
61
|
-
* Collection of styles that can be applied to the loom components.
|
|
62
|
-
*/
|
|
63
|
-
styles?: SDKStyles;
|
|
64
|
-
}
|
|
65
|
-
declare enum SDKState {
|
|
66
|
-
Closed = "closed",
|
|
67
|
-
PreRecording = "pre-recording",
|
|
68
|
-
ActiveRecording = "active-recording",
|
|
69
|
-
PostRecording = "post-recording"
|
|
70
|
-
}
|
|
71
|
-
interface LoomVideo {
|
|
72
|
-
id: string;
|
|
73
|
-
title: string;
|
|
74
|
-
height: number;
|
|
75
|
-
width: number;
|
|
76
|
-
sharedUrl: string;
|
|
77
|
-
embedUrl: string;
|
|
78
|
-
thumbnailHeight?: number;
|
|
79
|
-
thumbnailWidth?: number;
|
|
80
|
-
thumbnailUrl?: string;
|
|
81
|
-
duration?: number;
|
|
82
|
-
providerUrl: string;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Types pull eventemitter3 to avoid bundling types from that package.
|
|
86
|
-
*/
|
|
87
|
-
declare type ValidEventTypes = string | symbol | any;
|
|
88
|
-
declare type EventNames<T extends ValidEventTypes> = T extends string | symbol ? T : keyof T;
|
|
89
|
-
declare type ArgumentMap<T> = {
|
|
90
|
-
[K in keyof T]: T[K] extends (...args: any[]) => void ? Parameters<T[K]> : T[K] extends any[] ? T[K] : any[];
|
|
91
|
-
};
|
|
92
|
-
declare type EventListener<T extends ValidEventTypes, K extends EventNames<T>> = T extends string | symbol ? (...args: any[]) => void : (...args: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]) => void;
|
|
93
|
-
declare type EventArgs<T extends ValidEventTypes, K extends EventNames<T>> = Parameters<EventListener<T, K>>;
|
|
94
|
-
interface EventEmitter<EventTypes extends ValidEventTypes = string | symbol, Context = any> {
|
|
95
|
-
eventNames(): Array<EventNames<EventTypes>>;
|
|
96
|
-
listeners<T extends EventNames<EventTypes>>(event: T): Array<EventListener<EventTypes, T>>;
|
|
97
|
-
listenerCount(event: EventNames<EventTypes>): number;
|
|
98
|
-
emit<T extends EventNames<EventTypes>>(event: T, ...args: EventArgs<EventTypes, T>): boolean;
|
|
99
|
-
on<T extends EventNames<EventTypes>>(event: T, fn: EventListener<EventTypes, T>, context?: Context): this;
|
|
100
|
-
addListener<T extends EventNames<EventTypes>>(event: T, fn: EventListener<EventTypes, T>, context?: Context): this;
|
|
101
|
-
once<T extends EventNames<EventTypes>>(event: T, fn: EventListener<EventTypes, T>, context?: Context): this;
|
|
102
|
-
removeListener<T extends EventNames<EventTypes>>(event: T, fn?: EventListener<EventTypes, T>, context?: Context, once?: boolean): this;
|
|
103
|
-
off<T extends EventNames<EventTypes>>(event: T, fn?: EventListener<EventTypes, T>, context?: Context, once?: boolean): this;
|
|
104
|
-
removeAllListeners(event?: EventNames<EventTypes>): this;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
declare type HookFn<T> = (a: T) => void;
|
|
108
|
-
interface Hooks {
|
|
109
|
-
onInsertClicked: HookFn<LoomVideo>;
|
|
110
|
-
onStart?: HookFn<void>;
|
|
111
|
-
onRecordingStarted?: HookFn<void>;
|
|
112
|
-
onCancel?: HookFn<void>;
|
|
113
|
-
onComplete?: HookFn<void>;
|
|
114
|
-
onAnalyticsEvent?: HookFn<string>;
|
|
115
|
-
onLifecycleUpdate?: HookFn<SDKState>;
|
|
116
|
-
onRecordingComplete: HookFn<LoomVideo>;
|
|
117
|
-
onUploadComplete: HookFn<LoomVideo>;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
interface Position {
|
|
121
|
-
x: number;
|
|
122
|
-
y: number;
|
|
123
|
-
}
|
|
124
|
-
interface ButtonEmitterEvents {
|
|
125
|
-
'bubble-drag-end': (pos: Position) => void;
|
|
126
|
-
'bubble-drag-start': (pos: Position) => void;
|
|
127
|
-
'bubble-move': (pos: Position) => void;
|
|
128
|
-
cancel: () => void;
|
|
129
|
-
complete: () => void;
|
|
130
|
-
'insert-click': (video: LoomVideo) => void;
|
|
131
|
-
'lifecycle-update': (state: SDKState) => void;
|
|
132
|
-
'recording-complete': (video: LoomVideo) => void;
|
|
133
|
-
'recording-start': () => void;
|
|
134
|
-
start: () => void;
|
|
135
|
-
'upload-complete': (video: LoomVideo) => void;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Public definition for the SDK Button.
|
|
139
|
-
*/
|
|
140
|
-
interface SDKButtonInterface extends EventEmitter<ButtonEmitterEvents> {
|
|
141
|
-
/**
|
|
142
|
-
* Opens the recording panel to start a user's record flow.
|
|
143
|
-
*/
|
|
144
|
-
openPreRecordPanel: () => void;
|
|
145
|
-
/**
|
|
146
|
-
* Closes the recording panel.
|
|
147
|
-
*/
|
|
148
|
-
closePreRecordPanel: () => void;
|
|
149
|
-
/**
|
|
150
|
-
* Move the recording bubble.
|
|
151
|
-
* @param pos New position where the bubble will be moved to. This value is pixels relative
|
|
152
|
-
* to the bubble's iframe container.
|
|
153
|
-
*/
|
|
154
|
-
moveBubble: (p: Position) => void;
|
|
155
|
-
/**
|
|
156
|
-
* End a recording in progress
|
|
157
|
-
*/
|
|
158
|
-
endRecording: () => void;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
declare type ButtonFn = (a?: {
|
|
162
|
-
element?: HTMLElement;
|
|
163
|
-
hooks?: Hooks;
|
|
164
|
-
}) => SDKButtonInterface;
|
|
165
|
-
declare type SDKResult = {
|
|
166
|
-
teardown: () => void;
|
|
167
|
-
configureButton: ButtonFn;
|
|
168
|
-
status: () => {
|
|
169
|
-
state: SDKState | undefined;
|
|
170
|
-
success: boolean;
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
declare type SetupFunction = (a: {
|
|
174
|
-
/**
|
|
175
|
-
* @deprecated `apiKey` has been renamed to `publicAppId`, please use that instead
|
|
176
|
-
*/
|
|
177
|
-
apiKey?: string;
|
|
178
|
-
publicAppId?: string;
|
|
179
|
-
environment?: Environment;
|
|
180
|
-
config?: Partial<SDKConfig>;
|
|
181
|
-
jws?: string;
|
|
182
|
-
}) => Promise<SDKResult>;
|
|
183
|
-
declare const setup: SetupFunction;
|
|
184
|
-
|
|
185
|
-
export { Hooks, LoomVideo, RecordingType, SDKButtonInterface, SDKResult, SDKState, SDKUnsupportedReasons, SetupFunction, isSupported, setup };
|