| 1 |
import{h as r,Q as n,e as s,o as i,a as p,a2 as a}from"./chunks/vue.esm-bundler.js?ver=1.6.5";import{u as m}from"./chunks/useElementPlusComponents.js?ver=1.6.5";import{u as c}from"./chunks/useElementor.js?ver=1.6.5";import{S as u}from"./chunks/ServerSidePreview.js?ver=1.6.5";import{t as l}from"./chunks/Translator.js?ver=1.6.5";import"./chunks/index.js?ver=1.6.5";import"./chunks/index2.js?ver=1.6.5";import"./chunks/index4.js?ver=1.6.5";import"./chunks/dayjs.min.js?ver=1.6.5";import"./chunks/weekOfYear.js?ver=1.6.5";import"./chunks/index3.js?ver=1.6.5";import"./chunks/Arr.js?ver=1.6.5";import"./chunks/ServerSidePreview.vue_vue_type_style_index_0_scoped_42048dbb_lang.js?ver=1.6.5";import"./chunks/_plugin-vue_export-helper.js?ver=1.6.5";import"./chunks/add-query-args.js?ver=1.6.5";const f={class:"fct-customer-profile-block-editor"},d={__name:"App",props:{settings:{type:String,default:""}},setup(t){const o=r(JSON.parse(t.settings));return n(()=>{c()}),(g,h)=>(i(),s("div",f,[p(u,{block:"fluent-cart/customer-profile",attributes:o.value},null,8,["attributes"])]))}},_=t=>{const e=t.dataset.settings,o=a(d,{settings:e});m(o),o.mixin({methods:{$t:l}}).mount(t)};jQuery(document).ready(function(){elementor.hooks.addAction("panel/open_editor/widget/fluent_cart_customer_profile",function(t,e,o){e.get("settings")})});jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/fluent_cart_customer_profile.default",function(t){const e=jQuery(t[0]).find("[data-fluent-cart-customer-profile-app]")[0];_(e)})}); |