PageSourceSearch

https://olhaozap.ai/_next/static/chunks/app/(public)/shortener/pag…?dpl=dpl_7E3E4t564hp2Qvbjh9XPgtfzpFsV

js olhaozap.ai collected 2026-10-05 15:42:26 UTC 5,812 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4642],{36819:(e,l,s)=>{Promise.resolve().then(s.bind(s,96826)),Promise.resolve().then(s.bind(s,2903)),Promise.resolve().then(s.bind(s,49457)),Promise.resolve().then(s.bind(s,72565)),Promise.resolve().then(s.bind(s,4395)),Promise.resolve().then(s.bind(s,56737)),Promise.resolve().then(s.bind(s,79123)),Promise.resolve().then(s.bind(s,3478)),Promise.resolve().then(s.t.bind(s,48173,23))},79123:(e,l,s)=>{"use strict";s.d(l,{ShortUrlForm:()=>b});var n=s(95155),r=s(12115),t=s(69606),a=s(43415),i=s(85060),o=s(2615),d=s(50141),c=s(76046),u=s(35007),x=s(44035),m=s(14085),p=s(22783),h=s(9955),f=s(29788),v=s(30814),j=s(69934);let g=a.z.object({originalUrl:a.z.string().optional(),nanoid:a.z.string().optional(),title:a.z.string().optional()});function b(){let[e,l]=(0,r.useState)(!1),{data:s}=(0,o.useSession)(),a=(0,c.useRouter)(),{openModal:b}=(0,d.h)(),N=(0,t.mN)({resolver:(0,i.u)(g),defaultValues:{originalUrl:"",nanoid:"",title:""}}),w=N.watch("nanoid"),z=async e=>{if(l(!0),!s){b("LoginModal",{}),l(!1);return}try{let s=await (0,f.F)({...e,type:"SHORT"});if(l(!1),!s.success){var n;v.oR.error(null===(n=s.error)||void 0===n?void 0:n.toast),function(e){if(null==e?void 0:e.resourse){N.setError(null==e?void 0:e.resourse,{message:null==e?void 0:e.toast});return}alert("Ocorreu um erro inesperado, tente novamente mais tarde.")}(s.error);return}s.data&&(v.oR.success("Link encurtado com sucesso"),a.push("/links/shortener"),N.reset({originalUrl:"",nanoid:"",title:""}))}catch(e){l(!1),console.log(e)}},[F,S]=(0,r.useState)(""),[k,y]=(0,r.useState)(""),[P,B]=(0,r.useState)(!1),[E,U]=(0,r.useState)(!1);async function _(e){try{U(!0);let l=await (0,j.b)(e);B(!!l.data)}finally{U(!1)}}return(0,r.useEffect)(()=>{let e=setTimeout(()=>{y(F),_(F)},400);return()=>clearTimeout(e)},[F]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"flex align-middle justify-center",children:(0,n.jsxs)(u.Zp,{className:"  max-w-[771px] w-full rounded-lg rounded-r-none pl-12 pt-12 pr-12 pb-14 border-none",children:[(0,n.jsx)(u.ZB,{className:"text-2xl font-normal mb-2",children:"Cole a URL para ser encurtada"}),(0,n.jsx)(u.BT,{className:"mb-6",children:"Encurte a URL do seu link para reduzir o tamanho do seu site e otimizar sua presen\xe7a online."}),(0,n.jsx)(x.lV,{...N,children:(0,n.jsxs)("form",{onSubmit:N.handleSubmit(z),className:"text-[#111B21] flex flex-col gap-[34px]",children:[(0,n.jsx)("div",{children:(0,n.jsx)(x.zB,{name:"originalUrl",control:N.control,render:l=>{var s;let{field:r}=l;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"  flex flex-row items-center justify-between gap-[10px]",children:[(0,n.jsx)(h.p,{...r,value:r.value,id:"originalUrl",className:" max-w-full w-full h-10",placeholder:"Cole o link aqui"}),(0,n.jsx)(m.$,{type:"submit",className:"bg-[#6B88FF] text-white h-10 rounded-[8px] hover:bg-[#6B88FF]",children:e?(0,n.jsx)(p.A,{size:18,className:"animate-spin"}):(0,n.jsx)(n.Fragment,{children:"Encurtar URL"})})]}),(0,n.jsx)(x.C5,{className:"p-1",children:null===(s=N.formState.errors.originalUrl)||void 0===s?void 0:s.message})]})}})}),(0,n.jsx)(x.zB,{name:"nanoid",control:N.control,render:e=>{let{field:l}=e;return(0,n.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsxs)(x.lR,{className:"text-[14px] font-normal",children:["Op\xe7\xe3o de link costumiz\xe1vel: olhaozap.ai/",(0,n.jsx)("span",{className:"text-[#6B88FF]",children:w||"nomedonegocio"})," "]}),(0,n.jsxs)("div",{className:"flex w-full",children:[(0,n.jsx)("div",{className:"h-[52px] w-[180px] bg-[#E9EDFF] flex items-center justify-center rounded-none rounded-tl-[8px] rounded-bl-[8px]",children:(0,n.jsx)("span",{className:"text-[14px] text-[#6B88FF]",children:"olhaozap.ai/"})}),(0,n.jsx)("div",{className:"w-full max-w-[366px]",children:(0,n.jsx)(h.p,{...l,value:l.value,onChange:e=>{let l=e.target.value.trim().slice(0,15);N.setValue("nanoid",l),S(l)},id:"nanoid",className:"w-full h-[50px] rounded-none rounded-tr-[8px] rounded-br-[8px]",placeholder:"Digite o nome do neg\xf3cio"})})]})]}),(0,n.jsx)(x.zB,{name:"title",control:N.control,render:e=>{let{field:l}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-4 ",children:[(0,n.jsxs)(x.lR,{className:"text-[14px] font-normal ",children:["T\xedtulo do link"," "]}),(0,n.jsx)(h.p,{...l,value:l.value,id:"title",className:"lg:max-w-[247px] max-w-full w-full  h-[50px] ",placeholder:"T\xedtulo"})]})}})]})}}),E?(0,n.jsx)("span",{className:"text-gray-500 text-sm",children:"Verificando a disponibilidade do link..."}):""!==k?(0,n.jsx)(r.Suspense,{fallback:(0,n.jsx)("div",{}),children:P?(0,n.jsx)("div",{children:(0,n.jsx)("span",{className:"text-red-500 text-sm",children:"Este link j\xe1 est\xe1 em uso. Tente outro."})}):(0,n.jsx)("div",{children:(0,n.jsx)("span",{className:"text-green-500 text-sm",children:"Link dispon\xedvel para personaliza\xe7\xe3o!"})})}):null]})})]})})})}},5565:(e,l,s)=>{"use strict";s.d(l,{default:()=>r.a});var n=s(4146),r=s.n(n)},4146:(e,l,s)=>{"use strict";
1Object.defineProperty(l,"__esModule",{value:!0}),function(e,l){for(var s in l)Object.defineProperty(e,s,{enumerable:!0,get:l[s]})}(l,{default:function(){return o},getImageProps:function(){return i}});let n=s(60306),r=s(40666),t=s(87970),a=n._(s(65514));function i(e){let{props:l}=(0,r.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,s]of Object.entries(l))void 0===s&&delete l[e];return{props:l}}let o=t.Image}},e=>{var l=l=>e(e.s=l);e.O(0,[3350,7970,6217,2377,2615,2079,8173,3084,3740,822,5330,8441,1517,7358],()=>l(36819)),_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.