PageSourceSearch

https://ripplemind.com/_next/static/chunks/1439-3ce5c389d624dab7.js

js ripplemind.com collected 2026-10-06 13:17:57 UTC 42,947 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1439],{28646:function(e,t,l){var a=l(85893),i=l(41664),s=l.n(i),r=l(11163);l(67294),t.Z=()=>{let e=(0,r.useRouter)(),t=e.asPath;return(0,a.jsxs)("div",{className:"md:mx-28 text-center text-red-500 p-10 bg-gray-100 text-xl",children:["Your are not Logged in to use this functionality .......! ",(0,a.jsx)("br",{}),(0,a.jsx)(s(),{className:"text-blue-500",href:"/login?re_url=".concat(t),children:"Click here to Login"})]})}},15635:function(e,t,l){l.d(t,{Z:function(){return S}});var a=l(85893),i=l(59417),s=l(99603),r=l(41664),n=l.n(r),o=l(67294),c=l(11876),d=l(88446),u=l(34994),m=l(977),x=l(54464),h=l(86501),g=l(83868),p=l.n(g);let v=e=>{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l="";for(let a=0;a<e;a++)l+=t.charAt(Math.floor(Math.random()*t.length));return l};var f=e=>{let{onVerify:t}=e,[l,r]=(0,o.useState)(""),[n,c]=(0,o.useState)(""),[d,u]=(0,o.useState)(!1),m=()=>{let e=v(6);r(e)};return(0,o.useEffect)(()=>{m()},[]),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"captcha  flex flex-row",children:[(0,a.jsx)("div",{className:"bg-gray-300 text-black italic font-semibold p-2 rounded select-none",children:l}),(0,a.jsxs)("button",{onClick:()=>{c(""),m()},className:"ml-4",children:["  ",(0,a.jsx)(s.G,{icon:i.XSV,className:"fa-rotate-right"})]})]}),(0,a.jsx)("input",{type:"text",className:d?"border rounded shadow-sm valid mt-3":"border rounded shadow-sm invalid mt-3",value:n,onChange:e=>{c(e.target.value)},placeholder:"Enter the captcha"}),(0,a.jsx)("button",{onClick:()=>{n.toLowerCase()===l.toLowerCase()?(u(!0),t(!0),c(""),h.ZP.success("Verified")):(u(!1),t(!1),c(""),h.ZP.error("Invalid Captcha"))},className:"bg-green-500 p-1 text-xs border rounded-sm shadow-sm ml-2 text-white font-semibold",children:"Verify"})]})};let y=()=>{let[e,t]=(0,o.useState)([]),[l,a]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{a(!0),d.Z.get("/user/gettitle").then(e=>{let{data:l}=e;t(null==l?void 0:l.data)}).catch(()=>{t([])}).finally(()=>{a(!1)})},[t,a]),{data:e,loading:l}};var j=e=>{let{value:t,...l}=e,{data:i,loading:s}=y();return(0,a.jsxs)("select",{value:t,...l,disabled:s,className:"shadow appearance-none text-sm border-gray-200 rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",children:[(0,a.jsx)("option",{value:t||-1,children:t||"select Title"}),i.map(e=>(0,a.jsx)("option",{value:e.name,"data-name":e.name,children:[e.name]},e.id))]})},b=l(11163),_=e=>{let{onChildStateChange:t}=e,l=(0,b.useRouter)(),[r,n]=(0,o.useState)(!1),[c,g]=(0,o.useState)(0),[v,y]=(0,o.useState)(!1),[_,N]=(0,o.useState)(!1),[w,F]=(0,o.useState)({title:"-1",name:"",email:"",mobile:"",country_name:"",country:-1,state:-1,state_name:"",city:-1,city_name:"",description:"",message:""}),[S,C]=(0,o.useState)({title:"",name:"",email:"",mobile:"",country:"",state:"",city:"",message:""}),[E,R]=(0,o.useState)({title:"",name:"",email:"",mobile:"",country:"",state:"",city:"",message:""}),[q,k]=(0,o.useState)(0),[Z,L]=(0,o.useState)({loading:!1,success:"",error:""}),[D,P]=(0,o.useState)({loading:!1,success:"",error:""}),A=async()=>{try{var e;let t=await d.Z.get("/user/viewuser");k(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.id),F(null==t?void 0:t.data),L({loading:!1,success:"success",error:""})}catch(e){console.error(e),L({loading:!1,success:"error",error:""})}};(0,o.useEffect)(()=>{A()},[q]);let M=async()=>{try{var e,t;let l=await d.Z.post("/shipping_address/getshipping_address_user",{sortDetails:{sortKey:"id",sortType:1},searchDetails:[],searchDetailsAnd:[{basicSearchKey:"status",basicSearchValue:2,basicSearchType:"number"}]});if(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data){let{state:e,city:a,city_name:i,country_name:s,country:r,state_name:n}=(null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.data[0])||{};F(t=>({...t,state:e,city:a,city_name:i,country_name:s,country:r,state_name:n,estimate_price:"",description:""}))}L({loading:!1,success:"success",error:""})}catch(e){console.error(e),L({loading:!1,success:"error",error:""})}};(0,o.useEffect)(()=>{M()},[q]);let G=async()=>{try{let e=!1,t={title:"",name:"",email:"",mobile:"",country_name:"",country:"",state:"",state_name:"",city:"",city_name:"",message:""};if(t.title="",0===w.title.length&&(t.title="required",e=!0),t.name="",0===w.name.length?(t.name="required",e=!0):w.name.length>=50&&(t.name="Only 50 characture are allowed",e=!0),t.email="",0===w.email.length?(t.email="required",e=!0):w.email.length>=50?(t.email="Only allow 50 digits.",e=!0):p()(w.email)||(t.email="Enter a valid Email Id",e=!0),t.mobile="",0===w.mobile.length?(t.mobile="required",e=!0):10!==w.mobile.length&&(t.mobile="Enter a Valid Mobile",e=!0),t.message="",0===w.message.length?(t.message="required",e=!0):w.message.length>=100&&(t.message="Only 100 characture are allowed",e=!0),t.country="",-1===w.country&&(t.country="required",e=!0),t.state="",-1===w.state&&(t.state="required",e=!0),t.city="",-1===w.city&&(t.city="required",e=!0),C({...S,...t}),e)return!0;return!1}catch(e){console.error(e)}},I=()=>{try{F({title:w.title,name:w.name,email:w.email,mobile:w.mobile,country_name:w.country_name,country:w.country,state:w.state,state_name:w.state_name,city:w.city,city_name:w.city_name,description:"",message:""}),n(!1),g(e=>e+1)}catch(e){console.error(e)}},O=async()=>{try{if(r){var e;let a=await G();if(a){P({loading:!1,success:"",error:"Please enter all the required fields"});return}N(!0),P({loading:!0,success:"",error:""});let i={title:w.title,user_name:w.name,email:w.email,mobile:w.mobile,country_name:w.country_name,country:w.country,state:w.state,state_name:w.state_name,city:null==w?void 0:w.city,city_name:w.city_name,message:w.message,query:4,status:0},s=await d.Z.post("/contact_us/addGerneralQuery",{...i});t("success"),y(e=>!e),N(!1),I();let r={tracking_id:null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.tracking_id,page:"General query"};l.push({pathname:"/contact",query:r})}else h.ZP.error("Captcha is not verified"),N(!1)}catch(e){console.error(e)}};return(0,a.jsxs)("div",{className:"space-y-5 p-5 border",children:[(0,a.jsx)("h1",{children:"Do You want to ask any query"}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3  gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"title",children:["Title: ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==S?void 0:S.title.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==S?void 0:S.title})]}),(0,a.jsx)(j,{disabled:w.title.length>0,name:w.title,onChange:e=>{let t=e.target.options[e.target.selectedIndex].getAttribute("data-name");t&&F({...w,title:t})},value:null==w?void 0:w.title})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"name",children:["Name ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==S?void 0:S.name.length)!==0&&(0,a.jsx)("div",{className:"text-red-500 ",children:(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==S?void 0:S.name})]})}),(0,a.jsx)("input",{className:"outline-none border rounded-md p-2",type:"text",id:"name",value:null==w?void 0:w.name,readOnly:w.name.length>0,onChange:e=>{let t=e.target.value;F({...w,name:t})}})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"email",children:["Email ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==S?void 0:S.email.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==S?void 0:S.email})]}),(0,a.jsx)("input",{className:"outline-none border rounded-md p-2",type:"text",id:"email",value:null==w?void 0:w.email,readOnly:w.email.length>0,onChange:e=>{let t=e.target.value;F({...w,email:t})}})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"mobile",children:["Mobile ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==S?void 0:S.mobile.length)!==0&&(0,a.jsx)("div",{className:"text-red-500 ",children:(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==S?void 0:S.mobile})]})}),(0,a.jsx)("input",{className:"outline-none border rounded-md p-2",type:"tel",id:"mobile",value:null==w?void 0:w.mobile,readOnly:w.mobile.length>0,onChange:e=>{let t=e.target.value;F({...w,mobile:t})}})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"country_id",children:["Country: ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==S?void 0:S.country.length)!==0&&(0,a.jsx)("div",{className:"text-red-500",children:(0,a.jsxs)("div",{className:"text-red-500",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==S?void 0:S.country})]})}),(0,a.jsx)(u.Z,{name:w.country_name,onChange:e=>{let t=e.target.value,l=e.target.options[e.target.selectedIndex].getAttribute("data-name"),a=parseInt(t);l&&F({...w,country:a,country_name:l,state:-1,state_name:"",city:-1,city_name:""})},value:null==w?void 0:w.country})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"state",children:["State: ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==S?void 0:S.state.length)!==0&&(0,a.jsx)("div",{className:"text-red-500",children:(0,a.jsxs)("div",{className:"text-red-500",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==S?void 0:S.state})]})}),(0,a.jsx)(m.Z,{country_id:null==w?void 0:w.country,name:"state_id",onChange:e=>{let t=e.target.value,l=e.target.options[e.target.selectedIndex].getAttribute("data-name"),a=parseInt(t);l&&F({...w,state:a,state_name:l,city:-1,city_name:""})},value:null==w?void 0:w.state})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"city",children:["City: ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==S?void 0:S.city.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==S?void 0:S.city})]}),(0,a.jsx)(x.Z,{country_id:null==w?void 0:w.country,state_id:null==w?void 0:w.state,name:"city",onChange:e=>{let t=e.target.value,l=e.target.options[e.target.selectedIndex].getAttribute("data-name"),a=parseInt(t);l&&F({...w,city:a,city_name:l})},value:null==w?void 0:w.city})]})]}),(0,a.jsxs)("div",{className:"flex flex-col w-1/3",children:[(0,a.jsxs)("label",{htmlFor:"description",children:["Your description ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})," "]}),(null==S?void 0:S.message.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==S?void 0:S.message})]}),(0,a.jsx)("textarea",{className:"outline-none rounded-lg border p-3 ",id:"description",value:w.message,cols:30,rows:5,onChange:e=>{let t=e.target.value;F({...w,message:t}),R({...E,message:t})}})]}),!r&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"p-3 ",children:(0,a.jsx)(f,{onVerify:e=>{n(e)}},c)})}),!r&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"text-red-500",children:"( **Please verify the captcha then only you can proceed ) "})}),(0,a.jsx)("div",{className:"p-3 ",children:(0,a.jsxs)("button",{onClick:_?void 0:O,className:"p-2 bg-blue-500 rounded-lg text-white w-[100px] max-w-[100px] ",children:[!_&&"Submit",_&&(0,a.jsx)(s.G,{className:"px-1 text-red-500",icon:i.LM3,spin:!0})]})})]})},N=()=>{let e=(0,b.useRouter)(),[t,l]=(0,o.useState)(!1),[r,n]=(0,o.useState)(!1),[g,v]=(0,o.useState)(0),[y,_]=(0,o.useState)({id:-1,title:"",name:"",email:"",mobile:"",city:-1,city_name:"",state:-1,state_name:"",country:-1,country_name:"",bfile:"",ffile:"",estimate_price:"",estimate_price1:"",description:"",description1:""}),[N,w]=(0,o.useState)({title:"",name:"",email:"",mobile:"",city:"",city_name:"",state:"",state_name:"",country:"",country_name:"",description:"",description1:"",datetime:"",estimate_price:"",estimate_price1:""}),[F,S]=(0,o.useState)(!1),[C,E]=(0,o.useState)([]),[R,q]=(0,o.useState)([]),[k,Z]=(0,o.useState)([]),[L,D]=(0,o.useState)([]),[P,A]=(0,o.useState)([]),[M,G]=(0,o.useState)([]),[I,O]=(0,o.useState)(!1),[T,$]=(0,o.useState)(!1),[U,Y]=(0,o.useState)(!1),K=(0,o.useRef)(null),z=(0,o.useRef)(null),V=(0,o.useRef)(null),Q=(0,o.useRef)(null),[W,B]=(0,o.useState)(0),[H,X]=(0,o.useState)({loading:!1,success:"",error:""}),[J,ee]=(0,o.useState)({loading:!1,success:"",error:""}),et=async()=>{try{var e;let t=await d.Z.get("/user/viewuser");B(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.id),_(null==t?void 0:t.data),X({loading:!1,success:"success",error:""})}catch(e){console.error(e),X({loading:!1,success:"error",error:""})}};(0,o.useEffect)(()=>{et()},[W,F]);let el=async()=>{try{var e,t;let l=await d.Z.post("/shipping_address/getshipping_address_user",{sortDetails:{sort
1Key:"id",sortType:1},searchDetails:[],searchDetailsAnd:[{basicSearchKey:"status",basicSearchValue:2,basicSearchType:"number"}]});if(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data){let{state:e,city:a,city_name:i,country_name:s,country:r,state_name:n}=(null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.data[0])||{};_(t=>({...t,state:e,city:a,city_name:i,country_name:s,country:r,state_name:n,estimate_price:"",description:"",description1:"",estimate_price1:""}))}X({loading:!1,success:"success",error:""})}catch(e){console.error(e),X({loading:!1,success:"error",error:""})}};(0,o.useEffect)(()=>{el()},[W,F]);let ea=async()=>{try{var e,t,l,a,i,s;let r=!1,n={title:"",name:"",email:"",mobile:"",country_name:"",country:"",state:"",state_name:"",city:"",city_name:"",description:"",description1:"",estimate_price:"",estimate_price1:""};if(n.title="",0===y.title.length&&(n.title="required",r=!0),n.name="",0===y.name.length?(n.name="required",r=!0):y.name.length>=50&&(n.name="Only 50 characture are allowed",r=!0),n.email="",0===y.email.length?(n.email="required",r=!0):y.email.length>=50?(n.email="Only allow 50 digits.",r=!0):p()(y.email)||(n.email="Enter a valid Email Id",r=!0),n.mobile="",0===y.mobile.length?(n.mobile="required",r=!0):10!==y.mobile.length&&(n.mobile="Enter a Valid Mobile",r=!0),n.country="",-1===y.country&&(n.country="required",r=!0),n.state="",-1===y.state&&(n.state="required",r=!0),n.state_name="",(null===(e=y.state_name)||void 0===e?void 0:e.length)===-1&&(n.state_name="required",r=!0),n.city="",-1===y.city&&(n.city="required",r=!0),n.city_name="",(null===(t=y.city_name)||void 0===t?void 0:t.length)===0&&(n.city_name="required",r=!0),n.description="",(null===(l=y.description)||void 0===l?void 0:l.length)===0&&(n.description="required",r=!0),n.estimate_price="",(null===(a=y.estimate_price)||void 0===a?void 0:a.length)===0&&(n.estimate_price="required",r=!0),!0===I&&(n.estimate_price1="",(null===(i=y.estimate_price1)||void 0===i?void 0:i.length)===0&&(n.estimate_price1="required",r=!0),n.description1="",(null===(s=y.description1)||void 0===s?void 0:s.length)===0&&(n.description1="required",r=!0),w({...N,...n})),w({...N,...n}),r)return!0;return!1}catch(e){return console.error(e),!0}},ei=async e=>{let{selectedFilesRaw:t}=e;try{if(!t)return!1;if(0===t.length)return h.ZP.error("Please select atleast one file"),!1;let e=[],l="";if(0===t.size&&(l="For file "+t.name+", is empty."),""===l&&("image/jpeg"===t.type||"image/png"===t.type||(l="For file ".concat(t.name,", It can be jpeg, jpg or png extension."))),""!==l)return h.ZP.error(l),!1;if(e.push(t),!1===Array.isArray(e)||0===e.length)return h.ZP.error("Please select atleast one file"),!1;let a=h.ZP.loading("File uploading..."),i=new FormData;i.append("uploadFile",e[0]);let s=await d.Z.post("/upload-file-client/uploadTempFile",i,{headers:{"Content-Type":"multipart/form-data"}});if(200!==s.status)return h.ZP.error("File upload failed"),!1;{let e=await d.Z.post("/upload-file-client/userMoveFileForSaleAboutCollection",{objectKey:s.data.data.objectKey});if(200===e.status)return h.ZP.success("Uploaded file successfully."),h.ZP.dismiss(a),{fileName:e.data.data.fileName,status:"Success"};return h.ZP.error("Something happened while uploading"),!1}}catch(e){return console.error("Error during file upload:",e),h.ZP.error("An error occurred while uploading the file"),!1}},es=()=>{try{_({id:y.id,title:y.title,name:y.name,email:y.email,mobile:y.mobile,country_name:y.country_name,country:y.country,state:y.state,state_name:y.state_name,city:y.city,city_name:y.city_name,bfile:"",ffile:"",estimate_price:"",estimate_price1:"",description:"",description1:""}),n(!1),E([]),q([]),A([]),G([]),D([]),Z([]),v(e=>e+1),O(!1),$(!1),K.current.value="",z.current.value="",V.current.value="",Q.current.value=""}catch(e){}},er=async()=>{try{let i="",s="";if(r){var t,l,a;if(!k.length||!P.length||I&&(!L.length||!M.length)){h.ZP.error("Please select images for all sections.");return}let r=await ea();if(r){ee({loading:!1,success:"",error:"Please enter all the required fields"}),Y(!1);return}i=(null===(t=y.description1)||void 0===t?void 0:t.length)>0?"".concat(y.description,"~").concat(y.description1):y.description,s=(null===(l=y.estimate_price1)||void 0===l?void 0:l.length)>0?"".concat(y.estimate_price,",").concat(y.estimate_price1):null==y?void 0:y.estimate_price,ee({loading:!0,success:"",error:""}),Y(!0);let n={title:y.title,user_name:y.name,email:y.email,mobile:y.mobile,country_name:y.country_name,country:y.country,state:y.state,state_name:y.state_name,city:null==y?void 0:y.city,city_name:y.city_name,description:i,estimate_price:s,ffile:y.ffile,bfile:y.bfile,query:2,status:0,contact_datetime:""},o=new Date,c=new Date(o.getTime()+198e5);if(n.contact_datetime=c.toString(),null==C?void 0:C.length){let e=await ei({selectedFilesR
1aw:C[0]});e&&(n.ffile=e.fileName)}if((null==C?void 0:C.length)>1){let e=await ei({selectedFilesRaw:C[1]});e&&(n.ffile+=",".concat(e.fileName))}if(R.length){let e=await ei({selectedFilesRaw:R[0]});e&&(n.bfile=e.fileName)}if(R.length>1){let e=await ei({selectedFilesRaw:R[1]});e&&(n.bfile+=",".concat(null==e?void 0:e.fileName))}let u=await d.Z.post("/contact_us/addcontact_sale_collection",{...n});Y(!1),S(e=>!e),es();let m={tracking_id:null==u?void 0:null===(a=u.data)||void 0===a?void 0:a.tracking_id,page:"sale of your collection"};e.push({pathname:"/contact",query:m})}else h.ZP.error("Captcha is not verified"),Y(!1)}catch(e){console.error(e)}},en=e=>{n(e)};return(0,a.jsxs)("div",{className:"space-y-5 p-5 border",children:[(0,a.jsx)("h1",{children:"Do You want to sale Your Collection"}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"title",children:["Title: ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:N.title.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.title})]}),(0,a.jsx)(j,{disabled:y.title.length>0,name:y.title,onChange:e=>{let t=e.target.options[e.target.selectedIndex].getAttribute("data-name");t&&_({...y,title:t})},value:null==y?void 0:y.title})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"name",children:["Name ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:N.name.length)!==0&&(0,a.jsx)("div",{className:"text-red-500 ",children:(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.name})]})}),(0,a.jsx)("input",{className:"outline-none border rounded-md p-2",type:"text",id:"name",value:null==y?void 0:y.name,readOnly:y.name.length>0,onChange:e=>{let t=e.target.value;_({...y,name:t})}})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"email",children:["Email ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:N.email.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.email})]}),(0,a.jsx)("input",{className:"outline-none border rounded-md p-2",type:"text",id:"email",value:null==y?void 0:y.email,readOnly:y.email.length>0,onChange:e=>{let t=e.target.value;_({...y,email:t})}})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"mobile",children:["Mobile ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:N.mobile.length)!==0&&(0,a.jsx)("div",{className:"text-red-500 ",children:(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.mobile})]})}),(0,a.jsx)("input",{className:"outline-none border rounded-md p-2",type:"text",id:"mobile",value:null==y?void 0:y.mobile,readOnly:(null==y?void 0:y.mobile.length)>0,onChange:e=>{let t=e.target.value;_({...y,mobile:t})}})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"country_id",children:["Country: ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:N.country.length)!==0&&(0,a.jsx)("div",{className:"text-red-500",children:(0,a.jsxs)("div",{className:"text-red-500",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.country})]})}),(0,a.jsx)(u.Z,{name:y.country_name,onChange:e=>{let t=e.target.value,l=e.target.options[e.target.selectedIndex].getAttribute("data-name"),a=parseInt(t);l?_({...y,country:a,country_name:l,state:-1,state_name:"",city:-1,city_name:""}):_({...y,country:null==y?void 0:y.country,country_name:null==y?void 0:y.country_name,state:-1,state_name:"",city:-1,city_name:""})},value:null==y?void 0:y.country})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"state",children:["State: ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:N.state.length)!==0&&(0,a.jsx)("div",{className:"text-red-500",children:(0,a.jsxs)("div",{className:"text-red-500",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.state})]})}),(0,a.jsx)(m.Z,{country_id:null==y?void 0:y.country,name:"state_id",onChange:e=>{let t=e.target.value,l=e.target.options[e.target.selectedIndex].getAttribute("data-name"),a=parseInt(t);l&&_({...y,state:a,state_name:l,city:-1,city_name:""})},value:null==y?void 0:y.state})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"city",children:["City: ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:N.city.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.city})]}),(0,a.jsx)(x.Z,{country_id:null==y?void 0:y.country,state_id:null==y?void 0:y.state,name:"city",onChange:e=>{let t=e.target.value,l=e.target.options[e.target.selectedIndex].getAttribute("data-name"),a=parseInt(t);l&&_({...y,city:a,city_name:l})},value:null==y?void 0:y.city})]})]}),(0,a.jsx)(c.UQ,{allowZeroExpanded:!0,children:(0,a.jsxs)(c.Qd,{children:[(0,a.jsx)(c.Ol,{children:(0,a.jsx)(c.on,{children:(0,a.jsx)("div",{onClick:()=>l(e=>!e),children:(0,a.jsxs)("div",{className:"container mx-auto bg-gray-50 flex hover:text-blue-500 border items-center shadow-md justify-between mt-3 p-3",children:[(0,a.jsx)("h1",{className:"text-lg",children:"Upload Images"}),(0,a.jsx)(s.G,{className:"text-3xl text-gray-600",icon:t?i.El_:i.CPW})]})})})}),(0,a.jsx)(c.Mt,{children:(()=>{var e,t,l,n;let[c,d]=(0,o.useState)([]),[u,m]=(0,o.useState)([]);return(0,a.jsxs)("div",{className:"p-5 border  ",children:[(0,a.jsx)("div",{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-wrap",children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-5",children:[(0,a.jsx)("label",{htmlFor:"image1Front",children:"Front image (maximum size is 2Mb.)"}),(0,a.jsx)("input",{className:"max-w-min   file:bg-gray-200 file:hover:bg-gray-300 file:cursor-pointer  file:border-none file:text-gray-700 file:hover:translate-y-[.05rem] file:rounded-md file:p-2",type:"file",id:"image1Front",ref:K,multiple:!1,accept:"image/jpeg",onChange:e=>{var t;let l=null===(t=e.target.files)||void 0===t?void 0:t.item(0);if(l){E(e=>[l,...e]);let e=[...k,URL.createObjectURL(l)];Z(e)}}}),k.map((e,t)=>(0,a.jsx)("img",{className:"w-44",src:e,alt:""},t)),k.length>0&&(0,a.jsx)("button",{onClick:()=>{K.current.value="",Z([])},className:"bg-red-500 rounded-lg text-white w-1/2 p-2 hover:bg-red-600",children:"Remove"})]}),(0,a.jsxs)("div",{className:"flex flex-col space-y-5",children:[(0,a.jsx)("label",{htmlFor:"image2",children:"Back image (maximum size is 2Mb.)"}),(0,a.jsx)("input",{className:"max-w-min   file:bg-gray-200 file:hover:bg-gray-300 file:cursor-pointer  file:border-none file:text-gray-700 file:hover:translate-y-[.05rem] file:rounded-md file:p-2",type:"file",id:"Image1Back",accept:"image/jpeg",multiple:!1,ref:z,onChange:e=>{var t;let l=null===(t=e.target.files)||void 0===t?void 0:t.item(0);if(l){q(e=>[l,...e]);let e=[...P,URL.createObjectURL(l)];A(e)}}}),P.map((e,t)=>(0,a.jsx)("img",{className:"w-44",src:e,alt:""},t)),P.length>0&&(0,a.jsx)("button",{onClick:()=>{z.current.value="",A([])},className:"bg-red-500 rounded-lg text-white w-1/2 p-2 hover:bg-red-600",children:"Remove"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-5",children:[(0,a.jsxs)("div",{className:"flex flex-row gap-x-2",children:[(0,a.jsxs)("label",{htmlFor:"estimatePrice",children:["Your estimate price: ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:null===(e=N.estimate_price)||void 0===e?void 0:e.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.estimate_price})]})]}),(0,a.jsx)("input",{className:"outline-none border rounded-lg p-3",type:"text",id:"estimatePrice",value:y.estimate_price,onChange:e=>{let t=e.target.value;_({...y,estimate_price:t})}}),(0,a.jsxs)("div",{className:"flex flex-row gap-x-2",children:[(0,a.jsxs)("label",{htmlFor:"description",children:["Your description ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:null===(t=N.description)||void 0===t?void 0:t.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.description})]})]}),(0,a.jsx)("textarea",{className:"outline-none border rounded-lg p-3",id:"description",cols:30,rows:5,value:y.description,onChange:e=>{let t=e.target.value;_({...y,description:t})}})]}),(0,a.jsx)("div",{className:"p-5",children:(0,a.jsxs)("button",{disabled:T,onClick:()=>{O(!0),$(!0)},className:"p-2 text-white bg-green-500 rounded-lg ",children:[" ","Add More"]})})]})]}),I&&(0,a.jsxs)("div",{className:"flex flex-wrap",children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-5",children:[(0,a.jsx)("label",{htmlFor:"image1Front",children:"Front image (maximum size is 2Mb.)"}),(0,a.jsx)("input",{className:"max-w-min   file:bg-gray-200 file:hover:bg-gray-300 file:cursor-pointer  file:border-none file:text-gray-700 file:hover:translate-y-[.05rem] file:rounded-md file:p-2",type:"file",id:"image1Front",ref:V,accept:"image/jpeg",onChange:e=>{var t;let l=null===(t=e.target.files)||void 0===t?void 0:t.item(0);if(l){E(e=>[...e,l]);let e=[...L,URL.createObjectURL(l)];D(e)}}}),L.map((e,t)=>(0,a.jsx)("img",{className:"w-44",src:e,alt:""},t)),L.length>0&&(0,a.jsx)("button",{onClick:()=>{V.current.value="",D([])},className:"bg-red-500 rounded-lg text-white w-1/2 p-2 hover:bg-red-600",children:"Remove"})]}),(0,a.jsxs)("div",{className:"flex flex-col space-y-5",children:[(0,a.jsx)("label",{htmlFor:"image2",children:"Back image (maximum size is 2Mb.)"}),(0,a.jsx)("input",{className:"max-w-min   file:bg-gray-200 file:hover:bg-gray-300 file:cursor-pointer  file:border-none file:text-gray-700 file:hover:translate-y-[.05rem] file:rounded-md file:p-2",type:"file",id:"Image1Back",accept:"image/jpeg",multiple:!1,ref:Q,onChange:e=>{var t;let l=null===(t=e.target.files)||void 0===t?void 0:t.item(0);if(l){q(e=>[...e,l]);let e=[...M,URL.createObjectURL(l)];G(e)}}}),M.map((e,t)=>(0,a.jsx)("img",{className:"w-44",src:e,alt:""},t)),M.length>0&&(0,a.jsx)("button",{onClick:()=>{Q.current.value="",G([])},className:"bg-red-500 rounded-lg text-white w-1/2 p-2 hover:bg-red-600",children:"Remove"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-5",children:[(0,a.jsxs)("div",{className:"flex flex-row gap-x-2",children:[(0,a.jsxs)("label",{htmlFor:"estimatePrice",children:["Your estimate price: ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:null===(l=N.estimate_price1)||void 0===l?void 0:l.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.estimate_price1})]})]}),(0,a.jsx)("input",{className:"outline-none border rounded-lg p-3",type:"text",id:"estimatePrice",value:y.estimate_price1,onChange:e=>{let t=e.target.value;_({...y,estimate_price1:t})}}),(0,a.jsxs)("div",{className:"flex flex-row gap-x-2",children:[(0,a.jsxs)("label",{htmlFor:"description",children:["Your description  ",(0,a.jsx)("strong",{className:"text-red-500",children:"*"})]}),(null==N?void 0:null===(n=N.description1)||void 0===n?void 0:n.length)!==0&&(0,a.jsxs)("div",{className:"text-red-500 ",children:[(0,a.jsx)(s.G,{icon:i.RLE}),(0,a.jsx)("span",{className:"px-1",children:null==N?void 0:N.description1})]})]}),(0,a.jsx)("textarea",{className:"outline-none border rounded-lg p-3",id:"description",cols:30,rows:5,value:y.description1,onChange:e=>{let t=e.target.value;_({...y,description1:t})}})]}),(0,a.jsx)("div",{className:"p-5",children:(0,a.jsxs)("button",{onClick:()=>{q(R.slice(0,1)),E(C.slice(0,1)),O(!1),$(!1),_({...y,description1:"",estimate_price1:""}),D([]),G([])},className:"p-2 text-white bg-red-500 rounded-lg ",children:[" ","Remove"]})})]})]})]})}),!r&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:" border-t mt
1-5 p-5",children:(0,a.jsx)(f,{onVerify:en},g)})}),!r&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"text-red-500",children:"( **Please verify the captcha then only you can proceed )"})}),(0,a.jsx)("div",{className:" border-t mt-5 p-5",children:(0,a.jsxs)("button",{onClick:U?void 0:er,className:"bg-blue-500 text-white w-1/6 max-w-[1/6] p-3 rounded-lg outline-none",children:[!U&&"Submit",U&&(0,a.jsx)(s.G,{className:"px-1 text-red-500",icon:i.LM3,spin:!0})]})})]})})()})]})})]})},w=l(9008),F=l.n(w),S=()=>{let[e,t]=(0,o.useState)([]),[l,r]=(0,o.useState)([]),u=(0,b.useRouter)(),m=Array.isArray(null==u?void 0:u.query.tracking_id)?u.query.tracking_id[0]:u.query.tracking_id||"",[x,h]=(0,o.useState)(!1);(0,o.useEffect)(()=>{h(!!m);let e=setTimeout(()=>{h(!1)},5e3);return()=>clearTimeout(e)},[m]),(0,o.useEffect)(()=>{let e=async()=>{try{var e,l;let a=await d.Z.post("/contact_us/getcontact-query-head",{page_enabled:"y",page:1,limit:20,sortDetails:{sortKey:"id",sortType:1},searchDetails:[],searchDetailsAnd:[],searchQuery:""});if(Array.isArray(null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.data)){let e=null==a?void 0:null===(l=a.data)||void 0===l?void 0:l.data.filter(e=>(null==e?void 0:e.status)===1).sort((e,t)=>e.order_by-t.order_by).map(e=>({name:null==e?void 0:e.query.replace(/<\/?[^>]+(>|$)/g,""),title:null==e?void 0:e.query,content:g(e)}));t(e)}}catch(e){console.error("Failed to fetch contact us sections:",e)}};e()},[]);let g=e=>{switch(e.query){case"Know About Your Collection <small>(Valuation | Decipher | Other Information) ?</small>":return(0,a.jsxs)("div",{className:"p-5 border",children:["Do You want to Check Your Collection"," ",(0,a.jsx)(n(),{className:"text-blue-400 hover:text-blue-500",href:"/know-about-your-collection",children:"Click here..."})]});case"About Sale of Your collection":return(0,a.jsx)(N,{});case"General Query":return(0,a.jsx)(_,{onChildStateChange:v});default:return(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.message}})}},p=e=>{r(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},v=e=>{"success"===e&&r(e=>e.filter(e=>"generalQuery"!==e))};return(0,a.jsxs)("div",{className:"lg:mx-28",children:[(0,a.jsx)(F(),{children:(0,a.jsx)("title",{children:"Contact Us"})}),(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsxs)("div",{className:"container mx-auto bg-gray-200 h-10 lg:my-3 rounded-md p-2 text-gray-500",children:[(0,a.jsx)(n(),{className:"hover:text-red-700",href:"/",children:"Home"}),"\xa0/\xa0",(0,a.jsx)(n(),{className:"hover:text-red-700",href:"/contact",children:"Contact Us"})]}),x&&(0,a.jsx)("div",{className:"p-4 mb-4 text-sm text-green-800 rounded-lg bg-green-300 dark:bg-gray-800 dark:text-green-400",role:"alert",children:(0,a.jsxs)("span",{className:"font-medium",children:["Your query is successfully submitted. Your # ",(0,a.jsx)("strong",{children:m}),". We'll get back to you soon. Please check your email for further info."]})}),(0,a.jsx)(c.UQ,{allowZeroExpanded:!0,preExpanded:l,onChange:e=>r(e),children:e.map(e=>(0,a.jsxs)(c.Qd,{uuid:null==e?void 0:e.name,children:[(0,a.jsx)(c.Ol,{children:(0,a.jsx)(c.on,{onClick:()=>p(null==e?void 0:e.name),children:(0,a.jsxs)("div",{className:"container mx-auto bg-gray-50 flex hover:text-blue-500 border items-center shadow-md justify-between mt-3 p-3",children:[(0,a.jsx)("h1",{className:"text-lg",dangerouslySetInnerHTML:{__html:null==e?void 0:e.title}}),(0,a.jsx)(s.G,{className:"text-3xl text-gray-600",icon:l.includes(null==e?void 0:e.name)?i.El_:i.CPW})]})})}),(0,a.jsx)(c.Mt,{children:null==e?void 0:e.content})]},null==e?void 0:e.name))})]})]})}},54464:function(e,t,l){var a=l(85893),i=l(88446),s=l(67294);let r=(e,t)=>
1{let[l,a]=(0,s.useState)([]),[r,n]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{n(!0);let t=async()=>{try{e&&await i.Z.post("/world_city/getworld_city",{page_enabled:"n",page:1,limit:100,sortDetails:{sortKey:"id",sortType:1},searchDetails:[{basicSearchKey:"state_id",basicSearchValue:e,basicSearchType:"number"}],searchDetailsAnd:[],searchQuery:""}).then(e=>{var t;a(null===(t=e.data)||void 0===t?void 0:t.data)}).catch(()=>{a([])}).finally(()=>{n(!1)})}catch(e){console.error(e)}};t()},[t,e,a,n]),{data:l,loading:r}};t.Z=e=>{let{country_id:t,state_id:l,value:i,...s}=e,{data:n,loading:o}=r(l,t);return(0,a.jsxs)("select",{value:i,...s,className:"shadow appearance-none text-sm border-gray-200 rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",disabled:o,children:[(0,a.jsxs)("option",{value:-1,children:[" ",o?"loading...":"Select city"]}),n.map(e=>(0,a.jsx)("option",{value:e.id,"data-name":e.name,children:[e.name]},e.id))]})}},34994:function(e,t,l){var a=l(85893),i=l(88446),s=l(67294);t.Z=e=>{let[t,l]=(0,s.useState)([]);return(0,s.useEffect)(()=>{let e=async()=>{try{var e;let t=await i.Z.post("/world_country/getworld_country",{page_enabled:"n",page:1,limit:10,sortDetails:{sortKey:"name",sortType:1},searchDetails:[]});l(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data)}catch(e){console.error("Error",e)}};e()},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("select",{...e,className:"shadow appearance-none text-sm border-gray-200 rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline ",children:[(0,a.jsx)("option",{value:"-1",children:"Select Country"}),t.map((e,t)=>(0,a.jsx)("option",{value:e.id,"data-name":e.name,children:[e.name]},e.id))]})})}},977:function(e,t,l){var a=l(85893),i=l(88446),s=l(67294);let r=e=>{let[t,l]=(0,s.useState)([]),[a,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{r(!0),e&&i.Z.post("world_state/getworld_state",{page_enabled:"n",page:1,limit:25,sortDetails:{sortKey:"123",sortType:-1},searchDetails:[{basicSearchKey:"country_id",basicSearchValue:e,basicSearchType:"number"}]}).then(e=>{let{data:t}=e;l(null==t?void 0:t.data)}).catch(()=>{l([])}).finally(()=>{r(!1)})},[e,l,r]),{data:t,loading:a}};t.Z=e=>{let{country_id:t,value:l,...i}=e,{data:s,loading:n}=r(t);return(0,a.jsxs)("select",{value:l,...i,disabled:n,className:"shadow appearance-none text-sm border-gray-200 rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",children:[(0,a.jsx)("option",{value:-1,children:n?"loading...":"Select State"}),s.map(e=>(0,a.jsx)("option",{value:e.id,"data-name":e.name,children:[e.name]},e.id))]})}},93235:function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e),"object"===s(t)?(l=t.min||0,a=t.max):(l=arguments[1],a=arguments[2]);var l,a,r=encodeURI(e).split(/%..|./).length-1;return r>=l&&(void 0===a||r<=a)};var a,i=(a=l(65571))&&a.__esModule?a:{default:a};function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},83868:function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),(t=(0,n.default)(t,c)).require_display_name||t.allow_display_name){var l=e.match(d);if(l){var o,p,v=l[1];if(e=e.replace(v,"").replace(/(^<|>$)/g,""),v.endsWith(" ")&&(v=v.slice(0,-1)),!(p=(o=v).replace(/^"(.+)"$/,"$1")).trim()||/[\.";<>]/.test(p)&&(p===o||p.split('"').length!==p.split('\\"').length))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var f=e.split("@"),y=f.pop(),j=y.toLowerCase();if(t.host_blacklist.includes(j)||t.host_whitelist.length>0&&!t.host_whitelist.includes(j))return!1;var b=f.join("@");if(t.domain_specific_validation&&("gmail.com"===j||"googlemail.com"===j)){var _=(b=b.toLowerCase()).split("+")[0];if(!(0,i.default)(_.replace(/\./g,""),{min:6,max:30}))return!1;for(var N=_.split("."),w=0;w<N.length;w++)if(!m.test(N[w]))return!1}if(!1===t.ignore_max_length&&(!(0,i.default)(b,{max:64})||!(0,i.default)(y,{max:254})))return!1;if(!(0,s.default)(y,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,r.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var F=y.slice(1,-1);if(0===F.length||!(0,r.default)(F))return!1}}if('"'===b[0])return b=b.slice(1,b.length-1),t.allow_utf8_local_part?g.test(b):x.test(b);for(var S=t.allow_utf8_local_part?h:u,C=b.split("."),E=0;E<C.length;E++)if(!S.test(C[E]))return!1;return!t.blacklisted_chars||-1===b.search(RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))};var a=o(l(65571)),i=o(l(93235)),s=o(l(10221)),r=o(l(61028)),n=o(l(84808));
1function o(e){return e&&e.__esModule?e:{default:e}}var c={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},d=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,u=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,m=/^[a-z\d]+$/,x=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default,e.exports.default=t.default},10221:function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e),(t=(0,i.default)(t,r)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1)),!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var l=e.split("."),s=l[l.length-1];return!(t.require_tld&&(l.length<2||!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(s)||/\s/.test(s))||!t.allow_numeric_tld&&/^\d+$/.test(s))&&l.every(function(e){return!(e.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!t.allow_underscores&&/_/.test(e))})};var a=s(l(65571)),i=s(l(84808));function s(e){return e&&e.__esModule?e:{default:e}}var r={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},61028:function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return((0,i.default)(t),l=String(l))?"4"===l?n.test(t):"6"===l&&c.test(t):e(t,4)||e(t,6)};var a,i=(a=l(65571))&&a.__esModule?a:{default:a},s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",r="(".concat(s,"[.]){3}").concat(s),n=new RegExp("^".concat(r,"$")),o="(?:[0-9a-fA-F]{1,4})",c=RegExp("^("+"(?:".concat(o,":){7}(?:").concat(o,"|:)|")+"(?:".concat(o,":){6}(?:").concat(r,"|:").concat(o,"|:)|")+"(?:".concat(o,":){5}(?::").concat(r,"|(:").concat(o,"){1,2}|:)|")+"(?:".concat(o,":){4}(?:(:").concat(o,"){0,1}:").concat(r,"|(:").concat(o,"){1,3}|:)|")+"(?:".concat(o,":){3}(?:(:").concat(o,"){0,2}:").concat(r,"|(:").concat(o,"){1,4}|:)|")+"(?:".concat(o,":){2}(?:(:").concat(o,"){0,3}:").concat(r,"|(:").concat(o,"){1,5}|:)|")+"(?:".concat(o,":){1}(?:(:").concat(o,"){0,4}:").concat(r,"|(:").concat(o,"){1,6}|:)|")+"(?::((?::".concat(o,"){0,5}:").concat(r,"|(?::").concat(o,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},65571:function(e,t){function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=l(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},84808:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var l in t)void 0===e[l]&&(e[l]=t[l]);return e},e.exports=t.default,e.exports.default=t.default}}]);

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.