{"version":3,"file":"Actions_Filter.BegG_1ln.mjs","names":[],"sources":["https:/framerusercontent.com/modules/LhyFOqHYhwpelI2B5nCj/BMiTj7urd3r7eaf60kWs/Actions_Filter.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// 1️⃣ [도기용 필터 오버라이드]\nexport function SanitaryFilter(Component){return props=>{useEffect(()=>{const cleanUpSelect=()=>{const selects=document.querySelectorAll(\"select\");selects.forEach(select=>{const isDogi=Array.from(select.options).some(opt=>opt.text.trim()===\"양변기\");if(!isDogi)return;const allowed=[\"All\",\"전체\",\"양변기\",\"세면기\",\"소변기 외\"];Array.from(select.options).forEach(opt=>{const text=opt.text.trim();if(text===\"All\"){opt.text=\"전체\";}else if(!allowed.includes(text)){opt.remove();}});});};cleanUpSelect();const observer=new MutationObserver(cleanUpSelect);observer.observe(document.body,{childList:true,subtree:true});return()=>observer.disconnect();},[]);return /*#__PURE__*/_jsx(Component,{...props});};}// 2️⃣ [수전용 필터 오버라이드]\nexport function FaucetFilter(Component){return props=>{useEffect(()=>{const cleanUpSelect=()=>{const selects=document.querySelectorAll(\"select\");selects.forEach(select=>{const isSujeon=Array.from(select.options).some(opt=>opt.text.trim()===\"세면수전\");if(!isSujeon)return;const allowed=[\"All\",\"전체\",\"세면수전\",\"샤워수전\",\"주방수전\"];Array.from(select.options).forEach(opt=>{const text=opt.text.trim();if(text===\"All\"){opt.text=\"전체\";}else if(!allowed.includes(text)){opt.remove();}});});};cleanUpSelect();const observer=new MutationObserver(cleanUpSelect);observer.observe(document.body,{childList:true,subtree:true});return()=>observer.disconnect();},[]);return /*#__PURE__*/_jsx(Component,{...props});};}// 3️⃣ [천장재용 필터 오버라이드]\nexport function CeilingFilter(Component){return props=>{useEffect(()=>{const cleanUpSelect=()=>{const selects=document.querySelectorAll(\"select\");selects.forEach(select=>{const isCheonjang=Array.from(select.options).some(opt=>opt.text.trim()===\"환풍기\");if(!isCheonjang)return;const allowed=[\"All\",\"전체\",\"환풍기\",\"천장재\"];Array.from(select.options).forEach(opt=>{const text=opt.text.trim();if(text===\"All\"){opt.text=\"전체\";}else if(!allowed.includes(text)){opt.remove();}});});};cleanUpSelect();const observer=new MutationObserver(cleanUpSelect);observer.observe(document.body,{childList:true,subtree:true});return()=>observer.disconnect();},[]);return /*#__PURE__*/_jsx(Component,{...props});};}// 4️⃣ [액세서리용 필터 오버라이드]\nexport function AccessoryFilter(Component){return props=>{useEffect(()=>{const cleanUpSelect=()=>{const selects=document.querySelectorAll(\"select\");selects.forEach(select=>{// '액세서리'라는 옵션이 있는 Select 박스인지 확인\nconst isAccessory=Array.from(select.options).some(opt=>opt.text.trim()===\"액세서리\");if(!isAccessory)return;// 화면에 남겨둘 소분류 항목들\nconst allowed=[\"All\",\"전체\",\"액세서리\",\"슬라이드바\",\"선반\",\"기타\"];Array.from(select.options).forEach(opt=>{const text=opt.text.trim();if(text===\"All\"){opt.text=\"전체\";}else if(!allowed.includes(text)){opt.remove()// 허용되지 않은 항목은 삭제\n;}});});};cleanUpSelect();const observer=new MutationObserver(cleanUpSelect);observer.observe(document.body,{childList:true,subtree:true});return()=>observer.disconnect();},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"AccessoryFilter\":{\"type\":\"reactHoc\",\"name\":\"AccessoryFilter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SanitaryFilter\":{\"type\":\"reactHoc\",\"name\":\"SanitaryFilter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FaucetFilter\":{\"type\":\"reactHoc\",\"name\":\"FaucetFilter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CeilingFilter\":{\"type\":\"reactHoc\",\"name\":\"CeilingFilter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Actions_Filter.map"],"mappings":"kHACA,SAAgB,EAAe,EAAU,CAAC,MAAO,KAAQ,MAA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