1import{m as c,G as p,c as r,a as m,s as f,R as v}from"./DYJFTb6D.js";const y={__name:"PendoAnalytics",setup(_){const t=c({}),i=p(),e=r(()=>i?.state?.user),u=r(()=>i?.state?.loggedIn),d=m();return f([e,()=>d.fullPath],([a,s])=>{if((a||s)&&e.value&&u.value){const o=document.createElement("script");t.value={id:e.value?.userId,email:e.value?.email,first_name:e.value?.firstName,last_name:e.value?.lastName,firm:e.value?.firmName,promotion_codes:e.value?.defaultPromotionList.split(";").filter(n=>n!=="")||[],product_list:e.value?.productList.split(";").filter(n=>n!=="")||[],onboarding_status:e.value?.onBoardingStatus||""};const l=`(function(publicAppId){ 2 (function(p,e,n,d,o){var v,w,x,y,z;o=p[d]=p[d]||{};o._q=o._q||[]; 3 v=['initialize','identify','updateOptions','pageLoad','track','trackAgent'];for(w=0,x=v.length;w<x;++w)(function(m){ 4 o[m]=o[m]||function(){o._q[m===v[0]?'unshift':'push']([m].concat([].slice.call(arguments,0)));};})(v[w]); 5 y=e.createElement(n);y.async=!0;y.src='https://cdn.pendo.io/agent/static/'+publicAppId+'/pendo.js'; 6 z=e.getElementsByTagName(n)[0];z.parentNode.insertBefore(y,z);})(window,document,'script','pendo'); 7 // This function creates visitors and accounts in Pendo 8 // You will need to replace <visitor-id-goes-here> and <account-id-goes-here> with values you use in your app 9 // Please use Strings, Numbers, or Bools for value types. 10 pendo.initialize({ 11 visitor: { 12 id: '${t.value.id}', // Required if user is logged in 13 email: '${t.value.email}', // Recommended if using Pendo Feedback, or NPS Email 14 first_name: '${t.value.first_name}', 15 last_name: '${t.value.last_name}', // Recommended if using Pendo Feedback 16 firm: '${t.value.firm}', // Optional 17 promotion_codes: ${JSON.stringify(t.value.promotion_codes)}, 18 product_list: ${JSON.stringify(t.value.product_list)}, 19 onboarding_status: '${t.value.onboarding_status}', 20 } 21 22 }); 23 24 25 })('e71f40ee-7bbb-4046-b54d-32e7d1470a94'); 26 `;o.type="text/javascript",o.id="pendo-snippet",o.text=l,document.head.appendChild(o)}}),(a,s)=>v(a.$slots,"default")}};export{y as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.