1import{j as e}from"./BBIYZvhC.js";import{aR as n,aO as p,aP as c}from"./B3ZwDejF.js";import{d as m,F as r}from"./CjzteOGD.js";import{t as f}from"./696gywoB.js";import"./wBGEgCn_.js";import"./B39jFCkG.js";import"./BGoXZQzm.js";import"./BWFonZQN.js";import"./BheWnx7M.js";const d=p("fk-52971f34220",c),_=m({plugins:[d],icons:{...n}});async function u({search:s,page:t,hasNextPage:l}){if(!s)return f;const a=await fetch(`https://api.themoviedb.org/3/search/movie?query=${s||""}&api_key=f48bcc9ed9cbce41f6c28ea181b67e14&language=en-US&page=${t}&include_adult=false`);if(a.ok){const i=await a.json();return t!==i.total_pages&&l(),i.results.map(o=>({label:o.title,value:o.id,poster_path:o.poster_path,overview:o.overview}))}return[]}function F(){return e.jsx(e.Fragment,{children:e.jsx(r,{type:"form",actions:!1,children:({value:s})=>e.jsxs(e.Fragment,{children:[e.jsx(r,{name:"movie",type:"autocomplete",label:"Search for your favorite movie",placeholder:"Example placeholder",options:u,selectionAppearance:"option",multiple:!0,popover:!0,removeSelectionClass:"p-2 pl-0",slots:{option:({option:t})=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"mr-2 w-1/4",children:e.jsx("img",{src:`https://image.tmdb.org/t/p/w500${t.poster_path}`,alt:"optionAvatar",className:"w-full"})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"text-base font-bold leading-none",children:t.label}),e.jsx("p",{className:"text-xs",children:t.overview})]})]})}}),e.jsx("pre",{children:JSON.stringify(s,null,2)})]})})})}export{F as default,_ as formkitConfig};
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.