{"version":3,"file":"RHFSearchSelect.DOm6Cc3Z.mjs","names":["useState","useCallback","newSelection","React","_Fragment","e"],"sources":["https:/framerusercontent.com/modules/T9HXTy8Z7z1O64ZJS0fh/F9lL6MRH62cI6c8WXSoI/RHFSearchSelect.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import React,{useState,useEffect,useCallback}from\"react\";import{motion}from\"framer-motion\";import{Controller,useFormContext}from\"react-hook-form\";import{apiFeux}from\"https://framerusercontent.com/modules/SLx2xfWAXovN7llsgFwe/zGZcVWqyj4kDVq0Ilffn/api.js\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 50\n */export default function RHFSearchSelect(props){const{name,font,defaultState,selectedState,borderRadius,padding,searchPadding,tableName,dataKey,fieldShow,onSelect,direction,gap,showSearch,counterOptions,focusBorder,filterConditions,dataSource,apiFeuxEndpoint,maxSelectItems,selectionMode=\"multiple\"}=props;const[items,setItems]=useState([]);const[isLoading,setIsLoading]=useState(false);const[error,setError]=useState(null);const[debouncedSearchTerm,setDebouncedSearchTerm]=useState(\"\");const[maxItemsReached,setMaxItemsReached]=useState(false);// Integração com React Hook Form\nconst formContext=useFormContext();const isFormContextAvailable=!!formContext;const isCanvas=RenderTarget.current()===RenderTarget.canvas;// Adicione uma referência para o input de busca\nconst[searchInputValue,setSearchInputValue]=useState(\"\");// Implementa o debounce no termo de busca\nuseEffect(()=>{const timer=setTimeout(()=>{setDebouncedSearchTerm(searchInputValue);},500)// Aguarda 500ms após a última digitação\n;return()=>clearTimeout(timer);},[searchInputValue]);useEffect(()=>{const fetchItems=async()=>{setIsLoading(true);if(isCanvas){// Dados de exemplo para preview no canvas\nconst mockData=dataSource===\"airtable\"?[{id:\"1\",fields:{Title:\"Item 1\",email:\"item1@example.com\"}},{id:\"2\",fields:{Title:\"Item 2\",email:\"item2@example.com\"}},{id:\"3\",fields:{Title:\"Item 3\",email:\"item3@example.com\"}},{id:\"4\",fields:{Title:\"Item 4\",email:\"item4@example.com\"}},{id:\"5\",fields:{Title:\"Item 5\",email:\"item5@example.com\"}}]:[{id:\"1\",email:\"user1@example.com\",title:\"Usu\\xe1rio 1\",fields:{Title:\"Usu\\xe1rio 1\"}},{id:\"2\",email:\"user2@example.com\",title:\"Usu\\xe1rio 2\",fields:{Title:\"Usu\\xe1rio 2\"}},{id:\"3\",email:\"user3@example.com\",title:\"Usu\\xe1rio 3\",fields:{Title:\"Usu\\xe1rio 3\"}},{id:\"4\",email:\"user4@example.com\",title:\"Usu\\xe1rio 4\",fields:{Title:\"Usu\\xe1rio 4\"}},{id:\"5\",email:\"user5@example.com\",title:\"Usu\\xe1rio 5\",fields:{Title:\"Usu\\xe1rio 5\"}}];setItems(mockData);setIsLoading(false);return;}try{if(dataSource===\"airtable\"){// Lógica existente para Airtable\nlet url=`https://api.airtable.com/v0/appaniFABOTpVHdVb/${tableName}`;if(filterConditions&&filterConditions.length>0){const formula=filterConditions.map(condition=>`{${condition.fieldName}}='${condition.fieldValue}'`).join(\",\");const filterFormula=filterConditions.length>1?`AND(${formula})`:formula;url+=`?filterByFormula=${encodeURIComponent(filterFormula)}`;}const response=await fetch(url,{headers:{Authorization:\"Bearer patgXKwl9DtFeo6fM.0ce1d1486939058e69ba358321ada8bd2f8eb666631c122399866df9f226b83f\"}});if(!response.ok){throw new Error(\"Failed to fetch from Airtable\");}const data=await response.json();setItems(data.records);}else if(dataSource===\"apiFeux\"){// Nova lógica para apiFeux\nif(!apiFeuxEndpoint){throw new Error(\"API Feux endpoint is required\");}let url=apiFeuxEndpoint+`?search=${debouncedSearchTerm||\"\"}`;const data=await apiFeux.fetchWithBearer(url);// Adaptando a resposta da API Feux para o formato esperado pelo componente\nconst formattedData=Array.isArray(data)?data.map(item=>({id:item.id||String(item._id),fields:{Title:item.title||item.name||item.Title||\"Untitled\",...item}})):data[dataKey];setItems(formattedData);}}catch(err){setError(err instanceof Error?err.message:\"An error occurred\");}finally{setIsLoading(false);}};fetchItems();},[tableName,filterConditions,debouncedSearchTerm,dataSource,apiFeuxEndpoint]);const searchIcon=/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 14 14\",width:\"14\",height:\"14\",style:{position:\"absolute\",right:\"12px\",top:\"50%\",transform:\"translateY(-50%)\",color:defaultState.color,opacity:.5,pointerEvents:\"none\",display:\"block\"},children:/*#__PURE__*/_jsx(\"path\",{fill:\"currentColor\",fillRule:\"evenodd\",d:\"M2 6c0 -2.20914 1.79086 -4 4 -4s4 1.79086 4 4 -1.79086 4 -4 4 -4 -1.79086 -4 -4Zm4 -6C2.68629 0 0 2.68629 0 6s2.68629 6 6 6c1.29578 0 2.49562 -0.4108 3.47642 -1.1092l2.81648 2.8165c0.3905 0.3905 1.0237 0.3905 1.4142 0 0.3905 -0.3905 0.3905 -1.0237 0 -1.4142l-2.8164 -2.81645C11.5892 8.49581 12 7.29588 12 6c0 -3.31371 -2.68629 -6 -6 -6Z\",clipRule:\"evenodd\"})});// Componente interno para renderizar a UI do seletor\nconst SelectComponent=useCallback(({value=selectionMode===\"multiple\"?[]:\"\",onChange})=>{const toggleItem=id=>{if(selectionMode===\"single\"){// Se o item já está selecionado, deseleciona\nif(value===id){onChange(\"\");onSelect?.(\"\");}else{// Caso contrário, seleciona o novo item\nonChange(id);onSelect?.(id);}return;}const isItemSelected=Array.isArray(value)&&value.includes(id);if(isItemSelected){const newSelection=value.filter(selectedId=>selectedId!==id);onChange(newSelection);onSelect?.(newSelection);setMaxItemsReached(false);return;}if(maxSelectItems&&Array.isArray(value)&&value.length>=maxSelectItems){setMaxItemsReached(true);setTimeout(()=>setMaxItemsReached(false),3e3);return;}const newSelection=[...Array.isArray(value)?value:[],id];onChange(newSelection);onSelect?.(newSelection);};const filteredAndSortedItems=React.useMemo(()=>{if(dataSource===\"airtable\"){return items.filter(item=>item.fields.Title.toLowerCase().includes(debouncedSearchTerm.toLowerCase())).sort((a,b)=>{const aSelected=Array.isArray(value)&&value.includes(a.id);const bSelected=Array.isArray(value)&&value.includes(b.id);if(aSelected&&!bSelected)return-1;if(!aSelected&&bSelected)return 1;return 0;});}return items;},[items,debouncedSearchTerm,value,dataSource]);if(error)return /*#__PURE__*/_jsxs(motion.div,{style:{color:defaultState.color,...font},children:[\"Error: \",error]});return /*#__PURE__*/_jsxs(_Fragment,{children:[maxItemsReached&&/*#__PURE__*/_jsxs(\"div\",{style:{color:\"#ff4d4f\",fontSize:font.fontSize-2,fontFamily:font.fontFamily,margin:\"4px 0\"},children:[\"Limite m\\xe1ximo de \",maxSelectItems,\" itens atingido.\"]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:direction,gap:gap,width:\"100%\",overflowX:direction===\"row\"?\"scroll\":\"visible\",// Hide scrollbar but keep functionality\nmsOverflowStyle:\"none\",scrollbarWidth:\"none\",\"&::-webkit-scrollbar\":{display:\"none\"}},children:isLoading?Array.from({length:4}).map((_,index)=>/*#__PURE__*/_jsx(motion.div,{animate:{color:defaultState.color,backgroundColor:defaultState.background,border:defaultState.border.borderColor},style:{borderRadius,padding,userSelect:\"none\",flexShrink:0,...font},children:/*#__PURE__*/_jsx(\"div\",{style:{height:\"24px\",width:\"240px\"}})},index)):/*#__PURE__*/_jsx(_Fragment,{children:dataSource===\"airtable\"?/*#__PURE__*/_jsx(_Fragment,{children:filteredAndSortedItems.map(item=>{const isSelected=selectionMode===\"single\"?value===item.id:Array.isArray(value)&&value.includes(item.id);// Verificar se pode selecionar mais itens\nconst isSelectable=isSelected||!maxSelectItems||Array.isArray(value)&&value.length<maxSelectItems;return /*#__PURE__*/_jsx(motion.div,{onTap:()=>toggleItem(item.id),animate:{color:isSelected?selectedState.color:defaultState.color,backgroundColor:isSelected?selectedState.background:defaultState.background,border:isSelected?`${selectedState.border.borderWidth}px ${selectedState.border.borderStyle} ${selectedState.border.borderColor}`:`${defaultState.border.borderWidth}px ${defaultState.border.borderStyle} ${defaultState.border.borderColor}`,opacity:isSelectable?1:.5},style:{cursor:isSelectable?\"pointer\":\"not-allowed\",borderRadius,padding,userSelect:\"none\",flexShrink:0,...font},children:item.fields.Title},item.id);})}):/*#__PURE__*/_jsx(_Fragment,{children:filteredAndSortedItems.map(item=>{const isSelected=selectionMode===\"single\"?value===item.id:Array.isArray(value)&&value.includes(item.id);// Verificar se pode selecionar mais itens\nconst isSelectable=isSelected||!maxSelectItems||Array.isArray(value)&&value.length<maxSelectItems;return /*#__PURE__*/_jsx(motion.div,{onTap:()=>toggleItem(item.id),animate:{color:isSelected?selectedState.color:defaultState.color,backgroundColor:isSelected?selectedState.background:defaultState.background,border:isSelected?`${selectedState.border.borderWidth}px ${selectedState.border.borderStyle} ${selectedState.border.borderColor}`:`${defaultState.border.borderWidth}px ${defaultState.border.borderStyle} ${defaultState.border.borderColor}`,opacity:isSelectable?1:.5},style:{cursor:isSelectable?\"pointer\":\"not-allowed\",borderRadius,padding,userSelect:\"none\",flexShrink:0,...font},children:item[fieldShow]},item.id);})})})}),counterOptions.showCounter&&/*#__PURE__*/_jsxs(\"div\",{style:{color:counterOptions.color,...counterOptions.font},children:[\"Selected \",Array.isArray(value)?value.length:1,\" \",maxSelectItems?`/ ${maxSelectItems} (max)`:`/ ${items.length}`]})]});},[items]);// Renderização condicional dependendo se está dentro de um React Hook Form ou não\nif(isFormContextAvailable){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:gap},children:[showSearch&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[/*#__PURE__*/_jsx(\"input\",{value:searchInputValue,onChange:e=>{setSearchInputValue(e.target.value);},type:\"search\",placeholder:\"Pesquisar...\",style:{height:\"48px\",padding:searchPadding,paddingRight:\"32px\",paddingLeft:\"12px\",borderRadius,border:focusBorder?`${focusBorder.borderWidth}px ${focusBorder.borderStyle} ${focusBorder.borderColor}`:`${defaultState.border.borderWidth}px ${defaultState.border.borderStyle} ${defaultState.border.borderColor}`,outline:\"none\",fontSize:font.fontSize,fontFamily:font.fontFamily,color:defaultState.color,backgroundColor:defaultState.background,width:\"100%\",boxSizing:\"border-box\",transition:\"all 0.2s ease\"}}),searchIcon]}),/*#__PURE__*/_jsx(Controller,{name:name,control:formContext.control,defaultValue:undefined,render:({field})=>/*#__PURE__*/_jsx(SelectComponent,{value:field.value,onChange:newValue=>{field.onChange(newValue);}})})]});}// Fallback para uso sem React Hook Form\nreturn /*#__PURE__*/_jsx(SelectComponent,{value:[],onChange:newValue=>onSelect?.(newValue)});}RHFSearchSelect.defaultProps={name:\"library\",font:{fontSize:14,fontFamily:\"Inter\"},defaultState:{color:\"#000000\",background:\"#FFFFFF\",border:{borderWidth:1,borderStyle:\"solid\",borderColor:\"rgba(0, 0, 0, 0.1)\"}},selectedState:{color:\"#FFFFFF\",background:\"#0099FF\",border:{borderWidth:2,borderStyle:\"solid\",borderColor:\"#0099FF\"}},borderRadius:\"8px\",padding:\"12px\",tableName:\"cursos\",direction:\"row\",gap:10,showSearch:true,counterOptions:{showCounter:true,color:\"#666666\",font:{fontSize:12,fontFamily:\"Inter\"}},focusBorder:{borderWidth:2,borderStyle:\"solid\",borderColor:\"#0099FF\"},searchPadding:\"12px 16px\",filterConditions:[],dataSource:\"airtable\",maxSelectItems:0,selectionMode:\"multiple\"};addPropertyControls(RHFSearchSelect,{name:{type:ControlType.String,title:\"Name Form\",description:\"Name of the form field\"},dataSource:{type:ControlType.Enum,title:\"Data Source\",options:[\"airtable\",\"apiFeux\"],optionTitles:[\"Airtable\",\"API Feux\"],defaultValue:\"airtable\"},tableName:{type:ControlType.String,title:\"Table Name\",hidden:props=>props.dataSource!==\"airtable\"},apiFeuxEndpoint:{type:ControlType.String,title:\"API Feux Endpoint\",hidden:props=>props.dataSource!==\"apiFeux\"},dataKey:{type:ControlType.String,title:\"Data Key\",hidden:props=>props.dataSource!==\"apiFeux\"},fieldShow:{type:ControlType.String,title:\"Field Show\",hidden:props=>props.dataSource!==\"apiFeux\"},showSearch:{type:ControlType.Boolean,title:\"Show Search\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"row\",\"column\"],optionTitles:[\"Row\",\"Column\"],defaultValue:\"row\"},focusBorder:{type:ControlType.Border,title:\"Focus Border\",defaultValue:{borderWidth:2,borderStyle:\"solid\",borderColor:\"#0099FF\"}},searchPadding:{type:ControlType.Padding,title:\"Search Padding\",defaultValue:\"12px 16px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:10,min:0,max:100,unit:\"px\",step:1,displayStepper:true},font:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1}},defaultState:{type:ControlType.Object,title:\"Default State\",controls:{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#333\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000\"},border:{type:ControlType.Border,title:\"Border\",defaultValue:\"#222\"}}},selectedState:{type:ControlType.Object,title:\"Selected State\",controls:{color:{type:ControlType.Color,title:\"Color\"},background:{type:ControlType.Color,title:\"Background\"},border:{type:ControlType.Border,title:\"Border\"}}},borderRadius:{type:ControlType.BorderRadius,title:\"Radius\"},padding:{type:ControlType.Padding,title:\"Padding\"},onSelect:{type:ControlType.EventHandler,title:\"On Select\"},counterOptions:{type:ControlType.Object,title:\"Counter Options\",controls:{showCounter:{type:ControlType.Boolean,title:\"Show Counter\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},color:{type:ControlType.Color,title:\"Color\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\"}}},filterConditions:{type:ControlType.Array,title:\"Filter Conditions\",control:{type:ControlType.Object,controls:{fieldName:{title:\"Field Name\",type:ControlType.String},fieldValue:{title:\"Field Value\",type:ControlType.String}}},defaultValue:[]},maxSelectItems:{type:ControlType.Number,title:\"Max Selectable Items\",defaultValue:0,min:0,step:1,displayStepper:true,description:\"0 = sem limite\"},selectionMode:{type:ControlType.Enum,title:\"Selection Mode\",options:[\"single\",\"multiple\"],optionTitles:[\"Single\",\"Multiple\"],defaultValue:\"multiple\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RHFSearchSelect\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"50\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"6WAKG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,eAAa,gBAAc,eAAa,UAAQ,gBAAc,YAAU,UAAQ,YAAU,WAAS,YAAU,MAAI,aAAW,iBAAe,cAAY,mBAAiB,aAAW,kBAAgB,iBAAe,gBAAc,YAAY,EAAW,CAAC,EAAM,GAAUA,EAAS,EAAE,CAAC,CAAM,CAAC,EAAU,GAAcA,EAAS,GAAM,CAAM,CAAC,EAAM,GAAUA,EAAS,KAAK,CAAM,CAAC,EAAoB,GAAwBA,EAAS,GAAG,CAAM,CAAC,EAAgB,GAAoBA,EAAS,GAAM,CAC5hB,EAAY,GAAgB,CAAO,EAAuB,CAAC,CAAC,EAAkB,EAAS,EAAa,SAAS,GAAG,EAAa,OAC9H,CAAC,EAAiB,GAAqBA,EAAS,GAAG,CACxD,MAAc,CAAC,IAAM,EAAM,eAAe,CAAC,EAAuB,EAAiB,EAAG,IAAI,CACzF,UAAU,aAAa,EAAM,EAAG,CAAC,EAAiB,CAAC,CAAC,MAAc,EAAkB,SAAS,CAAoB,GAAnB,EAAa,GAAK,CAAI,EAAS,CACkoB,EAAjvB,IAAa,WAAW,CAAC,CAAC,GAAG,IAAI,OAAO,CAAC,MAAM,SAAS,MAAM,oBA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