PageSourceSearch

https://exportparadip.com/_next/static/chunks/app/blog/page-8975d2a2202956d3.js

js exportparadip.com collected 2026-10-04 04:48:00 UTC 7,120 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3831,8974],{18085:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(71847).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},25016:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(2821),i=r(75889);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.QP)((0,s.$)(t))}},28171:(e,t,r)=>{"use strict";r.d(t,{dj:()=>c});var s=r(12115);let i=0,a=new Map,n=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),u({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},o=[],l={toasts:[]};function u(e){l=((e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}})(l,e),o.forEach(e=>{e(l)})}function d(e){let{...t}=e,r=(i=(i+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>u({type:"DISMISS_TOAST",toastId:r});return u({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>u({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function c(){let[e,t]=s.useState(l);return s.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>u({type:"DISMISS_TOAST",toastId:e})}}},35299:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(71847).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},38889:(e,t,r)=>{Promise.resolve().then(r.bind(r,45538)),Promise.resolve().then(r.t.bind(r,52619,23)),Promise.resolve().then(r.t.bind(r,81356,23))},45538:(e,t,r)=>{"use strict";r.d(t,{HomeNewsletterInput:()=>u});var s=r(95155),i=r(12115),a=r(97003),n=r(35299),o=r(18085),l=r(28171);function u(){let[e,t]=(0,i.useState)(""),[r,u]=(0,i.useState)(!1),{toast:d}=(0,l.dj)(),c=async r=>{if(r.preventDefault(),!e.trim())return void d({title:"Email required",description:"Please enter your email address",variant:"destructive"});if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return void d({title:"Invalid email",description:"Please enter a valid email address",variant:"destructive"});u(!0);try{let r=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.trim()})}),s=await r.json();if(!r.ok)return void d({title:"Subscription failed",description:s.error||"Something went wrong. Please try again.",variant:"destructive"});!1===s.emailSent?d({title:"Subscribed successfully",description:"You've been subscribed, but we couldn't send the welcome email.",variant:"default",duration:5e3}):d({title:"Successfully subscribed!",description:"Thank you for subscribing to our newsletter.",variant:"default",duration:5e3}),t("")}catch(e){console.error("Subscription error:",e),d({title:"Subscription failed",description:"Unable to connect. Please try again later.",variant:"destructive"})}finally{u(!1)}};return(0,s.jsxs)("form",{onSubmit:c,className:"flex gap-2 w-full sm:w-auto",children:[(0,s.jsx)("input",{type:"email",placeholder:"Enter your email for newsletter",value:e,onChange:e=>t(e.target.value),disabled:r,className:"px-4 h-10 rounded-lg text-gray-800 border-2 border-white focus:outline-none focus:ring-2 focus:ring-white flex-1 sm:w-80 disabled:opacity-70"}),(0,s.jsx)(a.$,{type:"submit",disabled:r,"aria-label":"Subscribe to newsletter",className:"bg-white text-teal-600 hover:bg-gray-100 h-10 w-10 p-0 rounded-lg flex items-center justify-center disabled:opacity-70",children:r?(0,s.jsx)(n.A,{className:"h-5 w-5 animate-spin"}):(0,s.jsx)(o.A,{className:"h-5 w-5"})})]})}},71847:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(12115);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,s.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:u="",children:d,iconNode:c,...f}=e;return(0,s.createElement)("svg",{ref:t,...a,width:n,height:n,stroke:r,strokeWidth:l?24*Number(o)/Number(n):o,className:i("lucide",u),...f},[...c.map(e=>{let[t,r]=e;return(0,s.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),o=(e,t)=>{let r=(0,s.forwardRef)((r,a)=>{let{className:o,...l}=r;return(0,s.createElement)(n,{ref:a,iconNode:t,className:i("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),o),...l})});return r.displayName="".concat(e),r}},83101:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});var s=r(2821);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=s.$,n=(e,t)=>r=>{var s;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:n,defaultVariants:o}=t,l=Object.keys(n).map(e=>{let t=null==r?void 0:r[e],s=null==o?void 0:o[e];if(null===t)return null;let a=i(t)||i(s);return n[e][a]}),u=r&&Object.entries(r).reduce((e,t)=>
1{let[r,s]=t;return void 0===s||(e[r]=s),e},{});return a(e,l,null==t||null==(s=t.compoundVariants)?void 0:s.reduce((e,t)=>{let{class:r,className:s,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...u}[t]):({...o,...u})[t]===r})?[...e,r,s]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},97003:(e,t,r)=>{"use strict";r.d(t,{$:()=>u});var s=r(95155),i=r(12115),a=r(32467),n=r(83101),o=r(25016);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),u=i.forwardRef((e,t)=>{let{className:r,variant:i,size:n,asChild:u=!1,...d}=e,c=u?a.DX:"button";return(0,s.jsx)(c,{className:(0,o.cn)(l({variant:i,size:n,className:r})),ref:t,...d})});u.displayName="Button"}},e=>{e.O(0,[2619,5239,1356,8441,1255,7358],()=>e(e.s=38889)),_N_E=e.O()}]);

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.