import{o as t,c as o,a as r,T as f,r as g,k as b,q as v,E as i,D as x,M as y,d as k,t as _,Y as C}from"./Dih-x6DB.js";import{r as B}from"./C4oxJ0LS.js";import{t as M}from"./TJRof0_7.js";function V(e,a){return t(),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[r("path",{d:"M13.75 7h-3v5.296l1.943-2.048a.75.75 0 0 1 1.114 1.004l-3.25 3.5a.75.75 0 0 1-1.114 0l-3.25-3.5a.75.75 0 1 1 1.114-1.004l1.943 2.048V7h1.5V1.75a.75.75 0 0 0-1.5 0V7h-3A2.25 2.25 0 0 0 4 9.25v7.5A2.25 2.25 0 0 0 6.25 19h7.5A2.25 2.25 0 0 0 16 16.75v-7.5A2.25 2.25 0 0 0 13.75 7Z"})])}function Z(e,a){return t(),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[r("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM6.75 9.25a.75.75 0 0 0 0 1.5h4.59l-2.1 1.95a.75.75 0 0 0 1.02 1.1l3.5-3.25a.75.75 0 0 0 0-1.1l-3.5-3.25a.75.75 0 1 0-1.02 1.1l2.1 1.95H6.75Z","clip-rule":"evenodd"})])}function $(e,a){return t(),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[r("path",{"fill-rule":"evenodd",d:"M16.403 12.652a3 3 0 0 0 0-5.304 3 3 0 0 0-3.75-3.751 3 3 0 0 0-5.305 0 3 3 0 0 0-3.751 3.75 3 3 0 0 0 0 5.305 3 3 0 0 0 3.75 3.751 3 3 0 0 0 5.305 0 3 3 0 0 0 3.751-3.75Zm-2.546-4.46a.75.75 0 0 0-1.214-.883l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z","clip-rule":"evenodd"})])}function m(e,a){return t(),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[r("path",{"fill-rule":"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z","clip-rule":"evenodd"})])}function j(e,a){return t(),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[r("path",{"fill-rule":"evenodd",d:"M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm6.39-2.908a.75.75 0 0 1 .766.027l3.5 2.25a.75.75 0 0 1 0 1.262l-3.5 2.25A.75.75 0 0 1 8 12.25v-4.5a.75.75 0 0 1 .39-.658Z","clip-rule":"evenodd"})])}function A(e){return f(()=>{switch(e){case"check-circle":return B;case"check":return m;case"check-badge":return $;case"play-circle":return j;case"arrow-right-circle":return Z;case"arrow-down-on-square":return V;default:return m}}).value}const S={key:1,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},z={class:"relative bg-white w-[360px] sm:w-[800px] sm:h-[450px] mt-50"},I=["src"],D={__name:"Corporate",props:{data:Object,button:String},emits:["video-opened","video-closed"],setup(e,{emit:a}){const w=c=>A(c),l=g(!1),s=a;b(l,(c,n)=>{c&&s("video-opened"),n&&s("video-closed")});const h=()=>{l.value=!0,M("video",{location:"video-button",action:"click-video-button"})};return(c,n)=>{var d,u;return t(),o("div",null,[v(l)?(t(),o("div",{key:0,class:"fixed inset-0 bg-gray-900/95 z-20",onClick:n[0]||(n[0]=p=>l.value=!1)})):i("",!0),r("div",{class:C(["absolute group flex items-center justify-center bg-custom-blue-main text-gray-50 -mt-4 rounded-md cursor-pointer hover:bg-custom-blue-dark whitespace-nowrap w-32",e.button==="large"?"w-44 py-4 ml-20 sm:ml-24 text-md":"w-28 py-2 ml-24 sm:ml-64 text-sm"]),onClick:h},[e.data.buttonIcon?(t(),x(y(w(e.data.buttonIcon)),{key:0,class:"w-5 h-5 mr-1 group-hover:stroke-white"})):i("",!0),k(_(e.data.buttonLabel),1)],2),v(l)?(t(),o("div",S,[r("div",z,[r("iframe",{src:(u=(d=e.data)==null?void 0:d.buttonLink)==null?void 0:u.url,class:"w-full h-full p-1 bg-gray-900",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,I),r("button",{class:"absolute top-2 right-2 m-1.5 text-lg leading-none text-gray-900 hover:text-gray-500 bg-gray-50 rounded-full w-5 h-5 pb-1",onClick:n[1]||(n[1]=p=>l.value=!1)}," × ")])])):i("",!0)])}}},T=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));export{T as C,D as _,A as u};