PageSourceSearch

https://uttarakhandtourism.gov.in/build/assets/helpers-C3Ubf4D0.js

js uttarakhandtourism.gov.in collected 2026-10-02 06:28:50 UTC 1,943 bytes, 1 lines download raw bytes

1import{h as o}from"./moment-C5S46NFB.js";const l=window.location.origin,c=t=>t.split("/").map(e=>{if(!e)return e;try{return encodeURIComponent(decodeURIComponent(e))}catch{return encodeURIComponent(e)}}).join("/"),i=t=>{const e=(t==null?void 0:t.trim())??"";if(!e)return"";if(/^(https?:)?\/\//i.test(e)||/^data:/i.test(e))return e;const r=e.replace(/\\/g,"/").replace(/^\/+/,""),n=r.startsWith("assets/media/")?r:`assets/media/${r}`;return`${l}/${c(n)}`};function d(t){switch(t){case 1:return{label:"Active",color:"bg-green-100",txtColor:"text-green-800"};case 2:return{label:"Inactive",color:"bg-yellow-100",txtColor:"text-yellow-800"};case 3:return{label:"Blocked",color:"bg-red-100",txtColor:"text-red-800"};case 0:return{label:"Pending",color:"bg-gray-100",txtColor:"text-gray-800"};default:return{label:"Pending",color:"bg-gray-100",txtColor:"text-gray-800"}}}const g=t=>{const e=i(t);window.open(e,"_blank")},a=(t,e,r)=>t.length===0?!0:t.length>e?!1:!!r.test(t),h=t=>a(t,10,/^[0-9]+$/),p=t=>a(t,500,/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),b=t=>a(t,100,/^\+?[0-9\s-]+(?:,\s*\+?[0-9\s-]+)*$/),m=t=>a(t,500,/^(https?:\/\/)?([\w.:/-]+)(\/[\w\-./?%&=]*)?$/),$=t=>t.sort((e,r)=>+new Date(r.created_at)-+new Date(e.created_at)),w=t=>a(t,60,/^(?=.*[a-z0-9])([a-z0-9]+(-[a-z0-9]+)*-?)?$/),v=t=>t.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),x=t=>a(t,90,/^(|(?=.*\S)[A-Za-z0-9 ]+)$/),y=t=>a(t,90,/^(|(?=.*\S)[\u0900-\u097Fa-zA-Z0-9 ]+)$/),z=t=>a(t,500,/^[a-zA-Z0-9-+/.,\s]+$/),C=t=>{const e=["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"],r=o(t).month(),n=o(t).date(),s=o(t).year();return`${e[r]} ${n}th, ${s}`};export{x as a,y as b,v as c,z as d,C as e,i as f,d as g,g as h,b as i,p as j,h as k,m as l,$ as s,w as v};

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.