PageSourceSearch

https://sanamekan.com/build/assets/image-search-dropzone-BgbiA2Ma.js

js sanamekan.com collected 2026-10-08 07:15:04 UTC 3,016 bytes, 1 lines download raw bytes

1import{c as e,n as t,r as n,t as r}from"./jsx-runtime-B99rEt_x.js";import{d as i}from"./dist-o22yNQU1.js";import{t as a}from"./image-plus-RmWbl-sX.js";import{t as o}from"./loader-circle-BjDGLIph.js";import{o as s}from"./dist-Byldmmd9.js";import{n as c}from"./dist-CFkzuf7H.js";import"./custom-toast-MWgPxVrk.js";import{t as l}from"./es-BU3LVN_I.js";var u=t(),d=e(n(),1),f=r(),p=5*1024*1024,m={"image/jpeg":[`.jpg`,`.jpeg`],"image/png":[`.png`],"image/webp":[`.webp`]},h=e=>{let t=(0,u.c)(26),{compact:n,autoFocus:r,className:c}=e,h=n===void 0?!1:n,[v,y]=(0,d.useState)(!1),b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=e=>{y(!0),i.post(`/mekanlar/arama/gorsel`,{image:e},{forceFormData:!0,onError:g,onFinish:()=>y(!1)})},t[0]=b):b=t[0];let x=b,S;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{let t=e[0];t&&x(t)},t[1]=S):S=t[1];let C;t[2]===v?C=t[3]:(C={accept:m,maxSize:p,multiple:!1,disabled:v,onDrop:S,onDropRejected:_},t[2]=v,t[3]=C);let{getRootProps:w,getInputProps:T,isDragActive:E}=l(C),D;t[4]===w?D=t[5]:(D=w(),t[4]=w,t[5]=D);let O=E&&`border-sm-orange bg-sm-orange/10`,k=v&&`pointer-events-none opacity-70`,A=h?`gap-1.5 px-4 py-6`:`gap-2 px-6 py-12`,j;t[6]!==c||t[7]!==O||t[8]!==k||t[9]!==A?(j=s(`flex cursor-pointer flex-col items-center justify-center rounded-2xl border-2 border-dashed border-black/15 bg-white text-center transition`,`hover:border-sm-orange/60 hover:bg-sm-orange/5`,`focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sm-orange`,O,k,A,c),t[6]=c,t[7]=O,t[8]=k,t[9]=A,t[10]=j):j=t[10];let M;t[11]===T?M=t[12]:(M=T(),t[11]=T,t[12]=M);let N;t[13]!==r||t[14]!==M?(N=(0,f.jsx)(`input`,{...M,autoFocus:r}),t[13]=r,t[14]=M,t[15]=N):N=t[15];let P;t[16]!==h||t[17]!==E||t[18]!==v?(P=v?(0,f.jsxs)(`output`,{className:`contents`,children:[(0,f.jsx)(o,{size:h?20:26,className:`animate-spin text-sm-orange-ink`,"aria-hidden":!0}),(0,f.jsx)(`span`,{className:`text-sm font-medium text-header`,children:`Görseliniz analiz ediliyor…`})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a,{size:h?20:26,className:`text-sm-orange-ink`,"aria-hidden":!0}),(0,f.jsx)(`span`,{className:`text-sm font-medium text-header`,children:E?`Görselinizi buraya bırakın`:`Görsel sürükleyin veya seçmek için tıklayın`}),(0,f.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`JPG, PNG veya WebP · en fazla 5 MB`})]}),t[16]=h,t[17]=E,t[18]=v,t[19]=P):P=t[19];let F;return t[20]!==N||t[21]!==P||t[22]!==D||t[23]!==j||t[24]!==v?(F=(0,f.jsxs)(`div`,{...D,role:`button`,tabIndex:0,"aria-label":`Görsel yükleyerek benzer mekanları ara`,"aria-busy":v,"aria-disabled":v,className:j,children:[N,P]}),t[20]=N,t[21]=P,t[22]=D,t[23]=j,t[24]=v,t[25]=F):F=t[25],F};function g(e){c.error(e.image??`Görsel aranamadı. Tekrar deneyin.`)}function _(e){let t=e[0]?.errors[0]?.code;t===`file-too-large`?c.error(`Görsel en fazla 5 MB olabilir.`):t===`file-invalid-type`?c.error(`Yalnızca JPG, PNG ve WebP destekleniyor.`):c.error(`Bu görsel yüklenemedi.`)}export{h as t};

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.