1import{u as _,a as k}from"./sViaLXmE.js";import{X as b,E as m,a4 as C,c as d,b as a,o as r,e as t,t as i,f as e,A as f}from"#entry";const g="data:image/svg+xml,%3csvg%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_110_32351)'%3e%3cpath%20d='M19.1284%2050.9016C19.1284%2050.9016%2026.8186%2045.8632%2030.0286%2041.704C33.782%2036.8407%2039.5659%2030.4623%2039.5659%2030.4623C39.5659%2030.4623%2050.2825%2034.851%2060.0032%2035.5716C68.8042%2036.224%2071.7258%2031.3792%2080.4411%2032.5064C93.0695%2034.1397%20100.881%2050.9016%20100.881%2050.9016'%20stroke='%238E8E8E'%20stroke-width='6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M100.881%2074.7944V58.444V46.1812C100.881%2023.6059%2082.5797%205.30505%2060.0045%205.30505V5.30505C37.4292%205.30505%2019.1284%2023.6059%2019.1284%2046.1812V70.7068C19.1284%2093.2821%2037.4292%20111.583%2060.0045%20111.583V111.583'%20stroke='%238E8E8E'%20stroke-width='6'%20stroke-linecap='round'/%3e%3cpath%20d='M100.881%2058.4459H103.137C107.693%2058.4459%20111.386%2062.1391%20111.386%2066.6948C111.386%2071.2505%20107.693%2074.9436%20103.137%2074.9436H100.881V58.4459Z'%20fill='%238E8E8E'%20stroke='%238E8E8E'%20stroke-width='6'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.1318%2058.4459H16.876C12.3203%2058.4459%208.62717%2062.1391%208.62717%2066.6948C8.62717%2071.2505%2012.3203%2074.9436%2016.876%2074.9436H19.1318V58.4459Z'%20fill='%238E8E8E'%20stroke='%238E8E8E'%20stroke-width='6'%20stroke-linejoin='round'/%3e%3crect%20x='-4.20854'%20y='4.20854'%20width='8.41708'%20height='8.41708'%20rx='4.20854'%20transform='matrix(-1%200%200%201%2064.0915%20103.166)'%20fill='%238E8E8E'%20stroke='%238E8E8E'%20stroke-width='8.41708'/%3e%3ccircle%20cx='45'%20cy='60.6985'%20r='7.5'%20fill='%238E8E8E'/%3e%3ccircle%20cx='75'%20cy='60.6985'%20r='7.5'%20fill='%238E8E8E'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_110_32351'%3e%3crect%20width='120'%20height='120'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",x={key:1,class:"tiptap-chat__content"},w={class:"tiptap-chat__text"},y={class:"tiptap-chat__title"},v={class:"tiptap-chat__description"},M=b({__name:"TipTapChat",props:{node:{}},setup(u){const p=u,{openHappyDeskChat:s}=k(),{ensureWidget:h,disposeWidget:E}=_();m(()=>h()),C(()=>{E()});const n=d(()=>p.node.attrs?.chat||{buttonText:"",title:"",description:""}),l=d(()=>p.node.attrs?.variant??"card");return(V,o)=>(r(),a("div",{class:f(["tiptap-chat",{"tiptap-chat--button":t(l)==="button"}])},[t(l)==="button"?(r(),a("button",{key:0,type:"button",class:"tiptap-chat__button-only constructor-button constructor-button--size-xl constructor-button--primary-full",onClick:o[0]||(o[0]=(...c)=>t(s)&&t(s)(...c))},i(t(n).buttonText),1)):(r(),a("div",x,[o[2]||(o[2]=e("img",{src:g,alt:"Ðконка помоÑи",class:"tiptap-chat__icon"},null,-1)),e("div",w,[e("p",y,i(t(n).title),1),e("p",v,i(t(n).description),1),e("button",{type:"button",class:"tiptap-chat__button constructor-button constructor-button--size-xl constructor-button--black-stroke",onClick:o[1]||(o[1]=(...c)=>t(s)&&t(s)(...c))},i(t(n).buttonText),1)])]))],2))}});export{M 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.