{"version":3,"file":"Search_Engine.CugvD7XC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/2NA62OYaQuIzGJArPeGr/VWc7JF4BGvISbGhHOshD/Search_Engine.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const hosts=[\"ru-ibe.tlintegration.ru\",\"ibe.tlintegration.ru\",\"ibe.tlintegration.com\"];const brandTexts=[\"Бронирование номеров\",\"Гарантированное заселение\",\"TravelLine: Platform\"];/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 140\n */export default function TravelLineSearch(props){const{bottomRadius,horizontalPadding,style}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;React.useEffect(()=>{if(isCanvas)return;const w=window;const q=[[\"setContext\",\"TL-INT-teremahotel-ru_2026-08-18\",\"ru\"],[\"embed\",\"search-form\",{container:\"tl-search-form\"}]];const t=w.travelline=w.travelline||{};const ti=t.integration=t.integration||{};ti.__cq=ti.__cq?ti.__cq.concat(q):q;if(ti.__loader)return;ti.__loader=true;const d=document;const target=d.head||d.body;function load(remainingHosts){if(!remainingHosts.length)return;const script=d.createElement(\"script\");script.type=\"text/javascript\";script.async=true;script.src=`https://${remainingHosts[0]}/integration/loader.js`;const retry=()=>{if(!w.TL){script.parentNode?.removeChild(script);load(remainingHosts.slice(1));}};script.onerror=retry;script.onload=retry;target.appendChild(script);}load(hosts);},[isCanvas]);React.useEffect(()=>{if(isCanvas)return;const root=document.getElementById(\"tl-search-form\");if(!root)return;const normalize=text=>(text||\"\").replace(/\\s+/g,\" \").trim();const makeBrandTextDark=()=>{const elements=Array.from(root.querySelectorAll(\"*\"));brandTexts.forEach(brandText=>{const match=elements.filter(element=>normalize(element.textContent).includes(brandText)).sort((a,b)=>normalize(a.textContent).length-normalize(b.textContent).length)[0];if(!match)return;const nodes=[match,...match.querySelectorAll(\"*\")];nodes.forEach(node=>{node.style.setProperty(\"color\",\"#1F2A22\",\"important\");node.style.setProperty(\"background-color\",\"transparent\",\"important\");node.style.setProperty(\"text-shadow\",\"none\",\"important\");});});};makeBrandTextDark();const observer=new MutationObserver(makeBrandTextDark);observer.observe(root,{childList:true,subtree:true});const stopObserver=window.setTimeout(()=>observer.disconnect(),15e3);return()=>{observer.disconnect();window.clearTimeout(stopObserver);};},[isCanvas]);return /*#__PURE__*/_jsxs(\"div\",{className:\"tl-search-shell\",style:{...style,boxSizing:\"border-box\",width:\"100%\",minHeight:136,overflow:\"visible\",background:\"#FFFFFF\",border:\"none\",borderRadius:`0 0 ${bottomRadius}px ${bottomRadius}px`,boxShadow:\"none\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .tl-search-shell,\n                .tl-search-shell * {\n                    box-sizing: border-box;\n                    box-shadow: none !important;\n                    text-shadow: none !important;\n                }\n\n                .tl-search-shell #tl-search-form {\n                    min-height: 112px;\n                    color: #1F2A22 !important;\n                    font-family: Arial, sans-serif !important;\n                }\n\n                .tl-search-shell #tl-search-form label,\n                .tl-search-shell #tl-search-form span,\n                .tl-search-shell #tl-search-form p,\n                .tl-search-shell #tl-search-form input,\n                .tl-search-shell #tl-search-form select,\n                .tl-search-shell #tl-search-form textarea,\n                .tl-search-shell #tl-search-form button {\n                    color: #1F2A22 !important;\n                    font-family: Arial, sans-serif !important;\n                }\n\n                .tl-search-shell #tl-search-form input::placeholder,\n                .tl-search-shell #tl-search-form textarea::placeholder {\n                    color: #6B746D !important;\n                    opacity: 1;\n                }\n\n                .tl-search-shell #tl-search-form svg {\n                    color: #667B6A !important;\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{id:\"tl-search-form\",style:{minHeight:112,padding:`0 ${horizontalPadding}px`,overflow:\"visible\"},children:isCanvas&&/*#__PURE__*/_jsx(\"div\",{style:{paddingTop:42,color:\"#1F2A22\",fontFamily:\"Arial, sans-serif\",textAlign:\"center\"},children:\"Форма TravelLine появится после публикации\"})})]});}TravelLineSearch.defaultProps={bottomRadius:28,horizontalPadding:30};addPropertyControls(TravelLineSearch,{bottomRadius:{type:ControlType.Number,title:\"Скругление снизу\",min:0,max:60,unit:\"px\"},horizontalPadding:{type:ControlType.Number,title:\"Отступы\",min:0,max:80,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TravelLineSearch\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1200\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"140\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Search_Engine.map"],"mappings":"sMAKG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,eAAa,oBAAkB,SAAO,EAAY,EAAS,EAAa,QAAQ,IAAI,EAAa,OAAowD,OAA7vD,MAAoB,CAAC,GAAG,EAAS,OAAO,IAAM,EAAE,EAAa,EAAE,CAAC,CAAC,aAAa,mCAAmC,IAAI,EAAE,CAAC,QAAQ,cAAc,CAAC,UAAU,gBAAgB,CAAC,CAAC,EAAQ,EAAE,EAAE,WAAW,EAAE,YAAY,CAAC,EAAQ,EAAG,EAAE,YAAY,EAAE,aAAa,CAAC,EAAsC,GAApC,EAAG,KAAK,EAAG,KAAK,EAAG,KAAK,OAAO,CAAC,EAAE,EAAK,EAAG,SAAS,OAAO,EAAG,SAAS,GAAK,IAAM,EAAE,SAAe,EAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAK,EAAe,CAAC,GAAG,CAAC,EAAe,OAAO,OAAO,IAAM,EAAO,EAAE,cAAc,QAAQ,EAAE,EAAO,KAAK,kBAAkB,EAAO,MAAM,GAAK,EAAO,IAAI,WAAW,EAAe,GAAG,wBAAwB,IAAM,MAAU,CAAK,EAAE,KAAI,EAAO,YAAY,YAAY,CAAM,EAAE,EAAK,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