PageSourceSearch

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

js modelon.com collected 2026-10-02 03:43:59 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:"df45a2833fe3e405be3bbf425ef6572b7793eda7"}}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]="2d7231b7-9124-460c-9fbc-d6f34da0e3bf",e._sentryDebugIdIdentifier="sentry-dbid-2d7231b7-9124-460c-9fbc-d6f34da0e3bf")})()}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 a=arguments[i];if(a!=null)for(var o in a)a.hasOwnProperty(o)&&(r[o]=a[o])}return r})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:nutshell-peanut":!0})}catch{}})();const q=e=>{const{instanceId:r,contractSlug:i,documentDeliveryId:a,validateToken:o,action:l,target:u,renderTarget:d,loadedModules:t}=e,n=w(!1,"https://static.nlcdn.com/st-11764");n.setAttribute("target",u),n.setAttribute("instance-id",r),i&&n.setAttribute("contract-slug",i),a&&n.setAttribute("document-delivery-id",a),o&&n.setAttribute("validate-token",o),l&&n.setAttribute("action",l),d.appendChild(n),y(t,I)},R=e=>{const{instanceId:r,form:i,target:a,defaultValues:o={},renderTarget:l,loadedModules:u}=e,t=w(!1,"https://static.nlcdn.com/st-11764");t.setAttribute("target",a),t.setAttribute("instance-id",r),t.setAttribute("form-id",i),t.setAttribute("defaultValues",JSON.stringify(o)),l.appendChild(t),y(u,D)},N=e=>{const{instanceId:r,quoteSlug:i,documentDeliveryId:a,validateToken:o,action:l,target:u,renderTarget:d,loadedModules:t}=e,n=w(!1,"https://static.nlcdn.com/st-11764");n.setAttribute("target",u),n.setAttribute("instance-id",r),i&&n.setAttribute("quote-slug",i),a&&n.setAttribute("document-delivery-id",a),o&&n.setAttribute("validate-token",o),l&&n.setAttribute("action",l),d.appendChild(n),y(t,M)},B=e=>{const{instanceId:r,target:i,meeting:a,bookingSlug:o,meetingIndexUserId:l,action:u,renderTarget:d,loadedModules:t}=e,n=w(!1,"https://static.nlcdn.com/st-11764");n.setAttribute("target",i),n.setAttribute("instance-id",r),a&&n.setAttribute("meeting-id",a),o&&n.setAttribute("booking-slug",o),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(),a=encodeURIComponent(window.location.href),o=H(),l=S();if(!(!o||!l))try{const u=new URLSearchParams({...e?{instanceId:e}:r?{siteId:r}:{},userApiId:o,maUrlId:l,pageUrl:a}),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=(...a)=>{((o=[])=>{const[l,...u]=o,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:b,action:m}=d;if(!(s||p||b||m))throw new f("Scheduler identifier or action is required.");B({instanceId:t,target:c,meeting:s,bookingSlug:p,meetingIndexUserId:b,action:m,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:b,action:m}=d;if(!!!s&&!!!(p&&b))throw new f("Quote slug or signed delivery credentials are required.");N({instanceId:t||"",quoteSlug:s,documentDeliveryId:p,validateToken:b,action:m,target:c,renderTarget:h,loadedModules:i});break}case"initContracts":{const{contractSlug:s,documentDeliveryId:p,validateToken:b,action:m}=d;if(!!!s&&!!!(p&&b))throw new f("Contract slug or signed delivery credentials are required.");q({instanceId:t||"",contractSlug:s,documentDeliveryId:p,validateToken:b,action:m,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})}})(a)},r.forEach(a=>{window.Nutsheller.apply(null,Array.from(a))}),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.