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.14 to 2.0.15

dist/sdk-utils/src/overTheWire/checkPointTracker.d.ts

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 G})),n.d(t,"isSelfHosted",(function(){return v})),n.d(t,"getPublicPath",(function(){return w})),n.d(t,"getSdkApplicationsPublicPathWithEntry",(function(){return S})),n.d(t,"getSdkUtilsPublicPathWithEntry",(function(){return T})),n.d(t,"rpc",(function(){return R})),n.d(t,"overTheWire",(function(){return U})),n.d(t,"getLocalStorageItem",(function(){return f})),n.d(t,"LogLevel",(function(){return I})),n.d(t,"log",(function(){return j})),n.d(t,"warn",(function(){return E})),n.d(t,"error",(function(){return x})),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=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));var c,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"}(c||(c={}));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){}},p="custom-sdks-config";function m(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 g(e){return new URL(window.location.href).searchParams.get(e)}function v(){return"true"===g(k)}function h(){const e=window.location.href.match(/^(.*?\/components)\//);return e&&e[1]}function b(e){if(e){const e=new URL(window.location.href),t=e.pathname.split("/");return t.splice(0,1),t.splice(-4),e.search="",e.pathname=t.join("/"),e.href+"/components"}return"https://cdn.walkme.com"}function w(e){const t=y("player")||m("player")||"2.0";return"local"===t?"https://localhost:9128/dist/":`${b(e)}${e?"/sdk-runtime":"/sdk/player"}/${t}/`}const k="selfhosted";function S(){const e=y("player")||m("player")||"2.0";if("local"===e)return"https://localhost:9902/dist/index.js";if("2"===g("sdk-version")){let t;return t=v()?h():b()+"/sdk",`${t+"/sdk-applications"}/${e}/index.js`}return b()+"/sdk/player/1.0/main.js"}function T(){const e=y("sdk-utils")||m("sdk-utils")||"2.0";if("local"===e)return"https://localhost:9904/dist/index.js";let t;return t=v()?h():b()+"/sdk",`${t+"/sdk-utils"}/${e}/index.js`}var I;let O,_;async function P({eventName:e,module:t,message:n,data:r,logLevel:o,extra:a}){if(!v()){(null==r?void 0:r.error)instanceof Error&&(r.error=JSON.parse(JSON.stringify(r.error,Object.getOwnPropertyNames(r.error))));try{await fetch("https://ec.walkme.com/event/log",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:"walkme-sdk",module:t,message:`${e}${n?": "+n:""}`,data:r,level:o,commit:"a4aea383ff279589a7067a41e77c1120865793f2",sdkBranch:"master",sessionId:O,userGuid:_,extra:a})})}catch(e){}}}!function(e){e.INFO="info",e.ERROR="error",e.WARN="warn"}(I||(I={}));const j=e=>P(Object.assign(Object.assign({},e),{logLevel:I.INFO})),E=e=>P(Object.assign(Object.assign({},e),{logLevel:I.WARN})),x=e=>P(Object.assign(Object.assign({},e),{logLevel:I.ERROR,extra:(new Error).stack})),L={warn:E,log:j,error:x,setSessionId:(e="noSessionId")=>{O=e},setUserGuid:(e="noUserGuid")=>{_=e}};var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},C=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof A?Promise.resolve(n.value.v).then(u,l):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}},N=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}};function D(e){throw L.error({eventName:"Serializer",message:e,module:"sdk-utils"}),new Error(e)}function M(){const e={},t=new Map;function n(e,t){return C(this,arguments,(function*(){const n=Object.getOwnPropertyDescriptors(e);for(const e in n)yield A(t.politelyReleaseIfNeeded()),"function"!=typeof n[e].get&&(yield yield A(e))}))}const r=(e,t)=>t.has(e)&&e&&(Array.isArray(e)||"object"==typeof e),o=(n,r,o)=>Array.isArray(n)?[]:"object"==typeof n&&n?{}:"function"==typeof n?function(n,r,o){if(t.has(n))return t.get(n);const a=`##function##${o}##${d()}`,i=n.bind(r);return e[a]=i,t.set(n,a),a}(n,r,Array.isArray(r)?"ANONYMOUS":o):n;function a(e,t,r){return C(this,arguments,(function*(){var o,a;if(Array.isArray(e))for(let n=0;n<e.length;n++)yield A(r.politelyReleaseIfNeeded()),yield yield A({obj:e[n],key:n,parent:t,originalParent:e});else if("object"==typeof e&&e)try{for(var i,s=N(n(e,r));!(i=yield A(s.next())).done;){const n=i.value;yield A(r.politelyReleaseIfNeeded()),yield yield A({obj:e[n],parent:t,key:n,originalParent:e})}}catch(e){o={error:e}}finally{try{i&&!i.done&&(a=s.return)&&(yield A(a.call(s)))}finally{if(o)throw o.error}}}))}const i=(e=100)=>{const t=Date.now();let n=Date.now(),r=0;const o=()=>Date.now()-n;return{getTotalComputedTime:()=>r+o(),politelyReleaseIfNeeded:async()=>{o()>e&&await(async()=>{r+=Date.now()-n,await new Promise(e=>{setTimeout(e,10)}),n=Date.now()})()},getTotalAbsoluteTime:()=>Date.now()-t}};return{serialize:async e=>{var t,n;let s=0;const u=new Set,l={},c=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}}}();c.push({obj:e,key:"ANONYMOUS",parent:l,originalParent:{}});const d=i();for(;c.length;){s++,s+c.length>5e5&&D("not serializable: https://cdn.walkme.com/sdk/sdk-applications/2.0/docs/index.html#serialization"),d.getTotalComputedTime()>3e4&&D(`unable to serialize after 30 seconds, ${s} iterations. Giving up`),await d.politelyReleaseIfNeeded();const{obj:i,parent:l,key:m,originalParent:y}=c.shift();if(!(m in l))if(r(i,u))l[m]="##CIRCULAR_OBJECT##";else{u.add(i);const r=o(i,y,m);l[m]=r;try{for(var f,p=(t=void 0,N(a(i,r,d)));!(f=await p.next()).done;){const e=f.value;c.push(e)}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=p.return)&&await n.call(p)}finally{if(t)throw t.error}}}}const m=d.getTotalComputedTime(),y=d.getTotalAbsoluteTime();return(m>1500||y>6e3)&&L.warn({message:`serialize took ${m}ms to compute, ${s} iterations to complete, in an overall time of ${y}ms`,eventName:"Serializer",module:"sdk-utils"}),l.ANONYMOUS},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:t=>e[t]}}function R(e){const t=M(),n="__sdk__runtime__uniq__me"===e.name?e.name:`${e.name}##${d()}`,r={applicationId:n,messageType:c.request},o={applicationId:n,messageType:c.response},a={},i={},s=e=>t.getFunction(e)||a[e];async function u({metadata:n,data:r}){let o;try{o=await t.serialize(r)}catch(r){return n.messageType===c.response&&e.sendMessage({metadata:n,data:await t.serialize(r)}),Promise.reject(r)}return e.sendMessage({metadata:n,data:o}),n.messageType===c.request?(a=n.messageId,new Promise((e,t)=>{i[a]={resolve:e,reject:t}})):Promise.resolve();var a}const l=(e="sdk_get_api")=>u({metadata:Object.assign(Object.assign({functionId:e,messageId:d()},r),{messageStackTrace:null}),data:[]}).then(e=>{const{userGuid:t,sessionId:n}=e;return t&&L.setUserGuid(t),n&&L.setSessionId(n),e}),f=e=>{const t=e.sdk_get_api;if(t){const e=t();L.setSessionId(null==e?void 0:e.sessionId),L.setUserGuid(null==e?void 0:e.userGuid)}Object.assign(a,e)};return e.receiveMessage((function(a){var l,f;if(!function(e){return e&&"object"==typeof e&&"metadata"in e&&"data"in e}(a))return;const{metadata:p,data:m}=a,{messageType:y,messageId:g,functionId:v,applicationId:h}=p;if(!function({requester:e,messageType:t,functionId:r,messageId:o}){return t===c.response?!!i[o]:e!==n&&!!s(r)}({requester:h,messageType:y,functionId:v,messageId:g}))return;const b=t.deserialize(m,(w=p,(e,t)=>u({metadata:Object.assign({messageStackTrace:w,functionId:e,messageId:d()},r),data:t})));var w;y===c.response?(p.error?(L.warn({data:{metadata:p,messengerName:e.name},eventName:"rpc",message:"other side rejected",module:"sdk-runtime"}),null===(l=i[g])||void 0===l||l.reject(p)):null===(f=i[g])||void 0===f||f.resolve(b),delete i[g]):async function(e,n,r,a){const i=s(n);if(i){let s,l;try{const e=await i(...r);s=await t.serialize(e)}catch(e){l=await t.serialize(e)}u({metadata:Object.assign(Object.assign({messageId:e,functionId:n},o),{error:l,messageStackTrace:a}),data:s})}}(g,v,b,p)})),"undefined"!=typeof TESTING?{getApi:l,provideResolver:f,serializer:t,onmessages:i}:{getApi:l,provideResolver:f}}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(T(),()=>{})})).rpc(e);let B=globalThis.sdkInstance;const G=e=>({async init(...t){B=await e(...t)},get content(){return null==B?void 0:B.content},get settings(){return null==B?void 0:B.settings},get storage(){return null==B?void 0:B.storage},get conditions(){return null==B?void 0:B.conditions},get events(){return null==B?void 0:B.events},get language(){return null==B?void 0:B.language},get platform(){return null==B?void 0:B.platform},get apps(){return null==B?void 0:B.apps},get ui(){return null==B?void 0:B.ui},get services(){return null==B?void 0:B.services},get notifications(){return null==B?void 0:B.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,l,c,d,f,p,m;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 l})),n.d(t,"d",(function(){return c})),n.d(t,"k",(function(){return d})),n.d(t,"j",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"l",(function(){return m})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return g})),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"}(l||(l={})),function(e){e.BeforeOpen="beforeOpen",e.BeforeClose="beforeClose"}(c||(c={})),function(e){e.VisualDesign="visualDesign"}(d||(d={})),function(e){e.ActionClicked="visualDesign.actionClicked"}(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"}(p||(p={})),function(e){e.APPS_DRAWS="wm-visualDesign-apps-items",e.DRAW_ACTIONS="wm-visualDesign-item-actions"}(m||(m={}));const y=600;var g;!function(e){e.Empty="%",e.Px="px"}(g||(g={}))},,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"))?l: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 l(){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 $})),n.d(t,"createSdk",(function(){return B})),n.d(t,"isSelfHosted",(function(){return v})),n.d(t,"getPublicPath",(function(){return w})),n.d(t,"getSdkApplicationsPublicPathWithEntry",(function(){return S})),n.d(t,"getSdkUtilsPublicPathWithEntry",(function(){return T})),n.d(t,"rpc",(function(){return R})),n.d(t,"overTheWire",(function(){return z})),n.d(t,"getLocalStorageItem",(function(){return f})),n.d(t,"LogLevel",(function(){return I})),n.d(t,"setExtra",(function(){return j})),n.d(t,"log",(function(){return _})),n.d(t,"warn",(function(){return C})),n.d(t,"error",(function(){return x})),n.d(t,"logger",(function(){return A})),n.d(t,"CUSTOM_SDKS_CONFIG_KEY",(function(){return m})),n.d(t,"rpcLoader",(function(){return W}));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="custom-sdks-config";function p(e){return"player"===e?f("walkme-sdk-version"):"sdk-utils"===e?f("walkme-sdk-utils-version"):void 0}function g(e){var t;const n=JSON.parse(f(m)||null),r=null===(t=null==n?void 0:n[e])||void 0===t?void 0:t.customVersion;return"local"===r?"local":r}function y(e){return new URL(window.location.href).searchParams.get(e)}function v(){return"true"===y(k)}function h(){const e=window.location.href.match(/^(.*?\/components)\//);return e&&e[1]}function b(e){if(e){const e=new URL(window.location.href),t=e.pathname.split("/");return t.splice(0,1),t.splice(-4),e.search="",e.pathname=t.join("/"),e.href+"/components"}return"https://cdn.walkme.com"}function w(e){const t=g("player")||p("player")||"2.0";return"local"===t?"https://localhost:9128/dist/":`${b(e)}${e?"/sdk-runtime":"/sdk/player"}/${t}/`}const k="selfhosted";function S(){const e=g("player")||p("player")||"2.0";if("local"===e)return"https://localhost:9902/dist/index.js";if("2"===y("sdk-version")){let t;return t=v()?h():b()+"/sdk",`${t+"/sdk-applications"}/${e}/index.js`}return b()+"/sdk/player/1.0/main.js"}function T(){const e=g("sdk-utils")||p("sdk-utils")||"2.0";if("local"===e)return"https://localhost:9904/dist/index.js";let t;return t=v()?h():b()+"/sdk",`${t+"/sdk-utils"}/${e}/index.js`}var I;!function(e){e.INFO="info",e.ERROR="error",e.WARN="warn"}(I||(I={}));const O={sessionId:"noSessionId",userGuid:"noUserGuid",platformApiVersion:-1,platformImplementation:"unknown",messengerName:"unknown"},j=(e={})=>{Object.assign(O,e)};async function P({eventName:e,module:t,message:n,data:r,logLevel:o,extra:a}){if(!v()){(null==r?void 0:r.error)instanceof Error&&(r.error=JSON.parse(JSON.stringify(r.error,Object.getOwnPropertyNames(r.error))));try{await fetch("https://ec.walkme.com/event/log",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:"walkme-sdk",module:t,message:`${e}${n?": "+n:""}`,data:r,level:o,commit:"cf19644084c4480df4bd60f2e4e88652b093e448",sdkBranch:"master",envInfo:O,extra:a})})}catch(e){}}}const _=e=>P(Object.assign(Object.assign({},e),{logLevel:I.INFO})),C=e=>P(Object.assign(Object.assign({},e),{logLevel:I.WARN})),x=e=>P(Object.assign(Object.assign({},e),{logLevel:I.ERROR,extra:(new Error).stack})),A={warn:C,log:_,error:x,setExtra:j},E=(e=100)=>{const t=Date.now();let n=Date.now(),r=0;const o=()=>Date.now()-n;return{getTotalComputedTime:()=>r+o(),politelyReleaseIfNeeded:async()=>{o()>e&&await(async()=>{r+=Date.now()-n,await new Promise(e=>{setTimeout(e,10)}),n=Date.now()})()},getTotalAbsoluteTime:()=>Date.now()-t}};var L=function(e){return this instanceof L?(this.v=e,this):new L(e)},N=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof L?Promise.resolve(n.value.v).then(u,c):l(a[0][2],n)}catch(e){l(a[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}},M=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}};function D(e){const t={},n=new Map;function r(t,n){throw A.error({eventName:"Serializer",message:t,module:"sdk-utils",data:{metadata:n,messengerName:e}}),new Error(t)}function o(t,n,r){return N(this,arguments,(function*(){const o=Object.getOwnPropertyDescriptors(t);let a=0,i=0;for(const e in o)yield L(n.politelyReleaseIfNeeded()),"function"!=typeof o[e].get?(a++,yield yield L(e)):i++;i-a>100&&A.warn({message:`Allot of getters were excluded: ${i}. Compared to ${a} non getter properties`,eventName:"Serializer",module:"sdk-utils",data:{metadata:r,messengerName:e}})}))}const a=(e,t)=>t.has(e)&&e&&(Array.isArray(e)||"object"==typeof e),i=(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 s(e,t,n,r){return N(this,arguments,(function*(){var a,i;if(Array.isArray(e))for(let r=0;r<e.length;r++)yield L(n.politelyReleaseIfNeeded()),yield yield L({obj:e[r],key:r,parent:t,originalParent:e});else if("object"==typeof e&&e)try{for(var s,u=M(o(e,n,r));!(s=yield L(u.next())).done;){const r=s.value;yield L(n.politelyReleaseIfNeeded()),yield yield L({obj:e[r],parent:t,key:r,originalParent:e})}}catch(e){a={error:e}}finally{try{s&&!s.done&&(i=u.return)&&(yield L(i.call(u)))}finally{if(a)throw a.error}}}))}return{serialize:async(t,n)=>{var o,u;let c=0;const l=new Set,d={},f=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}}}();f.push({obj:t,key:"ANONYMOUS",parent:d,originalParent:{}});const m=E(),p=((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()}}})(m,10);for(;f.length;){c++,p.setIteration(c),p.addCheckPoint(`starting the ${c}'s iteration`),c+f.length>5e5&&r("not serializable: https://cdn.walkme.com/sdk/sdk-applications/2.0/docs/index.html#serialization",n),m.getTotalComputedTime()>3e4&&r(`unable to serialize after 30 seconds, ${c} iterations. Giving up`,n);const{obj:e,parent:t,key:d,originalParent:v}=f.shift();if(p.addCheckPoint(`got our next key to serialize: ${d}. checking if we need to release the UI thread first`),await m.politelyReleaseIfNeeded(),d in t)continue;if(p.addCheckPoint("checking circular object"),a(e,l)){t[d]="##CIRCULAR_OBJECT##";continue}l.add(e),p.addCheckPoint("getting base object");const h=i(e,v,d);t[d]=h,p.addCheckPoint("adding children to the queue");try{for(var g,y=(o=void 0,M(s(e,h,m,n)));!(g=await y.next()).done;){const e=g.value;f.push(e)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(u=y.return)&&await u.call(y)}finally{if(o)throw o.error}}p.addCheckPoint(`finished the ${c}'s iteration`)}const v=m.getTotalComputedTime(),h=m.getTotalAbsoluteTime(),b=d.ANONYMOUS;return p.finish(),(v>1500||h>6e3)&&A.warn({message:`serialize took ${v}ms to compute, ${c} iterations to complete, in an overall time of ${h}ms`,eventName:"Serializer",module:"sdk-utils",data:Object.assign(Object.assign(Object.assign({metadata:n,messengerName:e},c<50?{serializedObj:b}:void 0),c<10?{checkPoints:p.getCheckPoints(),maxComputedIteration:p.getMaxComputedIteration(),maxAbsoluteIteration:p.getMaxAbsoluteIteration()}:void 0),{dateNowToString:Date.now.toString()})}),b},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=D(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];async function u({metadata:n,data:r}){let o;try{o=await t.serialize(r,n)}catch(r){return 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 c=(t="sdk_get_api")=>u({metadata:Object.assign(Object.assign({functionId:t,messageId:d()},r),{messageStackTrace:null}),data:[]}).then(t=>(A.setExtra(Object.assign(Object.assign({},t.extra),{messengerName:e.name})),t)),f=t=>{const n=t.sdk_get_api;if(n){const t=n();A.setExtra(Object.assign(Object.assign({},t.extra),{messengerName:e.name}))}Object.assign(a,t)};return e.receiveMessage((function(a){var c,f;if(!function(e){return e&&"object"==typeof e&&"metadata"in e&&"data"in e}(a))return;const{metadata:m,data:p}=a,{messageType:g,messageId:y,functionId:v,applicationId:h}=m;if(!function({requester:e,messageType:t,functionId:r,messageId:o}){return t===l.response?!!i[o]:e!==n&&!!s(r)}({requester:h,messageType:g,functionId:v,messageId:y}))return;const b=t.deserialize(p,(w=m,(e,t)=>u({metadata:Object.assign({messageStackTrace:w,functionId:e,messageId:d()},r),data:t})));var w;g===l.response?(m.error?(A.warn({data:{metadata:m,messengerName:e.name},eventName:"rpc",message:"other side rejected",module:"sdk-runtime"}),null===(c=i[y])||void 0===c||c.reject(m)):null===(f=i[y])||void 0===f||f.resolve(b),delete i[y]):async function(e,n,r,a){const i=s(n);if(i){let s,c;const l=Object.assign(Object.assign({messageId:e,functionId:n},o),{messageStackTrace:a});try{const e=await i(...r);s=await t.serialize(e,l)}catch(e){c=await t.serialize(e,l)}u({metadata:Object.assign(Object.assign({},l),{error:c}),data:s})}}(y,v,b,m)})),"undefined"!=typeof TESTING?{getApi:c,provideResolver:f,serializer:t,onmessages:i}:{getApi:c,provideResolver:f}}const z=R;function $(e,t){const n=document.createElement("script");n.async=!0,n.src=e,document.getElementsByTagName("head")[0].appendChild(n),n.onerror=t}const U=()=>window,W=async e=>(await new Promise(e=>{var t;t=e,U()._walkmeInternals=U()._walkmeInternals||{},Object.assign(U()._walkmeInternals,{__rpc_loader_resolver:t}),$(T(),()=>{})})).rpc(e);let F=globalThis.sdkInstance;const B=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"}(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"}(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

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

import type { ISdk } from 'sdk-types';
import type { ISdk } from "../../types";
export declare function getSDK(): Promise<ISdk>;

@@ -1,4 +0,4 @@

import type { ISdk } from 'sdk-types';
import type { ISdk } from "../../types";
declare const sdk: ISdk;
export default sdk;
export * from 'sdk-types';
export * from "../../types";

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

export * from 'sdk-runtime/test/testkit';
export * from "../sdk-runtime/test/testkit";

@@ -1,4 +0,4 @@

import type { IPlatformAPI } from 'sdk-types';
import type { IPlatformAPI } from "../../../types";
declare type AdapterType = (platformApi: IPlatformAPI) => IPlatformAPI;
export declare const adaptPlatformAPI: AdapterType;
export {};

@@ -12,3 +12,3 @@ /**

*/
import type { IApps, IEvents, IPlatform, ISettings, IStorage } from 'sdk-types';
import type { IApps, IEvents, IPlatform, ISettings, IStorage } from "../../../types";
declare type Services = {

@@ -15,0 +15,0 @@ apps: IApps;

@@ -1,3 +0,3 @@

import type { InitPlatformAPI, WalkMeApp } from 'sdk-types';
import type { InitPlatformAPI, WalkMeApp } from "../../../../types";
declare const article: WalkMeApp & InitPlatformAPI;
export default article;

@@ -1,3 +0,3 @@

import type { WalkMeDataCollection, WalkMeDataItem } from 'sdk-types';
import type { ResourceType } from '../Video/types';
import type { WalkMeDataCollection, WalkMeDataItem } from "../../../../types";
import type { ResourceType } from "../Video/types";
export interface ArticleDataCollection extends WalkMeDataCollection {

@@ -4,0 +4,0 @@ Contents: Array<ArticleData>;

@@ -1,4 +0,4 @@

import type { WalkMeApp, InitPlatformAPI } from 'sdk-types';
import type { RequiredByPath } from 'sdk-types/required-by-path';
import type { WalkMeApp, InitPlatformAPI } from "../../../../types";
import type { RequiredByPath } from "../../../../types/required-by-path";
declare const helpDesk: RequiredByPath<WalkMeApp, 'sdk.getContent'> & InitPlatformAPI;
export default helpDesk;

@@ -1,4 +0,4 @@

import type { ContentItem, TypeName } from 'sdk-types';
import type { ContentItem, TypeName } from "../../../../types";
export interface HelpDeskLink extends ContentItem {
type: TypeName.HelpDesk;
}

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

import type { ContentCollection, WalkMeApp, DataOptions } from 'sdk-types';
import type { ContentCollection, WalkMeApp, DataOptions } from "../../../types";
declare function getContent(options: DataOptions): Promise<ContentCollection>;

@@ -3,0 +3,0 @@ export declare function register(app: WalkMeApp): void;

@@ -1,3 +0,3 @@

import type { InitPlatformAPI, WalkMeApp } from 'sdk-types';
import type { InitPlatformAPI, WalkMeApp } from "../../../../types";
declare const smartWT: WalkMeApp & InitPlatformAPI;
export default smartWT;

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

import type { WalkMeDataCollection, WalkMeDataItem } from 'sdk-types';
import type { WalkMeDataCollection, WalkMeDataItem } from "../../../../types";
export interface SmartWTDataCollection extends WalkMeDataCollection {

@@ -3,0 +3,0 @@ BusinessSolutions: Array<SmartWTData>;

@@ -1,3 +0,3 @@

import type { InitPlatformAPI, WalkMeApp } from 'sdk-types';
import type { InitPlatformAPI, WalkMeApp } from "../../../../types";
declare const video: WalkMeApp & InitPlatformAPI;
export default video;

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

import type { WalkMeDataCollection, WalkMeDataItem } from 'sdk-types';
import type { WalkMeDataCollection, WalkMeDataItem } from "../../../../types";
export interface VideoDataCollection extends WalkMeDataCollection {

@@ -3,0 +3,0 @@ Contents: Array<VideoData>;

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

declare const _default: () => import("sdk-applications-loader/src").ISdk;
declare const _default: () => import("../../sdk-applications-loader/src").ISdk;
export default _default;

@@ -1,3 +0,3 @@

import type { WalkMeContentProvider, InitPlatformAPI } from 'sdk-types';
import type { WalkMeContentProvider, InitPlatformAPI } from "../../../../types";
declare const helpDesk: WalkMeContentProvider & InitPlatformAPI;
export default helpDesk;

@@ -1,3 +0,3 @@

import type { ContentCollection, DataOptions, WalkMeContentProvider } from 'sdk-types';
import type { IPlatformAPI } from 'sdk-types/platform';
import type { ContentCollection, DataOptions, WalkMeContentProvider } from "../../../types";
import type { IPlatformAPI } from "../../../types/platform";
declare function getContent(options: DataOptions, platformAPI: IPlatformAPI): Promise<ContentCollection>;

@@ -4,0 +4,0 @@ export declare function register(provider: WalkMeContentProvider): void;

@@ -1,5 +0,5 @@

import type { IApps } from 'sdk-types/sdk';
import type { IPlatformAPI } from 'sdk-types/platform';
import type { IApps } from "../../../types/sdk";
import type { IPlatformAPI } from "../../../types/platform";
export declare const APPS_LOAD_TIMEOUT: number;
export declare const STAGING_BASE = "https://cdn-staging.apps.walkme.com";
export declare function apps(platformAPI: IPlatformAPI): Promise<IApps>;

@@ -1,3 +0,3 @@

import type { IConditions } from 'sdk-types';
import type { IPlatformAPI } from 'sdk-types/platform';
import type { IConditions } from "../../../types";
import type { IPlatformAPI } from "../../../types/platform";
export declare const conditions: (platformAPI: IPlatformAPI) => IConditions;

@@ -1,3 +0,3 @@

import type { IContent } from 'sdk-types';
import type { IPlatformAPI } from 'sdk-types/platform';
import type { IContent } from "../../../types";
import type { IPlatformAPI } from "../../../types/platform";
export declare function content(platformAPI: IPlatformAPI): Promise<IContent>;

@@ -1,3 +0,3 @@

import type { IPlatformAPI } from 'sdk-types/platform';
import type { IEvents } from 'sdk-types';
import type { IPlatformAPI } from "../../../types/platform";
import type { IEvents } from "../../../types";
export declare function events(platformAPI: IPlatformAPI): Promise<IEvents>;

@@ -1,3 +0,3 @@

import type { ISdk } from 'sdk-types';
import type { IPlatformAPI } from 'sdk-types/platform';
import type { ISdk } from "../../../types";
import type { IPlatformAPI } from "../../../types/platform";
export declare function sdk(platformAPI: IPlatformAPI): Promise<ISdk & {

@@ -4,0 +4,0 @@ sessionId?: string;

@@ -1,3 +0,3 @@

import type { IPlatformAPI } from 'sdk-types/platform';
import type { ILanguage } from 'sdk-types';
import type { IPlatformAPI } from "../../../types/platform";
import type { ILanguage } from "../../../types";
export declare const language: (platformAPI: IPlatformAPI) => Promise<ILanguage>;

@@ -1,3 +0,3 @@

import type { IPlatformAPI } from 'sdk-types/platform';
import type { INotifications } from 'sdk-types/sdk/notifications';
import type { IPlatformAPI } from "../../../types/platform";
import type { INotifications } from "../../../types/sdk/notifications";
export declare function notifications(platformAPI: IPlatformAPI): INotifications;

@@ -1,3 +0,3 @@

import type { IPlatformAPI } from 'sdk-types/platform';
import type { IPlatform } from 'sdk-types/sdk';
import type { IPlatformAPI } from "../../../types/platform";
import type { IPlatform } from "../../../types/sdk";
export declare function platform(platformAPI: IPlatformAPI): IPlatform;

@@ -1,3 +0,3 @@

import type { IServices } from 'sdk-types';
import type { IPlatformAPI } from 'sdk-types/platform';
import type { IServices } from "../../../types";
import type { IPlatformAPI } from "../../../types/platform";
export declare function services(platformAPI: IPlatformAPI): Promise<IServices>;

@@ -1,3 +0,3 @@

import type { ISettings } from 'sdk-types';
import type { IPlatformAPI } from 'sdk-types/platform';
import type { ISettings } from "../../../types";
import type { IPlatformAPI } from "../../../types/platform";
export declare function settings(platformAPI: IPlatformAPI): Promise<ISettings>;

@@ -1,3 +0,3 @@

import type { IPlatformAPI } from 'sdk-types/platform';
import type { IStorage } from 'sdk-types';
import type { IPlatformAPI } from "../../../types/platform";
import type { IStorage } from "../../../types";
export declare const storage: (platformAPI: IPlatformAPI) => IStorage;

@@ -1,4 +0,4 @@

import type { IUI, IStorage } from 'sdk-types';
import type { IPlatformAPI } from 'types/platform';
import type { IEvents } from './../../../types/sdk/events';
import type { IUI, IStorage } from "../../../types";
import type { IPlatformAPI } from "../../../types/platform";
import type { IEvents } from "../../../types/sdk/events";
export declare function ui(platformAPI: IPlatformAPI, events: IEvents, storage: IStorage, storeData?: boolean): Promise<IUI>;

@@ -1,3 +0,3 @@

import type { PLAY_APP_INITIATOR } from 'sdk-types';
import type { PLAY_APP_INITIATOR } from "../../../types";
import { APPS, PLAY_INITIATORS } from '@walkme/types';
export declare function createInitiator(appGuid: APPS, appId: PLAY_INITIATORS, initiatorId: number): PLAY_APP_INITIATOR;

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

import type { VisualDesign, Action, ActionHandler, EventHandler, IStorage } from 'sdk-types';
import type { VisualDesign, Action, ActionHandler, EventHandler, IStorage } from "../../../types";
export declare const initAppDraws: (appGuid: string, storeData: boolean, storage: IStorage, appsItemsDictionary: {

@@ -3,0 +3,0 @@ [appGuid: string]: {

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

import type { SettingsFile } from 'sdk-types/platform';
import type { SettingsFile } from "../../../types/platform";
export declare function getSettings(guid: string, env: string, refresh?: boolean): Promise<SettingsFile>;

@@ -3,0 +3,0 @@ declare global {

@@ -1,4 +0,4 @@

import type { ContentCollection } from 'sdk-types';
import type { ContentCollection } from "../../../types";
export declare function getUrlParam(key: string): string | null;
export declare function addScript(url: any, onError: any): void;
export declare function addScript(url: any, onError: OnErrorEventHandlerNonNull, onLoad?: any): void;
export declare function arrToDict(arr: any, key?: string, val?: string): {};

@@ -5,0 +5,0 @@ export declare function mapValues<Value, Result>(obj: Record<string, Value>, callback: (val: Value, k: string) => Result): Record<string, Result>;

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

import { PlatformType } from 'sdk-types';
import { PlatformType } from "../../../types";
export declare function validatePlatformApiVersion(apiVersion: number, currentPlatformVersion: string, platformType: PlatformType): boolean;

@@ -1,4 +0,4 @@

import type { SettingsFile } from 'sdk-types/platform/v1';
import type { SettingsFile } from "../../../types/platform/v1";
declare const _default: SettingsFile;
export default _default;
export declare const example: SettingsFile;

@@ -1,3 +0,3 @@

import type { ILanguage, ISdk, PlatformType } from 'sdk-types/sdk';
import type { SettingsFile, SiteConfig } from 'sdk-types/platform';
import type { ILanguage, ISdk, PlatformType } from "../../types/sdk";
import type { SettingsFile, SiteConfig } from "../../types/platform";
export declare const testkitFactory: () => import("@walkme/testutils/dist/types").TestkitType<{

@@ -4,0 +4,0 @@ mockplatform: {

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

import type { IPlatformAPI } from 'sdk-types';
import type { IPlatformAPI } from "../../types";
export declare const testPlatform: Omit<IPlatformAPI, 'content_getContent' | 'content_getContentUITree'>;

@@ -1,4 +0,4 @@

import type { Messenger } from 'sdk-types/messenger';
import { rpc } from './overTheWire';
import type { Messenger } from "../../types/messenger";
import { rpc } from "./overTheWire";
export declare const rpcLoader: (messenger: Messenger) => Promise<ReturnType<typeof rpc>>;
export declare const dynamicUtils: () => void;

@@ -1,9 +0,9 @@

import { rpcLoader } from './dynamicUtils';
export * from './addScript';
export * from './sdkCreator';
export * from './sdkPublicPath';
export * from './overTheWire';
export * from './utils';
export * from './logger';
export * from './consts';
import { rpcLoader } from "./dynamicUtils";
export * from "./addScript";
export * from "./sdkCreator";
export * from "./sdkPublicPath";
export * from "./overTheWire";
export * from "./utils";
export * from "./logger";
export * from "./consts";
export { rpcLoader };

@@ -6,2 +6,10 @@ export declare enum LogLevel {

}
declare const envInfo: {
sessionId: string;
userGuid: string;
platformApiVersion: number;
platformImplementation: string;
messengerName: string;
};
export declare const setExtra: (extraInfo?: Partial<typeof envInfo>) => void;
declare type LogArg = {

@@ -21,5 +29,4 @@ data?: any;

error: (arg: Omit<LogArg, 'extra'>) => Promise<void>;
setSessionId: (sid?: string) => void;
setUserGuid: (guid?: string) => void;
setExtra: (extraInfo?: Partial<typeof envInfo>) => void;
};
export {};

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

import type { Messenger } from 'sdk-types/messenger';
import type { Messenger } from "../../../types/messenger";
export declare function rpc(messenger: Messenger): {

@@ -6,3 +6,3 @@ getApi: (functionId?: string) => Promise<any>;

serializer: {
serialize: (object: any) => Promise<any>;
serialize: (object: any, metadata: any) => Promise<any>;
deserialize: (schema: any, sendAction: any) => any;

@@ -9,0 +9,0 @@ getFunction: (functionId: any) => any;

export declare const MAX_ITERATIONS = 500000;
export declare function getSerializer(): {
serialize: (object: any) => Promise<any>;
export declare function getSerializer(messengerName: any): {
serialize: (object: any, metadata: any) => Promise<any>;
deserialize: (schema: any, sendAction: any) => any;
getFunction: (functionId: any) => any;
};

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

import type { ISdk } from 'sdk-types';
import type { ISdk } from "../../types";
export declare const createSdk: (initializor: any) => ISdk;

@@ -1,4 +0,4 @@

import { IPlatformAPI } from './platform';
import { IPlatformAPI } from "./platform";
export declare type IPlatformAPI_V1 = IPlatformAPI;
export { IPlatformAPI };
export * from './sdk';
export * from "./sdk";

@@ -1,3 +0,3 @@

import type { IPlatformAPI_V1 } from './v1';
export * from './v1';
import type { IPlatformAPI_V1 } from "./v1";
export * from "./v1";
export declare type IPlatformAPI = IPlatformAPI_V1;

@@ -1,7 +0,7 @@

import type { playByIdOptions, ContentItem, TypeName, ContentObject, ConditionTree, LanguageItem, DataOptions, LogLevel } from '../../sdk';
import type { NativeNotificationUIObject, PlatformType, UIItemType, VisualDesign } from 'sdk-types';
import type { SettingsFile } from './settingsFile';
import type { SiteConfig } from './siteConfig';
export * from './settingsFile';
export * from './siteConfig';
import type { playByIdOptions, ContentItem, TypeName, ContentObject, ConditionTree, LanguageItem, DataOptions, LogLevel } from "../../sdk";
import type { NativeNotificationUIObject, PlatformType, UIItemType, VisualDesign } from "../..";
import type { SettingsFile } from "./settingsFile";
import type { SiteConfig } from "./siteConfig";
export * from "./settingsFile";
export * from "./siteConfig";
export declare type IPlatformAPI_V1 = {

@@ -8,0 +8,0 @@ platformApiVersion: 3;

@@ -1,3 +0,3 @@

import type { IPlatformAPI } from '../platform';
import type { TypeName, ContentCollection, ContentItem, DataOptions } from './content';
import type { IPlatformAPI } from "../platform";
import type { TypeName, ContentCollection, ContentItem, DataOptions } from "./content";
export interface IApps {

@@ -4,0 +4,0 @@ /**

@@ -1,23 +0,23 @@

export * from './content';
export * from './settings';
export * from './storage';
export * from './language';
export * from './platform';
export * from './events';
export * from './conditions';
export * from './apps';
export * from './ui';
export * from './services';
export * from './notifications';
import type { IContent } from './content';
import type { ISettings } from './settings';
import type { IStorage } from './storage';
import type { ILanguage } from './language';
import type { IPlatform } from './platform';
import type { IEvents } from './events';
import type { IConditions } from './conditions';
import type { IApps } from './apps';
import type { IUI } from './ui';
import type { IServices } from './services';
import type { INotifications } from './notifications';
export * from "./content";
export * from "./settings";
export * from "./storage";
export * from "./language";
export * from "./platform";
export * from "./events";
export * from "./conditions";
export * from "./apps";
export * from "./ui";
export * from "./services";
export * from "./notifications";
import type { IContent } from "./content";
import type { ISettings } from "./settings";
import type { IStorage } from "./storage";
import type { ILanguage } from "./language";
import type { IPlatform } from "./platform";
import type { IEvents } from "./events";
import type { IConditions } from "./conditions";
import type { IApps } from "./apps";
import type { IUI } from "./ui";
import type { IServices } from "./services";
import type { INotifications } from "./notifications";
/**

@@ -24,0 +24,0 @@ * This is the interface of the SDK object.

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

import type { PLAY_APP_INITIATOR } from 'sdk-types';
import type { PLAY_APP_INITIATOR } from "..";
export interface IPlatform {

@@ -3,0 +3,0 @@ /**

{
"name": "@walkme/sdk",
"version": "2.0.14",
"version": "2.0.15",
"description": "Player SDK",

@@ -8,3 +8,3 @@ "main": "dist/index.js",

"scripts": {
"test": "echo tbd",
"test:ci": "echo Testing Testkit Declarations: && ttsc --noEmit src/testkit-ts-test.ts",
"build:ci": "webpack --mode production && webpack --mode development --config=webpack.testkit.config.ts && webpack --mode production --config=webpack.types.config.ts",

@@ -11,0 +11,0 @@ "build": "webpack --mode development",

@@ -6,2 +6,10 @@ export declare enum LogLevel {

}
declare const envInfo: {
sessionId: string;
userGuid: string;
platformApiVersion: number;
platformImplementation: string;
messengerName: string;
};
export declare const setExtra: (extraInfo?: Partial<typeof envInfo>) => void;
declare type LogArg = {

@@ -21,5 +29,4 @@ data?: any;

error: (arg: Omit<LogArg, 'extra'>) => Promise<void>;
setSessionId: (sid?: string) => void;
setUserGuid: (guid?: string) => void;
setExtra: (extraInfo?: Partial<typeof envInfo>) => void;
};
export {};

@@ -6,3 +6,3 @@ import type { Messenger } from 'sdk-types/messenger';

serializer: {
serialize: (object: any) => Promise<any>;
serialize: (object: any, metadata: any) => Promise<any>;
deserialize: (schema: any, sendAction: any) => any;

@@ -9,0 +9,0 @@ getFunction: (functionId: any) => any;

export declare const MAX_ITERATIONS = 500000;
export declare function getSerializer(): {
serialize: (object: any) => Promise<any>;
export declare function getSerializer(messengerName: any): {
serialize: (object: any, metadata: any) => Promise<any>;
deserialize: (schema: any, sendAction: any) => any;
getFunction: (functionId: any) => any;
};

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