PageSourceSearch

https://www.openigloo.com/_next/static/chunks/4479.1f14fc54b0ab8d9d.js

js openigloo.com collected 2026-09-24 11:18:53 UTC 17,508 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7a9ce5dd-90cd-597e-b8c8-3cd56e3e9602")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4479],{14975:(e,t,n)=>{n.d(t,{l:()=>s});var i=n(98955),r=n(46541);function s(e,t,n){var s=(0,r.B)(t);i.r4.includes(s)&&e.track("review_".concat(s),{value:n})}},44479:(e,t,n)=>{n.r(t),n.d(t,{Analytics:()=>g,AppEvents:()=>i.r1,ApplicationProfileEvents:()=>i.je,AuthEvents:()=>i.QU,BuildingEvents:()=>i.GY,BuildingReportEvents:()=>i.a3,ConsoleProvider:()=>d,ContactEvents:()=>i._L,ContentEvents:()=>i.rU,EcommerceEvents:()=>i.KP,Events:()=>i.sV,FooterEvents:()=>i.bE,HeaderEvents:()=>i.z$,HomePageEvents:()=>i.kt,InteractionEvents:()=>i.I8,ListingsEvents:()=>i.dE,MessagesEvents:()=>i._u,MiscellaneousEvents:()=>i.IM,MixpanelProvider:()=>h,NavigationEvents:()=>i.AC,PostHogProvider:()=>v,ProfileEvents:()=>i.nU,RATE_APP_PROMPT_EVENT_NAMES:()=>i.ir,RATE_APP_TRIGGER_POINT_MAP:()=>i.E1,REVIEW_CHOICE_EVENT_KEYS:()=>i.r4,ReviewEvents:()=>i.op,SegmentProvider:()=>f,UnitEvents:()=>i.ks,isBuildingDynamicEventName:()=>i.tO,isContactDynamicEventName:()=>i.Dc,isGlobalEventName:()=>i.F_,isReviewChoiceEventName:()=>i.$7,isReviewDynamicEventName:()=>i.tA,toEventKey:()=>y.Z,toSnakeKey:()=>y.B,trackReviewChoice:()=>_.l});var i=n(1907),r=n(72379),s=n(59),a=n(32074),o=n(42734),c=n(87104),u=n(36013),l=n(82087),f=function(){function e(){(0,s._)(this,e),(0,o._)(this,"analytics",null),(0,o._)(this,"config",null),(0,o._)(this,"isInitialized",!1)}return(0,a._)(e,[{key:"initialize",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){try{if(t.config=e.config,!t.config.client)throw Error("Segment client is required");t.analytics=t.config.client,t.isInitialized=!0,t.config.debug}catch(e){throw console.error("❌ Failed to initialize Segment provider:",e),e}return[2]})})()}},{key:"track",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){switch(n.label){case 0:if(!t.isInitialized||!t.analytics)return console.warn("⚠️ Segment provider not initialized"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.analytics.track(e.name,e.properties,{context:e.context,timestamp:new Date(e.timestamp)})];case 2:return n.sent(),[3,4];case 3:return console.error("❌ Segment track failed:",n.sent()),[3,4];case 4:return[2]}})})()}},{key:"identify",value:function(e,t){var n=this;return(0,r._)(function(){return(0,l.YH)(this,function(i){switch(i.label){case 0:if(!n.isInitialized||!n.analytics)return console.warn("⚠️ Segment provider not initialized"),[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,n.analytics.identify(e,t)];case 2:return i.sent(),[3,4];case 3:return console.error("❌ Segment identify failed:",i.sent()),[3,4];case 4:return[2]}})})()}},{key:"page",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){switch(n.label){case 0:if(!t.isInitialized||!t.analytics)return console.warn("⚠️ Segment provider not initialized"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.analytics.page(e.url,e.properties,{context:e.context,timestamp:new Date(e.timestamp)})];case 2:return n.sent(),[3,4];case 3:return console.error("❌ Segment page failed:",n.sent()),[3,4];case 4:return[2]}})})()}},{key:"screen",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){switch(n.label){case 0:if(!t.isInitialized||!t.analytics)return console.warn("⚠️ Segment provider not initialized"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.analytics.screen(e.screenName,e.properties,{context:e.context,timestamp:new Date(e.timestamp)})];case 2:return n.sent(),[3,4];case 3:return console.error("❌ Segment screen failed:",n.sent()),[3,4];case 4:return[2]}})})()}},{key:"flush",value:function(){var e=this;return(0,r._)(function(){return(0,l.YH)(this,function(t){switch(t.label){case 0:if(!e.isInitialized||!e.analytics)return[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.analytics.flush()];case 2:return t.sent(),[3,4];case 3:return console.error("❌ Segment flush failed:",t.sent()),[3,4];case 4:return[2]}})})()}},{key:"getStatus",value:function(){var e={initialized:this.isInitialized};return this.config&&(e.config=this.config),e}}]),e}(),h=function(){function e(){(0,s._)(this,e),(0,o._)(this,"client",null),(0,o._)(this,"config",null),(0,o._)(this,"isInitialized",!1)}return(0,a._)(e,[{key:"toMixpanelPeopleTraits",value:function(e){var t=(0,c._)({},e);return"string"==typeof e.email&&e.email.length>0&&(t.$email=e.email),"string"==typeof e.name&&e.name.length>0&&(t.$name=e.name),"string"==typeof e.firstName&&e.firstName.length>0&&(t.$first_name=e.firstName),"string"==typeof e.lastName&&e.lastName.length>0&&(t.$last_name=e.lastName),"string"==typeof e.createdAt&&e.createdAt.length>0&&(t.$created=e.createdAt),t}},{key:"getPeopleApi",value:function(){return this.client?this.client.people?this.client.people:"function"==typeof this.client.getPeople?this.client.getPeople():null:null}},{key:"initialize",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){try{if(t.config=e.config,!t.config.client)throw Error("Mixpanel client is required");t.client=t.config.client,t.isInitialized=!0,t.config.debug}catch(e){throw console.error("❌ Failed to initialize Mixpanel provider:",e),e}return[2]})})()}},{key:"track",value:function(e){var t=this;return(0,r._)(function(){var n;return(0,l.YH)(this,function(i){switch(i.label){case 0:if(!t.isInitialized||!t.client)return console.warn("⚠️ Mixpanel provider not initialized"),[2];i.label=1;case 1:return i.trys.push([1,5,,6]),n=(0,u._)((0,c._)({},e.properties||{}),{context:e.context,timestamp:e.timestamp}),[4,t.client.track(e.name,n)];case 2:if(i.sent(),"function"!=typeof t.client.flush)return[3,4];return[4,t.client.flush()];case 3:i.sent(),i.label=4;case 4:return[3,6];case 5:return console.error("❌ Mixpanel track failed:",i.sent()),[3,6];case 6:return[2]}})})()}},{key:"identify",value:function(e,t){var n=this;return(0,r._)(function(){var i;return(0,l.YH)(this,function(r){switch(r.label){case 0:if(!n.isInitialized||!n.client)return console.warn("⚠️ Mixpanel provider not initialized"),[2];r.label=1;case 1:return r.trys.push([1,7,,8]),[4,n.client.identify(e)];case 2:if(r.sent(),i=n.getPeopleApi(),!(t&&i&&"function"==typeof i.set))return[3,4];return[4,i.set(n.toMixpanelPeopleTraits(t))];case 3:r.sent(),r.label=4;case 4:if("function"!=typeof n.client.flush)return[3,6];return[4,n.client.flush()];case 5:r.sent(),r.label=6;case 6:return[3,8];case 7:return console.error("❌ Mixpanel identify failed:",r.sent()),[3,8];case 8:return[2]}})})()}},{key:"page",value:function(e){return(0,r._)(function(){return(0,l.YH)(this,function(e){return[2]})})()}},{key:"screen",value:function(e){return(0,r._)(function(){return(0,l.YH)(this,function(e){return[2]})})()}},{key:"flush",value:function(){var e=this;return(0,r._)(function(){return(0,l.YH)(this,function(t){switch(t.label){case 0:if(!e.isInitialized||!e.client)return[2];t.label=1;case 1:if(t.trys.push([1,4,,5]),"function"!=typeof e.client.flush)return[3,3];return[4,e.client.flush()];case 2:t.sent(),t.label=3;case 3:return[3,5];case 4:return console.error("❌ Mixpanel flush failed:",t.sent()),[3,5];case 5:return[2]}})})()}}]),e}(),v=function(){function e(){(0,s._)(this,e),(0,o._)(this,"client",null),(0,o._)(this,"config",null),(0,o._)(this,"isInitialized",!1)}return(0,a._)(e,[{key:"initialize",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){try{if(t.config=e.config,!t.config.client)throw Error("PostHog client is required");t.client=t.config.client,t.isInitialized=!0,t.config.debug}catch(e){throw console.error("❌ Failed to initialize PostHog provider:",e),e}return[2]})})()}},{key:"track",value:function(e){var t=this;return(0,r._)(function(){var n;return(0,l.YH)(this,function(i){if(!t.isInitialized||!t.client)return console.warn("⚠️ PostHog provider not initialized"),[2];try{n=(0,u._)((0,c._)({},e.properties||{}),{context:e.context,timestamp:e.timestamp}),t.client.capture(e.name,n)}catch(e){console.error("❌ PostHog capture failed:",e)}return[2]})})()}},{key:"identify",value:function(e,t){var n=this;return(0,r._)(function(){return(0,l.YH)(this,function(i){if(!n.isInitialized||!n.client)return console.warn("⚠️ PostHog provider not initialized"),[2];try{t&&Object.keys(t).length>0?n.client.identify(e,t):n.client.identify(e)}catch(e){console.error("❌ PostHog identify failed:",e)}return[2]})})()}},{key:"page",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){if(!t.isInitialized||!t.client)return[2];try{t.client.capture("$pageview",(0,u._)((0,c._)({},e.properties||{}),{$current_url:e.url,context:e.context,timestamp:e.timestamp}))}catch(e){console.error("❌ PostHog page failed:",e)}return[2]})})()}},{key:"screen",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){if(!t.isInitialized||!t.client)return[2];try{t.client.capture("$screen",(0,u._)((0,c._)({},e.properties||{}),{$screen_name:e.screenName,context:e.context,timestamp:e.timestamp}))}catch(e){console.error("❌ PostHog screen failed:",e)}return[2]})})()}},{key:"flush",value:function(){return(0,r._)(function(){return(0,l.YH)(this,function(e){return[2]})})()}},{key:"reset",value:function(){if(this.isInitialized&&this.client)try{this.client.reset()}catch(e){console.error("❌ PostHog reset failed:",e)}}}]),e}(),d=function(){function e(){(0,s._)(this,e),(0,o._)(this,"config",{}),(0,o._)(this,"isInitialized",!1)}return(0,a._)(e,[{key:"initialize",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){return t.config=(0,c._)({enabled:!0,verbose
3:!1,prefix:"\uD83D\uDCCA"},e.config),t.isInitialized=!0,t.config.verbose,[2]})})()}},{key:"track",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){return t.isInitialized&&t.config.enabled&&(t.config.verbose?(e.name,e.properties,e.context,e.timestamp):(e.name,e.properties)),[2]})})()}},{key:"identify",value:function(e,t){var n=this;return(0,r._)(function(){return(0,l.YH)(this,function(e){return n.isInitialized&&n.config.enabled,[2]})})()}},{key:"page",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){return t.isInitialized&&t.config.enabled&&(t.config.verbose?(e.url,e.properties,e.context):(e.url,e.properties)),[2]})})()}},{key:"screen",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){return t.isInitialized&&t.config.enabled&&(t.config.verbose?(e.screenName,e.properties,e.context):(e.screenName,e.properties)),[2]})})()}},{key:"flush",value:function(){var e=this;return(0,r._)(function(){return(0,l.YH)(this,function(t){return e.config.verbose,[2]})})()}},{key:"getStatus",value:function(){return{initialized:this.isInitialized,enabled:this.config.enabled||!1,config:this.config}}}]),e}(),p=n(6768),g=function(){function e(t){(0,s._)(this,e),(0,o._)(this,"providers",[]),(0,o._)(this,"config",void 0),(0,o._)(this,"isInitialized",!1),(0,o._)(this,"context",{}),(0,o._)(this,"annotations",{}),this.config=(0,c._)({debug:!1,enableAutoContext:!0},t)}return(0,a._)(e,[{key:"initialize",value:function(){var e=this;return(0,r._)(function(){var t,n,i,r,s,a,o,c,u;return(0,l.YH)(this,function(l){switch(l.label){case 0:l.trys.push([0,9,,10]),e.providers=[],t=!0,n=!1,i=void 0,l.label=1;case 1:l.trys.push([1,6,7,8]),r=e.config.providers[Symbol.iterator](),l.label=2;case 2:if(t=(s=r.next()).done)return[3,5];if(!1===(a=s.value).enabled||!(o=e.createProvider(a.name)))return[3,4];return[4,o.initialize(a)];case 3:l.sent(),e.providers.push(o),e.config.debug,l.label=4;case 4:return t=!0,[3,2];case 5:return[3,8];case 6:return c=l.sent(),n=!0,i=c,[3,8];case 7:try{t||null==r.return||r.return()}finally{if(n)throw i}return[7];case 8:return e.isInitialized=!0,e.config.debug,[3,10];case 9:throw console.error("❌ Failed to initialize analytics:",u=l.sent()),u;case 10:return[2]}})})()}},{key:"track",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var s=this;return(0,r._)(function(){var t,i,r;return(0,l.YH)(this,function(a){switch(a.label){case 0:if(!s.isInitialized)return console.warn("⚠️ Analytics not initialized"),[2];return i=null!=(t=n[0])?t:{},r={type:"track",name:"page_load"===e||"screen_load"===e?String(e):"".concat(String(e),"_tap"),properties:(0,c._)({},i||{},s.annotations),context:s.buildContext(),timestamp:new Date().toISOString()},[4,s.executeOnAllProviders(function(e){return e.track(r)})];case 1:return a.sent(),[2]}})})()}},{key:"annotate",value:function(e){this.annotations=(0,c._)({},this.annotations,e)}},{key:"replaceAnnotate",value:function(e){this.annotations=(0,c._)({},e)}},{key:"identify",value:function(e,t){var n=this;return(0,r._)(function(){return(0,l.YH)(this,function(i){switch(i.label){case 0:if(!n.isInitialized)return console.warn("⚠️ Analytics not initialized"),[2];return n.context.userId=e,t&&(n.context.userTraits=t),[4,n.executeOnAllProviders(function(n){return n.identify(e,t)})];case 1:return i.sent(),[2]}})})()}},{key:"setUser",value:function(e,t){var n=this;return(0,r._)(function(){return(0,l.YH)(this,function(i){return[2,n.identify(e,t?{email:t}:void 0)]})})()}},{key:"page",value:function(e,t){var n=this;return(0,r._)(function(){var i,r,s,a;return(0,l.YH)(this,function(o){switch(o.label){case 0:if(!n.isInitialized)return console.warn("⚠️ Analytics not initialized"),[2];if(i=e&&e.length>0?e:window.location.pathname,!(""!==(r="undefined"!=typeof navigator?navigator.userAgent:"")&&!r.toLowerCase().includes("bot")))return[2];return s=(0,u._)((0,c._)({},t||{},n.annotations),{url:i}),a={type:"page",name:"page",url:i,properties:s,context:n.buildContext(),timestamp:new Date().toISOString()}
3,[4,n.executeOnAllProviders(function(e){return e.page(a)})];case 1:return o.sent(),[4,n.track("page_load",s)];case 2:return o.sent(),[2]}})})()}},{key:"screen",value:function(e,t){var n=this;return(0,r._)(function(){var i,r;return(0,l.YH)(this,function(s){switch(s.label){case 0:if(!n.isInitialized)return console.warn("⚠️ Analytics not initialized"),[2];return i=(0,u._)((0,c._)({},t||{},n.annotations),{name:e}),r={type:"screen",name:"screen",screenName:e,properties:i,context:n.buildContext(),timestamp:new Date().toISOString()},[4,n.executeOnAllProviders(function(e){return e.screen(r)})];case 1:return s.sent(),[4,n.track("screen_load",i)];case 2:return s.sent(),[2]}})})()}},{key:"setContext",value:function(e){this.context=(0,c._)({},this.context,e)}},{key:"updateUser",value:function(e){this.context.userTraits=(0,c._)({},this.context.userTraits,e)}},{key:"flush",value:function(){var e=this;return(0,r._)(function(){return(0,l.YH)(this,function(t){switch(t.label){case 0:if(!e.isInitialized)return[2];return[4,e.executeOnAllProviders(function(e){return e.flush()})];case 1:return t.sent(),[2]}})})()}},{key:"reset",value:function(){this.context={}}},{key:"getStatus",value:function(){return{initialized:this.isInitialized,providers:this.providers.length,context:this.context}}},{key:"createProvider",value:function(e){switch(e.toLowerCase()){case"segment":return new f;case"mixpanel":return new h;case"posthog":return new v;case"console":return new d;default:return console.warn("⚠️ Unknown provider: ".concat(e)),null}}},{key:"executeOnAllProviders",value:function(e){var t=this;return(0,r._)(function(){return(0,l.YH)(this,function(n){switch(n.label){case 0:var i;return[4,Promise.all(t.providers.map((i=(0,r._)(function(t){return(0,l.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e(t)];case 1:return n.sent(),[3,3];case 2:return console.error("❌ Provider error:",n.sent()),[3,3];case 3:return[2]}})}),function(e){return i.apply(this,arguments)})))];case 1:return n.sent(),[2]}})})()}},{key:"buildContext",value:function(){var e=this.detectPlatform(),t=(0,c._)({platform:e,os:this.getOS(),appVersion:this.getAppVersion(),environment:this.getEnvironment(),sessionId:this.getSessionId(),timestamp:new Date().toISOString()},this.context);return this.config.enableAutoContext&&"web"===e&&(t.browser=navigator.userAgent,t.referrer=document.referrer),t}},{key:"detectPlatform",value:function(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"mobile":"web"}},{key:"getSessionId",value:function(){return this.context.sessionId||(this.context.sessionId="session_".concat(Date.now(),"_").concat(Math.random().toString(36).substr(2,9))),this.context.sessionId}},{key:"getOS",value:function(){return"undefined"!=typeof navigator?navigator.platform||"unknown":(null==p?void 0:p.platform)||"unknown"}},{key:"getAppVersion",value:function(){return this.context.appVersion||"1.0.0"}},{key:"getEnvironment",value:function(){return void 0!==p&&p.env?"production":"development"}}]),e}(),y=n(46541),_=n(14975)},46541:(e,t,n)=>{function i(e){return e.trim().replace(/\s+/g,"_").toLowerCase()}function r(e){return String(null!=e?e:"").trim().replace(/[\s-]+/g,"_").replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/_+/g,"_").toLowerCase()}n.d(t,{B:()=>r,Z:()=>i})}}]);
4//# sourceMappingURL=4479.1f14fc54b0ab8d9d.js.map
5//# debugId=7a9ce5dd-90cd-597e-b8c8-3cd56e3e9602

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.