PageSourceSearch

https://growth.tamarackrei.com/nutsheller-esm.js

js tamarackrei.com collected 2026-10-06 19:20:27 UTC 6,227 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunks/module-loader-helpers.js","chunks/action-types.js","chunks/config-cache.js"])))=>i.map(i=>d[i]);
2import{c as w,r as y,M as I,a as D,b as M,d as _,g as k,e as P,s as U,_ as L,i as O,h as v,N as T,f as C}from"./chunks/module-loader-helpers.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"856e40b1244e24a0b18fd4e6f528379f0d5c4fc2"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="0444218d-0b6d-4b77-b4d5-ca42e80002c1",e._sentryDebugIdIdentifier="sentry-dbid-0444218d-0b6d-4b77-b4d5-ca42e80002c1")})()}catch{}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];if(o!=null)for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])}return r})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:nutshell-peanut":!0})}catch{}})();const q=e=>{const{instanceId:r,contractSlug:i,documentDeliveryId:o,validateToken:a,action:l,target:u,renderTarget:d,loadedModules:t}=e,n=w(!1,"https://static.nlcdn.com/st-11786");n.setAttribute("target",u),n.setAttribute("instance-id",r),i&&n.setAttribute("contract-slug",i),o&&n.setAttribute("document-delivery-id",o),a&&n.setAttribute("validate-token",a),l&&n.setAttribute("action",l),d.appendChild(n),y(t,I)},R=e=>{const{instanceId:r,form:i,target:o,defaultValues:a={},renderTarget:l,loadedModules:u}=e,t=w(!1,"https://static.nlcdn.com/st-11786");t.setAttribute("target",o),t.setAttribute("instance-id",r),t.setAttribute("form-id",i),t.setAttribute("defaultValues",JSON.stringify(a)),l.appendChild(t),y(u,D)},N=e=>{const{instanceId:r,quoteSlug:i,documentDeliveryId:o,validateToken:a,action:l,target:u,renderTarget:d,loadedModules:t}=e,n=w(!1,"https://static.nlcdn.com/st-11786");n.setAttribute("target",u),n.setAttribute("instance-id",r),i&&n.setAttribute("quote-slug",i),o&&n.setAttribute("document-delivery-id",o),a&&n.setAttribute("validate-token",a),l&&n.setAttribute("action",l),d.appendChild(n),y(t,M)},B=e=>{const{instanceId:r,target:i,meeting:o,bookingSlug:a,meetingIndexUserId:l,action:u,renderTarget:d,loadedModules:t}=e,n=w(!1,"https://static.nlcdn.com/st-11786");n.setAttribute("target",i),n.setAttribute("instance-id",r),o&&n.setAttribute("meeting-id",o),a&&n.setAttribute("booking-slug",a),l&&n.setAttribute("meeting-index-user-id",l),u&&n.setAttribute("action",u),d.appendChild(n),y(t,_)},F="nstestautomation",V="nsuser";function x(){return!!S()}function H(){try{return new URLSearchParams(window.location.search).get(V)}catch{return null}}function S(){try{return new URLSearchParams(window.location.search).get(F)}catch{return null}}async function Q(e,r){const i=P(),o=encodeURIComponent(window.location.href),a=H(),l=S();if(!(!a||!l))try{const u=new URLSearchParams({...e?{instanceId:e}:r?{siteId:r}:{},userApiId:a,maUrlId:l,pageUrl:o}),d=`${i}/boot/test-page-view?${u.toString()}`;await fetch(d,{method:"POST",headers:{"Content-Type":"application/json",...k()}})}catch{}}class f extends Error{constructor(r){super(r),this.name="EmbedConfigError"}}(function(e){e()})(function(){const e=()=>{const r=window.Nutsheller.q||[],i=window.Nutsheller.loadedModules||[];window.Nutsheller=(...o)=>{((a=[])=>{const[l,...u]=a,d=u[0]?u[0]:{},{instance:t,siteId:g,excludedModules:n=[]}=d;try{if(!t&&!g)throw new f("Instance or site id is required.");const{target:c}=d;if(!c)throw new f("Target is required.");const h=document.getElementById(c);if(!h)throw new f("Valid target is required.");switch(l){case"initForm":{if(!t)throw new f("Instance id is required.");const{form:s}=d;if(!s)throw new f("Form id is required.");R({instanceId:t,form:s,target:c,defaultValues:d.defaultValues||{},renderTarget:h,loadedModules:i});break}case"initScheduler":{if(!t)throw new f("Instance id is required.");const{meeting:s,bookingSlug:p,meetingIndexUserId:m,action:b}=d;if(!(s||p||m||b))throw new f("Scheduler identifier or action is required.");B({instanceId:t,target:c,meeting:s,bookingSlug:p,meetingIndexUserId:m,action:b,renderTarget:h,loadedModules:i});break}case"boot":{if(x()&&Q(t,g),U(t,g))break;L(()=>import("./chunks/boot-initializer.js"),__vite__mapDeps([0,1,2])).then(s=>s.initializeBoot({instanceId:t,siteId:g,target:c,excludedModules:n,loadedModules:i})).catch(s=>{if(O(s)){v({instanceId:t||g||"",peanutType:T,errorDescription:"Peanut chunk failed to load during boot",exception:s,level:"warning",fingerprint:["peanut","[NUTSHELL_BOOT]","chunk-load-failed"]});return}C(s)||v({instanceId:t||g||"",peanutType:T,errorDescription:"Error during boot initialization",exception:s})});break}case"initQuotes":{const{quoteSlug:s,documentDeliveryId:p,validateToken:m,action:b}=d;if(!!!s&&!!!(p&&m))throw new f("Quote slug or signed delivery credentials are required.");N({instanceId:t||"",quoteSlug:s,documentDeliveryId:p,validateToken:m,action:b,target:c,renderTarget:h,loadedModules:i});break}case"initContracts":{const{contractSlug:s,documentDeliveryId:p,validateToken:m,action:b}=d;if(!!!s&&!!!(p&&m))throw new f("Contract slug or signed delivery credentials are required.");q({instanceId:t||"",contractSlug:s,documentDeliveryId:p,validateToken:m,action:b,target:c,renderTarget:h,loadedModules:i});break}default:throw new f("Invalid task for nutsheller.")}}catch(c){const h=c instanceof f;v({instanceId:t,peanutType:T,errorDescription:"General nutsheller error",exception:c,level:h?"warning":"error",fingerprint:h?["nutsheller-embed-config",c.message,String(t||g||"")]:void 0})}})(o)},r.forEach(o=>{window.Nutsheller.apply(null,Array.from(o))}),window.Nutsheller.loadedModules=i,typeof performance<"u"&&performance.mark&&performance.mark("nutsheller-initialized")};document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e)});
3//# sourceMappingURL=nutsheller-esm.js.map

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.