PageSourceSearch

https://final-mithron-deploy.vercel.app/_next/static/chunks/135wdzejjduzx.js

js final-mithron-deploy.vercel.app collected 2026-10-03 06:57:10 UTC 16,309 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="a0a3e444-5970-3d39-36f3-a7b2ea3059cf")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,167600,e=>{"use strict";var t=e.i(271645),r=e.i(29054),a=e.i(247167);let n=new Map,i=[];function l(){if(void 0!==a.default&&"1"===a.default.env.PERF_ACTION_TIMING)return!0;try{return window.localStorage?.getItem("PERF_ACTION_TIMING")==="1"}catch{return!1}}function s(){return"u">typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}function o(e,t){return t?`${e}::${t}`:e}function u(e,t={},r){if(!l())return;let a=o(e,r),c=n.get(a);n.delete(a);let d=null!=c?Math.round(s()-c):-1,m=t.panel??"shared",h=!1!==t.ok,p=t.phase??"settled",f={id:`${e}-${Date.now()}`,panel:m,action:e,ms:d,ok:h,phase:p,at:new Date().toISOString(),extra:t.extra};i.push(f),i.length>500&&i.shift();let g=t.extra?Object.entries(t.extra).filter(([,e])=>void 0!==e).map(([e,t])=>`${e}=${t}`).join(" "):"",b=t.error?` error=${JSON.stringify(t.error.slice(0,120))}`:"";return console.info(`[perf] panel=${m} action=${e} phase=${p} ms=${d} ok=${h}${b}${g?` ${g}`:""}`),d}e.s(["useAsyncAction",0,function(e={}){let a=e.timeoutMs??r.DEFAULT_ACTION_TIMEOUT_MS,n=e.label??"Action",[i,l]=(0,t.useState)("idle"),[s,o]=(0,t.useState)(null),u=(0,t.useRef)(0),c=(0,t.useRef)(!0);(0,t.useEffect)(()=>(c.current=!0,()=>{c.current=!1}),[]);let d=(0,t.useCallback)(()=>{l("idle"),o(null)},[]);return{status:i,pending:"loading"===i,error:s,run:(0,t.useCallback)(async e=>{let t=++u.current;l("loading"),o(null);let i=()=>c.current&&u.current===t;try{let t=await (0,r.raceWithTimeout)(Promise.resolve(e()),a,n);return i()&&l("success"),t}catch(e){throw i()&&(o(e instanceof r.ActionTimeoutError||e instanceof Error?e.message:"Something went wrong."),l("error")),e}finally{i()&&u.current===t&&l(e=>"loading"===e?"idle":e)}},[a,n]),reset:d,setStatus:l}},"wrapServerAction",0,function(e,t={}){let a=t.timeoutMs??r.DEFAULT_ACTION_TIMEOUT_MS,i=t.label??"Action";return async(...t)=>{let c=`${Date.now()}-${Math.random().toString(36).slice(2,6)}`;l()&&n.set(o(i,c),s());try{let n=await (0,r.raceWithTimeout)(Promise.resolve(e(...t)),a,i);return u(i,{ok:!0,phase:"settled",panel:"shared"},c),n}catch(e){throw u(i,{ok:!1,phase:"settled",panel:"shared",error:e instanceof Error?e.message:String(e)},c),e}}}],167600)},414894,e=>{"use strict";var t=e.i(647163);e.s(["glassButtonClassName",0,function(e){return(0,t.cn)(e?.cart?"glass-button glass-button--cart":"glass-button",e?.className)}])},167881,e=>{"use strict";let t,r;var a=e.i(843476),n=e.i(271645),i=e.i(991918),l=e.i(207670);let s=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=l.clsx;var u=e.i(414894),c=e.i(647163);let d=(t="type-button inline-flex max-w-full min-w-[var(--mobile-touch-min,44px)] touch-manipulation items-center justify-center gap-2 whitespace-normal text-sm transition-[background,color,border,box-shadow,transform] duration-[300ms] ease-[var(--ease-cinematic)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background active:scale-[0.98] disabled:pointer-events-none disabled:opacity-50 disabled:active:scale-100",r={variants:{wrap:{normal:"whitespace-normal",nowrap:"whitespace-nowrap"},variant:{default:"rounded-full border border-black/[0.06] bg-white/[0.85] text-[#0f172a] shadow-[0_20px_60px_rgba(10,20,40,.04)] hover:bg-white/[0.94] hover:shadow-[0_24px_72px_rgba(10,20,40,.065)]",accent:(0,c.cn)((0,u.glassButtonClassName)(),"rounded-2xl"),accentCart:(0,c.cn)((0,u.glassButtonClassName)({cart:!0}),"rounded-2xl"),ghost:"rounded-full bg-transparent text-current hover:bg-black/5",outline:"rounded-full border border-black/[0.06] bg-white/[0.85] text-foreground shadow-[0_20px_60px_rgba(10,20,40,.04)] hover:border-black/[0.08] hover:bg-white/[0.94] hover:shadow-[0_24px_72px_rgba(10,20,40,.065)]",glass:"rounded-full border border-white/[0.28] bg-white/[0.12] text-white hover:bg-white/[0.18]"},size:{default:"min-h-[var(--store-button-height,44px)] px-[var(--store-button-padding-x,22px)] py-2",sm:"min-h-[var(--store-button-height-sm,44px)] px-4 py-2 text-xs",lg:"min-h-[var(--store-button-height-lg,48px)] px-8 py-2.5 text-sm",icon:"size-[var(--store-button-height,44px)] min-h-[var(--store-button-height,44px)] min-w-[var(--store-button-height,44px)] p-0"}},defaultVariants:{variant:"default",size:"default",wrap:"normal"}},e=>{var a;if((null==r?void 0:r.variants)==null)return o(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:n,defaultVariants:i}=r,l=Object.keys(n).map(t=>{let r=null==e?void 0:e[t],a=null==i?void 0:i[t];if(null===r)return null;let l=s(r)||s(a);return n[t][l]}),u=e&&Object.entries(e).reduce((e,t)=>
2{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return o(t,l,null==r||null==(a=r.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:r,className:a,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...u}[t]):({...i,...u})[t]===r})?[...e,r,a]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)}),m=n.forwardRef(({className:e,variant:t,size:r,wrap:n,asChild:l=!1,...s},o)=>{let u=l?i.Slot:"button";return(0,a.jsx)(u,{className:(0,c.cn)(d({variant:t,size:r,wrap:n,className:e})),ref:o,...s})});m.displayName="Button",e.s(["Button",0,m],167881)},747990,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function n(e,t){if(!e)return t;try{return JSON.parse(e)}catch{return t}}var i=e.i(647163);e.s(["EditorRenderedContentClient",0,function({safeHtml:e,className:l,style:s}){let o=(0,r.useRef)(null);return((0,r.useEffect)(()=>{if(o.current){var e;(e=o.current).querySelectorAll('[data-type="specification"]').forEach(e=>{var t;if(!(e instanceof HTMLElement)||"true"===e.dataset.hydrated||e.textContent?.trim())return;let r=(t=n(e.getAttribute("data-rows"),[])).length?`<div class="editor-specification-rows">${t.map(e=>{let t=a(e.label?.trim()??""),r=a(e.value?.trim()??"");return t||r?`<div class="editor-specification-row"><span class="editor-specification-label">${t}</span><span class="editor-specification-value">${r}</span></div>`:""}).join("")}</div>`:"";r&&(e.innerHTML=r,e.dataset.hydrated="true")}),e.querySelectorAll('[data-type="feature-card"]').forEach(e=>{let t,r;if(!(e instanceof HTMLElement)||"true"===e.dataset.hydrated||e.textContent?.trim())return;let n=e.getAttribute("data-title")??"",i=e.getAttribute("data-description")??"",l=(t=a(n.trim()),r=a(i.trim()),t||r?`${t?`<p class="editor-feature-card-title">${t}</p>`:""}${r?`<p class="editor-feature-card-description">${r}</p>`:""}`:"");l&&(e.innerHTML=l,e.dataset.hydrated="true")}),e.querySelectorAll('[data-type="downloads"]').forEach(e=>{var t;if(!(e instanceof HTMLElement)||"true"===e.dataset.hydrated||e.textContent?.trim())return;let r=(t=n(e.getAttribute("data-items"),[])).length?`<ul class="editor-downloads-list">${t.map(e=>{let t=e.href?.trim()??"",r=a(e.label?.trim()||t);return t&&function(e){try{let t=new URL(e,"https://example.invalid");return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}}(t)?`<li><a href="${a(t)}" rel="noopener noreferrer" target="_blank">${r}</a></li>`:`<li>${r}</li>`}).join("")}</ul>`:"";r&&(e.innerHTML=r,e.dataset.hydrated="true")})}},[e]),e)?(0,t.jsx)("div",{ref:o,className:(0,i.cn)("editor-rendered-content",l),style:s,dangerouslySetInnerHTML:{__html:e}}):null}],747990)},78723,e=>{"use strict";let t=[{code:"IN",dial:"91",nationalLength:10,label:"India (+91)"},{code:"AE",dial:"971",nationalLength:9,label:"UAE (+971)"},{code:"US",dial:"1",nationalLength:10,label:"United States (+1)"},{code:"CA",dial:"1",nationalLength:10,label:"Canada (+1)"},{code:"GB",dial:"44",nationalLength:10,label:"United Kingdom (+44)"},{code:"SG",dial:"65",nationalLength:8,label:"Singapore (+65)"},{code:"AU",dial:"61",nationalLength:9,label:"Australia (+61)"}];function r(e){return t.find(t=>t.code===e)??t[0]}function a(e){return e.replace(/\D/g,"")}function n(e,t){let r=a(e),n=a(t);return r&&n?`+${r}${n}`:""}function i(e){return e.trim().toLowerCase()}function l(e){let t=e.replace(/[\s\-().]/g,"");return t.startsWith("+")?t:10===t.length?`+91${t}`:t.startsWith("91")&&12===t.length?`+${t}`:t}function s(e){let t=e.trim();return!(!t||t.length>320||t.includes(" ")||1!==(t.match(/@/g)??[]).length)&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}e.s(["CUSTOMER_CONTACT_REQUIRED_MESSAGE",0,"Email and phone number are required for all orders and enquiries.","DEFAULT_PHONE_COUNTRY_CODE",0,"IN","PHONE_COUNTRIES",0,t,"composeE164",0,n,"digitsOnly",0,a,"getPhoneCountry",0,r,"isValidCustomerEmail",0,s,"isValidCustomerPhone",0,function(e){let t=l(e);return/^\+\d{8,15}$/.test(t)},"normalizeCustomerEmail",0,i,"splitE164ToCountry",0,function(e){let r=l(e);if(!r.startsWith("+"))return{countryCode:"IN",national:a(e)};for(let e of[...t].sort((e,t)=>
2t.dial.length-e.dial.length)){let t=`+${e.dial}`;if(r.startsWith(t)){let a=r.slice(t.length);if(a.length===e.nationalLength)return{countryCode:e.code,national:a}}}return{countryCode:"IN",national:a(r.replace(/^\+/,""))}},"validateCustomerEmail",0,function(e){let t=i(e);return s(t)?{ok:!0,value:t}:{ok:!1,error:"Use a valid email like [email protected]."}},"validateCustomerName",0,function(e){let t=e.trim();return t.length<2?{ok:!1,error:"Name is required."}:t.length>120?{ok:!1,error:"Name must be between 2 and 120 characters."}:{ok:!0,value:t}},"validatePhoneWithCountry",0,function(e,t){let i=r(e),l=a(t);if(l.length!==i.nationalLength)return{ok:!1,error:`Enter a ${i.nationalLength}-digit ${i.label.split(" (")[0]} mobile number.`};let s=n(i.dial,l);return/^\+\d{8,15}$/.test(s)?{ok:!0,value:s,country:i}:{ok:!1,error:"Enter a valid phone number."}}])},586495,e=>{"use strict";async function t(){let e=await fetch("/api/client-verification",{method:"GET",credentials:"same-origin",cache:"no-store"});if(!e.ok)return null;let t=await e.json().catch(()=>({}));return"string"==typeof t.token&&t.token.trim()?t.token.trim():null}async function r(){let e=await t();return{token:e,headers:{"Content-Type":"application/json",...e?{"x-auth-audit-token":e}:{}}}}e.s(["buildGuestRequestHeaders",0,r])},84081,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(78723),n=e.i(586495),i=e.i(167881),l=e.i(523022),s=e.i(189098),o=e.i(167600),u=e.i(29054);e.s(["EnquiryForm",0,function({defaultEmail:e="",defaultPhone:c="",defaultRegion:d="India",isGuest:m,autoPrefill:h=!0}){let[p,f]=(0,r.useState)(""),[g,b]=(0,r.useState)(e),[x,v]=(0,r.useState)(c),[y,w]=(0,r.useState)(""),[N,E]=(0,r.useState)(""),[C,S]=(0,r.useState)(d),[j,T]=(0,r.useState)(m??!0),{status:$,pending:k,run:A,setStatus:_,reset:q}=(0,o.useAsyncAction)({label:"Submit contact enquiry"}),[O,I]=(0,r.useState)(""),R=h&&!e&&!c&&!1!==m;async function L(e){if(e.preventDefault(),!k){let e;if((e=p.trim())?e.length<2||e.length>120?(I("Name must be between 2 and 120 characters."),!0):g.trim()?(0,a.isValidCustomerEmail)(g.trim())?x.trim()?!(0,a.isValidCustomerPhone)(x.trim())&&(I("Enter a valid phone number (8–15 digits)."),!0):(I("Phone number is required."),!0):(I("Enter a valid email address."),!0):(I("Email is required."),!0):(I("Name is required."),!0))return void _("error");I("");try{let e=await A(async()=>{let e=j?await (0,n.buildGuestRequestHeaders)():null;if(j&&!e?.token)return{ok:!1,error:"Something went wrong. Refresh the page and try again."};let t=await (0,u.fetchWithTimeout)("/api/contact-requests",{method:"POST",headers:e?.headers??{"Content-Type":"application/json"},body:JSON.stringify({fullName:p.trim(),email:g.trim(),phone:x.trim(),subject:y,message:N,region:C})});if(!t.ok){let e=await t.json().catch(()=>({}));return{ok:!1,error:"string"==typeof e.error?e.error:"Failed to submit enquiry."}}let r=await t.json().catch(()=>({}));return{ok:!0,contactRequestId:"string"==typeof r.contactRequestId?r.contactRequestId.trim():""}});if(!e)return;if(!e.ok){I(e.error),_("error"),l.notify.error(e.error,{source:"contact"});return}e.contactRequestId&&l.notify.success(s.FEEDBACK_MESSAGES.contactSent,{source:"contact"}),f(""),w(""),E("")}catch{I("Network error. Please check your connection and try again.")}}}return(0,r.useEffect)(()=>{if(!R)return;let e=new AbortController;return(async()=>{try{let t=await (0,u.fetchWithTimeout)("/api/account/contact-defaults",{method:"GET",signal:e.signal,cache:"no-store"});if(!t.ok)return;let r=await t.json().catch(()=>null);if(!r||e.signal.aborted)return;"string"==typeof r.email&&r.email.trim()&&b(e=>e||r.email.trim()),"string"==typeof r.phone&&r.phone.trim()&&v(e=>e||r.phone.trim()),"boolean"==typeof r.isGuest&&T(r.isGuest)}catch{}})(),()=>e.abort()},[R]),"success"===$?(0,t.jsxs)("div",{className:"rounded-2xl border border-emerald-500/30 bg-emerald-500/10 p-6","data-enquiry-success":!0,children:[(0,t.jsx)("p",{className:"text-base font-semibold text-emerald-700",children:"Enquiry received."}),(0,t.jsxs)("p",{className:"mt-2 text-sm text-emerald-800/80",children:["Our team will respond to ",g," or ",x," shortly."]}),(0,t.jsx)(i.Button,{type:"button",variant:"outline",className:"mt-4",onClick:q,children:"Send another enquiry"})]}):(0,t.jsxs)("form",{"data-enquiry-form":!0,onSubmit:L,className:"grid gap-4 roun
2ded-2xl border border-[var(--surface-border)] bg-[var(--surface-card)] p-[clamp(1.25rem,4vw,1.5rem)]",children:[(0,t.jsx)("p",{className:"text-sm text-slate-500",children:a.CUSTOMER_CONTACT_REQUIRED_MESSAGE}),(0,t.jsxs)("label",{className:"grid gap-2 text-sm",children:[(0,t.jsxs)("span",{className:"font-medium text-slate-600",children:["Name ",(0,t.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,t.jsx)("input",{required:!0,type:"text",autoComplete:"name",minLength:2,maxLength:120,value:p,onChange:e=>f(e.target.value),className:"min-h-11 rounded-xl border border-slate-200 bg-white px-4 outline-none focus:border-slate-400"})]}),(0,t.jsxs)("label",{className:"grid gap-2 text-sm",children:[(0,t.jsxs)("span",{className:"font-medium text-slate-600",children:["Email ",(0,t.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,t.jsx)("input",{required:!0,type:"email",autoComplete:"email",value:g,onChange:e=>b(e.target.value),className:"min-h-11 rounded-xl border border-slate-200 bg-white px-4 outline-none focus:border-slate-400"})]}),(0,t.jsxs)("label",{className:"grid gap-2 text-sm",children:[(0,t.jsxs)("span",{className:"font-medium text-slate-600",children:["Phone ",(0,t.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,t.jsx)("input",{required:!0,type:"tel",autoComplete:"tel",value:x,onChange:e=>v(e.target.value),placeholder:"+91 98765 43210",className:"min-h-11 rounded-xl border border-slate-200 bg-white px-4 outline-none focus:border-slate-400"})]}),(0,t.jsxs)("label",{className:"grid gap-2 text-sm",children:[(0,t.jsxs)("span",{className:"font-medium text-slate-600",children:["Subject ",(0,t.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,t.jsx)("input",{required:!0,value:y,onChange:e=>w(e.target.value),className:"min-h-11 rounded-xl border border-slate-200 bg-white px-4 outline-none focus:border-slate-400"})]}),(0,t.jsxs)("label",{className:"grid gap-2 text-sm",children:[(0,t.jsx)("span",{className:"font-medium text-slate-600",children:"Region"}),(0,t.jsx)("input",{value:C,onChange:e=>S(e.target.value),className:"min-h-11 rounded-xl border border-slate-200 bg-white px-4 outline-none focus:border-slate-400"})]}),(0,t.jsxs)("label",{className:"grid gap-2 text-sm",children:[(0,t.jsxs)("span",{className:"font-medium text-slate-600",children:["Message ",(0,t.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,t.jsx)("textarea",{required:!0,rows:5,value:N,onChange:e=>E(e.target.value),className:"rounded-xl border border-slate-200 bg-white px-4 py-3 outline-none focus:border-slate-400"})]}),O?(0,t.jsx)("p",{className:"text-sm text-red-600",children:O}):null,(0,t.jsx)(i.Button,{type:"submit",disabled:k,children:k?"Sending...":"Submit enquiry"})]})}])}]);
3
4//# debugId=a0a3e444-5970-3d39-36f3-a7b2ea3059cf

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.