PageSourceSearch

https://travelterminus.com/_next/static/chunks/8413.5bae0a22e8ca10d0.js

js travelterminus.com collected 2026-10-02 15:48:39 UTC 8,864 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8413],{23446:e=>{e.exports={root:"WhatsAppLinkGenerator_root__Roiqu",marginTop:"WhatsAppLinkGenerator_marginTop__keKOG",linkGenerator:"WhatsAppLinkGenerator_linkGenerator__IK07T",leftSec:"WhatsAppLinkGenerator_leftSec__IVGlS",title:"WhatsAppLinkGenerator_title__Gyi63",description:"WhatsAppLinkGenerator_description__j9dGS",primaryButton:"WhatsAppLinkGenerator_primaryButton__OIq_i",phoneInput:"WhatsAppLinkGenerator_phoneInput__yEi8e",textArea:"WhatsAppLinkGenerator_textArea__HzkgW",rightSec:"WhatsAppLinkGenerator_rightSec__7Me_O",messagePreview:"WhatsAppLinkGenerator_messagePreview__QgPIc",messagePreviewWrapper:"WhatsAppLinkGenerator_messagePreviewWrapper__OwMIA",message:"WhatsAppLinkGenerator_message__7Z0d7",textTail:"WhatsAppLinkGenerator_textTail__qqDMd",contentWrapper:"WhatsAppLinkGenerator_contentWrapper__SIMkH",bgImage:"WhatsAppLinkGenerator_bgImage__YnZPX",header:"WhatsAppLinkGenerator_header__Bs_1k",mobileChatHeader:"WhatsAppLinkGenerator_mobileChatHeader__C4X8U",talkDay:"WhatsAppLinkGenerator_talkDay__bwp1z",messageContent:"WhatsAppLinkGenerator_messageContent__xKVp0",modalRoot:"WhatsAppLinkGenerator_modalRoot__BHg_o",modalBackdrop:"WhatsAppLinkGenerator_modalBackdrop__mKYrS",modalInner:"WhatsAppLinkGenerator_modalInner__diUJw",closeBtn:"WhatsAppLinkGenerator_closeBtn__3bI8W",modalContentWrapper:"WhatsAppLinkGenerator_modalContentWrapper___OWg0",modalTitle:"WhatsAppLinkGenerator_modalTitle__0m7VQ",modalDescription:"WhatsAppLinkGenerator_modalDescription__uX1vO",qrCodeWrapper:"WhatsAppLinkGenerator_qrCodeWrapper__DFgaN",urlInputWrapper:"WhatsAppLinkGenerator_urlInputWrapper__FPGtZ",modalInput:"WhatsAppLinkGenerator_modalInput__U_bWA",modalPrimaryButton:"WhatsAppLinkGenerator_modalPrimaryButton__Qo8lH",strok:"WhatsAppLinkGenerator_strok__wBLkR",draw:"WhatsAppLinkGenerator_draw__6wkGP"}},88413:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>d});var t=r(95155),s=r(12115),n=r(23446),o=r.n(n),i=r(79751),l=r(68157),p=r(5025);let d=({title:e="WhatsApp link generator",description:a="To create your WhatsApp link, add your number and enter a pre-filled message that your visitors can send in one tap.",buttonText:r="Generate WhatsApp link",previewMessage:n="hello",outputType:d="url",urlLabel:c="Generated WhatsApp Link:",qrLabel:h="Generated WhatsApp QR Code:",position:m,errorPhoneRequired:_="Phone number is required.",errorPhoneInvalid:u="Enter a valid phone number.",phoneNumberLabel:g="Phone Number",phoneNumberPlaceholder:x="Enter your phone number",customMessageLabel:k="Add custom message",customMessagePlaceholder:W="Custom message",previewLabel:v="Here's how it will look",qrModalTitle:w="Your WhatsApp QR code is ready",qrModalDescription:j="Add your WhatsApp QR code to posters, packaging, and receipts to generate more WhatsApp traffic.",downloadQrBtnText:A="Download QR code",urlModalTitle:L="Your WhatsApp link is ready",urlModalDescription:N="Generate more WhatsApp traffic by adding your custom link to posters, packaging, receipts and more.",copyLinkBtnText:C="Copy link",copiedBtnText:G="Copied!",addMarginTop:b=!1})=>{let[y,f]=(0,s.useState)(""),[I,B]=(0,s.useState)(""),[R,S]=(0,s.useState)(""),[H,P]=(0,s.useState)(""),[T,q]=(0,s.useState)(!1),[M,V]=(0,s.useState)(!1),F=async()=>{try{let e=await fetch(`https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(R)}`),a=await e.blob(),r=window.URL.createObjectURL(a),t=document.createElement("a");t.href=r,t.download="whatsapp-qr-code.png",document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(r)}catch(e){console.error("Failed to download QR code",e)}};return(0,t.jsx)("div",{className:`${b?o().marginTop:""}`,id:"hero",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:`${o().linkGenerator} linkGenerator`,children:[(0,t.jsxs)("div",{className:"row g-3 gy-5 h-100 align-items-center",children:[(0,t.jsx)("div",{className:`col-12 col-lg-12 col-xl-6 ${"right"===m?"order-2":""}`,children:(0,t.jsxs)("div",{className:o().leftSec,children:[(0,t.jsx)("h1",{className:o().title,children:e}),(0,t.jsx)("p",{className:o().description,children:a}),(0,t.jsxs)("div",{className:"w-100 formGroup position-relative mb-4",children:[(0,t.jsxs)("label",{htmlFor:"phoneNumber",className:"form-label",children:[g," ",(0,t.jsx)("span",{className:"text-danger",children:"\xa0*"})]}),(0,t.jsx)(p.Ay,{searchPlaceholder:"search",searchNotFound:"no_data_found",country:"in",defaultCountry:"IN",preferredCountries:["us","jo"],enableSearch:!0,countryCodeEditable:!1,placeholder:x,value:y,onChange:e=>{let a=e??"";f(a),P(a.trim()?(0,p.g0)(a)?"":u:_)},name:"phoneNumber",required:!0,className:o().phoneInput}),H&&(0,t.jsx)("div",{className:"text-danger mt-1",style:{fontSize:"14px"},children:H})]}),(0,t.jsxs)("div",{className:"formGroup mb-4",children:[(0,t.jsx)("label",{htmlFor:"#",className:"form-label",children:k}),(0,t.jsx)(i.A.Control,{as:"textarea",placeholder:W,rows:3,value:I,onChange:e=>B(e.target.value),maxLength:100,className:o().textArea})]}),(0,t.jsx)("button",{className:o().primaryButton,type:"button",onClick:()=>
1{if(!y)return void P(_);if(!(0,p.g0)(y))return void P(u);P("");let e=y.replace(/\D/g,""),a=`https://wa.me/${e}`;if(I.trim()){let e=encodeURIComponent(I.trim());a+=`?text=${e}`}S(a),q(!0)},children:r})]})}),(0,t.jsx)("div",{className:`col-12 col-lg-12 col-xl-6 ${"right"===m?"order-1":""}`,children:(0,t.jsx)("div",{className:o().rightSec,children:(0,t.jsxs)("div",{className:o().messagePreview,children:[(0,t.jsxs)("div",{className:o().messagePreviewWrapper,children:[(0,t.jsx)("p",{className:o().message,children:v}),(0,t.jsx)("svg",{width:"29",height:"26",viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`${o().textTail} message-preview__text-tail`,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.93 0.92C29 0.58 29 0.27 29 0H0C10.81 4.75 12.46 9.72 12.45 14.89L5 13.14L12.66 27.5L28.1 18.58L20.94 16.89C28.27 10.15 28.7 4.1 28.93 0.92Z",fill:"#FFF"})})]}),(0,t.jsx)("div",{className:o().contentWrapper,children:(0,t.jsxs)("div",{className:o().contentWrapper,children:[(0,t.jsx)("div",{className:o().bgImage,children:(0,t.jsx)("img",{src:"/images/TravelTerminusV-1/svgcompo/iphonewhatsapplayout.svg",alt:"",width:412,height:831})}),I&&(0,t.jsx)("div",{className:o().messageContent,children:(0,t.jsx)("p",{className:o().message,children:I})})]})})]})})})]}),(0,t.jsx)(l.A,{show:T,onHide:()=>q(!1),centered:!0,className:o().modalRoot,backdropClassName:o().modalBackdrop,children:(0,t.jsxs)("div",{className:o().modalInner,children:[(0,t.jsx)("button",{className:o().closeBtn,onClick:()=>q(!1),"aria-label":"Close",children:(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,t.jsx)("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}),"qr"===d?(0,t.jsxs)("div",{className:o().modalContentWrapper,children:[(0,t.jsx)("h3",{className:o().modalTitle,children:w}),(0,t.jsx)("p",{className:o().modalDescription,children:j}),(0,t.jsx)("div",{className:o().qrCodeWrapper,children:(0,t.jsx)("img",{src:`https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=${encodeURIComponent(R)}`,alt:"WhatsApp QR Code",width:150,height:150,loading:"eager"})}),(0,t.jsxs)("button",{className:o().modalPrimaryButton,onClick:F,type:"button",children:[(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"",children:(0,t.jsx)("path",{d:"M8 12V2M8 12L4 8M8 12L12 8M2 14H14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),A]})]}):(0,t.jsxs)("div",{className:o().modalContentWrapper,children:[(0,t.jsx)("h3",{className:o().modalTitle,children:L}),(0,t.jsx)("p",{className:o().modalDescription,children:N}),(0,t.jsx)("div",{className:o().urlInputWrapper,children:(0,t.jsx)("input",{type:"text",className:o().modalInput,value:R,readOnly:!0})}),(0,t.jsx)("button",{className:o().modalPrimaryButton,onClick:()=>{navigator.clipboard.writeText(R),V(!0),setTimeout(()=>V(!1),2e3)},type:"button",children:M?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"",children:(0,t.jsx)("path",{d:"M3 8.5L6 11.5L13 4.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),G]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"",children:(0,t.jsx)("path",{d:"M10 2H4C2.9 2 2 2.9 2 4V12H4V4H10V2ZM12 6H6C4.9 6 4 6.9 4 8V14C4 15.1 4.9 16 6 16H12C13.1 16 14 15.1 14 14V8C14 6.9 13.1 6 12 6ZM12 14H6V8H12V14Z",fill:"currentColor"})}),C]})})]})]})})]})})})}}}]);

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.