PageSourceSearch

https://ola.cv/build/assets/Index-idaVCXOr.js

js ola.cv collected 2026-10-02 17:42:45 UTC 5,874 bytes, 1 lines download raw bytes

1import{r as x,aj as w,j as e,g as u,f as t,F as I,a4 as k,L as N}from"./vendor-DeV7P-Bw.js";import{C as P,H as L,B as c,S,T}from"./app-CwxIMSoo.js";import{D as z}from"./divider-CznjHlBr.js";import{A as D}from"./ApplicationLayout-Cc-4qaDe.js";import{s as A}from"./index-DKfpUJ2I.js";import{c as g}from"./index-CWcOxYmV.js";import{I as F}from"./input-xclr-1sE.js";import{T as H,a as R,b as y,c as n,d as W,e as o}from"./table-C4vrsWbV.js";import B from"./ContactModal-6akmUjJX.js";import"./ToastProvider-D8cTivyB.js";/* empty css            */import"./avatar-C_tGAxFv.js";import"./dropdown-eC3Pds3I.js";import"./LocaleSwitcher-B7-YodbI.js";import"./Logo-D_b4ehSv.js";import"./index--19zGLu0.js";import"./index-Cqkv_yo_.js";import"./index-kCA4Rg-0.js";import"./index-Dm57oINB.js";import"./index-CQ6etUbt.js";import"./index-CzXA4qbd.js";import"./index-f0PbuTvK.js";import"./dialog-C5MnorCo.js";import"./fieldset-eHQgBk9S.js";import"./listbox-4-c35K47.js";function xe({contacts:i,filters:d,countries:h}){const[p,l]=x.useState(!1),[f,j]=x.useState(d.name??""),$=P(s=>{s!==d.name&&w.visit(g.index().url,{data:{"filter[name]":s},only:["contacts","filters"],reset:["contacts"],preserveScroll:!0,preserveState:!0})},1500),b=s=>{const r=s.target.value;j(r),$(r)};function C(s){const r=new URL(window.location.href),a=r.searchParams.get("sort")||"",K=a.startsWith("-")?"desc":"asc",v=a.startsWith("-")?a.slice(1):a;let m=s;return v===s&&(m=K==="asc"?"-"+s:s),r.searchParams.set("sort",m),r.toString()}return e.jsxs(u,{title:"My Contacts",$attrAs:D,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$attributes:{title:"17/declaration/body/5/argument-title"},children:[e.jsx("div",{children:e.jsxs("div",{className:"mx-auto max-w-4xl",children:[e.jsxs("div",{className:"mt-4 flex flex-col sm:flex-row sm:justify-between sm:items-center",children:[e.jsx("div",{className:"flex flex-col ",children:e.jsx("div",{className:"flex sm:flex-row items-start sm:items-center sm:gap-4",children:e.jsx(t,{$as:L,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/1/1/1/1"})})}),e.jsx("div",{className:"mt-4 sm:mt-0",children:e.jsx(t,{color:"brand-blue",onClick:()=>l(!0),$as:c,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/1/3/1"})})]}),e.jsx(z,{className:"my-10 mt-6"}),e.jsx("div",{className:"flex justify-end",children:e.jsxs("form",{className:"flex gap-1 sm:w-1/3 w-full items-end",children:[e.jsx(t,{htmlFor:"contact",className:"sr-only",$as:"label",$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/5/1/1"}),e.jsx(u,{id:"contact",type:"text",name:"filter[name]",value:f,onChange:b,placeholder:"Search your contacts",$attrAs:F,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$attributes:{placeholder:"17/declaration/body/5/argument/1/1/5/1/3-placeholder"}}),e.jsx("div",{className:"flex min-w-fit gap-1",children:e.jsx(t,{color:"brand-blue",type:"submit",$as:c,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/5/1/5/1"})})]})}),i.data.length==0&&e.jsxs("div",{className:"mx-auto my-auto max-w-lg flex flex-col items-center space-y-10",children:[e.jsx(I,{className:"size-8"}),e.jsx(t,{$as:S,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/7/expression/right/3"}),e.jsx(t,{className:"text-center",$as:T,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/7/expression/right/5"}),e.jsx("div",{className:"w-full bg-white dark:bg-zinc-900 relative pointer-events-auto",children:e.jsx(t,{onClick:()=>l(!0),href:A({query:{redirect:window.location.href}}).url,as:"button",type:"button",className:"w-full flex items-center text-sm leading-6 text-zinc-400 rounded-md ring-1 ring-zinc-900/10 shadow-sm py-1.5 pl-2 pr-3 hover:ring-zinc-300 dark:hover:ring-zinc-600 dark:bg-zinc-800 dark:highlight-white/5 dark:hover:bg-zinc-800",$as:c,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/7/expression/right/7/1",$elements:[({children:s})=>e.jsx("svg",{width:"24",height:"24",fill:"none","aria-hidden":"true",className:"mr-3 flex-none",children:s}),({children:s})=>e.jsx("path",{d:"m19 19-3.5-3.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s}),({children:s})=>e.jsx("circle",{cx:"11",cy:"11",r:"6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s})]})})]}),i.data.length>
10&&e.jsx(k,{data:"contacts",children:e.jsxs(H,{className:"mt-8 [--gutter:theme(spacing.6)] lg:[--gutter:theme(spacing.10)]",children:[e.jsx(R,{children:e.jsxs(y,{children:[e.jsx(n,{children:e.jsx(t,{href:C("name"),$as:N,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/9/expression/right/1/1/1/1/1"})}),e.jsx(t,{$as:n,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/9/expression/right/1/1/1/3"}),e.jsx(t,{$as:n,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/9/expression/right/1/1/1/5"}),e.jsx(t,{$as:n,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/9/expression/right/1/1/1/7"})]})}),e.jsx(W,{children:i.data.map(s=>e.jsxs(y,{href:g.show(s.id).url,title:`${s.name}`,children:[e.jsxs(o,{children:[s.name," "]}),e.jsx(o,{children:s.email}),e.jsx(o,{children:s.phone}),e.jsx(t,{$as:o,$fileKey:"../resources/js/Pages/Contacts/Index.tsx",$entryKey:"17/declaration/body/5/argument/1/1/9/expression/right/1/3/1/expression/0/body/0/argument/7",$variables:{"contact.state":s.state,"contact.country":s.country}})]},s.id))})]})})]})}),e.jsx(B,{open:p,onClose:()=>l(!1),countries:h})]})}export{xe as 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.