@walkeros/web-destination-linkedin 4.6.1 → 4.7.0-next-1790187973605
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/walkerOS.json +5 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @walkeros/web-destination-linkedin
|
|
2
2
|
|
|
3
|
+
## 4.7.0-next-1790187973605
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [57788bc]
|
|
8
|
+
- Updated dependencies [f5a1cfd]
|
|
9
|
+
- Updated dependencies [ef02916]
|
|
10
|
+
- Updated dependencies [ef02916]
|
|
11
|
+
- Updated dependencies [2aebc53]
|
|
12
|
+
- Updated dependencies [f5a1cfd]
|
|
13
|
+
- Updated dependencies [f5a1cfd]
|
|
14
|
+
- Updated dependencies [2aebc53]
|
|
15
|
+
- Updated dependencies [8f8aea6]
|
|
16
|
+
- Updated dependencies [2aebc53]
|
|
17
|
+
- Updated dependencies [2aebc53]
|
|
18
|
+
- @walkeros/core@4.7.0-next-1790187973605
|
|
19
|
+
- @walkeros/web-core@4.7.0-next-1790187973605
|
|
20
|
+
|
|
3
21
|
## 4.6.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Destination=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{DestinationLinkedIn:()=>q,default:()=>M,destinationLinkedIn:()=>A});var i=Object.defineProperty,c=(t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})};function s(t,e){if("collector"===t)return"collector";if(!e)throw new Error(`stepId(${t}) requires an id`);return`${t}.${e}`}c({},{stepId:()=>s});function a(t,e){const n=t.destinations[e];if(!n)throw new Error(`Destination not found: ${e}`);return n}c({},{getDestination:()=>a});c({},{Level:()=>l});var u,l=((u=l||{})[u.ERROR=0]="ERROR",u[u.WARN=1]="WARN",u[u.INFO=2]="INFO",u[u.DEBUG=3]="DEBUG",u);function f(t,e){const n=t.transformers[e];if(!n)throw new Error(`Transformer not found: ${e}`);return n}c({},{getTransformer:()=>f});function d(t,e){const n=t.sources[e];if(!n)throw new Error(`Source not found: ${e}`);return n}c({},{getSource:()=>d});function p(t,e){const n=t.stores[e];if(!n)throw new Error(`Store not found: ${e}`);return n}async function v(t,e){return await t.get(e)}function g(t){return Array.isArray(t)}function y(t){return void 0!==t}function w(t){return"number"==typeof t&&!Number.isNaN(t)}function m(t){return"object"==typeof t&&null!==t&&!g(t)&&"[object Object]"===Object.prototype.toString.call(t)}function h(t){return"string"==typeof t}function b(t,e="",n){const r=e.split(".");let o=t;for(let t=0;t<r.length;t++){const e=r[t];if("*"===e&&g(o)){const e=r.slice(t+1).join("."),i=[];for(const t of o){const r=b(t,e,n);i.push(r)}return i}if(o=m(o)||g(o)?o[e]:void 0,void 0===o)break}return y(o)?o:n}function _(t){return function(t){return"boolean"==typeof t}(t)||h(t)||w(t)||!y(t)||g(t)&&t.every(_)||m(t)&&Object.values(t).every(_)}function j(t){return _(t)?t:void 0}function O(t,e,n){return async function(...r){try{return await t(...r)}catch(t){if(!e)return;return await e(t)}finally{await(null==n?void 0:n())}}}c({},{getStore:()=>p,getStoreValue:()=>v});var k=class t extends Error{constructor(e,n){super(e,n),this.name="FatalError",Object.setPrototypeOf(this,t.prototype)}};async function N(t,e={},n={}){var r,o;if(!y(t))return;const i=m(t)&&t.consent||n.consent||(null==(r=n.collector)?void 0:r.consent),c=null!=(o=n.event)?o:m(t)?t:{};if(!n.collector)throw new Error("getMappingValue: context.collector is required");const s={event:c,mapping:e,collector:n.collector,logger:n.collector.logger,consent:i},a=g(e)?e:[e];for(const e of a){const r=await O(E,t=>{if(t instanceof k)throw t;n.collector&&n.collector.status.failed++,s.logger.error("mapping processing failed",{event:c,error:t})})(t,e,{...s,mapping:e});if(y(r))return r}}async function E(t,e,n){return(g(e)?e:[e]).reduce(async(e,r)=>{const o=await e;if(o)return o;const i=h(r)?{key:r}:r;if(!Object.keys(i).length)return;const{condition:c,consent:s,fn:a,key:u,loop:l,map:f,set:d,validate:p,value:v}=i,w={...n,mapping:r};if(c&&!await O(c,t=>{if(t instanceof k)throw t;return w.logger.error("mapping condition failed",{event:w.event,error:t}),!1})(t,w))return;if(s&&!function(t,e={},n={}){const r={...e,...n},o={};let i=!t||0===Object.keys(t).length;return Object.keys(r).forEach(e=>{r[e]&&(o[e]=!0,t&&t[e]&&(i=!0))}),!!i&&o}(s,w.consent))return v;let m=y(v)?v:t;if(
|
|
1
|
+
"use strict";var Destination=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{DestinationLinkedIn:()=>q,default:()=>M,destinationLinkedIn:()=>A});var i=Object.defineProperty,c=(t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})};function s(t,e){if("collector"===t)return"collector";if(!e)throw new Error(`stepId(${t}) requires an id`);return`${t}.${e}`}c({},{stepId:()=>s});function a(t,e){const n=t.destinations[e];if(!n)throw new Error(`Destination not found: ${e}`);return n}c({},{getDestination:()=>a});c({},{Level:()=>l});var u,l=((u=l||{})[u.ERROR=0]="ERROR",u[u.WARN=1]="WARN",u[u.INFO=2]="INFO",u[u.DEBUG=3]="DEBUG",u);function f(t,e){const n=t.transformers[e];if(!n)throw new Error(`Transformer not found: ${e}`);return n}c({},{getTransformer:()=>f});function d(t,e){const n=t.sources[e];if(!n)throw new Error(`Source not found: ${e}`);return n}c({},{getSource:()=>d});function p(t,e){const n=t.stores[e];if(!n)throw new Error(`Store not found: ${e}`);return n}async function v(t,e){return await t.get(e)}function g(t){return Array.isArray(t)}function y(t){return void 0!==t}function w(t){return"number"==typeof t&&!Number.isNaN(t)}function m(t){return"object"==typeof t&&null!==t&&!g(t)&&"[object Object]"===Object.prototype.toString.call(t)}function h(t){return"string"==typeof t}function b(t,e="",n){const r=e.split(".");let o=t;for(let t=0;t<r.length;t++){const e=r[t];if("*"===e&&g(o)){const e=r.slice(t+1).join("."),i=[];for(const t of o){const r=b(t,e,n);i.push(r)}return i}if(o=m(o)||g(o)?o[e]:void 0,void 0===o)break}return y(o)?o:n}function _(t){return function(t){return"boolean"==typeof t}(t)||h(t)||w(t)||!y(t)||g(t)&&t.every(_)||m(t)&&Object.values(t).every(_)}function j(t){return _(t)?t:void 0}function O(t,e,n){return async function(...r){try{return await t(...r)}catch(t){if(!e)return;return await e(t)}finally{await(null==n?void 0:n())}}}c({},{getStore:()=>p,getStoreValue:()=>v});var k=class t extends Error{constructor(e,n){super(e,n),this.name="FatalError",Object.setPrototypeOf(this,t.prototype)}};async function N(t,e={},n={}){var r,o;if(!y(t))return;const i=m(t)&&t.consent||n.consent||(null==(r=n.collector)?void 0:r.consent),c=null!=(o=n.event)?o:m(t)?t:{};if(!n.collector)throw new Error("getMappingValue: context.collector is required");const s={event:c,mapping:e,collector:n.collector,logger:n.collector.logger,consent:i},a=g(e)?e:[e];for(const e of a){const r=await O(E,t=>{if(t instanceof k)throw t;n.collector&&n.collector.status.failed++,s.logger.error("mapping processing failed",{event:c,error:t})})(t,e,{...s,mapping:e});if(y(r))return r}}async function E(t,e,n){return(g(e)?e:[e]).reduce(async(e,r)=>{const o=await e;if(o)return o;const i=h(r)?{key:r}:r;if(!Object.keys(i).length)return;const{condition:c,consent:s,fn:a,key:u,loop:l,map:f,set:d,validate:p,value:v}=i,w={...n,mapping:r};if(c&&!await O(c,t=>{if(t instanceof k)throw t;return w.logger.error("mapping condition failed",{event:w.event,error:t}),!1})(t,w))return;if(s&&!function(t,e={},n={}){const r={...e,...n},o={};let i=!t||0===Object.keys(t).length;return Object.keys(r).forEach(e=>{r[e]&&(o[e]=!0,t&&t[e]&&(i=!0))}),!!i&&o}(s,w.consent))return v;let m=y(v)?v:t;if(l){const[e,n]=l,r="this"===e?[t]:await N(t,e,w);m=g(r)?(await Promise.all(r.map(t=>N(t,n,w)))).filter(y):void 0}else f?m=await Object.entries(f).reduce(async(e,[n,r])=>{const o=await e,i=await N(t,r,w);return y(i)&&(o[n]=i),o},Promise.resolve({})):d?m=await Promise.all(d.map(e=>E(t,e,w))):u?m=b(t,u,v):a&&(m=await O(a,t=>{if(t instanceof k)throw t;w.logger.error("mapping fn failed",{event:w.event,error:t})})(t,w));p&&!await O(p,t=>{if(t instanceof k)throw t;return w.logger.error("mapping validate failed",{event:w.event,error:t}),!1})(m,w)&&(m=void 0);const _=j(m);return y(_)?_:j(v)},Promise.resolve(void 0))}var R="observe";function P(t){const e=(t.startsWith("call:")?t.slice(5):t).split(".");return e.some(t=>""===t)?[]:e}function $(t,e,n,r){const o=new Map;return new Proxy(t,{get(t,i){if("string"!=typeof i)return Reflect.get(t,i,t);const c=o.get(i);if(void 0!==c)return c;if(e.some(t=>1===t.length&&t[0]===i)){const e=Reflect.get(t,i,t);if("function"!=typeof e)return e;const c=`${r}.${i}`,s=(...r)=>{try{n(c,r)}catch(t){}return e.apply(t,r)};return o.set(i,s),s}const s=e.filter(t=>t.length>1&&t[0]===i).map(t=>t.slice(1));if(s.length>0){const e=Reflect.get(t,i,t);if(null===e||"object"!=typeof e)return e;const c=$(e,s,n,`${r}.${i}`);return o.set(i,c),c}return Reflect.get(t,i,t)}})}function S(t){var e;const n={window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document,...t},r=t&&t[R];if(function(t){if("object"!=typeof t||null===t)return!1;if(!("paths"in t)||!("record"in t))return!1;const{paths:e,record:n}=t;return Array.isArray(e)&&e.every(t=>"string"==typeof t)&&"function"==typeof n}(r)){delete n[R];const t=new Map;for(const n of r.paths){const r=P(n),o=r[0];if(void 0===o)continue;const i=null!=(e=t.get(o))?e:[];i.push(r.slice(1)),t.set(o,i)}for(const[e,o]of t){const t=n[e];null!==t&&"object"==typeof t&&(n[e]=$(t,o,r.record,e))}}return n}var q={};function D(t){const{document:e}=S(t),n=e,r=n.createElement("script");r.src="https://snap.licdn.com/li.lms-analytics/insight.min.js",r.async=!0,n.head.appendChild(r)}var I,A={type:"linkedin",config:{},init({config:t,env:e}){const n=t.settings;return!!(null==n?void 0:n.apiKey)&&(function(t,e){const{window:n}=S(t),r=n;r._linkedin_partner_id=e,r._linkedin_data_partner_ids=r._linkedin_data_partner_ids||[],r._linkedin_data_partner_ids.includes(e)||r._linkedin_data_partner_ids.push(e)}(e,n.apiKey),function(t){const{window:e}=S(t),n=e;if(n.lintrk)return;const r=function(...t){(r.q=r.q||[]).push(t)};r.q=[],n.lintrk=r}(e),t.loadScript&&D(e),t)},async push(t,{rule:e,env:n,collector:r}){const{window:o}=S(n),i=o.lintrk;if(!i)return;if(!0===(null==e?void 0:e.silent))return;const c=(null==e?void 0:e.settings)||{};if(void 0===c.conversion)return;const s=function(t){if(!m(t))return;const{id:e,value:n,currency:r,eventId:o}=t,i=w(e)?e:h(e)&&""!==e&&!Number.isNaN(Number(e))?Number(e):void 0;if(void 0===i||0===i)return;const c={conversion_id:i};if(w(n))c.conversion_value=n;else if(h(n)&&""!==n){const t=Number(n);Number.isNaN(t)||(c.conversion_value=t)}return h(r)&&""!==r&&(c.currency=r),h(o)&&""!==o&&(c.event_id=o),c}(await N(t,c.conversion,{collector:r}));s&&i("track",s)},on(t,e){if("consent"!==t||!e.data)return;const n=e.data,r=e.config;if(!(null==r?void 0:r.loadScript))return;if(!0!==n.marketing)return;const{document:o}=S(e.env),i=o;(i.querySelector?i.querySelector('script[src*="snap.licdn.com"]'):null)||D(e.env)}},M=A;return I=o,((o,i,c,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of n(i))r.call(o,a)||a===c||t(o,a,{get:()=>i[a],enumerable:!(s=e(i,a))||s.enumerable});return o})(t({},"__esModule",{value:!0}),I)})();
|
package/dist/index.es5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,c,"next",e)}function c(e){asyncGeneratorStep(i,n,o,a,c,"throw",e)}a(void 0)})}}function _call_super(e,t,r){return t=_get_prototype_of(t),_possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,r||[],_get_prototype_of(e).constructor):t.apply(e,r))}function _class_call_check(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _construct(e,t,r){return _construct=_is_native_reflect_construct()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_set_prototype_of(o,r.prototype),o},_construct.apply(null,arguments)}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_get_prototype_of(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _is_native_function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _possible_constructor_return(e,t){return!t||"object"!==_type_of(t)&&"function"!=typeof t?_assert_this_initialized(e):t}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}function _wrap_native_super(e){var t="function"==typeof Map?new Map:void 0;return _wrap_native_super=function(e){if(null===e||!_is_native_function(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_get_prototype_of(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(r,e)},_wrap_native_super(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(a,"next",{value:u(0)}),c(a,"throw",{value:u(1)}),c(a,"return",{value:u(2)}),"function"==typeof Symbol&&c(a,Symbol.iterator,{value:function(){return this}}),a;function u(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}var Destination=function(){var e=function(e,t){if("collector"===e)return"collector";if(!t)throw new Error("stepId(".concat(e,") requires an id"));return"".concat(e,".").concat(t)},t=function(e,t){var r=e.destinations[t];if(!r)throw new Error("Destination not found: ".concat(t));return r},r=function(e,t){var r=e.transformers[t];if(!r)throw new Error("Transformer not found: ".concat(t));return r},n=function(e,t){var r=e.sources[t];if(!r)throw new Error("Source not found: ".concat(t));return r},o=function(e,t){var r=e.stores[t];if(!r)throw new Error("Store not found: ".concat(t));return r},i=function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,e.get(t)];case 1:return[2,r.sent()]}})})()},a=function(e){return Array.isArray(e)},c=function(e){return void 0!==e},u=function(e){return"number"==typeof e&&!Number.isNaN(e)},l=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e&&!a(e)&&"[object Object]"===Object.prototype.toString.call(e)},s=function(e){return"string"==typeof e},f=function(e){return E(e)?e:void 0},_=function(e,t,r){return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return _async_to_generator(function(){var n;return _ts_generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,4,6]),[4,e.apply(void 0,_to_consumable_array(o))];case 1:case 3:return[2,i.sent()];case 2:return n=i.sent(),t?[4,t(n)]:[2];case 4:return[4,null==r?void 0:r()];case 5:return i.sent(),[7];case 6:return[2]}})})()}},p=function(e){return _async_to_generator(function(e){var t,r,n,o,i,u,s,f,p,y,d,v,b,h,g,w,m=arguments;return _ts_generator(this,function(O){switch(O.label){case 0:if(t=m.length>1&&void 0!==m[1]?m[1]:{},r=m.length>2&&void 0!==m[2]?m[2]:{},!c(e))return[2];if(i=l(e)&&e.consent||r.consent||(null===(o=r.collector)||void 0===o?void 0:o.consent),u=null!==(n=r.event)&&void 0!==n?n:l(e)?e:{},!r.collector)throw new Error("getMappingValue: context.collector is required");s={event:u,mapping:t,collector:r.collector,logger:r.collector.logger,consent:i},f=a(t)?t:[t],p=!0,y=!1,d=void 0,O.label=1;case 1:O.trys.push([1,6,7,8]),v=f[Symbol.iterator](),O.label=2;case 2:return(p=(b=v.next()).done)?[3,5]:(h=b.value,[4,_(N,function(e){if(_instanceof(e,A))throw e;r.collector&&r.collector.status.failed++,s.logger.error("mapping processing failed",{event:u,error:e})})(e,h,_object_spread_props(_object_spread({},s),{mapping:h}))]);case 3:if(g=O.sent(),c(g))return[2,g];O.label=4;case 4:return p=!0,[3,2];case 5:return[3,8];case 6:return w=O.sent(),y=!0,d=w,[3,8];case 7:try{p||null==v.return||v.return()}finally{if(y)throw d}return[7];case 8:return[2]}})}).apply(this,arguments)},y=function(e){var t=(e.startsWith(R)?e.slice(5):e).split(".");return t.some(function(e){return""===e})?[]:t},d=function(e){var t=_object_spread({window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document},e),r=e&&e[I];if(function(e){if("object"!=(void 0===e?"undefined":_type_of(e))||null===e)return!1;if(!("paths"in e)||!("record"in e))return!1;var t=e.paths,r=e.record;return Array.isArray(t)&&t.every(function(e){return"string"==typeof e})&&"function"==typeof r}(r)){delete t[I];var n=new Map,o=!0,i=!1,a=void 0;try{for(var c,u=r.paths[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l,s=c.value,f=y(s),_=f[0];if(void 0!==_){var p=null!==(l=n.get(_))&&void 0!==l?l:[];p.push(f.slice(1)),n.set(_,p)}}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}var d=!0,v=!1,b=void 0;try{for(var h,g=n[Symbol.iterator]();!(d=(h=g.next()).done);d=!0){var w=_sliced_to_array(h.value,2),m=w[0],O=w[1],j=t[m];null!==j&&"object"==(void 0===j?"undefined":_type_of(j))&&(t[m]=x(j,O,r.record,m))}}catch(e){v=!0,b=e}finally{try{d||null==g.return||g.return()}finally{if(v)throw b}}}return t},v=function(e){var t=d(e).document,r=t.createElement("script");r.src=q,r.async=!0,t.head.appendChild(r)},b=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,w=Object.prototype.hasOwnProperty,m={};!function(e,t){for(var r in t)b(e,r,{get:t[r],enumerable:!0})}(m,{DestinationLinkedIn:function(){return T},default:function(){return G},destinationLinkedIn:function(){return M}});var O=Object.defineProperty,j=function(e,t){for(var r in t)O(e,r,{get:t[r],enumerable:!0})};j({},{stepId:function(){return e}});j({},{getDestination:function(){return t}});j({},{Level:function(){return k}});var S,k=((S=k||{})[S.ERROR=0]="ERROR",S[S.WARN=1]="WARN",S[S.INFO=2]="INFO",S[S.DEBUG=3]="DEBUG",S);j({},{getTransformer:function(){return r}});j({},{getSource:function(){return n}});function P(e){for(var t=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),n=e,o=0;o<r.length;o++){var i=r[o];if("*"===i&&a(n)){var u=r.slice(o+1).join("."),s=[],f=!0,_=!1,p=void 0;try{for(var y,d=n[Symbol.iterator]();!(f=(y=d.next()).done);f=!0){var v=P(y.value,u,t);s.push(v)}}catch(e){_=!0,p=e}finally{try{f||null==d.return||d.return()}finally{if(_)throw p}}return s}if(void 0===(n=l(n)||a(n)?n[i]:void 0))break}return c(n)?n:t}function E(e){return function(e){return"boolean"==typeof e}(e)||s(e)||u(e)||!c(e)||a(e)&&e.every(E)||l(e)&&Object.values(e).every(E)}j({},{getStore:function(){return o},getStoreValue:function(){return i}});var A=function(){function e(t,r){var n;return _class_call_check(this,e),(n=_call_super(this,e,[t,r])).name="FatalError",Object.setPrototypeOf(n,e.prototype),n}return _inherits(e,_wrap_native_super(Error)),e}();function N(e,t,r){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,(a(t)?t:[t]).reduce(function(t,n){return _async_to_generator(function(){var o,i,u,l,y,d,v,b,h,g,w,m,O,j,S,k,E,I,R,x,D,T;return _ts_generator(this,function(q){switch(q.label){case 0:return[4,t];case 1:return(o=q.sent())?[2,o]:(i=s(n)?{key:n}:n,Object.keys(i).length?(u=i.condition,l=i.consent,y=i.fn,d=i.key,v=i.loop,b=i.map,h=i.set,g=i.validate,w=i.value,m=_object_spread_props(_object_spread({},r),{mapping:n}),(O=u)?[4,_(u,function(e){if(_instanceof(e,A))throw e;return m.logger.error("mapping condition failed",{event:m.event,error:e}),!1})(e,m)]:[3,3]):[2]);case 2:O=!q.sent(),q.label=3;case 3:return O?[2]:l&&!function(e){var t=_object_spread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r={},n=!e||0===Object.keys(e).length;return Object.keys(t).forEach(function(o){t[o]&&(r[o]=!0,e&&e[o]&&(n=!0))}),!!n&&r}(l,m.consent)?[2,w]:(j=c(w)?w:e,y?[4,_(y,function(e){if(_instanceof(e,A))throw e;m.logger.error("mapping fn failed",{event:m.event,error:e})})(e,m)]:[3,5]);case 4:j=q.sent(),q.label=5;case 5:return d&&(j=P(e,d,w)),v?(S=_sliced_to_array(v,2),k=S[0],E=S[1],"this"!==k?[3,6]:(R=[e],[3,8])):[3,11];case 6:return[4,p(e,k,m)];case 7:R=q.sent(),q.label=8;case 8:return a(I=R)?[4,Promise.all(I.map(function(e){return p(e,E,m)}))]:[3,10];case 9:j=q.sent().filter(c),q.label=10;case 10:return[3,17];case 11:return b?[4,Object.entries(b).reduce(function(t,r){var n=_sliced_to_array(r,2),o=n[0],i=n[1];return _async_to_generator(function(){var r,n;return _ts_generator(this,function(a){switch(a.label){case 0:return[4,t];case 1:return r=a.sent(),[4,p(e,i,m)];case 2:return n=a.sent(),[2,(c(n)&&(r[o]=n),r)]}})})()},Promise.resolve({}))]:[3,13];case 12:return j=q.sent(),[3,16];case 13:return(x=h)?[4,Promise.all(h.map(function(t){return N(e,t,m)}))]:[3,15];case 14:x=j=q.sent(),q.label=15;case 15:q.label=16;case 16:q.label=17;case 17:return(D=g)?[4,_(g,function(e){if(_instanceof(e,A))throw e;return m.logger.error("mapping validate failed",{event:m.event,error:e}),!1})(j,m)]:[3,19];case 18:D=!q.sent(),q.label=19;case 19:return D&&(j=void 0),T=f(j),[2,c(T)?T:f(w)]}})})()},Promise.resolve(void 0))]})})()}var I="observe",R="call:";function x(e,t,r,n){var o=new Map;return new Proxy(e,{get:function(e,i){if("string"!=typeof i)return Reflect.get(e,i,e);var a=o.get(i);if(void 0!==a)return a;if(t.some(function(e){return 1===e.length&&e[0]===i})){var c=Reflect.get(e,i,e);if("function"!=typeof c)return c;var u="".concat(n,".").concat(i),l=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];try{r(u,n)}catch(e){}return c.apply(e,n)};return o.set(i,l),l}var s=t.filter(function(e){return e.length>1&&e[0]===i}).map(function(e){return e.slice(1)});if(s.length>0){var f=Reflect.get(e,i,e);if(null===f||"object"!=(void 0===f?"undefined":_type_of(f)))return f;var _=x(f,s,r,"".concat(n,".").concat(i));return o.set(i,_),_}return Reflect.get(e,i,e)}})}var D,T={},q="https://snap.licdn.com/li.lms-analytics/insight.min.js",M={type:"linkedin",config:{},init:function(e){var t=e.config,r=e.env,n=t.settings;return!!(null==n?void 0:n.apiKey)&&(function(e,t){var r=d(e).window;r._linkedin_partner_id=t,r._linkedin_data_partner_ids=r._linkedin_data_partner_ids||[],r._linkedin_data_partner_ids.includes(t)||r._linkedin_data_partner_ids.push(t)}(r,n.apiKey),function(e){var t=d(e).window;if(!t.lintrk){var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(r.q=r.q||[]).push(t)};r.q=[],t.lintrk=r}}(r),t.loadScript&&v(r),t)},push:function(e,t){return _async_to_generator(function(e,t){var r,n,o,i,a,c,f,_,y;return _ts_generator(this,function(v){switch(v.label){case 0:return r=t.rule,n=t.env,o=t.collector,i=d(n),a=i.window,(c=a.lintrk)?!0===(null==r?void 0:r.silent)||void 0===(f=(null==r?void 0:r.settings)||{}).conversion?[2]:[4,p(e,f.conversion,{collector:o})]:[2];case 1:return _=v.sent(),y=function(e){if(l(e)){var t=e.id,r=e.value,n=e.currency,o=e.eventId,i=u(t)?t:s(t)&&""!==t&&!Number.isNaN(Number(t))?Number(t):void 0;if(void 0!==i&&0!==i){var a={conversion_id:i};if(u(r))a.conversion_value=r;else if(s(r)&&""!==r){var c=Number(r);Number.isNaN(c)||(a.conversion_value=c)}return s(n)&&""!==n&&(a.currency=n),s(o)&&""!==o&&(a.event_id=o),a}}}(_),y?(c("track",y),[2]):[2]}})}).apply(this,arguments)},on:function(e,t){if("consent"===e&&t.data){var r=t.data,n=t.config;if((null==n?void 0:n.loadScript)&&!0===r.marketing){var o=d(t.env).document;(o.querySelector?o.querySelector('script[src*="snap.licdn.com"]'):null)||v(t.env)}}}},G=M;return D=m,function(e,t,r,n){if(t&&"object"===(void 0===t?"undefined":_type_of(t))||"function"==typeof t){var o=!0,i=!1,a=void 0;try{for(var c,u=function(){var o=c.value;w.call(e,o)||o===r||b(e,o,{get:function(){return t[o]},enumerable:!(n=h(t,o))||n.enumerable})},l=g(t)[Symbol.iterator]();!(o=(c=l.next()).done);o=!0)u()}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}return e}(b({},"__esModule",{value:!0}),D)}();
|
|
1
|
+
"use strict";function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,c,"next",e)}function c(e){asyncGeneratorStep(i,n,o,a,c,"throw",e)}a(void 0)})}}function _call_super(e,t,r){return t=_get_prototype_of(t),_possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,r||[],_get_prototype_of(e).constructor):t.apply(e,r))}function _class_call_check(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _construct(e,t,r){return _construct=_is_native_reflect_construct()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_set_prototype_of(o,r.prototype),o},_construct.apply(null,arguments)}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_get_prototype_of(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _is_native_function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _possible_constructor_return(e,t){return!t||"object"!==_type_of(t)&&"function"!=typeof t?_assert_this_initialized(e):t}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}function _wrap_native_super(e){var t="function"==typeof Map?new Map:void 0;return _wrap_native_super=function(e){if(null===e||!_is_native_function(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_get_prototype_of(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(r,e)},_wrap_native_super(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(a,"next",{value:u(0)}),c(a,"throw",{value:u(1)}),c(a,"return",{value:u(2)}),"function"==typeof Symbol&&c(a,Symbol.iterator,{value:function(){return this}}),a;function u(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}var Destination=function(){var e=function(e,t){if("collector"===e)return"collector";if(!t)throw new Error("stepId(".concat(e,") requires an id"));return"".concat(e,".").concat(t)},t=function(e,t){var r=e.destinations[t];if(!r)throw new Error("Destination not found: ".concat(t));return r},r=function(e,t){var r=e.transformers[t];if(!r)throw new Error("Transformer not found: ".concat(t));return r},n=function(e,t){var r=e.sources[t];if(!r)throw new Error("Source not found: ".concat(t));return r},o=function(e,t){var r=e.stores[t];if(!r)throw new Error("Store not found: ".concat(t));return r},i=function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,e.get(t)];case 1:return[2,r.sent()]}})})()},a=function(e){return Array.isArray(e)},c=function(e){return void 0!==e},u=function(e){return"number"==typeof e&&!Number.isNaN(e)},l=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e&&!a(e)&&"[object Object]"===Object.prototype.toString.call(e)},s=function(e){return"string"==typeof e},f=function(e){return E(e)?e:void 0},_=function(e,t,r){return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return _async_to_generator(function(){var n;return _ts_generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,4,6]),[4,e.apply(void 0,_to_consumable_array(o))];case 1:case 3:return[2,i.sent()];case 2:return n=i.sent(),t?[4,t(n)]:[2];case 4:return[4,null==r?void 0:r()];case 5:return i.sent(),[7];case 6:return[2]}})})()}},p=function(e){return _async_to_generator(function(e){var t,r,n,o,i,u,s,f,p,y,d,v,b,h,g,w,m=arguments;return _ts_generator(this,function(O){switch(O.label){case 0:if(t=m.length>1&&void 0!==m[1]?m[1]:{},r=m.length>2&&void 0!==m[2]?m[2]:{},!c(e))return[2];if(i=l(e)&&e.consent||r.consent||(null===(o=r.collector)||void 0===o?void 0:o.consent),u=null!==(n=r.event)&&void 0!==n?n:l(e)?e:{},!r.collector)throw new Error("getMappingValue: context.collector is required");s={event:u,mapping:t,collector:r.collector,logger:r.collector.logger,consent:i},f=a(t)?t:[t],p=!0,y=!1,d=void 0,O.label=1;case 1:O.trys.push([1,6,7,8]),v=f[Symbol.iterator](),O.label=2;case 2:return(p=(b=v.next()).done)?[3,5]:(h=b.value,[4,_(N,function(e){if(_instanceof(e,A))throw e;r.collector&&r.collector.status.failed++,s.logger.error("mapping processing failed",{event:u,error:e})})(e,h,_object_spread_props(_object_spread({},s),{mapping:h}))]);case 3:if(g=O.sent(),c(g))return[2,g];O.label=4;case 4:return p=!0,[3,2];case 5:return[3,8];case 6:return w=O.sent(),y=!0,d=w,[3,8];case 7:try{p||null==v.return||v.return()}finally{if(y)throw d}return[7];case 8:return[2]}})}).apply(this,arguments)},y=function(e){var t=(e.startsWith(R)?e.slice(5):e).split(".");return t.some(function(e){return""===e})?[]:t},d=function(e){var t=_object_spread({window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document},e),r=e&&e[I];if(function(e){if("object"!=(void 0===e?"undefined":_type_of(e))||null===e)return!1;if(!("paths"in e)||!("record"in e))return!1;var t=e.paths,r=e.record;return Array.isArray(t)&&t.every(function(e){return"string"==typeof e})&&"function"==typeof r}(r)){delete t[I];var n=new Map,o=!0,i=!1,a=void 0;try{for(var c,u=r.paths[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l,s=c.value,f=y(s),_=f[0];if(void 0!==_){var p=null!==(l=n.get(_))&&void 0!==l?l:[];p.push(f.slice(1)),n.set(_,p)}}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}var d=!0,v=!1,b=void 0;try{for(var h,g=n[Symbol.iterator]();!(d=(h=g.next()).done);d=!0){var w=_sliced_to_array(h.value,2),m=w[0],O=w[1],j=t[m];null!==j&&"object"==(void 0===j?"undefined":_type_of(j))&&(t[m]=x(j,O,r.record,m))}}catch(e){v=!0,b=e}finally{try{d||null==g.return||g.return()}finally{if(v)throw b}}}return t},v=function(e){var t=d(e).document,r=t.createElement("script");r.src=q,r.async=!0,t.head.appendChild(r)},b=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,w=Object.prototype.hasOwnProperty,m={};!function(e,t){for(var r in t)b(e,r,{get:t[r],enumerable:!0})}(m,{DestinationLinkedIn:function(){return T},default:function(){return G},destinationLinkedIn:function(){return M}});var O=Object.defineProperty,j=function(e,t){for(var r in t)O(e,r,{get:t[r],enumerable:!0})};j({},{stepId:function(){return e}});j({},{getDestination:function(){return t}});j({},{Level:function(){return k}});var S,k=((S=k||{})[S.ERROR=0]="ERROR",S[S.WARN=1]="WARN",S[S.INFO=2]="INFO",S[S.DEBUG=3]="DEBUG",S);j({},{getTransformer:function(){return r}});j({},{getSource:function(){return n}});function P(e){for(var t=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),n=e,o=0;o<r.length;o++){var i=r[o];if("*"===i&&a(n)){var u=r.slice(o+1).join("."),s=[],f=!0,_=!1,p=void 0;try{for(var y,d=n[Symbol.iterator]();!(f=(y=d.next()).done);f=!0){var v=P(y.value,u,t);s.push(v)}}catch(e){_=!0,p=e}finally{try{f||null==d.return||d.return()}finally{if(_)throw p}}return s}if(void 0===(n=l(n)||a(n)?n[i]:void 0))break}return c(n)?n:t}function E(e){return function(e){return"boolean"==typeof e}(e)||s(e)||u(e)||!c(e)||a(e)&&e.every(E)||l(e)&&Object.values(e).every(E)}j({},{getStore:function(){return o},getStoreValue:function(){return i}});var A=function(){function e(t,r){var n;return _class_call_check(this,e),(n=_call_super(this,e,[t,r])).name="FatalError",Object.setPrototypeOf(n,e.prototype),n}return _inherits(e,_wrap_native_super(Error)),e}();function N(e,t,r){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,(a(t)?t:[t]).reduce(function(t,n){return _async_to_generator(function(){var o,i,u,l,y,d,v,b,h,g,w,m,O,j,S,k,E,I,R,x,D,T,q,M,G;return _ts_generator(this,function(F){switch(F.label){case 0:return[4,t];case 1:return(o=F.sent())?[2,o]:(i=s(n)?{key:n}:n,Object.keys(i).length?(u=i.condition,l=i.consent,y=i.fn,d=i.key,v=i.loop,b=i.map,h=i.set,g=i.validate,w=i.value,m=_object_spread_props(_object_spread({},r),{mapping:n}),(O=u)?[4,_(u,function(e){if(_instanceof(e,A))throw e;return m.logger.error("mapping condition failed",{event:m.event,error:e}),!1})(e,m)]:[3,3]):[2]);case 2:O=!F.sent(),F.label=3;case 3:return O?[2]:l&&!function(e){var t=_object_spread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r={},n=!e||0===Object.keys(e).length;return Object.keys(t).forEach(function(o){t[o]&&(r[o]=!0,e&&e[o]&&(n=!0))}),!!n&&r}(l,m.consent)?[2,w]:(j=c(w)?w:e,v?(S=_sliced_to_array(v,2),k=S[0],E=S[1],"this"!==k?[3,4]:(R=[e],[3,6])):[3,10]);case 4:return[4,p(e,k,m)];case 5:R=F.sent(),F.label=6;case 6:return a(I=R)?[4,Promise.all(I.map(function(e){return p(e,E,m)}))]:[3,8];case 7:return x=F.sent().filter(c),[3,9];case 8:x=void 0,F.label=9;case 9:return j=x,[3,21];case 10:return b?[4,Object.entries(b).reduce(function(t,r){var n=_sliced_to_array(r,2),o=n[0],i=n[1];return _async_to_generator(function(){var r,n;return _ts_generator(this,function(a){switch(a.label){case 0:return[4,t];case 1:return r=a.sent(),[4,p(e,i,m)];case 2:return n=a.sent(),[2,(c(n)&&(r[o]=n),r)]}})})()},Promise.resolve({}))]:[3,12];case 11:return j=F.sent(),[3,20];case 12:return h?[4,Promise.all(h.map(function(t){return N(e,t,m)}))]:[3,14];case 13:return D=j=F.sent(),[3,19];case 14:return d?(T=j=P(e,d,w),[3,18]):[3,15];case 15:return(q=y)?[4,_(y,function(e){if(_instanceof(e,A))throw e;m.logger.error("mapping fn failed",{event:m.event,error:e})})(e,m)]:[3,17];case 16:q=j=F.sent(),F.label=17;case 17:T=q,F.label=18;case 18:D=T,F.label=19;case 19:F.label=20;case 20:F.label=21;case 21:return(M=g)?[4,_(g,function(e){if(_instanceof(e,A))throw e;return m.logger.error("mapping validate failed",{event:m.event,error:e}),!1})(j,m)]:[3,23];case 22:M=!F.sent(),F.label=23;case 23:return M&&(j=void 0),G=f(j),[2,c(G)?G:f(w)]}})})()},Promise.resolve(void 0))]})})()}var I="observe",R="call:";function x(e,t,r,n){var o=new Map;return new Proxy(e,{get:function(e,i){if("string"!=typeof i)return Reflect.get(e,i,e);var a=o.get(i);if(void 0!==a)return a;if(t.some(function(e){return 1===e.length&&e[0]===i})){var c=Reflect.get(e,i,e);if("function"!=typeof c)return c;var u="".concat(n,".").concat(i),l=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];try{r(u,n)}catch(e){}return c.apply(e,n)};return o.set(i,l),l}var s=t.filter(function(e){return e.length>1&&e[0]===i}).map(function(e){return e.slice(1)});if(s.length>0){var f=Reflect.get(e,i,e);if(null===f||"object"!=(void 0===f?"undefined":_type_of(f)))return f;var _=x(f,s,r,"".concat(n,".").concat(i));return o.set(i,_),_}return Reflect.get(e,i,e)}})}var D,T={},q="https://snap.licdn.com/li.lms-analytics/insight.min.js",M={type:"linkedin",config:{},init:function(e){var t=e.config,r=e.env,n=t.settings;return!!(null==n?void 0:n.apiKey)&&(function(e,t){var r=d(e).window;r._linkedin_partner_id=t,r._linkedin_data_partner_ids=r._linkedin_data_partner_ids||[],r._linkedin_data_partner_ids.includes(t)||r._linkedin_data_partner_ids.push(t)}(r,n.apiKey),function(e){var t=d(e).window;if(!t.lintrk){var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(r.q=r.q||[]).push(t)};r.q=[],t.lintrk=r}}(r),t.loadScript&&v(r),t)},push:function(e,t){return _async_to_generator(function(e,t){var r,n,o,i,a,c,f,_,y;return _ts_generator(this,function(v){switch(v.label){case 0:return r=t.rule,n=t.env,o=t.collector,i=d(n),a=i.window,(c=a.lintrk)?!0===(null==r?void 0:r.silent)||void 0===(f=(null==r?void 0:r.settings)||{}).conversion?[2]:[4,p(e,f.conversion,{collector:o})]:[2];case 1:return _=v.sent(),y=function(e){if(l(e)){var t=e.id,r=e.value,n=e.currency,o=e.eventId,i=u(t)?t:s(t)&&""!==t&&!Number.isNaN(Number(t))?Number(t):void 0;if(void 0!==i&&0!==i){var a={conversion_id:i};if(u(r))a.conversion_value=r;else if(s(r)&&""!==r){var c=Number(r);Number.isNaN(c)||(a.conversion_value=c)}return s(n)&&""!==n&&(a.currency=n),s(o)&&""!==o&&(a.event_id=o),a}}}(_),y?(c("track",y),[2]):[2]}})}).apply(this,arguments)},on:function(e,t){if("consent"===e&&t.data){var r=t.data,n=t.config;if((null==n?void 0:n.loadScript)&&!0===r.marketing){var o=d(t.env).document;(o.querySelector?o.querySelector('script[src*="snap.licdn.com"]'):null)||v(t.env)}}}},G=M;return D=m,function(e,t,r,n){if(t&&"object"===(void 0===t?"undefined":_type_of(t))||"function"==typeof t){var o=!0,i=!1,a=void 0;try{for(var c,u=function(){var o=c.value;w.call(e,o)||o===r||b(e,o,{get:function(){return t[o]},enumerable:!(n=h(t,o))||n.enumerable})},l=g(t)[Symbol.iterator]();!(o=(c=l.next()).done);o=!0)u()}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}return e}(b({},"__esModule",{value:!0}),D)}();
|
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-destination-linkedin",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.7.0-next-1790187973605",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web"
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"consent": {
|
|
127
127
|
"functional": true
|
|
128
128
|
},
|
|
129
|
-
"id": "
|
|
129
|
+
"id": "964994723647112d",
|
|
130
130
|
"trigger": "test",
|
|
131
131
|
"entity": "form",
|
|
132
132
|
"action": "submit",
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
"consent": {
|
|
275
275
|
"functional": true
|
|
276
276
|
},
|
|
277
|
-
"id": "
|
|
277
|
+
"id": "6edd28bbae5fcfed",
|
|
278
278
|
"trigger": "test",
|
|
279
279
|
"entity": "form",
|
|
280
280
|
"action": "submit",
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
"consent": {
|
|
658
658
|
"functional": true
|
|
659
659
|
},
|
|
660
|
-
"id": "
|
|
660
|
+
"id": "1dec2b6774779331",
|
|
661
661
|
"trigger": "test",
|
|
662
662
|
"entity": "form",
|
|
663
663
|
"action": "submit",
|
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
"consent": {
|
|
724
724
|
"functional": true
|
|
725
725
|
},
|
|
726
|
-
"id": "
|
|
726
|
+
"id": "4d7be257c5ee7133",
|
|
727
727
|
"trigger": "load",
|
|
728
728
|
"entity": "product",
|
|
729
729
|
"action": "view",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-destination-linkedin",
|
|
3
3
|
"description": "LinkedIn Insight Tag web destination for walkerOS (conversion tracking, retargeting, demographic insights)",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.7.0-next-1790187973605",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"update": "npx npm-check-updates -u && npm update"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@walkeros/core": "4.
|
|
42
|
-
"@walkeros/web-core": "4.
|
|
41
|
+
"@walkeros/core": "4.7.0-next-1790187973605",
|
|
42
|
+
"@walkeros/web-core": "4.7.0-next-1790187973605"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@walkeros/collector": "4.
|
|
45
|
+
"@walkeros/collector": "4.7.0-next-1790187973605"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|