import{b}from"./settings.consts-C6F6lZ8o.js";import"./vendor-vueform-slider-CCH9_7pb.js";import{Q as f}from"./vendor-quill-8_n7c1MG.js";import{d as _,w as h,f as c,i as p,t as V,x as i,j as m}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{r as g,u as t}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as T}from"./vendor-vue-shared-DrzsEcag.js";import{u as v}from"./OrderForm--Em8u8hn.js";import{T as k}from"./Tab-CaYIC5iw.js";import{O as F}from"./field-settings.constants-BwuDQrPV.js";import"./admin-BM775jCq.js";import"./vendor-vue-runtime-dom-B2rky8vu.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./vendor-pinia-BSPefQhS.js";import"./vendor-axios-xsH4HHeE.js";import"./vendor-vue3-toastify-DBGjcIyK.js";/* empty css               */import"./vendor-vue3-html2pdf-KR020wX8.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";import"./vendor-quill-delta-CwiCUQUv.js";import"./vendor-fast-diff-BcPa4c3C.js";import"./vendor-lodash.clonedeep-n4QoNJEh.js";import"./vendor-lodash.isequal-B-4gbM--.js";import"./SidebarCollapseToolbar-DMeQTXRR.js";import"./EmbedPopup-BUj0yGgY.js";import"./useAppearanceStore-IzenP-G4.js";import"./vendor-vue-flow-CRbOssRZ.js";import"./Badge.vue_vue_type_script_setup_true_lang-D3oqtQF2.js";import"./ThemeToggle-a3yohy6x.js";/* empty css                */const x={class:"ccb-rich-editor"},y={key:0,class:"ccb-rich-editor__label"},E={class:"ccb-rich-editor__wrapper"},C=_({__name:"RichTextEditor",props:{modelValue:{default:""},label:{default:""},placeholder:{default:"Type here..."}},emits:["update:modelValue","change"],setup(u,{emit:a}){const r=u,s=a,n=[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{align:[]}],[{list:"ordered"},{list:"bullet"}],["blockquote","code-block"],["link"],["clean"]],d=g(r.modelValue||"");h(()=>r.modelValue,e=>{e!==d.value&&(d.value=e||"")});const o=e=>{s("update:modelValue",e),s("change",null,e)};return(e,l)=>(p(),c("div",x,[e.label?(p(),c("label",y,T(e.label),1)):V("",!0),i("div",E,[m(t(f),{content:d.value,"content-type":"html",placeholder:e.placeholder,toolbar:n,theme:"snow","onUpdate:content":o},null,8,["content","placeholder"])])]))}}),O={class:"ccb-order-form-field-editor"},$={class:"ccb-field-sidebar__body"},w={class:"ccb-field-sidebar__item"},B={class:"ccb-field-sidebar__item"},D={class:"ccb-field-sidebar__item"},ce=_({__name:"OrderFormFormattedText",setup(u){const{stringAttribute:a,updateAttribute:r,fieldWidth:s,updateFieldWidth:n}=v();return(d,o)=>(p(),c("div",O,[i("div",$,[i("div",w,[m(t(b),{label:"Title",placeholder:"Enter title",modelValue:t(a)("label"),onChange:o[0]||(o[0]=(e,l)=>t(r)("label",String(l||"")))},null,8,["modelValue"])]),i("div",B,[m(C,{label:"Text",placeholder:"Type here...",modelValue:t(a)("text"),onChange:o[1]||(o[1]=(e,l)=>t(r)("text",String(l||"")))},null,8,["modelValue"])]),i("div",D,[m(k,{items:t(F),modelValue:t(s),onChange:o[2]||(o[2]=(e,l)=>t(n)(l))},null,8,["items","modelValue"])])])]))}});export{ce as default};
//# sourceMappingURL=OrderFormFormattedText-wGCnPBwf.js.map
