import{u as g}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{a as x}from"./EmbedPopup-D-ZgVQoP.js";import{u as S}from"./useAppearanceStore-IzenP-G4.js";import{d as D,e as a,f as i,t as r,i as s,x as c}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as l,a as P}from"./vendor-vue-shared-DrzsEcag.js";import{_ as B}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./vendor-vue-reactivity-CheHbvBM.js";import"./settings.consts-BmuAyinH.js";import"./admin-8MB3iCV_.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-vueform-slider-CCH9_7pb.js";import"./vendor-vue-flow-CRbOssRZ.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";const N={key:0,class:"ccb-confirmation-content"},O={key:0,class:"ccb-confirmation-notice"},I={class:"ccb-confirmation-notice__text"},V={class:"ccb-confirmation-preview__text"},Y={class:"ccb-confirmation-preview__title"},A={class:"ccb-confirmation-preview__subtitle"},F={key:0,class:"ccb-confirmation-preview__order ccb-text-m ccb-medium"},$={class:"ccb-confirmation-preview__buttons"},z={type:"button",class:"ccb-confirmation-preview__button ccb-confirmation-preview__button--light"},E={key:0,type:"button",class:"ccb-confirmation-preview__button ccb-confirmation-preview__button--primary"},G={key:1,type:"button",class:"ccb-confirmation-preview__button ccb-confirmation-preview__button--secondary"},L=["href"],T={key:1,class:"ccb-confirmation-preview__disabled-note ccb-text-s ccb-medium"},j=D({__name:"ConfirmationContent",setup(q){g(t=>({"8174ca70":y.value,"2497e64e":b.value,"63ea98b0":k.value,d4e517a8:w.value,"0b9c49ad":f.value,"3deb7d0b":h.value}));const p=S(),v=a(()=>{var n;const t=(n=p.getActivePreset)==null?void 0:n.desktop,o=t==null?void 0:t.colors;return o==null?void 0:o.data}),f=a(()=>{var o,n,u,_,d,m;const t=(o=v.value)==null?void 0:o.container;return((u=(n=t==null?void 0:t.data)==null?void 0:n.color)==null?void 0:u.value)??((d=(_=t==null?void 0:t.data)==null?void 0:_.value)==null?void 0:d.color)??((m=t==null?void 0:t.value)==null?void 0:m.color)??""}),w=a(()=>{var o,n,u,_,d,m;const t=(o=v.value)==null?void 0:o.border;return((u=(n=t==null?void 0:t.data)==null?void 0:n.color)==null?void 0:u.value)??((d=(_=t==null?void 0:t.data)==null?void 0:_.value)==null?void 0:d.color)??((m=t==null?void 0:t.value)==null?void 0:m.color)??""}),h=a(()=>{var o,n;const t=(o=v.value)==null?void 0:o.primary_color;return((n=t==null?void 0:t.data)==null?void 0:n.value)??(t==null?void 0:t.value)??""}),b=a(()=>{var o,n;const t=(o=v.value)==null?void 0:o.accent_color;return((n=t==null?void 0:t.data)==null?void 0:n.value)??(t==null?void 0:t.value)??""}),y=a(()=>`${b.value}30`),k=a(()=>`${b.value}30`),C=x(),e=a(()=>{var t;return(t=C.getSettings)==null?void 0:t.thankYouPage});return(t,o)=>e.value?(s(),i("div",N,[o[3]||(o[3]=c("div",{class:"ccb-confirmation-content__header ccb-text-l ccb-bold"}," Confirmation Page ",-1)),e.value.enable?r("",!0):(s(),i("div",O,[o[0]||(o[0]=c("div",{class:"ccb-confirmation-notice__icon"},[c("div",{class:"ccb-confirmation-notice__icon-inner"},[c("i",{class:"ccb-icon-Octicons"})])],-1)),c("div",I,l(e.value.complete_msg),1)])),e.value.enable?(s(),i("div",{key:1,class:P(["ccb-confirmation-preview",{disabled:!e.value.enable}])},[o[2]||(o[2]=c("div",{class:"ccb-confirmation-preview__icon"},[c("span",{class:"ccb-confirmation-preview__icon-inner"},[c("i",{class:"ccb-icon-Octicons"})])],-1)),c("div",V,[c("div",Y,l(e.value.title||"Thank you for your order!"),1),c("div",A,l(e.value.description||"Your order has been placed and will be processed shortly."),1)]),e.value.showOrderId?(s(),i("div",F,[c("span",null,l(e.value.order_title||"Order ID")+":",1),o[1]||(o[1]=c("span",null,"#12345",-1))])):r("",!0),c("div",$,[c("button",z,l(e.value.back_button_text||"Back to calculator"),1),e.value.download_button?(s(),i("button",E,l(e.value.download_button_text||"Download PDF"),1)):r("",!0),e.value.share_button?(s(),i("button",G,l(e.value.share_button_text||"Send PDF to"),1)):r("",!0),e.value.custom_button?(s(),i("a",{key:2,href:e.value.custom_button_link||"#",target:"_blank",class:"ccb-confirmation-preview__button ccb-confirmation-preview__button--secondary"},l(e.value.custom_button_text||"Go to website"),9,L)):r("",!0)]),e.value.enable?r("",!0):(s(),i("div",T," Confirmation page is disabled "))],2)):r("",!0)])):r("",!0)}}),ut=B(j,[["__scopeId","data-v-d132307c"]]);export{ut as default};
//# sourceMappingURL=ConfirmationContent-eJmUlapC.js.map
