{"version":3,"file":"shared-lib.BIws-ktK.mjs","names":["useState","fonts","css","className","__esmMin","init_ssg_sandbox_shims","window","_e","p","c","init_jsx_runtime","init_npm_react_18_3_1","ce","addPropertyControls","fontStore","RenderTarget","ControlType","init_framer_CN96F41L","CookieConsent","props","visible","setVisible","shown","setShown","saved","KEY","t","choose","w","g","value","onCanvas","preview","open","title","style","text","linkHref","linkLabel","btn","acceptLabel","declineLabel","primary","init_CookieConsent","fonts$1","css$1","className$1","init_AD9ccDIfc","fonts","css","className","init_QCyqu8YLE","metadata","init_siteMetadata"],"sources":["https:/framerusercontent.com/modules/uDBrLd7JT0G2qaQk5WUm/smVxnf8N3rttpxgi15Tt/CookieConsent.js","https:/framerusercontent.com/modules/OzHS5dNEXQcmUYbOIqLQ/rBP3rYnWbDLoaG0Xhuk9/AD9ccDIfc.js","https:/framerusercontent.com/modules/ajiPHE2i4WRnFV7rKstW/nOYT5AMZfcFRlER3ReF1/QCyqu8YLE.js","https:/framerusercontent.com/modules/ffor9UB76WAtg45fYUIM/rkXuBHwwgfYXq9HRoE3o/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useState}from\"react\";const KEY=\"tankerfy-cookie-consent\";/**\n * Cookie consent banner. Shows until the visitor chooses; the choice is saved in localStorage.\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function CookieConsent(props){const{title,text,linkLabel,linkHref,acceptLabel,declineLabel,preview,style}=props;const[visible,setVisible]=useState(false);const[shown,setShown]=useState(false);useEffect(()=>{let saved=null;try{saved=window.localStorage.getItem(KEY);}catch(e){}if(!saved){setVisible(true);const t=setTimeout(()=>setShown(true),700);return()=>clearTimeout(t);}},[]);const choose=value=>{try{window.localStorage.setItem(KEY,JSON.stringify({value,date:new Date().toISOString()}));}catch(e){}const w=window;if(typeof w.gtag===\"function\"){const g=value===\"all\"?\"granted\":\"denied\";w.gtag(\"consent\",\"update\",{analytics_storage:g,ad_storage:g,ad_user_data:g,ad_personalization:g});}w.dataLayer=w.dataLayer||[];w.dataLayer.push({event:\"cookie_consent\",cookie_consent:value});setShown(false);setTimeout(()=>setVisible(false),300);};const onCanvas=RenderTarget.current()===RenderTarget.canvas;if(!visible&&!preview&&!onCanvas)return null;const open=shown||preview||onCanvas;return /*#__PURE__*/_jsxs(\"div\",{role:\"dialog\",\"aria-label\":title,style:{...style,width:\"100%\",boxSizing:\"border-box\",background:\"rgba(36, 36, 36, 0.96)\",backdropFilter:\"blur(12px)\",WebkitBackdropFilter:\"blur(12px)\",border:\"1px solid #3E3E3E\",borderRadius:14,padding:20,boxShadow:\"0 20px 50px rgba(0,0,0,0.5)\",color:\"#FFFFFF\",fontFamily:\"Inter, sans-serif\",display:\"flex\",flexDirection:\"column\",gap:14,opacity:open?1:0,transform:open?\"translateY(0)\":\"translateY(16px)\",transition:\"opacity 0.3s ease, transform 0.3s ease\",pointerEvents:open?\"auto\":\"none\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:10},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:8,height:8,borderRadius:99,background:\"#C53F22\",flexShrink:0}}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:15,fontWeight:600},children:title})]}),/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:13,lineHeight:1.55,color:\"#B0B0B0\"},children:[text,\" \",/*#__PURE__*/_jsx(\"a\",{href:linkHref,style:{color:\"#FFFFFF\",textDecoration:\"underline\",textUnderlineOffset:3},children:linkLabel})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:10,flexWrap:\"wrap\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>choose(\"all\"),style:btn(true),children:acceptLabel}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>choose(\"necessary\"),style:btn(false),children:declineLabel})]})]});}function btn(primary){return{flex:\"1 1 auto\",minHeight:40,padding:\"10px 16px\",borderRadius:8,border:primary?\"1px solid #C53F22\":\"1px solid #3E3E3E\",background:primary?\"#C53F22\":\"transparent\",color:\"#FFFFFF\",fontFamily:\"Inter, sans-serif\",fontSize:14,fontWeight:600,cursor:\"pointer\"};}CookieConsent.defaultProps={title:\"Файли cookie\",text:\"Ми використовуємо файли cookie, щоб сайт працював коректно, а також для аналітики.\",linkLabel:\"Політика cookie\",linkHref:\"/legal#cookies\",acceptLabel:\"Прийняти всі\",declineLabel:\"Лише необхідні\",preview:false};addPropertyControls(CookieConsent,{title:{type:ControlType.String,title:\"Title\"},text:{type:ControlType.String,title:\"Text\",displayTextArea:true},linkLabel:{type:ControlType.String,title:\"Link Label\"},linkHref:{type:ControlType.String,title:\"Link URL\"},acceptLabel:{type:ControlType.String,title:\"Accept\"},declineLabel:{type:ControlType.String,title:\"Decline\"},preview:{type:ControlType.Boolean,title:\"Always Show\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CookieConsent\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CookieConsent.map","// Generated by Framer (0918601)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-iFqaD .framer-styles-preset-vn2fa3:not(.rich-text-wrapper), .framer-iFqaD .framer-styles-preset-vn2fa3.rich-text-wrapper a { --framer-link-hover-text-color: #ffffff; --framer-link-text-color: #a0a0a0; --framer-link-text-decoration: none; transition-delay: 0s; transition-duration: 0.2s; transition-property: color; transition-timing-function: cubic-bezier(0.44, 0, 0.56, 1); }\"];export const className=\"framer-iFqaD\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (0918601)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-iUknk .framer-styles-preset-1dh6r6u:not(.rich-text-wrapper), .framer-iUknk .framer-styles-preset-1dh6r6u.rich-text-wrapper a { --framer-link-current-text-color: #c53f22; --framer-link-hover-text-color: #c53f22; --framer-link-text-color: #ffffff; --framer-link-text-decoration: none; transition-delay: 0s; transition-duration: 0.2s; transition-property: color; transition-timing-function: cubic-bezier(0.44, 0, 0.56, 1); }\"];export const className=\"framer-iUknk\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (0918601)\nexport default function metadata(params,contentLocale){return{description:\"CRM, бронювання, заявки, транспорт і секції цистерн в одному робочому контурі. Дізнайтеся, як Tankerfy може підтримати процеси вашої компанії.\",robots:\"max-image-preview:large\",title:\"Tankerfy — платформа для продажів і логістики рідких вантажів\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,qNAIG,SAAwBkB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,YAAU,WAAS,cAAY,eAAa,UAAQ,SAAOC,EAAW,CAACC,EAAQC,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