Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@walkme/sdk

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@walkme/sdk - npm Package Compare versions

Comparing version 2.0.21 to 2.0.22

2

dist/index.js

@@ -1,2 +0,2 @@

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([,function(e,t,n){"use strict";var r;n.r(t),n.d(t,"addScript",(function(){return W})),n.d(t,"createSdk",(function(){return V})),n.d(t,"isSelfHosted",(function(){return h})),n.d(t,"getCdnRoot",(function(){return b})),n.d(t,"getPublicPath",(function(){return w})),n.d(t,"getSdkApplicationsPublicPathWithEntry",(function(){return j})),n.d(t,"getSdkUtilsPublicPathWithEntry",(function(){return _})),n.d(t,"rpc",(function(){return R})),n.d(t,"overTheWire",(function(){return U})),n.d(t,"getLocalStorageItem",(function(){return f})),n.d(t,"getNavigatorProps",(function(){return m})),n.d(t,"LogLevel",(function(){return P})),n.d(t,"setExtra",(function(){return C})),n.d(t,"log",(function(){return x})),n.d(t,"warn",(function(){return E})),n.d(t,"error",(function(){return D})),n.d(t,"logger",(function(){return L})),n.d(t,"CUSTOM_SDKS_CONFIG_KEY",(function(){return p})),n.d(t,"rpcLoader",(function(){return $}));var o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&i.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,d=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n}(r)};!function(e){e.request="request",e.response="response"}(l||(l={}));const f=e=>{var t,n;try{return(null===(n=null===(t=globalThis.walkme)||void 0===t?void 0:t.localStorageOverrides)||void 0===n?void 0:n[e])||globalThis.localStorage.getItem(e)}catch(e){}},m=()=>{try{const{appVersion:e,connection:t,hardwareConcurrency:n,userAgent:r,userAgentData:o,webdriver:a,plugins:i}=navigator;return{appVersion:e,connection:t,hardwareConcurrency:n,userAgent:r,userAgentData:o,webdriver:a,plugins:i}}catch(e){return{}}},p="custom-sdks-config";function g(e){return"player"===e?f("walkme-sdk-version"):"sdk-utils"===e?f("walkme-sdk-utils-version"):void 0}function y(e){var t;const n=JSON.parse(f(p)||null),r=null===(t=null==n?void 0:n[e])||void 0===t?void 0:t.customVersion;return"local"===r?"local":r}function v(e){return new URL(window.location.href).searchParams.get(e)}function h(){return"true"===v(k)||!!v(T)}function b(){if(h()){let e=v(T);if(!e){const t=new URL(window.location.href),n=t.pathname.split("/");n.splice(0,1),n.splice(-4),t.search="",t.pathname=n.join("/"),e=""+t.href}return e}return"true"===v(O)||"cdn.walkmeqa.com"===new URL(window.location.href).hostname||"qa"===globalThis.WM_SDK_ENV?"https://cdn.walkmeqa.com":"true"===v(S)||"eu-cdn.walkme.com"===new URL(window.location.href).hostname?"https://eu-cdn.walkme.com":"https://cdn.walkme.com"}function w(e){const t=y("player")||g("player")||"2.0";return"local"===t?"https://localhost:9128/dist/":`${b()+"/sdk/player"}/${e?"":t+"/"}`}const k="selfhosted",T="selfhostedroot",S="isEu",O="isQa";function j(){const e=y("player")||g("player")||"2.0";return"local"===e?"https://localhost:9902/dist/index.js":"2"===v("sdk-version")?`${b()+"/sdk/sdk-applications"}/${h()?"":e+"/"}index.js`:b()+"/sdk/player/1.0/main.js"}function _(){const e=y("sdk-utils")||g("sdk-utils")||"2.0";return"local"===e?"https://localhost:9904/dist/index.js":`${b()+"/sdk/sdk-utils"}/${e}/index.js`}var P;!function(e){e.INFO="info",e.ERROR="error",e.WARN="warn"}(P||(P={}));const I={sessionId:"noSessionId",userGuid:"noUserGuid",platformApiVersion:-1,platformImplementation:"unknown",messengerName:"unknown"},C=(e={})=>{Object.assign(I,e)};async function A({eventName:e,module:t,message:n,data:r,logLevel:o,extra:a}){}const x=e=>A(Object.assign(Object.assign({},e),{logLevel:P.INFO})),E=e=>A(Object.assign(Object.assign({},e),{logLevel:P.WARN})),D=e=>A(Object.assign(Object.assign({},e),{logLevel:P.ERROR,extra:(new Error).stack})),L={warn:E,log:x,error:D,setExtra:C},N=(e=100)=>{const t=Date.now();let n=Date.now(),r=0;const o=()=>Date.now()-n;return{getTotalComputedTime:()=>r+o(),politelyReleaseIfNeeded:()=>o()>e&&(async()=>{r+=Date.now()-n,await new Promise(e=>{setTimeout(e,10)}),n=Date.now()})(),getTotalAbsoluteTime:()=>Date.now()-t}};function M(e){const t={},n=new Map;function r(t,n){throw L.error({eventName:"Serializer",message:t,module:"sdk-utils",data:{metadata:n,messengerName:e}}),new Error(t)}const o=(e,t)=>t.has(e)&&e&&(Array.isArray(e)||"object"==typeof e),a=(e,r,o)=>Array.isArray(e)?[]:"object"==typeof e&&e?{}:"function"==typeof e?function(e,r,o){if(n.has(e))return n.get(e);const a=`##function##${o}##${d()}`,i=e.bind(r);return t[a]=i,n.set(e,a),a}(e,r,Array.isArray(r)?"ANONYMOUS":o):e;function*i(t,n,r,o){if(Array.isArray(t))for(let e=0;e<t.length;e++)yield{obj:t[e],key:e,parent:n,originalParent:t};else if("object"==typeof t&&t)for(const r of function*(t,n,r){const o=Date.now(),a=Object.getOwnPropertyDescriptors(t),i=Date.now()-o;i>50&&L.warn({eventName:"get_own_property_descriptors_measurement",message:"the function getOwnPropertyDescriptors took too long to execute",module:"sdk-utils",data:{duration:i}});let s=0,u=0;for(const e in a)"function"!=typeof a[e].get?(s++,yield e):u++;u-s>100&&L.warn({message:`Allot of getters were excluded: ${u}. Compared to ${s} non getter properties`,eventName:"Serializer",module:"sdk-utils",data:{metadata:r,messengerName:e}})}(t,0,o))yield{obj:t[r],parent:n,key:r,originalParent:t}}return{serialize:async(t,n)=>{let s=0;const u=new Set,c={},l=function(){let e,t,n=0;return{shift:()=>{const t=null==e?void 0:e.item;return e=null==e?void 0:e.next,n=Math.max(n-1,0),t},push:r=>{n++;const o={item:r};e?(t.next=o,t=t.next):(e=o,t=o)},get length(){return n}}}();l.push({obj:t,key:"ANONYMOUS",parent:c,originalParent:{}});const d=N(),f=((e,t)=>{const n={};let r=-1;const o=()=>{n[r]&&(n[r].statsForIteration.totalTime=Date.now()-n[r].statsForIteration.startTime,n[r].statsForIteration.totalComputed=e.getTotalComputedTime()-n[r].statsForIteration.lastComputed)},a=e=>{let t;for(const r in n)n[r].statsForIteration[e]>(t?n[t].statsForIteration[e]:-1)&&(t=r);return Object.assign(Object.assign({},n[t]),{iteration:t})};return{addCheckPoint:o=>{r>t||n[r].points.push({message:o,totalComputedTime:e.getTotalComputedTime(),totalAbsoluteTime:e.getTotalAbsoluteTime()})},getCheckPoints:()=>n,getMaxComputedIteration:()=>a("totalComputed"),getMaxAbsoluteIteration:()=>a("totalTime"),setIteration:a=>{-1!==r&&o(),(o=>{r=o,r>t||(n[r]={points:[],statsForIteration:{startTime:Date.now(),lastComputed:e.getTotalComputedTime(),totalTime:-1,totalComputed:-1}})})(a)},finish:()=>{r>t||o()}}})(d,10);for(;l.length;){s++,f.setIteration(s),f.addCheckPoint(`starting the ${s}'s iteration`),s+l.length>5e5&&r("not serializable: https://cdn.walkme.com/sdk/sdk-applications/2.0/docs/index.html#serialization",n),d.getTotalComputedTime()>3e4&&r(`unable to serialize after 30 seconds, ${s} iterations. Giving up`,n);const{obj:e,parent:t,key:c,originalParent:m}=l.shift();f.addCheckPoint(`got our next key to serialize: ${c}. checking if we need to release the UI thread first`);const p=d.politelyReleaseIfNeeded();if(!1!==p&&await p,c in t)continue;if(f.addCheckPoint("checking circular object"),o(e,u)){t[c]="##CIRCULAR_OBJECT##";continue}u.add(e),f.addCheckPoint("getting base object");const g=a(e,m,c);t[c]=g,f.addCheckPoint("adding children to the queue");for(const t of i(e,g,0,n))l.push(t);f.addCheckPoint(`finished the ${s}'s iteration`)}const p=d.getTotalComputedTime(),g=d.getTotalAbsoluteTime(),y=c.ANONYMOUS;return f.finish(),(p>1500||g>6e3)&&L.warn({message:`serialize took ${p}ms to compute, ${s} iterations to complete, in an overall time of ${g}ms`,eventName:"Serializer",module:"sdk-utils",data:Object.assign(Object.assign(Object.assign({metadata:n,messengerName:e},s<50?{serializedObj:y}:void 0),s<10?{checkPoints:f.getCheckPoints(),maxComputedIteration:f.getMaxComputedIteration(),maxAbsoluteIteration:f.getMaxAbsoluteIteration()}:void 0),{dateNowToString:Date.now.toString(),setTimeoutToString:setTimeout.toString(),navigatorProps:m()})}),y},deserialize:function e(t,n){return Array.isArray(t)?((t,n)=>t.map(t=>e(t,n)))(t,n):"object"==typeof t&&t?((t,n)=>Object.entries(t).reduce((t,[r,o])=>(t[r]=e(o,n),t),{}))(t,n):/^##function##/.test(t)?(...e)=>n(t,e):t},getFunction:e=>t[e]}}function R(e){const t=M(e.name),n="__sdk__runtime__uniq__me"===e.name?e.name:`${e.name}##${d()}`,r={applicationId:n,messageType:l.request},o={applicationId:n,messageType:l.response},a={},i={},s=e=>t.getFunction(e)||a[e];function u(){const e=Date.now();let t;for(let n=0;n<1e4;n++)if(t=Date.now()-e,t>100)return{iterations:n,duration:t};return{iterations:1e4,duration:t}}function c(e){if("platform_get_api"===e.functionId){const e=m();L.error({eventName:"platform_get_api_failed",module:"sdk-runtime",data:{navigatorProps:e,performance:u()}})}}async function f({metadata:n,data:r}){let o;try{o=await t.serialize(r,n)}catch(r){return c(n),n.messageType===l.response&&e.sendMessage({metadata:n,data:await t.serialize(r,n)}),Promise.reject(r)}return e.sendMessage({metadata:n,data:o}),n.messageType===l.request?(a=n.messageId,new Promise((e,t)=>{i[a]={resolve:e,reject:t}})):Promise.resolve();var a}const p=(t="sdk_get_api")=>f({metadata:Object.assign(Object.assign({functionId:t,messageId:d()},r),{messageStackTrace:null}),data:[]}).then(t=>(L.setExtra(Object.assign(Object.assign({},t.extra),{messengerName:e.name})),t)),g=t=>{const n=t.sdk_get_api;if(n){const t=n();L.setExtra(Object.assign(Object.assign({},t.extra),{messengerName:e.name}))}Object.assign(a,t)};return e.receiveMessage((function(a){var u,m;if(!function(e){return e&&"object"==typeof e&&"metadata"in e&&"data"in e}(a))return;const{metadata:p,data:g}=a,{messageType:y,messageId:v,functionId:h,applicationId:b}=p;if(!function({requester:e,messageType:t,functionId:r,messageId:o}){return t===l.response?!!i[o]:e!==n&&!!s(r)}({requester:b,messageType:y,functionId:h,messageId:v}))return;const w=t.deserialize(g,(k=p,(e,t)=>f({metadata:Object.assign({messageStackTrace:k,functionId:e,messageId:d()},r),data:t})));var k;y===l.response?(p.error?(L.warn({data:{metadata:p,messengerName:e.name},eventName:"rpc",message:"other side rejected",module:"sdk-runtime"}),c(p),null===(u=i[v])||void 0===u||u.reject(p)):null===(m=i[v])||void 0===m||m.resolve(w),delete i[v]):async function(e,n,r,a){const i=s(n);if(i){let s,u;const c=Object.assign(Object.assign({messageId:e,functionId:n},o),{messageStackTrace:a});try{const e=await i(...r);s=await t.serialize(e,c)}catch(e){u=await t.serialize(e,c)}await f({metadata:Object.assign(Object.assign({},c),{error:u}),data:s})}}(v,h,w,p)})),"undefined"!=typeof TESTING?{getApi:p,provideResolver:g,serializer:t,onmessages:i}:{getApi:p,provideResolver:g}}const U=R;function W(e,t){const n=document.createElement("script");n.async=!0,n.src=e,document.getElementsByTagName("head")[0].appendChild(n),n.onerror=t}const z=()=>window,$=async e=>(await new Promise(e=>{var t;t=e,z()._walkmeInternals=z()._walkmeInternals||{},Object.assign(z()._walkmeInternals,{__rpc_loader_resolver:t}),W(_(),()=>{})})).rpc(e);let F=globalThis.sdkInstance;const V=e=>({async init(...t){F=await e(...t)},get content(){return null==F?void 0:F.content},get settings(){return null==F?void 0:F.settings},get storage(){return null==F?void 0:F.storage},get conditions(){return null==F?void 0:F.conditions},get events(){return null==F?void 0:F.events},get language(){return null==F?void 0:F.language},get platform(){return null==F?void 0:F.platform},get apps(){return null==F?void 0:F.apps},get ui(){return null==F?void 0:F.ui},get services(){return null==F?void 0:F.services},get notifications(){return null==F?void 0:F.notifications}});(()=>{const e=null===(t=window._walkmeInternals)||void 0===t?void 0:t.__rpc_loader_resolver;var t;e&&e({rpc:R})})()}])},function(e,t,n){"use strict";var r,o,a,i,s,u,c,l,d,f,m,p;n.d(t,"i",(function(){return r})),n.d(t,"h",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"k",(function(){return d})),n.d(t,"j",(function(){return f})),n.d(t,"a",(function(){return m})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return g})),n.d(t,"n",(function(){return y})),function(e){e.Video="video",e.Article="article",e.Launcher="launcher",e.ShoutOut="shoutOut",e.Shuttle="shuttle",e.SmartWalkThru="smart-walkthru",e.Survey="survey",e.Task="task",e.Course="course",e.Lesson="lesson",e.Walkthru="walkthru",e.Category="category",e.Tab="tab",e.Experiments="experiments",e.SearchProviderUrl="search-provider-url",e.Tag="tag",e.TrackedElement="trackedElement",e.TrackedPage="trackedPage",e.SupportItem="support",e.SearchResult="search-result",e.HelpDesk="helpDesk",e.SmartTipSet="smartTipSet"}(r||(r={})),function(e){e.Help="help",e.Tasks="tasks"}(o||(o={})),function(e){e[e.Walkthru=0]="Walkthru",e[e.Task=1]="Task",e[e.Launcher=2]="Launcher",e[e.LabelGroup=3]="LabelGroup",e[e.Survey=4]="Survey",e[e.AbExperiment=5]="AbExperiment",e[e.Category=6]="Category",e[e.Content=7]="Content",e[e.Collection=8]="Collection",e[e.Shuttle=9]="Shuttle",e[e.Tag=10]="Tag",e[e.ShoutOut=14]="ShoutOut",e[e.ConditionBlock=17]="ConditionBlock",e[e.BusinessSolution=19]="BusinessSolution",e[e.Lesson=20]="Lesson",e[e.Course=21]="Course",e[e.TrackedPage=22]="TrackedPage",e[e.Spotlight=23]="Spotlight",e[e.Tooltip=24]="Tooltip",e[e.TrackedElement=25]="TrackedElement",e[e.SearchProviderUrl=26]="SearchProviderUrl",e[e.Space=27]="Space",e[e.Folder=28]="Folder",e[e.ActionBot=29]="ActionBot",e[e.ActionBotConversation=30]="ActionBotConversation",e[e.Menu=31]="Menu"}(a||(a={})),function(e){e.IDP="idp"}(i||(i={})),function(e){e[e.Play=2]="Play"}(s||(s={})),function(e){e.Verbose="Verbose",e.Debug="Debug",e.Info="Info",e.Warn="Warn",e.Error="Error"}(u||(u={})),function(e){e.Web="web",e.Mac="mac",e.Windows="windows",e.Mock="mock",e.Worker="worker"}(c||(c={})),function(e){e.BeforeOpen="beforeOpen",e.BeforeClose="beforeClose"}(l||(l={})),function(e){e.VisualDesign="visualDesign"}(d||(d={})),function(e){e.ActionClicked="visualDesign.actionClicked",e.ContentClicked="visualDesign.contentClicked"}(f||(f={})),function(e){e.Remote="remote",e.Destroy="destroy",e.PlayShuttle="playShuttle",e.Play="play",e.PlayContent="playContent",e.PlaySWT="playBf",e.PlayWT="playWt",e.OpenMenu="openMenu"}(m||(m={})),function(e){e.APPS_DRAWS="wm-visualDesign-apps-items",e.DRAW_ACTIONS="wm-visualDesign-item-actions",e.DRAW_CONTENTS_OPS="wm-visualDesign-item-contents-ops"}(p||(p={}));const g=600;var y;!function(e){e.Empty="%",e.Px="px"}(y||(y={}))},,function(e,t,n){"use strict";n.r(t),n.d(t,"TypeName",(function(){return s.i})),n.d(t,"TabType",(function(){return s.h})),n.d(t,"LegacyTypes",(function(){return s.e})),n.d(t,"EndUserMethods",(function(){return s.b})),n.d(t,"Environment",(function(){return s.c})),n.d(t,"LogLevel",(function(){return s.f})),n.d(t,"PlatformType",(function(){return s.g})),n.d(t,"EventTypeName",(function(){return s.d})),n.d(t,"UIItemType",(function(){return s.k})),n.d(t,"UIEventType",(function(){return s.j})),n.d(t,"ActionType",(function(){return s.a})),n.d(t,"UI_STORAGE_KEYS",(function(){return s.l})),n.d(t,"UI_STORAGE_TIME",(function(){return s.m})),n.d(t,"Unit",(function(){return s.n}));var r=n(0);const o={name:"sdk-iframe-proxy-client",sendMessage:e=>{var t;return null===(t=a().contentWindow)||void 0===t?void 0:t.postMessage(e,"*")},receiveMessage:e=>{window.addEventListener("message",t=>{var n;(null===(n=t.data)||void 0===n?void 0:n.metadata)&&e(t.data)})}},a=()=>document.querySelector("#wm-channel");function i(){return new Promise(e=>{const t=document.createElement("iframe");t.id="wm-channel",t.src=Object(r.getPublicPath)()+"sdk-proxy.html?platform=web",t.style.display="none",t.addEventListener("load",()=>{const t=Object(r.rpc)(o).getApi();e(t)}),document.body.appendChild(t)})}var s=n(1);const u=Object(r.createSdk)((async function(e={mode:"common"}){try{return await("iframe"===e.mode?((null===(o=null===(n=null===(t=globalThis._walkmeInternals)||void 0===t?void 0:t.ctx)||void 0===n?void 0:n.get("FeaturesManager"))||void 0===o?void 0:o.isFeatureEnabled("playerSDKV2"))?c:i)():async function(){if(globalThis.sdkInstance)return globalThis.sdkInstance;const e=self;if(!e.__walkmeSDKLazyLoad){e.__walkmeSDKLazyLoad={},e.__walkmeSDKLazyLoad.promise=new Promise(t=>{e.__walkmeSDKLazyLoad.resolve=t,e.__walkmeSDKLazyLoad.reject=t});const t=document.createElement("script");t.src=""+Object(r.getSdkApplicationsPublicPathWithEntry)(),document.body.appendChild(t)}const t=await e.__walkmeSDKLazyLoad.promise;return await t.init(),globalThis.sdkInstance=t,t}())}catch(e){throw console.error(e),e}var t,n,o}));t.default=u;async function c(){return await new Promise(e=>{var t;const n=({data:t})=>{"WalkMeApplicationsLoader-PlayerSDKLoaded"===t&&(window.removeEventListener("message",n),e())};(null===(t=globalThis._walkmeInternals)||void 0===t?void 0:t.getPlayerSdk)?e():window.addEventListener("message",n)}),globalThis._walkmeInternals.getPlayerSdk()}}])}));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([,function(e,t,n){"use strict";var r;n.r(t),n.d(t,"addScript",(function(){return W})),n.d(t,"createSdk",(function(){return V})),n.d(t,"isSelfHosted",(function(){return h})),n.d(t,"getCdnRoot",(function(){return b})),n.d(t,"getPublicPath",(function(){return w})),n.d(t,"getSdkApplicationsPublicPathWithEntry",(function(){return j})),n.d(t,"getSdkUtilsPublicPathWithEntry",(function(){return _})),n.d(t,"rpc",(function(){return R})),n.d(t,"overTheWire",(function(){return U})),n.d(t,"getLocalStorageItem",(function(){return f})),n.d(t,"getNavigatorProps",(function(){return m})),n.d(t,"LogLevel",(function(){return P})),n.d(t,"setExtra",(function(){return C})),n.d(t,"log",(function(){return x})),n.d(t,"warn",(function(){return E})),n.d(t,"error",(function(){return D})),n.d(t,"logger",(function(){return L})),n.d(t,"CUSTOM_SDKS_CONFIG_KEY",(function(){return p})),n.d(t,"rpcLoader",(function(){return $}));var o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&i.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,d=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n}(r)};!function(e){e.request="request",e.response="response"}(l||(l={}));const f=e=>{var t,n;try{return(null===(n=null===(t=globalThis.walkme)||void 0===t?void 0:t.localStorageOverrides)||void 0===n?void 0:n[e])||globalThis.localStorage.getItem(e)}catch(e){}},m=()=>{try{const{appVersion:e,connection:t,hardwareConcurrency:n,userAgent:r,userAgentData:o,webdriver:a,plugins:i}=navigator;return{appVersion:e,connection:t,hardwareConcurrency:n,userAgent:r,userAgentData:o,webdriver:a,plugins:i}}catch(e){return{}}},p="custom-sdks-config";function g(e){return"player"===e?f("walkme-sdk-version"):"sdk-utils"===e?f("walkme-sdk-utils-version"):void 0}function y(e){var t;const n=JSON.parse(f(p)||null),r=null===(t=null==n?void 0:n[e])||void 0===t?void 0:t.customVersion;return"local"===r?"local":r}function v(e){return new URL(window.location.href).searchParams.get(e)}function h(){return"true"===v(k)||!!v(T)}function b(){if(h()){let e;try{e=atob(v(T)||"")}catch(e){}if(!e){const t=new URL(window.location.href),n=t.pathname.split("/");n.splice(0,1),n.splice(-4),t.search="",t.pathname=n.join("/"),e=""+t.href}return e}return"true"===v(O)||"cdn.walkmeqa.com"===new URL(window.location.href).hostname||"qa"===globalThis.WM_SDK_ENV?"https://cdn.walkmeqa.com":"true"===v(S)||"eu-cdn.walkme.com"===new URL(window.location.href).hostname?"https://eu-cdn.walkme.com":"https://cdn.walkme.com"}function w(e){const t=y("player")||g("player")||"2.0";return"local"===t?"https://localhost:9128/dist/":`${b()+"/sdk/player"}/${e?"":t+"/"}`}const k="selfhosted",T="selfhostedroot",S="isEu",O="isQa";function j(){const e=y("player")||g("player")||"2.0";return"local"===e?"https://localhost:9902/dist/index.js":"2"===v("sdk-version")?`${b()+"/sdk/sdk-applications"}/${h()?"":e+"/"}index.js`:b()+"/sdk/player/1.0/main.js"}function _(){const e=y("sdk-utils")||g("sdk-utils")||"2.0";return"local"===e?"https://localhost:9904/dist/index.js":`${b()+"/sdk/sdk-utils"}/${e}/index.js`}var P;!function(e){e.INFO="info",e.ERROR="error",e.WARN="warn"}(P||(P={}));const I={sessionId:"noSessionId",userGuid:"noUserGuid",platformApiVersion:-1,platformImplementation:"unknown",messengerName:"unknown"},C=(e={})=>{Object.assign(I,e)};async function A({eventName:e,module:t,message:n,data:r,logLevel:o,extra:a}){}const x=e=>A(Object.assign(Object.assign({},e),{logLevel:P.INFO})),E=e=>A(Object.assign(Object.assign({},e),{logLevel:P.WARN})),D=e=>A(Object.assign(Object.assign({},e),{logLevel:P.ERROR,extra:(new Error).stack})),L={warn:E,log:x,error:D,setExtra:C},N=(e=100)=>{const t=Date.now();let n=Date.now(),r=0;const o=()=>Date.now()-n;return{getTotalComputedTime:()=>r+o(),politelyReleaseIfNeeded:()=>o()>e&&(async()=>{r+=Date.now()-n,await new Promise(e=>{setTimeout(e,10)}),n=Date.now()})(),getTotalAbsoluteTime:()=>Date.now()-t}};function M(e){const t={},n=new Map;function r(t,n){throw L.error({eventName:"Serializer",message:t,module:"sdk-utils",data:{metadata:n,messengerName:e}}),new Error(t)}const o=(e,t)=>t.has(e)&&e&&(Array.isArray(e)||"object"==typeof e),a=(e,r,o)=>Array.isArray(e)?[]:"object"==typeof e&&e?{}:"function"==typeof e?function(e,r,o){if(n.has(e))return n.get(e);const a=`##function##${o}##${d()}`,i=e.bind(r);return t[a]=i,n.set(e,a),a}(e,r,Array.isArray(r)?"ANONYMOUS":o):e;function*i(t,n,r,o){if(Array.isArray(t))for(let e=0;e<t.length;e++)yield{obj:t[e],key:e,parent:n,originalParent:t};else if("object"==typeof t&&t)for(const r of function*(t,n,r){const o=Date.now(),a=Object.getOwnPropertyDescriptors(t),i=Date.now()-o;i>50&&L.warn({eventName:"get_own_property_descriptors_measurement",message:"the function getOwnPropertyDescriptors took too long to execute",module:"sdk-utils",data:{duration:i}});let s=0,u=0;for(const e in a)"function"!=typeof a[e].get?(s++,yield e):u++;u-s>100&&L.warn({message:`Allot of getters were excluded: ${u}. Compared to ${s} non getter properties`,eventName:"Serializer",module:"sdk-utils",data:{metadata:r,messengerName:e}})}(t,0,o))yield{obj:t[r],parent:n,key:r,originalParent:t}}return{serialize:async(t,n)=>{let s=0;const u=new Set,c={},l=function(){let e,t,n=0;return{shift:()=>{const t=null==e?void 0:e.item;return e=null==e?void 0:e.next,n=Math.max(n-1,0),t},push:r=>{n++;const o={item:r};e?(t.next=o,t=t.next):(e=o,t=o)},get length(){return n}}}();l.push({obj:t,key:"ANONYMOUS",parent:c,originalParent:{}});const d=N(),f=((e,t)=>{const n={};let r=-1;const o=()=>{n[r]&&(n[r].statsForIteration.totalTime=Date.now()-n[r].statsForIteration.startTime,n[r].statsForIteration.totalComputed=e.getTotalComputedTime()-n[r].statsForIteration.lastComputed)},a=e=>{let t;for(const r in n)n[r].statsForIteration[e]>(t?n[t].statsForIteration[e]:-1)&&(t=r);return Object.assign(Object.assign({},n[t]),{iteration:t})};return{addCheckPoint:o=>{r>t||n[r].points.push({message:o,totalComputedTime:e.getTotalComputedTime(),totalAbsoluteTime:e.getTotalAbsoluteTime()})},getCheckPoints:()=>n,getMaxComputedIteration:()=>a("totalComputed"),getMaxAbsoluteIteration:()=>a("totalTime"),setIteration:a=>{-1!==r&&o(),(o=>{r=o,r>t||(n[r]={points:[],statsForIteration:{startTime:Date.now(),lastComputed:e.getTotalComputedTime(),totalTime:-1,totalComputed:-1}})})(a)},finish:()=>{r>t||o()}}})(d,10);for(;l.length;){s++,f.setIteration(s),f.addCheckPoint(`starting the ${s}'s iteration`),s+l.length>5e5&&r("not serializable: https://cdn.walkme.com/sdk/sdk-applications/2.0/docs/index.html#serialization",n),d.getTotalComputedTime()>3e4&&r(`unable to serialize after 30 seconds, ${s} iterations. Giving up`,n);const{obj:e,parent:t,key:c,originalParent:m}=l.shift();f.addCheckPoint(`got our next key to serialize: ${c}. checking if we need to release the UI thread first`);const p=d.politelyReleaseIfNeeded();if(!1!==p&&await p,c in t)continue;if(f.addCheckPoint("checking circular object"),o(e,u)){t[c]="##CIRCULAR_OBJECT##";continue}u.add(e),f.addCheckPoint("getting base object");const g=a(e,m,c);t[c]=g,f.addCheckPoint("adding children to the queue");for(const t of i(e,g,0,n))l.push(t);f.addCheckPoint(`finished the ${s}'s iteration`)}const p=d.getTotalComputedTime(),g=d.getTotalAbsoluteTime(),y=c.ANONYMOUS;return f.finish(),(p>1500||g>6e3)&&L.warn({message:`serialize took ${p}ms to compute, ${s} iterations to complete, in an overall time of ${g}ms`,eventName:"Serializer",module:"sdk-utils",data:Object.assign(Object.assign(Object.assign({metadata:n,messengerName:e},s<50?{serializedObj:y}:void 0),s<10?{checkPoints:f.getCheckPoints(),maxComputedIteration:f.getMaxComputedIteration(),maxAbsoluteIteration:f.getMaxAbsoluteIteration()}:void 0),{dateNowToString:Date.now.toString(),setTimeoutToString:setTimeout.toString(),navigatorProps:m()})}),y},deserialize:function e(t,n){return Array.isArray(t)?((t,n)=>t.map(t=>e(t,n)))(t,n):"object"==typeof t&&t?((t,n)=>Object.entries(t).reduce((t,[r,o])=>(t[r]=e(o,n),t),{}))(t,n):/^##function##/.test(t)?(...e)=>n(t,e):t},getFunction:e=>t[e]}}function R(e){const t=M(e.name),n="__sdk__runtime__uniq__me"===e.name?e.name:`${e.name}##${d()}`,r={applicationId:n,messageType:l.request},o={applicationId:n,messageType:l.response},a={},i={},s=e=>t.getFunction(e)||a[e];function u(){const e=Date.now();let t;for(let n=0;n<1e4;n++)if(t=Date.now()-e,t>100)return{iterations:n,duration:t};return{iterations:1e4,duration:t}}function c(e){if("platform_get_api"===e.functionId){const e=m();L.error({eventName:"platform_get_api_failed",module:"sdk-runtime",data:{navigatorProps:e,performance:u()}})}}async function f({metadata:n,data:r}){let o;try{o=await t.serialize(r,n)}catch(r){return c(n),n.messageType===l.response&&e.sendMessage({metadata:n,data:await t.serialize(r,n)}),Promise.reject(r)}return e.sendMessage({metadata:n,data:o}),n.messageType===l.request?(a=n.messageId,new Promise((e,t)=>{i[a]={resolve:e,reject:t}})):Promise.resolve();var a}const p=(t="sdk_get_api")=>f({metadata:Object.assign(Object.assign({functionId:t,messageId:d()},r),{messageStackTrace:null}),data:[]}).then(t=>(L.setExtra(Object.assign(Object.assign({},t.extra),{messengerName:e.name})),t)),g=t=>{const n=t.sdk_get_api;if(n){const t=n();L.setExtra(Object.assign(Object.assign({},t.extra),{messengerName:e.name}))}Object.assign(a,t)};return e.receiveMessage((function(a){var u,m;if(!function(e){return e&&"object"==typeof e&&"metadata"in e&&"data"in e}(a))return;const{metadata:p,data:g}=a,{messageType:y,messageId:v,functionId:h,applicationId:b}=p;if(!function({requester:e,messageType:t,functionId:r,messageId:o}){return t===l.response?!!i[o]:e!==n&&!!s(r)}({requester:b,messageType:y,functionId:h,messageId:v}))return;const w=t.deserialize(g,(k=p,(e,t)=>f({metadata:Object.assign({messageStackTrace:k,functionId:e,messageId:d()},r),data:t})));var k;y===l.response?(p.error?(L.warn({data:{metadata:p,messengerName:e.name},eventName:"rpc",message:"other side rejected",module:"sdk-runtime"}),c(p),null===(u=i[v])||void 0===u||u.reject(p)):null===(m=i[v])||void 0===m||m.resolve(w),delete i[v]):async function(e,n,r,a){const i=s(n);if(i){let s,u;const c=Object.assign(Object.assign({messageId:e,functionId:n},o),{messageStackTrace:a});try{const e=await i(...r);s=await t.serialize(e,c)}catch(e){u=await t.serialize(e,c)}await f({metadata:Object.assign(Object.assign({},c),{error:u}),data:s})}}(v,h,w,p)})),"undefined"!=typeof TESTING?{getApi:p,provideResolver:g,serializer:t,onmessages:i}:{getApi:p,provideResolver:g}}const U=R;function W(e,t){const n=document.createElement("script");n.async=!0,n.src=e,document.getElementsByTagName("head")[0].appendChild(n),n.onerror=t}const z=()=>window,$=async e=>(await new Promise(e=>{var t;t=e,z()._walkmeInternals=z()._walkmeInternals||{},Object.assign(z()._walkmeInternals,{__rpc_loader_resolver:t}),W(_(),()=>{})})).rpc(e);let F=globalThis.sdkInstance;const V=e=>({async init(...t){F=await e(...t)},get content(){return null==F?void 0:F.content},get settings(){return null==F?void 0:F.settings},get storage(){return null==F?void 0:F.storage},get conditions(){return null==F?void 0:F.conditions},get events(){return null==F?void 0:F.events},get language(){return null==F?void 0:F.language},get platform(){return null==F?void 0:F.platform},get apps(){return null==F?void 0:F.apps},get ui(){return null==F?void 0:F.ui},get services(){return null==F?void 0:F.services},get notifications(){return null==F?void 0:F.notifications}});(()=>{const e=null===(t=window._walkmeInternals)||void 0===t?void 0:t.__rpc_loader_resolver;var t;e&&e({rpc:R})})()}])},function(e,t,n){"use strict";var r,o,a,i,s,u,c,l,d,f,m,p;n.d(t,"i",(function(){return r})),n.d(t,"h",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"k",(function(){return d})),n.d(t,"j",(function(){return f})),n.d(t,"a",(function(){return m})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return g})),n.d(t,"n",(function(){return y})),function(e){e.Video="video",e.Article="article",e.Launcher="launcher",e.ShoutOut="shoutOut",e.Shuttle="shuttle",e.SmartWalkThru="smart-walkthru",e.Survey="survey",e.Task="task",e.Course="course",e.Lesson="lesson",e.Walkthru="walkthru",e.Category="category",e.Tab="tab",e.Experiments="experiments",e.SearchProviderUrl="search-provider-url",e.Tag="tag",e.TrackedElement="trackedElement",e.TrackedPage="trackedPage",e.SupportItem="support",e.SearchResult="search-result",e.HelpDesk="helpDesk",e.SmartTipSet="smartTipSet"}(r||(r={})),function(e){e.Help="help",e.Tasks="tasks"}(o||(o={})),function(e){e[e.Walkthru=0]="Walkthru",e[e.Task=1]="Task",e[e.Launcher=2]="Launcher",e[e.LabelGroup=3]="LabelGroup",e[e.Survey=4]="Survey",e[e.AbExperiment=5]="AbExperiment",e[e.Category=6]="Category",e[e.Content=7]="Content",e[e.Collection=8]="Collection",e[e.Shuttle=9]="Shuttle",e[e.Tag=10]="Tag",e[e.ShoutOut=14]="ShoutOut",e[e.ConditionBlock=17]="ConditionBlock",e[e.BusinessSolution=19]="BusinessSolution",e[e.Lesson=20]="Lesson",e[e.Course=21]="Course",e[e.TrackedPage=22]="TrackedPage",e[e.Spotlight=23]="Spotlight",e[e.Tooltip=24]="Tooltip",e[e.TrackedElement=25]="TrackedElement",e[e.SearchProviderUrl=26]="SearchProviderUrl",e[e.Space=27]="Space",e[e.Folder=28]="Folder",e[e.ActionBot=29]="ActionBot",e[e.ActionBotConversation=30]="ActionBotConversation",e[e.Menu=31]="Menu"}(a||(a={})),function(e){e.IDP="idp"}(i||(i={})),function(e){e[e.Play=2]="Play"}(s||(s={})),function(e){e.Verbose="Verbose",e.Debug="Debug",e.Info="Info",e.Warn="Warn",e.Error="Error"}(u||(u={})),function(e){e.Web="web",e.Mac="mac",e.Windows="windows",e.Mock="mock",e.Worker="worker"}(c||(c={})),function(e){e.BeforeOpen="beforeOpen",e.BeforeClose="beforeClose"}(l||(l={})),function(e){e.VisualDesign="visualDesign"}(d||(d={})),function(e){e.ActionClicked="visualDesign.actionClicked",e.ContentClicked="visualDesign.contentClicked"}(f||(f={})),function(e){e.Remote="remote",e.Destroy="destroy",e.PlayShuttle="playShuttle",e.Play="play",e.PlayContent="playContent",e.PlaySWT="playBf",e.PlayWT="playWt",e.OpenMenu="openMenu"}(m||(m={})),function(e){e.APPS_DRAWS="wm-visualDesign-apps-items",e.DRAW_ACTIONS="wm-visualDesign-item-actions",e.DRAW_CONTENTS_OPS="wm-visualDesign-item-contents-ops"}(p||(p={}));const g=600;var y;!function(e){e.Empty="%",e.Px="px"}(y||(y={}))},,function(e,t,n){"use strict";n.r(t),n.d(t,"TypeName",(function(){return s.i})),n.d(t,"TabType",(function(){return s.h})),n.d(t,"LegacyTypes",(function(){return s.e})),n.d(t,"EndUserMethods",(function(){return s.b})),n.d(t,"Environment",(function(){return s.c})),n.d(t,"LogLevel",(function(){return s.f})),n.d(t,"PlatformType",(function(){return s.g})),n.d(t,"EventTypeName",(function(){return s.d})),n.d(t,"UIItemType",(function(){return s.k})),n.d(t,"UIEventType",(function(){return s.j})),n.d(t,"ActionType",(function(){return s.a})),n.d(t,"UI_STORAGE_KEYS",(function(){return s.l})),n.d(t,"UI_STORAGE_TIME",(function(){return s.m})),n.d(t,"Unit",(function(){return s.n}));var r=n(0);const o={name:"sdk-iframe-proxy-client",sendMessage:e=>{var t;return null===(t=a().contentWindow)||void 0===t?void 0:t.postMessage(e,"*")},receiveMessage:e=>{window.addEventListener("message",t=>{var n;(null===(n=t.data)||void 0===n?void 0:n.metadata)&&e(t.data)})}},a=()=>document.querySelector("#wm-channel");function i(){return new Promise(e=>{const t=document.createElement("iframe");t.id="wm-channel",t.src=Object(r.getPublicPath)()+"sdk-proxy.html?platform=web",t.style.display="none",t.addEventListener("load",()=>{const t=Object(r.rpc)(o).getApi();e(t)}),document.body.appendChild(t)})}var s=n(1);const u=Object(r.createSdk)((async function(e={mode:"common"}){try{return await("iframe"===e.mode?((null===(o=null===(n=null===(t=globalThis._walkmeInternals)||void 0===t?void 0:t.ctx)||void 0===n?void 0:n.get("FeaturesManager"))||void 0===o?void 0:o.isFeatureEnabled("playerSDKV2"))?c:i)():async function(){if(globalThis.sdkInstance)return globalThis.sdkInstance;const e=self;if(!e.__walkmeSDKLazyLoad){e.__walkmeSDKLazyLoad={},e.__walkmeSDKLazyLoad.promise=new Promise(t=>{e.__walkmeSDKLazyLoad.resolve=t,e.__walkmeSDKLazyLoad.reject=t});const t=document.createElement("script");t.src=""+Object(r.getSdkApplicationsPublicPathWithEntry)(),document.body.appendChild(t)}const t=await e.__walkmeSDKLazyLoad.promise;return await t.init(),globalThis.sdkInstance=t,t}())}catch(e){throw console.error(e),e}var t,n,o}));t.default=u;async function c(){return await new Promise(e=>{var t;const n=({data:t})=>{"WalkMeApplicationsLoader-PlayerSDKLoaded"===t&&(window.removeEventListener("message",n),e())};(null===(t=globalThis._walkmeInternals)||void 0===t?void 0:t.getPlayerSdk)?e():window.addEventListener("message",n)}),globalThis._walkmeInternals.getPlayerSdk()}}])}));
//# sourceMappingURL=index.js.map
{
"name": "@walkme/sdk",
"version": "2.0.21",
"version": "2.0.22",
"description": "Player SDK",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc