{"version":3,"file":"Chat_support.DoQ5KeKA.mjs","names":["React.useId","React.useState"],"sources":["https:/framerusercontent.com/modules/DWU2KgQ70dZifgvezAU9/9DilLc5EicNkGxNs4oSH/Chat_support.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function UltraShipSupportBubble(props){const{websiteId,labelText,bottom,right,ringColor,centerColor,textColor,iconColor,size,rotateText}=props;const pathId=React.useId().replace(/:/g,\"\");const[responsiveSize,setResponsiveSize]=React.useState(size);React.useEffect(()=>{const updateResponsiveSize=()=>{if(typeof window===\"undefined\")return;const width=window.innerWidth;if(width<=540){setResponsiveSize(Math.max(68,size*.72));}else if(width<=900){setResponsiveSize(Math.max(82,size*.86));}else{setResponsiveSize(size);}};updateResponsiveSize();window.addEventListener(\"resize\",updateResponsiveSize);return()=>{window.removeEventListener(\"resize\",updateResponsiveSize);};},[size]);React.useEffect(()=>{if(typeof window===\"undefined\")return;window.$crisp=window.$crisp||[];window.CRISP_WEBSITE_ID=websiteId;const hideCrispLauncher=()=>{window.$crisp.push([\"do\",\"chat:hide\"]);};const hideAfterClose=()=>{setTimeout(()=>{window.$crisp.push([\"do\",\"chat:hide\"]);},250);};if(!document.getElementById(\"crisp-chat-script\")){const script=document.createElement(\"script\");script.src=\"https://client.crisp.chat/l.js\";script.async=true;script.id=\"crisp-chat-script\";document.head.appendChild(script);}const styleId=\"ultraship-hide-crisp-launcher\";if(!document.getElementById(styleId)){const style=document.createElement(\"style\");style.id=styleId;style.innerHTML=`\n                .crisp-client [data-testid=\"chat-bubble\"],\n                .crisp-client .cc-unoo,\n                .crisp-client .cc-1brb6,\n                .crisp-client .cc-1xry,\n                .crisp-client .cc-kv6t {\n                    display: none !important;\n                    opacity: 0 !important;\n                    visibility: hidden !important;\n                    pointer-events: none !important;\n                }\n            `;document.head.appendChild(style);}window.$crisp.push([\"safe\",true]);window.$crisp.push([\"on\",\"session:loaded\",hideCrispLauncher]);window.$crisp.push([\"on\",\"chat:closed\",hideAfterClose]);const initialHideTimer=window.setTimeout(hideCrispLauncher,1e3);return()=>{window.clearTimeout(initialHideTimer);};},[websiteId]);const openChat=()=>{if(typeof window===\"undefined\")return;window.$crisp=window.$crisp||[];window.$crisp.push([\"do\",\"chat:show\"]);window.$crisp.push([\"do\",\"chat:open\"]);};return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"aria-label\":\"Chat with Us\",onClick:openChat,style:{position:\"fixed\",bottom:`${bottom}px`,right:`${right}px`,width:`${responsiveSize}px`,height:`${responsiveSize}px`,border:\"none\",background:\"transparent\",padding:0,margin:0,cursor:\"pointer\",zIndex:9999,userSelect:\"none\",fontFamily:\"Inter, sans-serif\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,borderRadius:\"50%\",border:`1.5px solid ${ringColor}`,background:\"radial-gradient(circle at center, rgba(10,55,82,0.08), rgba(10,55,82,0.02))\",boxShadow:\"0 10px 30px rgba(10,55,82,0.12), 0 0 0 1px rgba(15,172,243,0.08)\",backdropFilter:\"blur(4px)\",WebkitBackdropFilter:\"blur(4px)\",animation:rotateText?\"ultraSpin 18s linear infinite\":\"none\"},children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 100 100\",width:\"100%\",height:\"100%\",style:{position:\"absolute\",inset:0},children:[/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsx(\"path\",{id:pathId,d:\"M 50,50 m -37,0 a 37,37 0 1,1 74,0 a 37,37 0 1,1 -74,0\"})}),/*#__PURE__*/_jsx(\"text\",{fill:textColor,fontSize:\"10.4\",fontWeight:\"600\",letterSpacing:\"1.2\",style:{fontFamily:\"Inter, sans-serif\",textTransform:\"uppercase\"},children:/*#__PURE__*/_jsx(\"textPath\",{href:`#${pathId}`,startOffset:\"50%\",textAnchor:\"middle\",children:labelText})})]})}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",width:`${responsiveSize*.5}px`,height:`${responsiveSize*.5}px`,borderRadius:\"50%\",background:centerColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0 8px 24px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.08)\",border:\"1px solid rgba(255,255,255,0.08)\"},children:/*#__PURE__*/_jsx(\"svg\",{width:responsiveSize*.22,height:responsiveSize*.22,viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 5H20C20.5523 5 21 5.44772 21 6V15C21 15.5523 20.5523 16 20 16H13L8 20V16H4C3.44772 16 3 15.5523 3 15V6C3 5.44772 3.44772 5 4 5Z\",stroke:iconColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})}),/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes ultraSpin {\n                    from { transform: rotate(0deg); }\n                    to { transform: rotate(360deg); }\n                }\n            `})]});}UltraShipSupportBubble.defaultProps={websiteId:\"22cb0ec8-ca35-4fd9-821a-95e5efe8cd36\",labelText:\"CHAT WITH US\",bottom:28,right:28,ringColor:\"rgba(15,172,243,0.28)\",centerColor:\"#0a3752\",textColor:\"#0facf3\",iconColor:\"#ffffff\",size:96,rotateText:true};addPropertyControls(UltraShipSupportBubble,{websiteId:{type:ControlType.String,title:\"Website ID\"},labelText:{type:ControlType.String,title:\"Text\"},size:{type:ControlType.Number,title:\"Size\",min:60,max:140,step:1},bottom:{type:ControlType.Number,title:\"Bottom\",min:0,max:200,step:1},right:{type:ControlType.Number,title:\"Right\",min:0,max:200,step:1},rotateText:{type:ControlType.Boolean,title:\"Rotate\"},ringColor:{type:ControlType.Color,title:\"Ring\"},centerColor:{type:ControlType.Color,title:\"Center\"},textColor:{type:ControlType.Color,title:\"Text\"},iconColor:{type:ControlType.Color,title:\"Icon\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"react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