1import{ab as S,f as E,aD as B,e1 as v,n as k,C as l,I as f,K as g,F as N,E as T,a1 as C,J as b,u as p,D as u,N as r,aa as I,Y as _,S as z,j as y,a4 as h,B as R,A as W,t as A,z as D}from"./index-Bu8mgjN5.js";function K(){window.EcalWidget||(function(e,o,a,d,t,s,c){t=t||"EcalWidget",e.EcalWidgetObject=t,e[t]=e[t]||function(){(e[t].q=e[t].q||[]).push(arguments)},s=o.createElement(a),c=o.getElementsByTagName(a)[0],e[t].u=d,s.async=1,s.src=d,c.parentNode.insertBefore(s,c)})(window,document,"script",`//sync.ecal.com/button/v1/main.js?t=${Date.now()}`)}function V(e){if(!window)return;typeof window<"u"&&K(),clearTimeout(window.ecalSyncRenderTimeout);function o(){const a=document.getElementsByClassName("ecal-sync-widget-button");if(window.EcalWidget&&a.length>0&&e){window.EcalWidget("destroy"),window.EcalWidget("boot",{apiKey:e});return}window.renderEcalSyncTO=setTimeout(o,500)}window.ecalSyncRenderTimeout=setTimeout(o,500)}const $={key:1,class:"lg:block button-label"},j={key:2,class:"hidden lg:block button-label"},q={key:3,class:"button-label"},x=S({__name:"EcalButton",props:{buttonId:{type:String,default:""},isButtonNoStyle:{type:Boolean,default:!0},noStyling:{type:Boolean,default:!1},isResponsive:{type:Boolean,default:!0},buttonSize:{type:String,default:"small"},isNoIcon:{type:Boolean,default:!1}},setup(e){const o=E(),a=e,{isDesktopView:d,isTabletView:t}=B(),s=y(()=>d.value?18:24),c=y(()=>a.isResponsive?s:18),i=h("ecal-button"),m=y(()=>{var n;return o.isAddonEnabledForCurrentSite(W.ECAL_SETTINGS)&&!A((n=i==null?void 0:i.value)==null?void 0:n.apiKey)});return v(()=>{m.value&&k(()=>{var n;V((n=i==null?void 0:i.value)==null?void 0:n.apiKey)})}),(n,F)=>{const w=R("client-only");return m.value?(l(),f(w,{key:0},{default:g(()=>[N(z,_(n.$attrs,{class:"ecal-sync-widget-button","data-ecal-widget-id":e.buttonId,"no-styling":e.noStyling,primary:"",size:e.buttonSize,"data-ecal-no-styling":""}),{default:g(()=>[T("div",{class:I(["slot-container items-center gap-1",{flex:!e.isNoIcon}])},[e.isNoIcon?b("",!0):(l(),f(C,{key:0,icon:"calendarAdd",size:c.value,class:"icon-btn"},null,8,["size"])),e.isResponsive&&p(t)?(l(),u("span",$,r(n.$t("ecal_settings.button_name")),1)):e.isResponsive&&!p(t)?(l(),u("span",j,r(n.$t("ecal_settings.button_name")),1)):(l(),u("span",q,r(n.$t("ecal_settings.button_name")),1))],2)]),_:1},16,["data-ecal-widget-id","no-styling","size"])]),_:1})):b("",!0)}}}),P=D(x,[["__scopeId","data-v-29105eec"]]);export{P as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.