PageSourceSearch

https://www.dmfluxury.com/_next/static/chunks/3260-ad3a35125669966c.js

js dmfluxury.com collected 2026-10-07 15:45:47 UTC 6,374 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3260],{15689:function(e,t,n){n.d(t,{Q:function(){return m},trackError:function(){return l},z:function(){return f}});var o=n(57437),r=n(39899),a=n(23664),i=n(2265),c=n(99376),s=n(59010);let u="_canonical_uid";function l(e,t){if(r.ZP.__loaded)try{r.ZP.capture(e,t)}catch(e){}}function d(){let e=(0,c.usePathname)(),t=(0,c.useSearchParams)(),n=(0,a.U0)();return(0,i.useEffect)(()=>{if(e&&n){let o=window.origin+e,r=null==t?void 0:t.toString();r&&(o+="?".concat(r)),n.capture("$pageview",{$current_url:o})}},[e,t,n]),null}function f(e){let{children:t}=e;return(0,i.useEffect)(()=>{let e=function(){if("undefined"==typeof document)return;let e=document.cookie.match(RegExp("(?:^|; )"+u+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0}();r.ZP.init("phc_uv6iBe4HUecB857EiGoBJqtBFBmHhbSRdDdToh3GZ35v",{api_host:"/ingest",ui_host:"https://us.i.posthog.com",defaults:"2026-01-30",capture_pageview:!1,capture_pageleave:!0,disable_session_recording:!1,session_recording:{maskAllInputs:!0},before_send:e=>{var t,n;return e&&(null==e?void 0:e.event)==="$exception"&&(null!==(n=null===(t=e.properties)||void 0===t?void 0:t.$exception_list)&&void 0!==n?n:[]).some(e=>{var t,n;return(null==e?void 0:e.value)==="Script error."&&!(null==e?void 0:null===(n=e.stacktrace)||void 0===n?void 0:null===(t=n.frames)||void 0===t?void 0:t.length)})?null:e},...e?{bootstrap:{distinctID:e}}:{}});let t=r.ZP.get_distinct_id();t&&"undefined"!=typeof document&&(document.cookie="".concat(u,"=").concat(encodeURIComponent(t),"; max-age=").concat(63072e3,"; path=/; SameSite=Lax"))},[!0]),(0,o.jsxs)(a.zf,{client:r.ZP,children:[(0,o.jsx)(i.Suspense,{fallback:null,children:(0,o.jsx)(d,{})}),t]})}function m(){let{user:e}=(0,s.a)(),t=(0,a.U0)();return(0,i.useEffect)(()=>{t&&(e?t.identify(e.email,{email:e.email,portal_user_id:e.id}):t.reset())},[e,t]),null}},57590:function(e,t,n){n.d(t,{FR:function(){return m},Sv:function(){return h},y1:function(){return f}});var o=n(57437),r=n(2265);let a=(0,r.createContext)({messages:{},loaded:!1,msg:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t},refresh:async()=>{}}),i="smsg_v3",c=null,s=null,u=new Set;function l(){u.forEach(e=>e())}async function d(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||null===c){if(!e){let e=function(){if("undefined"==typeof localStorage)return null;try{let e=localStorage.getItem(i);if(!e)return null;let{data:t,ts:n}=JSON.parse(e);if(Date.now()-n>18e5)return localStorage.removeItem(i),null;return t}catch(e){return null}}();if(e){c=e,l();return}}try{let e=await fetch("/api/site-messages",{cache:"no-store"});if(e.ok){let t=await e.json();t.success&&t.data&&(c=t.data,function(e){if("undefined"!=typeof localStorage)try{localStorage.setItem(i,JSON.stringify({data:e,ts:Date.now()}))}catch(e){}}(c),l())}}catch(e){}}}function f(e){let{children:t}=e,[n,l]=(0,r.useState)(()=>null!=c?c:{}),[f,m]=(0,r.useState)(()=>null!==c);(0,r.useEffect)(()=>{let e=()=>{c&&(l(c),m(!0))};return u.add(e),()=>{u.delete(e)}},[]),(0,r.useEffect)(()=>{if(null!==c){l(c),m(!0);return}s||(s=d().finally(()=>{s=null,m(!0)})),s.then(()=>{c&&(l(c),m(!0))})},[]);let h=(0,r.useCallback)(async()=>{!function(){if("undefined"!=typeof localStorage)try{localStorage.removeItem(i)}catch(e){}}(),c=null,s=d(!0).finally(()=>{s=null}),await s,c&&(l(c),m(!0))},[]),p=(0,r.useCallback)(function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,r=null==c?void 0:c[e];return t=null!=r?r:n,o?Object.entries(o).reduce((e,t)=>{let[n,o]=t;return e.replace(RegExp("\\{".concat(n,"\\}"),"g"),o)},t):t},[]);return(0,o.jsx)(a.Provider,{value:{messages:n,loaded:f,msg:p,refresh:h},children:t})}function m(){return(0,r.useContext)(a)}function h(){let{msg:e}=(0,r.useContext)(a);return e}},83414:function(e,t,n){n.d(t,{VP:function(){return a},Z3:function(){return r},od:function(){return i},z2:function(){return c}});let o="https://portal360av-prod-westus2-backend-app-bfh0hkdfhah8hhae.westus2-01.azurewebsites.net";async function r(e){try{var t,n,r;let a=await fetch("".concat(o,"/auth/send-code"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})}),i=await a.json();return{success:i.success,message:(null===(t=i.data)||void 0===t?void 0:t.message)||(null===(n=i.error)||void 0===n?void 0:n.message)||i.message,code:null===(r=i.data)||void 0===r?void 0:r.code}}catch(e){return console.error("Send code error:",e),{success:!1,message:"Failed to send code. Please try again."}}}async function a(e,t){try{let r=await fetch("".concat(o,"/auth/verify-code"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,code:t})});if(!r.ok){var n;let e=await r.json().catch(()=>null),t=(null==e?void 0:null===(n=e.error)||void 0===n?void 0:n.message)||(null==e?void 0:e.message)||"Invalid code";throw Error(t)}let a=await r.json(),i=a.data||a,c=i.user||{};return{success:a.success,token:i.token||"",user:{id:c.id||c.user_id,email:c.email||e,name:c.name||"",firstName:c.firstName||c.first_name||"",lastName:c.lastName||c.last_name||"",phone:c.phone||"",jobTitle:c.jobTitle||c.job_title||"",companyName:c.companyName||c.company_name||""},roles:i.roles||[],permissions:i.permissions||[],locations:i.locations||[],companies:i.companies||[],metafields:i.metafields||{}}}catch(e){throw console.error("Verify code error:",e),e}}async function i(e,t){try{await fetch("".concat(o,"/api/profile/email-news-accepted"),{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:JSON.stringify({accepted:t})})}catch(e){console.error("Update email news accepted error:",e)}}async function c(e){try{let t=await fetch("".concat(o,"/auth/register"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await t.json()}catch(e){return console.error("Register error:",e),{success:!1,message:"Failed to register"}}}},99376:function(e,t,n){var o=n(35475);n.o(o,"useParams")&&n.d(t,{useParams:function(){return o.useParams}}),n.o(o,"usePathname")&&n.d(t,{usePathname:function(){return o.usePathname}}),n.o(o,"useRouter")&&n.d(t,{useRouter:function(){return o.useRouter}}),n.o(o,"useSearchParams")&&n.d(t,{useSearchParams:function(){return o.useSearchParams}})}}]);

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.