@myissue/vue-website-page-builder 3.4.48 → 3.4.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7076,7 +7076,7 @@ const AS = /* @__PURE__ */ LS("pageBuilderState", {
7076
7076
  }, Uw = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, Gw = { class: "pbx-overflow-x-auto" }, Kw = { class: "pbx-w-max" }, Jw = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, Yw = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, Qw = { class: "pbx-min-w-[30rem] pbx-w-max" }, Xw = { key: 0 }, Zw = { key: 1 }, e2 = { key: 0 }, t2 = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, n2 = { class: "pbx-min-w-[30rem] pbx-w-max" }, i2 = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium" }, r2 = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl" }, o2 = { class: "pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900" }, s2 = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all" }, l2 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-text-white" }, a2 = {
7077
7077
  __name: "PageBuilderSettings",
7078
7078
  setup(n) {
7079
- const e = "3.4.48", t = he, i = A(() => t.getPageBuilderConfig);
7079
+ const e = "3.4.49", t = he, i = A(() => t.getPageBuilderConfig);
7080
7080
  return (r, o) => {
7081
7081
  var s, l, a, d, p, u, h, f, b, m, x, v, T, S, M, B;
7082
7082
  return y(), w("div", IS, [
@@ -25803,10 +25803,16 @@ const UP = { class: "pbx-my-2 pbx-py-2" }, GP = {
25803
25803
  _: 1
25804
25804
  }));
25805
25805
  }
25806
- }, XL = { class: "pbx-mb-4 pbx-flex pbx-justify-start pbx-items-center pbx-gap-2 pbx-border-b pbx-border-solid pbx-border-gray-200 pbx-pb-4 pbx-overflow-x-auto" }, ZL = { class: "pbx-flex pbx-justify-center pbx-items-center pbx-gap-2" }, e5 = { key: 0 }, t5 = {
25806
+ }, XL = { class: "pbx-mb-4 pbx-flex pbx-justify-start pbx-items-center pbx-gap-2 pbx-border-b pbx-border-solid pbx-border-gray-200 pbx-pb-4 pbx-overflow-x-auto" }, ZL = { class: "pbx-flex pbx-justify-center pbx-items-center pbx-gap-2" }, e5 = {
25807
25807
  key: 0,
25808
25808
  class: "pbx-min-h-[50rem]"
25809
- }, n5 = { class: "pbx-myPrimaryParagraph pbx-mt-12 pbx-mb-8" }, i5 = { class: "pbx-my-2 pbx-py-2" }, r5 = { key: 1 }, o5 = { class: "pbx-myPrimaryParagraph pbx-mt-12 pbx-mb-8" }, s5 = { class: "pbx-my-1" }, l5 = { class: "pbx-my-1" }, a5 = { class: "pbx-my-1" }, d5 = { class: "pbx-my-1" }, p5 = { class: "pbx-my-1" }, c5 = { class: "pbx-my-1" }, u5 = { class: "pbx-my-1" }, h5 = { class: "pbx-my-1" }, f5 = { class: "pbx-my-1" }, b5 = { class: "pbx-my-1" }, m5 = { key: 2 }, x5 = { class: "pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2" }, g5 = { class: "pbx-flex pbx-items-left pbx-flex-col pbx-myPrimaryGap pbx-border-myPrimaryMediumGrayColor" }, y5 = { class: "pbx-myPrimaryParagraph" }, v5 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2" }, S5 = { class: "pbx-text-gray-100 pbx-overflow-hidden pbx-bg-gray-900" }, w5 = { class: "pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5" }, C5 = { class: "pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor" }, k5 = { class: "pbx-px-4 pbx-py-4 pbx-text-gray-100" }, T5 = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs" }, M5 = { class: "pbx-text-xs pbx-pb-2" }, E5 = { class: "pbx-text-xs pbx-pb-2" }, B5 = { class: "pbx-text-xs pbx-pb-2" }, P5 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2" }, L5 = { class: "pbx-overflow-hidden pbx-bg-gray-900" }, A5 = { class: "pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5" }, I5 = { class: "pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor" }, $5 = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs pbx-break-all" }, D5 = { key: 0 }, O5 = { key: 0 }, _5 = { class: "pbx-pb-2 pbx-text-xs" }, N5 = {
25809
+ }, t5 = { key: 0 }, n5 = { class: "pbx-myPrimaryParagraph pbx-mt-12 pbx-mb-8" }, i5 = { class: "pbx-my-2 pbx-py-2" }, r5 = {
25810
+ key: 1,
25811
+ class: "pbx-min-h-[50rem]"
25812
+ }, o5 = { class: "pbx-myPrimaryParagraph pbx-mt-12 pbx-mb-8" }, s5 = { class: "pbx-my-1" }, l5 = { class: "pbx-my-1" }, a5 = { class: "pbx-my-1" }, d5 = { class: "pbx-my-1" }, p5 = { class: "pbx-my-1" }, c5 = { class: "pbx-my-1" }, u5 = { class: "pbx-my-1" }, h5 = { class: "pbx-my-1" }, f5 = { class: "pbx-my-1" }, b5 = { class: "pbx-my-1" }, m5 = {
25813
+ key: 2,
25814
+ class: "pbx-min-h-[50rem]"
25815
+ }, x5 = { class: "pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2" }, g5 = { class: "pbx-flex pbx-items-left pbx-flex-col pbx-myPrimaryGap pbx-border-myPrimaryMediumGrayColor" }, y5 = { class: "pbx-myPrimaryParagraph" }, v5 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2" }, S5 = { class: "pbx-text-gray-100 pbx-overflow-hidden pbx-bg-gray-900" }, w5 = { class: "pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5" }, C5 = { class: "pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor" }, k5 = { class: "pbx-px-4 pbx-py-4 pbx-text-gray-100" }, T5 = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs" }, M5 = { class: "pbx-text-xs pbx-pb-2" }, E5 = { class: "pbx-text-xs pbx-pb-2" }, B5 = { class: "pbx-text-xs pbx-pb-2" }, P5 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2" }, L5 = { class: "pbx-overflow-hidden pbx-bg-gray-900" }, A5 = { class: "pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5" }, I5 = { class: "pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor" }, $5 = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs pbx-break-all" }, D5 = { key: 0 }, O5 = { key: 0 }, _5 = { class: "pbx-pb-2 pbx-text-xs" }, N5 = {
25810
25816
  key: 1,
25811
25817
  class: "pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"
25812
25818
  }, H5 = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, R5 = { class: "pbx-overflow-x-auto" }, z5 = { class: "pbx-min-w-full" }, F5 = { class: "pbx-bg-gray-900" }, j5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, V5 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, q5 = { class: "pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-b" }, W5 = { class: "pbx-overflow-x-auto" }, U5 = { class: "pbx-min-w-full" }, G5 = { class: "pbx-bg-gray-900" }, K5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, J5 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, Y5 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, Q5 = { class: "pbx-overflow-x-auto" }, X5 = { class: "pbx-min-w-full" }, Z5 = { class: "pbx-bg-gray-900" }, eA = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, tA = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, nA = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, iA = { key: 1 }, rA = { key: 0 }, oA = { class: "pbx-pb-2 pbx-text-xs" }, sA = {
@@ -15,7 +15,7 @@ Only state can be modified.`);l[0]="$state",xr=!1,o.set(a,l,o.state.value),xr=!0
15
15
  state: () => new MyClass()
16
16
  Found in store "${C.$id}".`),g&&a&&t.hydrate&&t.hydrate(C.$state,g),d=!0,c=!0,C}/*! #__NO_SIDE_EFFECTS__ */function b1(r,e,t){let o,n;const a=typeof e=="function";o=r,n=a?t:e;function l(s,p){const d=i.hasInjectionContext();if(s=(process.env.NODE_ENV==="test"&&Rr&&Rr._testing?null:s)||(d?i.inject(ax,null):null),s&&Hr(s),process.env.NODE_ENV!=="production"&&!Rr)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
17
17
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
18
- This will fail in production.`);s=Rr,s._s.has(o)||(a?Cn(o,e,n,s):kx(o,n,s),process.env.NODE_ENV!=="production"&&(l._pinia=s));const c=s._s.get(o);if(process.env.NODE_ENV!=="production"&&p){const m="__hot:"+o,b=a?Cn(m,e,n,s,!0):kx(m,_e({},n),s,!0);p._hotUpdate(b),delete s.state.value[m],s._s.delete(m)}if(process.env.NODE_ENV!=="production"&&St){const m=i.getCurrentInstance();if(m&&m.proxy&&!p){const b=m.proxy,u="_pStores"in b?b._pStores:b._pStores={};u[o]=c}}return c}return l.$id=o,l}const Cx=b1("pageBuilderState",{state:()=>({componentArrayAddMethod:null,localStorageItemName:null,showModalTipTap:!1,menuRight:!0,borderStyle:null,borderWidth:null,borderColor:null,borderRadiusGlobal:null,borderRadiusTopLeft:null,borderRadiusTopRight:null,borderRadiusBottomleft:null,borderRadiusBottomRight:null,elementContainsHyperlink:null,hyperlinkAbility:null,hyperlinkInput:null,hyperlinkMessage:null,hyperlinkError:null,hyberlinkEnable:!1,openHyperlinkinkInNewTab:null,opacity:null,backgroundOpacity:null,textAreaVueModel:null,currentClasses:[],currentStyles:{},fontVerticalPadding:null,fontHorizontalPadding:null,fontVerticalMargin:null,fontHorizontalMargin:null,fontStyle:null,fontFamily:null,fontWeight:null,fontBase:null,fontDesktop:null,fontTablet:null,fontMobile:null,backgroundColor:null,textColor:null,element:null,component:null,components:[],basePrimaryImage:null,configPageBuilder:null,showModalHTMLEditor:!1,toggleGlobalHtmlMode:!1,applyImageToSelection:{src:""},currentPreviewImage:null,builderStarted:!1,isLoadingGlobal:!0,isSaving:!1,hasLocalDraftForUpdate:!1,isResumeEditing:!1,isRestoring:!1,currentLanguage:null,historyIndex:-1,historyLength:0}),getters:{getComponentArrayAddMethod(r){return r.componentArrayAddMethod},getLocalStorageItemName(r){return r.localStorageItemName},getShowModalTipTap(r){return r.showModalTipTap},getMenuRight(r){return r.menuRight},getBorderStyle(r){return r.borderStyle},getBorderWidth(r){return r.borderWidth},getBorderColor(r){return r.borderColor},getBorderRadiusGlobal(r){return r.borderRadiusGlobal},getBorderRadiusTopLeft(r){return r.borderRadiusTopLeft},getBorderRadiusTopRight(r){return r.borderRadiusTopRight},getBorderRadiusBottomleft(r){return r.borderRadiusBottomleft},getBorderRadiusBottomRight(r){return r.borderRadiusBottomRight},getElementContainsHyperlink(r){return r.elementContainsHyperlink},getHyperlinkAbility(r){return r.hyperlinkAbility},getHyperlinkInput(r){return r.hyperlinkInput},getHyperlinkMessage(r){return r.hyperlinkMessage},getHyperlinkError(r){return r.hyperlinkError},getHyberlinkEnable(r){return r.hyberlinkEnable},getOpenHyperlinkInNewTab(r){return r.openHyperlinkinkInNewTab},getOpacity(r){return r.opacity},getBackgroundOpacity(r){return r.backgroundOpacity},getTextAreaVueModel(r){return r.textAreaVueModel},getCurrentClasses(r){return r.currentClasses},getCurrentStyles(r){return r.currentStyles},getFontStyle(r){return r.fontStyle},getFontVerticalPadding(r){return r.fontVerticalPadding},getFontHorizontalPadding(r){return r.fontHorizontalPadding},getFontVerticalMargin(r){return r.fontVerticalMargin},getFontHorizontalMargin(r){return r.fontHorizontalMargin},getFontFamily(r){return r.fontFamily},getFontWeight(r){return r.fontWeight},getFontBase(r){return r.fontBase},getFontDesktop(r){return r.fontDesktop},getFontTablet(r){return r.fontTablet},getFontMobile(r){return r.fontMobile},getBackgroundColor(r){return r.backgroundColor},getTextColor(r){return r.textColor},getElement(r){return r.element},getComponent(r){return r.component},getComponents(r){return r.components},getBasePrimaryImage(r){return r.basePrimaryImage},getPageBuilderConfig(r){return r.configPageBuilder},getShowModalHTMLEditor(r){return r.showModalHTMLEditor},getToggleGlobalHtmlMode(r){return r.toggleGlobalHtmlMode},getApplyImageToSelection(r){return r.applyImageToSelection},getCurrentPreviewImage(r){return r.currentPreviewImage},getBuilderStarted:r=>r.builderStarted,getIsLoadingGlobal:r=>r.isLoadingGlobal,getIsSaving:r=>r.isSaving,getHasLocalDraftForUpdate:r=>r.hasLocalDraftForUpdate,getIsLoadingResumeEditing:r=>r.isResumeEditing,getIsRestoring:r=>r.isRestoring,getCurrentLanguage:r=>r.currentLanguage,getHistoryIndex:r=>r.historyIndex,getHistoryLength:r=>r.historyLength},actions:{setComponentArrayAddMethod(r){this.componentArrayAddMethod=r},setLocalStorageItemName(r){this.localStorageItemName=r},setShowModalTipTap(r){this.showModalTipTap=r},setMenuRight(r){this.menuRight=r},setBorderStyle(r){this.borderStyle=r},setBorderWidth(r){this.borderWidth=r},setBorderColor(r){this.borderColor=r},setBorderRadiusGlobal(r){this.borderRadiusGlobal=r},setBorderRadiusTopLeft(r){this.borderRadiusTopLeft=r},setBorderRadiusTopRight(r){this.borderRadiusTopRight=r},setBorderRadiusBottomleft(r){this.borderRadiusBottomleft=r},setBorderRadiusBottomRight(r){this.borderRadiusBottomRight=r},setElementContainsHyperlink(r){this.elementContainsHyperlink=r},setHyperlinkAbility(r){this.hyperlinkAbility=r},setHyperlinkInput(r){this.hyperlinkInput=r},setHyperlinkMessage(r){this.hyperlinkMessage=r},setHyperlinkError(r){this.hyperlinkError=r},setHyberlinkEnable(r){this.hyberlinkEnable=r},setOpenHyperlinkInNewTab(r){this.openHyperlinkinkInNewTab=r},setOpacity(r){this.opacity=r},setBackgroundOpacity(r){this.backgroundOpacity=r},setTextAreaVueModel(r){this.textAreaVueModel=r},setClass(r){this.currentClasses=[...this.currentClasses,r]},removeClass(r){this.currentClasses=this.currentClasses.filter(e=>e!==r)},setCurrentClasses(r){this.currentClasses=Array.from(r)},setCurrentStyles(r){this.currentStyles=r},setFontVerticalPadding(r){this.fontVerticalPadding=r},setFontHorizontalPadding(r){this.fontHorizontalPadding=r},setFontVerticalMargin(r){this.fontVerticalMargin=r},setFontHorizontalMargin(r){this.fontHorizontalMargin=r},setFontStyle(r){this.fontStyle=r},setFontFamily(r){this.fontFamily=r},setFontWeight(r){this.fontWeight=r},setFontBase(r){this.fontBase=r},setFontDesktop(r){this.fontDesktop=r},setFontTablet(r){this.fontTablet=r},setFontMobile(r){this.fontMobile=r},setBackgroundColor(r){this.backgroundColor=r},setTextColor(r){this.textColor=r},setElement(r){this.element=null,i.nextTick(()=>{this.element=r})},setComponent(r){if(!r){this.element=null,this.component=null;return}this.component=null,i.nextTick(()=>{this.component=r})},setComponents(r){this.components=[],i.nextTick(()=>{this.components=r||[]})},setPushComponents(r){const e=r.componentArrayAddMethod??"push";e==="push"?this.components.push(r.component):e==="unshift"&&this.components.unshift(r.component)},setBasePrimaryImage(r){this.element&&(this.element.src=r??void 0),this.basePrimaryImage=r},setCurrentLayoutPreview(r){localStorage.setItem("preview",r)},setPageBuilderConfig(r){this.configPageBuilder=r},setShowModalHTMLEditor(r){this.showModalHTMLEditor=r},setToggleGlobalHtmlMode(r){this.toggleGlobalHtmlMode=r},setApplyImageToSelection(r){this.applyImageToSelection=r},setCurrentPreviewImage(r){this.currentPreviewImage=r},setBuilderStarted(r){this.builderStarted=r},setIsLoadingGlobal(r){this.isLoadingGlobal=r},setIsSaving(r){this.isSaving=r},setHasLocalDraftForUpdate(r){this.hasLocalDraftForUpdate=r},setIsLoadingResumeEditing(r){this.isResumeEditing=r},setIsRestoring(r){this.isRestoring=r},setCurrentLanguage(r){this.currentLanguage=r},setHistoryIndex(r){this.historyIndex=r},setHistoryLength(r){this.historyLength=r}}}),En=hx(),Q=Cx(En),u1={class:"pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"},g1={class:"pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl"},x1={class:"pbx-px-2"},h1={class:"pbx-mt-8"},f1={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},y1={class:"pbx-overflow-x-auto"},w1={class:"pbx-min-w-full"},v1={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},S1={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},k1={class:"pbx-min-w-[30rem] pbx-w-max"},C1={class:"pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium pbx-bg-blue-100 pbx-text-blue-800"},E1={key:0,class:"pbx-mt-4"},T1={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},M1={class:"pbx-overflow-x-auto"},B1={class:"pbx-min-w-full"},N1={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},P1={key:0},L1={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},D1={class:"pbx-min-w-[30rem] pbx-w-max"},A1={key:1},V1={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},I1={class:"pbx-min-w-[30rem] pbx-w-max"},O1={key:1,class:"pbx-mt-8"},_1={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},z1={class:"pbx-overflow-x-auto"},R1={class:"pbx-min-w-full"},H1={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},F1={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},j1={class:"pbx-min-w-[30rem] pbx-w-max"},q1={key:0,class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},W1={class:"pbx-min-w-[30rem] pbx-w-max"},U1={class:"pbx-flex pbx-items-center pbx-space-x-3"},G1=["src"],K1={key:0,class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},J1={class:"pbx-min-w-[30rem] pbx-w-max"},Y1={key:2,class:"pbx-mt-8"},Q1={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},X1={class:"pbx-overflow-x-auto"},Z1={class:"pbx-min-w-full"},$1={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},e2={key:0},t2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},r2={class:"pbx-min-w-[30rem] pbx-w-max"},o2={key:1},i2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},n2={class:"pbx-min-w-[30rem] pbx-w-max"},a2={key:2},l2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},s2={class:"pbx-min-w-[30rem] pbx-w-max"},p2={key:3},d2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},c2={class:"pbx-min-w-[30rem] pbx-w-max"},m2={key:3,class:"pbx-mt-8"},b2={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},u2={class:"pbx-overflow-x-auto"},g2={class:"pbx-min-w-full"},x2={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},h2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},f2={class:"pbx-min-w-[30rem] pbx-w-max"},y2={class:"pbx-flex pbx-items-center pbx-space-x-3"},w2=["src"],v2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},S2={class:"pbx-min-w-[30rem] pbx-w-max"},k2={class:"pbx-flex pbx-items-center pbx-space-x-3"},C2={class:"pbx-pr-6"},E2={class:"pbx-flex pbx-items-center pbx-space-x-3"},T2={class:"pbx-whitespace-nowrap"},M2={key:4,class:"pbx-mt-8"},B2={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},N2={class:"pbx-overflow-x-auto"},P2={class:"pbx-w-max"},L2={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},D2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},A2={class:"pbx-min-w-[30rem] pbx-w-max"},V2={key:0},I2={key:1},O2={key:0},_2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},z2={class:"pbx-min-w-[30rem] pbx-w-max"},R2={class:"pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium"},H2={class:"pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl"},F2={class:"pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900"},j2={class:"pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all"},q2={class:"pbx-myPrimaryParagraph pbx-text-xs pbx-text-white"},W2={__name:"PageBuilderSettings",setup(r){const e="3.4.48",t=Q,o=i.computed(()=>t.getPageBuilderConfig);return(n,a)=>{var l,s,p,d,c,m,b,u,g,x,h,f,w,y,v,S;return i.openBlock(),i.createElementBlock("div",u1,[i.createElementVNode("div",g1,[i.createElementVNode("div",null,[a[26]||(a[26]=i.createElementVNode("div",{class:"pbx-flex pbx-items-left pbx-flex-col pbx-gap-1"},[i.createElementVNode("h3",{class:"pbx-myQuaternaryHeader"},"Configuration Overview"),i.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-text-xs"}," A summary of current user preferences, application settings, and system metadata including UI theme, language, saved components, and logo configuration. ")],-1)),i.createElementVNode("div",x1,[i.createElementVNode("div",h1,[a[2]||(a[2]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Version Information",-1)),i.createElementVNode("div",f1,[i.createElementVNode("div",y1,[i.createElementVNode("table",w1,[a[1]||(a[1]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," App "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Version ")])],-1)),i.createElementVNode("tbody",v1,[i.createElementVNode("tr",null,[a[0]||(a[0]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Page Builder")],-1)),i.createElementVNode("td",S1,[i.createElementVNode("div",k1,[i.createElementVNode("span",C1,i.toDisplayString(i.unref(e)),1)])])])])])])])]),(l=o.value)!=null&&l.resourceData&&!i.unref(vt)(o.value.resourceData)?(i.openBlock(),i.createElementBlock("div",E1,[a[6]||(a[6]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Resource Data",-1)),i.createElementVNode("div",T1,[i.createElementVNode("div",M1,[i.createElementVNode("table",B1,[a[5]||(a[5]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Property "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),i.createElementVNode("tbody",N1,[(p=(s=o.value)==null?void 0:s.resourceData)!=null&&p.title?(i.openBlock(),i.createElementBlock("tr",P1,[a[3]||(a[3]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Title")],-1)),i.createElementVNode("td",L1,[i.createElementVNode("div",D1,i.toDisplayString(o.value.resourceData.title),1)])])):i.createCommentVNode("",!0),(c=(d=o.value)==null?void 0:d.resourceData)!=null&&c.id?(i.openBlock(),i.createElementBlock("tr",A1,[a[4]||(a[4]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"ID")],-1)),i.createElementVNode("td",V1,[i.createElementVNode("div",I1,i.toDisplayString(o.value.resourceData.id),1)])])):i.createCommentVNode("",!0)])])])])])):i.createCommentVNode("",!0),(m=o.value)!=null&&m.userForPageBuilder&&!i.unref(vt)(o.value.userForPageBuilder)?(i.openBlock(),i.createElementBlock("div",O1,[a[11]||(a[11]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"User Information",-1)),i.createElementVNode("div",_1,[i.createElementVNode("div",z1,[i.createElementVNode("table",R1,[a[10]||(a[10]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Property "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),i.createElementVNode("tbody",H1,[i.createElementVNode("tr",null,[a[7]||(a[7]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"User Name")],-1)),i.createElementVNode("td",F1,[i.createElementVNode("div",j1,i.toDisplayString(o.value.userForPageBuilder.name),1)])]),i.createElementVNode("tr",null,[a[8]||(a[8]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Image")],-1)),o.value.userForPageBuilder.image&&typeof o.value.userForPageBuilder.image=="string"&&o.value.userForPageBuilder.image.length>2?(i.openBlock(),i.createElementBlock("td",q1,[i.createElementVNode("div",W1,[i.createElementVNode("div",U1,[i.createElementVNode("img",{class:"pbx-block pbx-inset-0 pbx-object-top pbx-h-10 pbx-min-h-10 pbx-max-h-10 pbx-w-10 pbx-min-w-10 pbx-max-w-10 pbx-object-cover pbx-rounded-full",src:o.value.userForPageBuilder.image,alt:"image"},null,8,G1)])])])):i.createCommentVNode("",!0)]),i.createElementVNode("tr",null,[a[9]||(a[9]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Image URL")],-1)),o.value.userForPageBuilder.image&&typeof o.value.userForPageBuilder.image=="string"&&o.value.userForPageBuilder.image.length>2?(i.openBlock(),i.createElementBlock("td",K1,[i.createElementVNode("div",J1,i.toDisplayString(o.value.userForPageBuilder.image),1)])):i.createCommentVNode("",!0)])])])])])])):i.createCommentVNode("",!0),(b=o.value)!=null&&b.userSettings&&!i.unref(vt)(o.value.userSettings)?(i.openBlock(),i.createElementBlock("div",Y1,[a[17]||(a[17]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"User Settings",-1)),i.createElementVNode("div",Q1,[i.createElementVNode("div",X1,[i.createElementVNode("table",Z1,[a[16]||(a[16]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Setting "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),i.createElementVNode("tbody",$1,[(g=(u=o.value)==null?void 0:u.userSettings)!=null&&g.theme?(i.openBlock(),i.createElementBlock("tr",e2,[a[12]||(a[12]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Theme")],-1)),i.createElementVNode("td",t2,[i.createElementVNode("div",r2,i.toDisplayString(o.value.userSettings.theme),1)])])):i.createCommentVNode("",!0),(h=(x=o.value)==null?void 0:x.userSettings)!=null&&h.language?(i.openBlock(),i.createElementBlock("tr",o2,[a[13]||(a[13]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Language")],-1)),i.createElementVNode("td",i2,[i.createElementVNode("div",n2,i.toDisplayString(o.value.userSettings.language),1)])])):i.createCommentVNode("",!0),((w=(f=o.value)==null?void 0:f.userSettings)==null?void 0:w.autoSave)!==void 0?(i.openBlock(),i.createElementBlock("tr",a2,[a[14]||(a[14]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Auto Save")],-1)),i.createElementVNode("td",l2,[i.createElementVNode("div",s2,[i.createElementVNode("span",{class:i.normalizeClass(["pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium",o.value.userSettings.autoSave?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},i.toDisplayString(o.value.userSettings.autoSave?"Enabled":"Disabled"),3)])])])):i.createCommentVNode("",!0),((v=(y=o.value)==null?void 0:y.userSettings)==null?void 0:v.notifications)!==void 0?(i.openBlock(),i.createElementBlock("tr",p2,[a[15]||(a[15]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Notifications")],-1)),i.createElementVNode("td",d2,[i.createElementVNode("div",c2,[i.createElementVNode("span",{class:i.normalizeClass(["pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium",o.value.userSettings.notifications?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},i.toDisplayString(o.value.userSettings.notifications?"Enabled":"Disabled"),3)])])])):i.createCommentVNode("",!0)])])])])])):i.createCommentVNode("",!0),o.value&&o.value.pageBuilderLogo&&!i.unref(vt)(o.value.pageBuilderLogo)?(i.openBlock(),i.createElementBlock("div",m2,[a[21]||(a[21]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Logo Configuration",-1)),i.createElementVNode("div",b2,[i.createElementVNode("div",u2,[i.createElementVNode("table",g2,[a[20]||(a[20]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Property "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),i.createElementVNode("tbody",x2,[i.createElementVNode("tr",null,[a[18]||(a[18]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Logo")],-1)),i.createElementVNode("td",h2,[i.createElementVNode("div",f2,[i.createElementVNode("div",y2,[i.createElementVNode("img",{class:"pbx-h-4",src:o.value.pageBuilderLogo.src,alt:"Logo"},null,8,w2)])])])]),i.createElementVNode("tr",null,[a[19]||(a[19]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Logo URL")],-1)),i.createElementVNode("td",v2,[i.createElementVNode("div",S2,[i.createElementVNode("div",k2,[i.createElementVNode("div",C2,[i.createElementVNode("div",E2,[i.createElementVNode("span",T2,i.toDisplayString(o.value.pageBuilderLogo.src),1)])])])])])])])])])])])):i.createCommentVNode("",!0),(S=o.value)!=null&&S.updateOrCreate&&!i.unref(vt)(o.value.updateOrCreate)?(i.openBlock(),i.createElementBlock("div",M2,[a[25]||(a[25]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Form Type",-1)),i.createElementVNode("div",B2,[i.createElementVNode("div",N2,[i.createElementVNode("table",P2,[a[24]||(a[24]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Mode "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Description ")])],-1)),i.createElementVNode("tbody",L2,[i.createElementVNode("tr",null,[a[22]||(a[22]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Form Type")],-1)),i.createElementVNode("td",D2,[i.createElementVNode("div",A2,[i.createElementVNode("span",{class:i.normalizeClass(["pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium",o.value.updateOrCreate==="create"?"bg-green-100 text-green-800":"bg-blue-100 text-blue-800"])},[o.value&&o.value.updateOrCreate.formType==="create"?(i.openBlock(),i.createElementBlock("span",V2,i.toDisplayString(o.value.updateOrCreate.formType),1)):i.createCommentVNode("",!0),o.value&&o.value.updateOrCreate.formType==="update"?(i.openBlock(),i.createElementBlock("span",I2,i.toDisplayString(o.value.updateOrCreate.formType),1)):i.createCommentVNode("",!0)],2)])])]),o.value.updateOrCreate.formName&&o.value.updateOrCreate.formName.length>0?(i.openBlock(),i.createElementBlock("tr",O2,[a[23]||(a[23]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Form Name")],-1)),i.createElementVNode("td",_2,[i.createElementVNode("div",z2,[i.createElementVNode("span",R2,i.toDisplayString(o.value.updateOrCreate.formName),1)])])])):i.createCommentVNode("",!0)])])])])])):i.createCommentVNode("",!0)])])]),i.createElementVNode("div",H2,[a[28]||(a[28]=i.createElementVNode("div",{class:"pbx-flex pbx-items-left pbx-flex-col pbx-gap-1"},[i.createElementVNode("h3",{class:"pbx-myQuaternaryHeader"},"Complete Configuration Overview"),i.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-text-xs"}," Complete configuration object currently used by the Page Builder. Includes user information, branding settings, and other context-specific data needed for rendering and managing the builder environment. ")],-1)),i.createElementVNode("div",F2,[a[27]||(a[27]=i.createElementVNode("div",{class:"pbx-flex bg-gray-800/40 pbx-ring-1 ring-white/5"},[i.createElementVNode("div",{class:"pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor"},[i.createElementVNode("div",{class:"pbx-px-4 pbx-py-4 pbx-text-white"},"Configuration")])],-1)),i.createElementVNode("div",j2,[i.createElementVNode("p",q2," config: "+i.toDisplayString(JSON.stringify(o.value,null,4)),1)])])])])}}},_o=(r,e)=>{const t=r.__vccOpts||r;for(const[o,n]of e)t[o]=n;return t},U2={setup(){return{expanded:i.ref(!1)}}},G2={class:"pbx-myPrimaryParagraph pbx-font-medium pbx-my-0 pbx-py-0"},K2={key:0,class:"material-symbols-outlined"},J2={key:1,class:"material-symbols-outlined"};function Y2(r,e,t,o,n,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["pbx-flex pbx-flex-col pbx-border-solid pbx-border pbx-border-gray-400",{"":o.expanded}])},[i.createElementVNode("div",{class:"pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 pbx-bg-white hover:pbx-bg-myPrimaryLightGrayColor pbx-select-none",onClick:e[0]||(e[0]=l=>o.expanded=!o.expanded)},[i.createElementVNode("p",G2,[i.renderSlot(r.$slots,"title")]),o.expanded?(i.openBlock(),i.createElementBlock("span",K2," keyboard_arrow_down ")):i.createCommentVNode("",!0),o.expanded?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",J2," chevron_right "))]),i.createElementVNode("div",{class:i.normalizeClass([[o.expanded?"pbx-block pbx-bg-indigo-50 pbx-border-0 pbx-border-solid pbx-border-t pbx-border-red-50":"pbx-hidden"],"pbx-px-4 pbx-ease-linear pbx-duration-75 pbx-pb-8"])},[i.renderSlot(r.$slots,"content")],2)],2)}const pt=_o(U2,[["render",Y2]]),Q2={class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4"},X2={class:"pbx-my-2 pbx-py-2"},Z2={for:"font-desktop",class:"pbx-myPrimaryInputLabel"},$2={disabled:"",value:""},ev={class:"pbx-my-2 pbx-py-2"},tv={for:"font-weight",class:"pbx-myPrimaryInputLabel"},rv={disabled:"",value:""},ov={class:"pbx-my-2 pbx-py-2"},iv={for:"font-family",class:"pbx-myPrimaryInputLabel"},nv={disabled:"",value:""},av={class:"pbx-my-2 pbx-py-2"},lv={for:"font-style",class:"pbx-myPrimaryInputLabel"},sv={disabled:"",value:""},pv={__name:"Typography",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.ref(null),l=i.ref(null),s=i.ref(null),p=i.ref(null),d=i.ref(null),c=i.ref(null),m=i.computed(()=>o.getFontBase),b=i.computed(()=>o.getFontDesktop),u=i.computed(()=>o.getFontTablet),g=i.computed(()=>o.getFontMobile),x=i.computed(()=>o.getFontWeight),h=i.computed(()=>o.getFontFamily),f=i.computed(()=>o.getFontStyle);return i.watch(m,async w=>{n.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(b,async w=>{a.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(u,async w=>{l.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(g,async w=>{s.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(x,async w=>{p.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(h,async w=>{d.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(f,async w=>{c.value=w,await t.initializeElementStyles()},{immediate:!0}),(w,y)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Typographies")),1)]),content:i.withCtx(()=>[i.createElementVNode("p",Q2,i.toDisplayString(i.unref(e)("Font Appearance")),1),i.createCommentVNode("",!0),i.createElementVNode("div",X2,[i.createElementVNode("label",Z2,i.toDisplayString(i.unref(e)("Font size")),1),i.withDirectives(i.createElementVNode("select",{id:"font-desktop","onUpdate:modelValue":y[2]||(y[2]=v=>a.value=v),class:"pbx-myPrimarySelect",onChange:y[3]||(y[3]=v=>i.unref(t).handleFontSizeDesktop(a.value))},[i.createElementVNode("option",$2,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(br).fontDesktop,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,a.value]])]),i.createCommentVNode("",!0),y[14]||(y[14]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",ev,[i.createElementVNode("label",tv,i.toDisplayString(i.unref(e)("Font weight")),1),i.withDirectives(i.createElementVNode("select",{id:"font-weight","onUpdate:modelValue":y[8]||(y[8]=v=>p.value=v),class:"pbx-myPrimarySelect",onChange:y[9]||(y[9]=v=>i.unref(t).handleFontWeight(p.value))},[i.createElementVNode("option",rv,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontWeight,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,p.value]])]),y[15]||(y[15]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",ov,[i.createElementVNode("label",iv,i.toDisplayString(i.unref(e)("Font family")),1),i.withDirectives(i.createElementVNode("select",{id:"font-family","onUpdate:modelValue":y[10]||(y[10]=v=>d.value=v),class:"pbx-myPrimarySelect",onChange:y[11]||(y[11]=v=>i.unref(t).handleFontFamily(d.value))},[i.createElementVNode("option",nv,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontFamily,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,d.value]])]),y[16]||(y[16]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",av,[i.createElementVNode("label",lv,i.toDisplayString(i.unref(e)("Font Style")),1),i.withDirectives(i.createElementVNode("select",{id:"font-style","onUpdate:modelValue":y[12]||(y[12]=v=>c.value=v),class:"pbx-myPrimarySelect",onChange:y[13]||(y[13]=v=>i.unref(t).handleFontStyle(c.value))},[i.createElementVNode("option",sv,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontStyle,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,c.value]])])]),_:1}))}},dv={class:"pbx-myPrimaryInputLabel pbx-my-4"},cv={class:"pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2 pbx-mt-2 pbx-mb-4"},mv=["onClick"],bv={class:"pbx-flex pbx-items-center pbx-gap-1"},uv={class:"pbx-mr-1"},gv={class:"pbx-my-2 pbx-py-2"},xv={for:"custom-css",class:"pbx-myPrimaryInputLabel"},hv={class:"pbx-flex pbx-gap-2 pbx-item-center"},fv=["placeholder"],yv={key:0,class:"pbx-myPrimaryInputError"},Ex={__name:"ClassEditor",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.computed(()=>o.getCurrentClasses);i.watch(a,d=>{n.value=d},{immediate:!0});const l=i.ref(""),s=i.ref(""),p=async()=>{var m;const d=l.value.trim();if(!d){s.value="Please enter a class name.";return}const c=d.startsWith("pbx-")?d:"pbx-"+d;if((m=n.value)!=null&&m.includes(c)){s.value=`Class "${c}" is already added.`;return}s.value="",t.handleAddClasses(d),await t.initializeElementStyles(),l.value=""};return(d,c)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Generated CSS")),1)]),content:i.withCtx(()=>[i.createElementVNode("p",dv,i.toDisplayString(i.unref(e)("This is the CSS applied by the builder. Add your own CSS and press Enter to apply it to the selected element.")),1),i.createElementVNode("div",cv,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,m=>(i.openBlock(),i.createElementBlock("div",{key:m,class:"pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",onClick:async()=>{i.unref(t).handleRemoveClasses(m),await i.unref(t).initializeElementStyles()}},[i.createElementVNode("div",bv,[i.createElementVNode("span",uv,i.toDisplayString(m),1)])],8,mv))),128))]),c[3]||(c[3]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",gv,[i.createElementVNode("label",xv,[i.createTextVNode(i.toDisplayString(i.unref(e)("Add your CSS."))+" ",1),c[2]||(c[2]=i.createElementVNode("br",null,null,-1)),i.createTextVNode(" "+i.toDisplayString(i.unref(e)("The pbx- prefix is added automatically.")),1)]),i.createElementVNode("div",hv,[i.withDirectives(i.createElementVNode("input",{id:"custom-css","onUpdate:modelValue":c[0]||(c[0]=m=>l.value=m),type:"text",placeholder:i.unref(e)("Type class"),onKeydown:c[1]||(c[1]=i.withKeys(m=>p(),["enter"])),autocomplete:"off",class:"pbx-myPrimaryInput"},null,40,fv),[[i.vModelText,l.value]]),i.createElementVNode("button",{onClick:p,type:"button",class:"pbx-myPrimaryButton"},i.toDisplayString(i.unref(e)("Add")),1)])]),s.value?(i.openBlock(),i.createElementBlock("p",yv,i.toDisplayString(s.value),1)):i.createCommentVNode("",!0)]),_:1}))}},wv={class:"pbx-myPrimaryInputLabel pbx-my-4"},vv={class:"pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2 pbx-mt-2 pbx-mb-4"},Sv=["onClick"],kv={class:"pbx-flex pbx-items-center pbx-gap-1"},Cv={class:"pbx-mr-1"},Ev={class:"pbx-my-2 pbx-py-2"},Tv={for:"custom-style-property",class:"pbx-myPrimaryInputLabel"},Mv={class:"pbx-flex pbx-gap-2 pbx-flex-col pbx-item-center"},Bv=["placeholder","onKeydown"],Nv=["placeholder"],Pv={key:0,class:"pbx-myPrimaryInputError"},Tx={__name:"StyleEditor",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.computed(()=>o.getCurrentStyles);i.watch(a,b=>{n.value=b},{immediate:!0});const l=i.ref(""),s=i.ref(""),p=i.ref(""),d=i.ref(null),c=()=>{d.value&&d.value.focus()},m=async()=>{const b=l.value.trim(),u=s.value.trim();if(!b||!u){p.value="Please enter a property and a value.";return}if(n.value&&n.value[b]){p.value=`Property "${b}" already exists. Remove it first to add a new one.`;return}p.value="",t.handleAddStyle(b,u),await t.initializeElementStyles(),l.value="",s.value=""};return(b,u)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Inline Styles")),1)]),content:i.withCtx(()=>[i.createElementVNode("p",wv,i.toDisplayString(i.unref(e)("These are the inline styles applied by the builder. Add your own styles and press Enter to apply them to the selected element.")),1),i.createElementVNode("div",vv,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(g,x)=>(i.openBlock(),i.createElementBlock("div",{key:x,class:"pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",onClick:async()=>{i.unref(t).handleRemoveStyle(x),await i.unref(t).initializeElementStyles()}},[i.createElementVNode("div",kv,[i.createElementVNode("span",Cv,i.toDisplayString(x)+": "+i.toDisplayString(g)+"; ",1)])],8,Sv))),128))]),u[2]||(u[2]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",Ev,[i.createElementVNode("label",Tv,i.toDisplayString(i.unref(e)("Add your own style.")),1),i.createElementVNode("div",Mv,[i.withDirectives(i.createElementVNode("input",{id:"custom-style-property","onUpdate:modelValue":u[0]||(u[0]=g=>l.value=g),type:"text",placeholder:i.unref(e)("property"),onKeydown:i.withKeys(i.withModifiers(c,["prevent"]),["enter"]),autocomplete:"off",class:"pbx-myPrimaryInput"},null,40,Bv),[[i.vModelText,l.value]]),i.withDirectives(i.createElementVNode("input",{id:"custom-style-value",ref_key:"valueInputRef",ref:d,"onUpdate:modelValue":u[1]||(u[1]=g=>s.value=g),type:"text",placeholder:i.unref(e)("value"),onKeydown:i.withKeys(m,["enter"]),autocomplete:"off",class:"pbx-myPrimaryInput"},null,40,Nv),[[i.vModelText,s.value]]),i.createElementVNode("button",{onClick:m,type:"button",class:"pbx-myPrimaryButton"},i.toDisplayString(i.unref(e)("Add")),1)])]),p.value?(i.openBlock(),i.createElementBlock("p",Pv,i.toDisplayString(p.value),1)):i.createCommentVNode("",!0)]),_:1}))}},Lv={},Dv={class:"pbx-min-h-40"};function Av(r,e){return i.openBlock(),i.createElementBlock("div",Dv,[...e[0]||(e[0]=[i.createElementVNode("p",{class:"pbx-myPrimaryParagraph"},[i.createTextVNode(" Provide your own Media Library Component to integrate a custom media picker into the Page Builder. "),i.createElementVNode("br"),i.createTextVNode(" This allows full control over how media is selected and inserted. ")],-1)])])}const Vv=_o(Lv,[["render",Av]]),Iv={key:0,class:"pbx-w-full"},Ov={key:1},Mx={__name:"MediaLibraryModal",props:{title:{type:String,required:!0},description:{required:!0},firstButtonText:{type:String},secondButtonText:{type:String},thirdButtonText:{type:String},open:{required:!0},customMediaComponent:{type:Object,default:null}},emits:["firstMediaButtonFunction"],setup(r,{emit:e}){const t=e,o=function(){t("firstMediaButtonFunction")},n=()=>{o()};return i.provide("closeMediaLibraryModal",n),(a,l)=>(i.openBlock(),i.createBlock(at,{title:r.title,showModalBuilder:r.open,onCloseMainModalBuilder:o,maxWidth:"6xl"},{default:i.withCtx(()=>[r.customMediaComponent?(i.openBlock(),i.createElementBlock("div",Iv,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.customMediaComponent)))])):(i.openBlock(),i.createElementBlock("div",Ov,[i.createVNode(Vv)]))]),_:1},8,["title","showModalBuilder"]))}};function _v(r){return new Promise((e,t)=>{const o=new window.Image;o.onload=e,o.onerror=t,o.src=r})}const zv=["src"],Rv={__name:"ImageEditor",setup(r){const{translate:e}=ae(),t=Q,o=i.inject("CustomMediaComponent"),n=i.ref(!1),a=i.ref(!1),l=i.ref(""),s=i.ref(""),p=i.ref(""),d=i.ref(null),c=i.ref(null),m=i.ref(null),b=i.computed(()=>(t.getBasePrimaryImage&&g(t.getBasePrimaryImage),t.getBasePrimaryImage)),u=function(){a.value=!0,l.value=e("Media Library"),s.value=null,p.value=e("Close"),d.value=e("Select image"),m.value=function(){a.value=!1}},g=async function(x){n.value=!0,x&&typeof x=="string"&&x.length>2&&(await _v(x),await de(200),n.value=!1)};return(x,h)=>(i.openBlock(),i.createElementBlock("div",null,[i.withDirectives(i.createElementVNode("div",null,[...h[0]||(h[0]=[i.createElementVNode("div",{class:"pbx-flex pbx-items-center pbx-justify-center pbx-mt-4 pbx-min-h-80"},[i.createElementVNode("div",{class:"pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]"},[i.createElementVNode("span",{class:"!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]"},"Loading...")])],-1)])],512),[[i.vShow,n.value]]),i.withDirectives(i.createElementVNode("div",null,[i.createElementVNode("img",{class:"pbx-object-cover pbx-object-center pbx-w-full pbx-cursor-pointer",src:b.value,onClick:u,alt:"image"},null,8,zv)],512),[[i.vShow,b.value&&!n.value]]),i.createVNode(Mx,{open:a.value,title:l.value,description:s.value,firstButtonText:p.value,secondButtonText:d.value,thirdButtonText:c.value,customMediaComponent:i.unref(o),onFirstMediaButtonFunction:m.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"])]))}};function Hv(r,e,t){let o=i.ref(t==null?void 0:t.value),n=i.computed(()=>r.value!==void 0);return[i.computed(()=>n.value?r.value:o.value),function(a){return n.value||(o.value=a),e==null?void 0:e(a)}]}var Bx;let Fv=Symbol("headlessui.useid"),jv=0;const zo=(Bx=Cl.useId)!=null?Bx:function(){return Cl.inject(Fv,()=>`${++jv}`)()};function oe(r){var e;if(r==null||r.value==null)return null;let t=(e=r.value.$el)!=null?e:r.value;return t instanceof Node?t:null}function Ke(r,e,...t){if(r in e){let n=e[r];return typeof n=="function"?n(...t):n}let o=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(n=>`"${n}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Ke),o}var qv=Object.defineProperty,Wv=(r,e,t)=>e in r?qv(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Nx=(r,e,t)=>(Wv(r,typeof e!="symbol"?e+"":e,t),t);let Uv=class{constructor(){Nx(this,"current",this.detect()),Nx(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Tn=new Uv;function Gv(r){if(Tn.isServer)return null;if(r instanceof Node)return r.ownerDocument;if(r!=null&&r.hasOwnProperty("value")){let e=oe(r);if(e)return e.ownerDocument}return document}let Px=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(r=>`${r}:not([tabindex='-1'])`).join(",");var Kv=(r=>(r[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r))(Kv||{}),Jv=(r=>(r[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r))(Jv||{}),Yv=(r=>(r[r.Previous=-1]="Previous",r[r.Next=1]="Next",r))(Yv||{}),Mn=(r=>(r[r.Strict=0]="Strict",r[r.Loose=1]="Loose",r))(Mn||{});function Lx(r,e=0){var t;return r===((t=Gv(r))==null?void 0:t.body)?!1:Ke(e,{0(){return r.matches(Px)},1(){let o=r;for(;o!==null;){if(o.matches(Px))return!0;o=o.parentElement}return!1}})}var Qv=(r=>(r[r.Keyboard=0]="Keyboard",r[r.Mouse=1]="Mouse",r))(Qv||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",r=>{r.metaKey||r.altKey||r.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",r=>{r.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:r.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Xv(r,e=t=>t){return r.slice().sort((t,o)=>{let n=e(t),a=e(o);if(n===null||a===null)return 0;let l=n.compareDocumentPosition(a);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Zv(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function $v(){return/Android/gi.test(window.navigator.userAgent)}function e5(){return Zv()||$v()}function Ro(r,e,t){Tn.isServer||i.watchEffect(o=>{document.addEventListener(r,e,t),o(()=>document.removeEventListener(r,e,t))})}function t5(r,e,t){Tn.isServer||i.watchEffect(o=>{window.addEventListener(r,e,t),o(()=>window.removeEventListener(r,e,t))})}function r5(r,e,t=i.computed(()=>!0)){function o(a,l){if(!t.value||a.defaultPrevented)return;let s=l(a);if(s===null||!s.getRootNode().contains(s))return;let p=(function d(c){return typeof c=="function"?d(c()):Array.isArray(c)||c instanceof Set?c:[c]})(r);for(let d of p){if(d===null)continue;let c=d instanceof HTMLElement?d:oe(d);if(c!=null&&c.contains(s)||a.composed&&a.composedPath().includes(c))return}return!Lx(s,Mn.Loose)&&s.tabIndex!==-1&&a.preventDefault(),e(a,s)}let n=i.ref(null);Ro("pointerdown",a=>{var l,s;t.value&&(n.value=((s=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:s[0])||a.target)},!0),Ro("mousedown",a=>{var l,s;t.value&&(n.value=((s=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:s[0])||a.target)},!0),Ro("click",a=>{e5()||n.value&&(o(a,()=>n.value),n.value=null)},!0),Ro("touchend",a=>o(a,()=>a.target instanceof HTMLElement?a.target:null),!0),t5("blur",a=>o(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Dx(r,e){if(r)return r;let t=e??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function o5(r,e){let t=i.ref(Dx(r.value.type,r.value.as));return i.onMounted(()=>{t.value=Dx(r.value.type,r.value.as)}),i.watchEffect(()=>{var o;t.value||oe(e)&&oe(e)instanceof HTMLButtonElement&&!((o=oe(e))!=null&&o.hasAttribute("type"))&&(t.value="button")}),t}function Ax(r){return[r.screenX,r.screenY]}function i5(){let r=i.ref([-1,-1]);return{wasMoved(e){let t=Ax(e);return r.value[0]===t[0]&&r.value[1]===t[1]?!1:(r.value=t,!0)},update(e){r.value=Ax(e)}}}var Bn=(r=>(r[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r))(Bn||{}),n5=(r=>(r[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r))(n5||{});function fr({visible:r=!0,features:e=0,ourProps:t,theirProps:o,...n}){var a;let l=Ix(o,t),s=Object.assign(n,{props:l});if(r||e&2&&l.static)return Nn(s);if(e&1){let p=(a=l.unmount)==null||a?0:1;return Ke(p,{0(){return null},1(){return Nn({...n,props:{...l,hidden:!0,style:{display:"none"}}})}})}return Nn(s)}function Nn({props:r,attrs:e,slots:t,slot:o,name:n}){var a,l;let{as:s,...p}=Ox(r,["unmount","static"]),d=(a=t.default)==null?void 0:a.call(t,o),c={};if(o){let m=!1,b=[];for(let[u,g]of Object.entries(o))typeof g=="boolean"&&(m=!0),g===!0&&b.push(u);m&&(c["data-headlessui-state"]=b.join(" "))}if(s==="template"){if(d=Vx(d??[]),Object.keys(p).length>0||Object.keys(e).length>0){let[m,...b]=d??[];if(!l5(m)||b.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${n} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(p).concat(Object.keys(e)).map(x=>x.trim()).filter((x,h,f)=>f.indexOf(x)===h).sort((x,h)=>x.localeCompare(h)).map(x=>` - ${x}`).join(`
18
+ This will fail in production.`);s=Rr,s._s.has(o)||(a?Cn(o,e,n,s):kx(o,n,s),process.env.NODE_ENV!=="production"&&(l._pinia=s));const c=s._s.get(o);if(process.env.NODE_ENV!=="production"&&p){const m="__hot:"+o,b=a?Cn(m,e,n,s,!0):kx(m,_e({},n),s,!0);p._hotUpdate(b),delete s.state.value[m],s._s.delete(m)}if(process.env.NODE_ENV!=="production"&&St){const m=i.getCurrentInstance();if(m&&m.proxy&&!p){const b=m.proxy,u="_pStores"in b?b._pStores:b._pStores={};u[o]=c}}return c}return l.$id=o,l}const Cx=b1("pageBuilderState",{state:()=>({componentArrayAddMethod:null,localStorageItemName:null,showModalTipTap:!1,menuRight:!0,borderStyle:null,borderWidth:null,borderColor:null,borderRadiusGlobal:null,borderRadiusTopLeft:null,borderRadiusTopRight:null,borderRadiusBottomleft:null,borderRadiusBottomRight:null,elementContainsHyperlink:null,hyperlinkAbility:null,hyperlinkInput:null,hyperlinkMessage:null,hyperlinkError:null,hyberlinkEnable:!1,openHyperlinkinkInNewTab:null,opacity:null,backgroundOpacity:null,textAreaVueModel:null,currentClasses:[],currentStyles:{},fontVerticalPadding:null,fontHorizontalPadding:null,fontVerticalMargin:null,fontHorizontalMargin:null,fontStyle:null,fontFamily:null,fontWeight:null,fontBase:null,fontDesktop:null,fontTablet:null,fontMobile:null,backgroundColor:null,textColor:null,element:null,component:null,components:[],basePrimaryImage:null,configPageBuilder:null,showModalHTMLEditor:!1,toggleGlobalHtmlMode:!1,applyImageToSelection:{src:""},currentPreviewImage:null,builderStarted:!1,isLoadingGlobal:!0,isSaving:!1,hasLocalDraftForUpdate:!1,isResumeEditing:!1,isRestoring:!1,currentLanguage:null,historyIndex:-1,historyLength:0}),getters:{getComponentArrayAddMethod(r){return r.componentArrayAddMethod},getLocalStorageItemName(r){return r.localStorageItemName},getShowModalTipTap(r){return r.showModalTipTap},getMenuRight(r){return r.menuRight},getBorderStyle(r){return r.borderStyle},getBorderWidth(r){return r.borderWidth},getBorderColor(r){return r.borderColor},getBorderRadiusGlobal(r){return r.borderRadiusGlobal},getBorderRadiusTopLeft(r){return r.borderRadiusTopLeft},getBorderRadiusTopRight(r){return r.borderRadiusTopRight},getBorderRadiusBottomleft(r){return r.borderRadiusBottomleft},getBorderRadiusBottomRight(r){return r.borderRadiusBottomRight},getElementContainsHyperlink(r){return r.elementContainsHyperlink},getHyperlinkAbility(r){return r.hyperlinkAbility},getHyperlinkInput(r){return r.hyperlinkInput},getHyperlinkMessage(r){return r.hyperlinkMessage},getHyperlinkError(r){return r.hyperlinkError},getHyberlinkEnable(r){return r.hyberlinkEnable},getOpenHyperlinkInNewTab(r){return r.openHyperlinkinkInNewTab},getOpacity(r){return r.opacity},getBackgroundOpacity(r){return r.backgroundOpacity},getTextAreaVueModel(r){return r.textAreaVueModel},getCurrentClasses(r){return r.currentClasses},getCurrentStyles(r){return r.currentStyles},getFontStyle(r){return r.fontStyle},getFontVerticalPadding(r){return r.fontVerticalPadding},getFontHorizontalPadding(r){return r.fontHorizontalPadding},getFontVerticalMargin(r){return r.fontVerticalMargin},getFontHorizontalMargin(r){return r.fontHorizontalMargin},getFontFamily(r){return r.fontFamily},getFontWeight(r){return r.fontWeight},getFontBase(r){return r.fontBase},getFontDesktop(r){return r.fontDesktop},getFontTablet(r){return r.fontTablet},getFontMobile(r){return r.fontMobile},getBackgroundColor(r){return r.backgroundColor},getTextColor(r){return r.textColor},getElement(r){return r.element},getComponent(r){return r.component},getComponents(r){return r.components},getBasePrimaryImage(r){return r.basePrimaryImage},getPageBuilderConfig(r){return r.configPageBuilder},getShowModalHTMLEditor(r){return r.showModalHTMLEditor},getToggleGlobalHtmlMode(r){return r.toggleGlobalHtmlMode},getApplyImageToSelection(r){return r.applyImageToSelection},getCurrentPreviewImage(r){return r.currentPreviewImage},getBuilderStarted:r=>r.builderStarted,getIsLoadingGlobal:r=>r.isLoadingGlobal,getIsSaving:r=>r.isSaving,getHasLocalDraftForUpdate:r=>r.hasLocalDraftForUpdate,getIsLoadingResumeEditing:r=>r.isResumeEditing,getIsRestoring:r=>r.isRestoring,getCurrentLanguage:r=>r.currentLanguage,getHistoryIndex:r=>r.historyIndex,getHistoryLength:r=>r.historyLength},actions:{setComponentArrayAddMethod(r){this.componentArrayAddMethod=r},setLocalStorageItemName(r){this.localStorageItemName=r},setShowModalTipTap(r){this.showModalTipTap=r},setMenuRight(r){this.menuRight=r},setBorderStyle(r){this.borderStyle=r},setBorderWidth(r){this.borderWidth=r},setBorderColor(r){this.borderColor=r},setBorderRadiusGlobal(r){this.borderRadiusGlobal=r},setBorderRadiusTopLeft(r){this.borderRadiusTopLeft=r},setBorderRadiusTopRight(r){this.borderRadiusTopRight=r},setBorderRadiusBottomleft(r){this.borderRadiusBottomleft=r},setBorderRadiusBottomRight(r){this.borderRadiusBottomRight=r},setElementContainsHyperlink(r){this.elementContainsHyperlink=r},setHyperlinkAbility(r){this.hyperlinkAbility=r},setHyperlinkInput(r){this.hyperlinkInput=r},setHyperlinkMessage(r){this.hyperlinkMessage=r},setHyperlinkError(r){this.hyperlinkError=r},setHyberlinkEnable(r){this.hyberlinkEnable=r},setOpenHyperlinkInNewTab(r){this.openHyperlinkinkInNewTab=r},setOpacity(r){this.opacity=r},setBackgroundOpacity(r){this.backgroundOpacity=r},setTextAreaVueModel(r){this.textAreaVueModel=r},setClass(r){this.currentClasses=[...this.currentClasses,r]},removeClass(r){this.currentClasses=this.currentClasses.filter(e=>e!==r)},setCurrentClasses(r){this.currentClasses=Array.from(r)},setCurrentStyles(r){this.currentStyles=r},setFontVerticalPadding(r){this.fontVerticalPadding=r},setFontHorizontalPadding(r){this.fontHorizontalPadding=r},setFontVerticalMargin(r){this.fontVerticalMargin=r},setFontHorizontalMargin(r){this.fontHorizontalMargin=r},setFontStyle(r){this.fontStyle=r},setFontFamily(r){this.fontFamily=r},setFontWeight(r){this.fontWeight=r},setFontBase(r){this.fontBase=r},setFontDesktop(r){this.fontDesktop=r},setFontTablet(r){this.fontTablet=r},setFontMobile(r){this.fontMobile=r},setBackgroundColor(r){this.backgroundColor=r},setTextColor(r){this.textColor=r},setElement(r){this.element=null,i.nextTick(()=>{this.element=r})},setComponent(r){if(!r){this.element=null,this.component=null;return}this.component=null,i.nextTick(()=>{this.component=r})},setComponents(r){this.components=[],i.nextTick(()=>{this.components=r||[]})},setPushComponents(r){const e=r.componentArrayAddMethod??"push";e==="push"?this.components.push(r.component):e==="unshift"&&this.components.unshift(r.component)},setBasePrimaryImage(r){this.element&&(this.element.src=r??void 0),this.basePrimaryImage=r},setCurrentLayoutPreview(r){localStorage.setItem("preview",r)},setPageBuilderConfig(r){this.configPageBuilder=r},setShowModalHTMLEditor(r){this.showModalHTMLEditor=r},setToggleGlobalHtmlMode(r){this.toggleGlobalHtmlMode=r},setApplyImageToSelection(r){this.applyImageToSelection=r},setCurrentPreviewImage(r){this.currentPreviewImage=r},setBuilderStarted(r){this.builderStarted=r},setIsLoadingGlobal(r){this.isLoadingGlobal=r},setIsSaving(r){this.isSaving=r},setHasLocalDraftForUpdate(r){this.hasLocalDraftForUpdate=r},setIsLoadingResumeEditing(r){this.isResumeEditing=r},setIsRestoring(r){this.isRestoring=r},setCurrentLanguage(r){this.currentLanguage=r},setHistoryIndex(r){this.historyIndex=r},setHistoryLength(r){this.historyLength=r}}}),En=hx(),Q=Cx(En),u1={class:"pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"},g1={class:"pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl"},x1={class:"pbx-px-2"},h1={class:"pbx-mt-8"},f1={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},y1={class:"pbx-overflow-x-auto"},w1={class:"pbx-min-w-full"},v1={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},S1={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},k1={class:"pbx-min-w-[30rem] pbx-w-max"},C1={class:"pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium pbx-bg-blue-100 pbx-text-blue-800"},E1={key:0,class:"pbx-mt-4"},T1={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},M1={class:"pbx-overflow-x-auto"},B1={class:"pbx-min-w-full"},N1={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},P1={key:0},L1={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},D1={class:"pbx-min-w-[30rem] pbx-w-max"},A1={key:1},V1={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},I1={class:"pbx-min-w-[30rem] pbx-w-max"},O1={key:1,class:"pbx-mt-8"},_1={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},z1={class:"pbx-overflow-x-auto"},R1={class:"pbx-min-w-full"},H1={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},F1={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},j1={class:"pbx-min-w-[30rem] pbx-w-max"},q1={key:0,class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},W1={class:"pbx-min-w-[30rem] pbx-w-max"},U1={class:"pbx-flex pbx-items-center pbx-space-x-3"},G1=["src"],K1={key:0,class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},J1={class:"pbx-min-w-[30rem] pbx-w-max"},Y1={key:2,class:"pbx-mt-8"},Q1={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},X1={class:"pbx-overflow-x-auto"},Z1={class:"pbx-min-w-full"},$1={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},e2={key:0},t2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},r2={class:"pbx-min-w-[30rem] pbx-w-max"},o2={key:1},i2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},n2={class:"pbx-min-w-[30rem] pbx-w-max"},a2={key:2},l2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},s2={class:"pbx-min-w-[30rem] pbx-w-max"},p2={key:3},d2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},c2={class:"pbx-min-w-[30rem] pbx-w-max"},m2={key:3,class:"pbx-mt-8"},b2={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},u2={class:"pbx-overflow-x-auto"},g2={class:"pbx-min-w-full"},x2={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},h2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},f2={class:"pbx-min-w-[30rem] pbx-w-max"},y2={class:"pbx-flex pbx-items-center pbx-space-x-3"},w2=["src"],v2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},S2={class:"pbx-min-w-[30rem] pbx-w-max"},k2={class:"pbx-flex pbx-items-center pbx-space-x-3"},C2={class:"pbx-pr-6"},E2={class:"pbx-flex pbx-items-center pbx-space-x-3"},T2={class:"pbx-whitespace-nowrap"},M2={key:4,class:"pbx-mt-8"},B2={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},N2={class:"pbx-overflow-x-auto"},P2={class:"pbx-w-max"},L2={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},D2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},A2={class:"pbx-min-w-[30rem] pbx-w-max"},V2={key:0},I2={key:1},O2={key:0},_2={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},z2={class:"pbx-min-w-[30rem] pbx-w-max"},R2={class:"pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium"},H2={class:"pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl"},F2={class:"pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900"},j2={class:"pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all"},q2={class:"pbx-myPrimaryParagraph pbx-text-xs pbx-text-white"},W2={__name:"PageBuilderSettings",setup(r){const e="3.4.49",t=Q,o=i.computed(()=>t.getPageBuilderConfig);return(n,a)=>{var l,s,p,d,c,m,b,u,g,x,h,f,w,y,v,S;return i.openBlock(),i.createElementBlock("div",u1,[i.createElementVNode("div",g1,[i.createElementVNode("div",null,[a[26]||(a[26]=i.createElementVNode("div",{class:"pbx-flex pbx-items-left pbx-flex-col pbx-gap-1"},[i.createElementVNode("h3",{class:"pbx-myQuaternaryHeader"},"Configuration Overview"),i.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-text-xs"}," A summary of current user preferences, application settings, and system metadata including UI theme, language, saved components, and logo configuration. ")],-1)),i.createElementVNode("div",x1,[i.createElementVNode("div",h1,[a[2]||(a[2]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Version Information",-1)),i.createElementVNode("div",f1,[i.createElementVNode("div",y1,[i.createElementVNode("table",w1,[a[1]||(a[1]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," App "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Version ")])],-1)),i.createElementVNode("tbody",v1,[i.createElementVNode("tr",null,[a[0]||(a[0]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Page Builder")],-1)),i.createElementVNode("td",S1,[i.createElementVNode("div",k1,[i.createElementVNode("span",C1,i.toDisplayString(i.unref(e)),1)])])])])])])])]),(l=o.value)!=null&&l.resourceData&&!i.unref(vt)(o.value.resourceData)?(i.openBlock(),i.createElementBlock("div",E1,[a[6]||(a[6]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Resource Data",-1)),i.createElementVNode("div",T1,[i.createElementVNode("div",M1,[i.createElementVNode("table",B1,[a[5]||(a[5]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Property "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),i.createElementVNode("tbody",N1,[(p=(s=o.value)==null?void 0:s.resourceData)!=null&&p.title?(i.openBlock(),i.createElementBlock("tr",P1,[a[3]||(a[3]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Title")],-1)),i.createElementVNode("td",L1,[i.createElementVNode("div",D1,i.toDisplayString(o.value.resourceData.title),1)])])):i.createCommentVNode("",!0),(c=(d=o.value)==null?void 0:d.resourceData)!=null&&c.id?(i.openBlock(),i.createElementBlock("tr",A1,[a[4]||(a[4]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"ID")],-1)),i.createElementVNode("td",V1,[i.createElementVNode("div",I1,i.toDisplayString(o.value.resourceData.id),1)])])):i.createCommentVNode("",!0)])])])])])):i.createCommentVNode("",!0),(m=o.value)!=null&&m.userForPageBuilder&&!i.unref(vt)(o.value.userForPageBuilder)?(i.openBlock(),i.createElementBlock("div",O1,[a[11]||(a[11]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"User Information",-1)),i.createElementVNode("div",_1,[i.createElementVNode("div",z1,[i.createElementVNode("table",R1,[a[10]||(a[10]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Property "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),i.createElementVNode("tbody",H1,[i.createElementVNode("tr",null,[a[7]||(a[7]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"User Name")],-1)),i.createElementVNode("td",F1,[i.createElementVNode("div",j1,i.toDisplayString(o.value.userForPageBuilder.name),1)])]),i.createElementVNode("tr",null,[a[8]||(a[8]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Image")],-1)),o.value.userForPageBuilder.image&&typeof o.value.userForPageBuilder.image=="string"&&o.value.userForPageBuilder.image.length>2?(i.openBlock(),i.createElementBlock("td",q1,[i.createElementVNode("div",W1,[i.createElementVNode("div",U1,[i.createElementVNode("img",{class:"pbx-block pbx-inset-0 pbx-object-top pbx-h-10 pbx-min-h-10 pbx-max-h-10 pbx-w-10 pbx-min-w-10 pbx-max-w-10 pbx-object-cover pbx-rounded-full",src:o.value.userForPageBuilder.image,alt:"image"},null,8,G1)])])])):i.createCommentVNode("",!0)]),i.createElementVNode("tr",null,[a[9]||(a[9]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Image URL")],-1)),o.value.userForPageBuilder.image&&typeof o.value.userForPageBuilder.image=="string"&&o.value.userForPageBuilder.image.length>2?(i.openBlock(),i.createElementBlock("td",K1,[i.createElementVNode("div",J1,i.toDisplayString(o.value.userForPageBuilder.image),1)])):i.createCommentVNode("",!0)])])])])])])):i.createCommentVNode("",!0),(b=o.value)!=null&&b.userSettings&&!i.unref(vt)(o.value.userSettings)?(i.openBlock(),i.createElementBlock("div",Y1,[a[17]||(a[17]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"User Settings",-1)),i.createElementVNode("div",Q1,[i.createElementVNode("div",X1,[i.createElementVNode("table",Z1,[a[16]||(a[16]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Setting "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),i.createElementVNode("tbody",$1,[(g=(u=o.value)==null?void 0:u.userSettings)!=null&&g.theme?(i.openBlock(),i.createElementBlock("tr",e2,[a[12]||(a[12]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Theme")],-1)),i.createElementVNode("td",t2,[i.createElementVNode("div",r2,i.toDisplayString(o.value.userSettings.theme),1)])])):i.createCommentVNode("",!0),(h=(x=o.value)==null?void 0:x.userSettings)!=null&&h.language?(i.openBlock(),i.createElementBlock("tr",o2,[a[13]||(a[13]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Language")],-1)),i.createElementVNode("td",i2,[i.createElementVNode("div",n2,i.toDisplayString(o.value.userSettings.language),1)])])):i.createCommentVNode("",!0),((w=(f=o.value)==null?void 0:f.userSettings)==null?void 0:w.autoSave)!==void 0?(i.openBlock(),i.createElementBlock("tr",a2,[a[14]||(a[14]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Auto Save")],-1)),i.createElementVNode("td",l2,[i.createElementVNode("div",s2,[i.createElementVNode("span",{class:i.normalizeClass(["pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium",o.value.userSettings.autoSave?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},i.toDisplayString(o.value.userSettings.autoSave?"Enabled":"Disabled"),3)])])])):i.createCommentVNode("",!0),((v=(y=o.value)==null?void 0:y.userSettings)==null?void 0:v.notifications)!==void 0?(i.openBlock(),i.createElementBlock("tr",p2,[a[15]||(a[15]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Notifications")],-1)),i.createElementVNode("td",d2,[i.createElementVNode("div",c2,[i.createElementVNode("span",{class:i.normalizeClass(["pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium",o.value.userSettings.notifications?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},i.toDisplayString(o.value.userSettings.notifications?"Enabled":"Disabled"),3)])])])):i.createCommentVNode("",!0)])])])])])):i.createCommentVNode("",!0),o.value&&o.value.pageBuilderLogo&&!i.unref(vt)(o.value.pageBuilderLogo)?(i.openBlock(),i.createElementBlock("div",m2,[a[21]||(a[21]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Logo Configuration",-1)),i.createElementVNode("div",b2,[i.createElementVNode("div",u2,[i.createElementVNode("table",g2,[a[20]||(a[20]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Property "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),i.createElementVNode("tbody",x2,[i.createElementVNode("tr",null,[a[18]||(a[18]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Logo")],-1)),i.createElementVNode("td",h2,[i.createElementVNode("div",f2,[i.createElementVNode("div",y2,[i.createElementVNode("img",{class:"pbx-h-4",src:o.value.pageBuilderLogo.src,alt:"Logo"},null,8,w2)])])])]),i.createElementVNode("tr",null,[a[19]||(a[19]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Logo URL")],-1)),i.createElementVNode("td",v2,[i.createElementVNode("div",S2,[i.createElementVNode("div",k2,[i.createElementVNode("div",C2,[i.createElementVNode("div",E2,[i.createElementVNode("span",T2,i.toDisplayString(o.value.pageBuilderLogo.src),1)])])])])])])])])])])])):i.createCommentVNode("",!0),(S=o.value)!=null&&S.updateOrCreate&&!i.unref(vt)(o.value.updateOrCreate)?(i.openBlock(),i.createElementBlock("div",M2,[a[25]||(a[25]=i.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Form Type",-1)),i.createElementVNode("div",B2,[i.createElementVNode("div",N2,[i.createElementVNode("table",P2,[a[24]||(a[24]=i.createElementVNode("thead",{class:"pbx-bg-gray-50"},[i.createElementVNode("tr",null,[i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Mode "),i.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Description ")])],-1)),i.createElementVNode("tbody",L2,[i.createElementVNode("tr",null,[a[22]||(a[22]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Form Type")],-1)),i.createElementVNode("td",D2,[i.createElementVNode("div",A2,[i.createElementVNode("span",{class:i.normalizeClass(["pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium",o.value.updateOrCreate==="create"?"bg-green-100 text-green-800":"bg-blue-100 text-blue-800"])},[o.value&&o.value.updateOrCreate.formType==="create"?(i.openBlock(),i.createElementBlock("span",V2,i.toDisplayString(o.value.updateOrCreate.formType),1)):i.createCommentVNode("",!0),o.value&&o.value.updateOrCreate.formType==="update"?(i.openBlock(),i.createElementBlock("span",I2,i.toDisplayString(o.value.updateOrCreate.formType),1)):i.createCommentVNode("",!0)],2)])])]),o.value.updateOrCreate.formName&&o.value.updateOrCreate.formName.length>0?(i.openBlock(),i.createElementBlock("tr",O2,[a[23]||(a[23]=i.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[i.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Form Name")],-1)),i.createElementVNode("td",_2,[i.createElementVNode("div",z2,[i.createElementVNode("span",R2,i.toDisplayString(o.value.updateOrCreate.formName),1)])])])):i.createCommentVNode("",!0)])])])])])):i.createCommentVNode("",!0)])])]),i.createElementVNode("div",H2,[a[28]||(a[28]=i.createElementVNode("div",{class:"pbx-flex pbx-items-left pbx-flex-col pbx-gap-1"},[i.createElementVNode("h3",{class:"pbx-myQuaternaryHeader"},"Complete Configuration Overview"),i.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-text-xs"}," Complete configuration object currently used by the Page Builder. Includes user information, branding settings, and other context-specific data needed for rendering and managing the builder environment. ")],-1)),i.createElementVNode("div",F2,[a[27]||(a[27]=i.createElementVNode("div",{class:"pbx-flex bg-gray-800/40 pbx-ring-1 ring-white/5"},[i.createElementVNode("div",{class:"pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor"},[i.createElementVNode("div",{class:"pbx-px-4 pbx-py-4 pbx-text-white"},"Configuration")])],-1)),i.createElementVNode("div",j2,[i.createElementVNode("p",q2," config: "+i.toDisplayString(JSON.stringify(o.value,null,4)),1)])])])])}}},_o=(r,e)=>{const t=r.__vccOpts||r;for(const[o,n]of e)t[o]=n;return t},U2={setup(){return{expanded:i.ref(!1)}}},G2={class:"pbx-myPrimaryParagraph pbx-font-medium pbx-my-0 pbx-py-0"},K2={key:0,class:"material-symbols-outlined"},J2={key:1,class:"material-symbols-outlined"};function Y2(r,e,t,o,n,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["pbx-flex pbx-flex-col pbx-border-solid pbx-border pbx-border-gray-400",{"":o.expanded}])},[i.createElementVNode("div",{class:"pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 pbx-bg-white hover:pbx-bg-myPrimaryLightGrayColor pbx-select-none",onClick:e[0]||(e[0]=l=>o.expanded=!o.expanded)},[i.createElementVNode("p",G2,[i.renderSlot(r.$slots,"title")]),o.expanded?(i.openBlock(),i.createElementBlock("span",K2," keyboard_arrow_down ")):i.createCommentVNode("",!0),o.expanded?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",J2," chevron_right "))]),i.createElementVNode("div",{class:i.normalizeClass([[o.expanded?"pbx-block pbx-bg-indigo-50 pbx-border-0 pbx-border-solid pbx-border-t pbx-border-red-50":"pbx-hidden"],"pbx-px-4 pbx-ease-linear pbx-duration-75 pbx-pb-8"])},[i.renderSlot(r.$slots,"content")],2)],2)}const pt=_o(U2,[["render",Y2]]),Q2={class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4"},X2={class:"pbx-my-2 pbx-py-2"},Z2={for:"font-desktop",class:"pbx-myPrimaryInputLabel"},$2={disabled:"",value:""},ev={class:"pbx-my-2 pbx-py-2"},tv={for:"font-weight",class:"pbx-myPrimaryInputLabel"},rv={disabled:"",value:""},ov={class:"pbx-my-2 pbx-py-2"},iv={for:"font-family",class:"pbx-myPrimaryInputLabel"},nv={disabled:"",value:""},av={class:"pbx-my-2 pbx-py-2"},lv={for:"font-style",class:"pbx-myPrimaryInputLabel"},sv={disabled:"",value:""},pv={__name:"Typography",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.ref(null),l=i.ref(null),s=i.ref(null),p=i.ref(null),d=i.ref(null),c=i.ref(null),m=i.computed(()=>o.getFontBase),b=i.computed(()=>o.getFontDesktop),u=i.computed(()=>o.getFontTablet),g=i.computed(()=>o.getFontMobile),x=i.computed(()=>o.getFontWeight),h=i.computed(()=>o.getFontFamily),f=i.computed(()=>o.getFontStyle);return i.watch(m,async w=>{n.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(b,async w=>{a.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(u,async w=>{l.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(g,async w=>{s.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(x,async w=>{p.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(h,async w=>{d.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(f,async w=>{c.value=w,await t.initializeElementStyles()},{immediate:!0}),(w,y)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Typographies")),1)]),content:i.withCtx(()=>[i.createElementVNode("p",Q2,i.toDisplayString(i.unref(e)("Font Appearance")),1),i.createCommentVNode("",!0),i.createElementVNode("div",X2,[i.createElementVNode("label",Z2,i.toDisplayString(i.unref(e)("Font size")),1),i.withDirectives(i.createElementVNode("select",{id:"font-desktop","onUpdate:modelValue":y[2]||(y[2]=v=>a.value=v),class:"pbx-myPrimarySelect",onChange:y[3]||(y[3]=v=>i.unref(t).handleFontSizeDesktop(a.value))},[i.createElementVNode("option",$2,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(br).fontDesktop,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,a.value]])]),i.createCommentVNode("",!0),y[14]||(y[14]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",ev,[i.createElementVNode("label",tv,i.toDisplayString(i.unref(e)("Font weight")),1),i.withDirectives(i.createElementVNode("select",{id:"font-weight","onUpdate:modelValue":y[8]||(y[8]=v=>p.value=v),class:"pbx-myPrimarySelect",onChange:y[9]||(y[9]=v=>i.unref(t).handleFontWeight(p.value))},[i.createElementVNode("option",rv,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontWeight,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,p.value]])]),y[15]||(y[15]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",ov,[i.createElementVNode("label",iv,i.toDisplayString(i.unref(e)("Font family")),1),i.withDirectives(i.createElementVNode("select",{id:"font-family","onUpdate:modelValue":y[10]||(y[10]=v=>d.value=v),class:"pbx-myPrimarySelect",onChange:y[11]||(y[11]=v=>i.unref(t).handleFontFamily(d.value))},[i.createElementVNode("option",nv,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontFamily,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,d.value]])]),y[16]||(y[16]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",av,[i.createElementVNode("label",lv,i.toDisplayString(i.unref(e)("Font Style")),1),i.withDirectives(i.createElementVNode("select",{id:"font-style","onUpdate:modelValue":y[12]||(y[12]=v=>c.value=v),class:"pbx-myPrimarySelect",onChange:y[13]||(y[13]=v=>i.unref(t).handleFontStyle(c.value))},[i.createElementVNode("option",sv,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontStyle,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,c.value]])])]),_:1}))}},dv={class:"pbx-myPrimaryInputLabel pbx-my-4"},cv={class:"pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2 pbx-mt-2 pbx-mb-4"},mv=["onClick"],bv={class:"pbx-flex pbx-items-center pbx-gap-1"},uv={class:"pbx-mr-1"},gv={class:"pbx-my-2 pbx-py-2"},xv={for:"custom-css",class:"pbx-myPrimaryInputLabel"},hv={class:"pbx-flex pbx-gap-2 pbx-item-center"},fv=["placeholder"],yv={key:0,class:"pbx-myPrimaryInputError"},Ex={__name:"ClassEditor",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.computed(()=>o.getCurrentClasses);i.watch(a,d=>{n.value=d},{immediate:!0});const l=i.ref(""),s=i.ref(""),p=async()=>{var m;const d=l.value.trim();if(!d){s.value="Please enter a class name.";return}const c=d.startsWith("pbx-")?d:"pbx-"+d;if((m=n.value)!=null&&m.includes(c)){s.value=`Class "${c}" is already added.`;return}s.value="",t.handleAddClasses(d),await t.initializeElementStyles(),l.value=""};return(d,c)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Generated CSS")),1)]),content:i.withCtx(()=>[i.createElementVNode("p",dv,i.toDisplayString(i.unref(e)("This is the CSS applied by the builder. Add your own CSS and press Enter to apply it to the selected element.")),1),i.createElementVNode("div",cv,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,m=>(i.openBlock(),i.createElementBlock("div",{key:m,class:"pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",onClick:async()=>{i.unref(t).handleRemoveClasses(m),await i.unref(t).initializeElementStyles()}},[i.createElementVNode("div",bv,[i.createElementVNode("span",uv,i.toDisplayString(m),1)])],8,mv))),128))]),c[3]||(c[3]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",gv,[i.createElementVNode("label",xv,[i.createTextVNode(i.toDisplayString(i.unref(e)("Add your CSS."))+" ",1),c[2]||(c[2]=i.createElementVNode("br",null,null,-1)),i.createTextVNode(" "+i.toDisplayString(i.unref(e)("The pbx- prefix is added automatically.")),1)]),i.createElementVNode("div",hv,[i.withDirectives(i.createElementVNode("input",{id:"custom-css","onUpdate:modelValue":c[0]||(c[0]=m=>l.value=m),type:"text",placeholder:i.unref(e)("Type class"),onKeydown:c[1]||(c[1]=i.withKeys(m=>p(),["enter"])),autocomplete:"off",class:"pbx-myPrimaryInput"},null,40,fv),[[i.vModelText,l.value]]),i.createElementVNode("button",{onClick:p,type:"button",class:"pbx-myPrimaryButton"},i.toDisplayString(i.unref(e)("Add")),1)])]),s.value?(i.openBlock(),i.createElementBlock("p",yv,i.toDisplayString(s.value),1)):i.createCommentVNode("",!0)]),_:1}))}},wv={class:"pbx-myPrimaryInputLabel pbx-my-4"},vv={class:"pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2 pbx-mt-2 pbx-mb-4"},Sv=["onClick"],kv={class:"pbx-flex pbx-items-center pbx-gap-1"},Cv={class:"pbx-mr-1"},Ev={class:"pbx-my-2 pbx-py-2"},Tv={for:"custom-style-property",class:"pbx-myPrimaryInputLabel"},Mv={class:"pbx-flex pbx-gap-2 pbx-flex-col pbx-item-center"},Bv=["placeholder","onKeydown"],Nv=["placeholder"],Pv={key:0,class:"pbx-myPrimaryInputError"},Tx={__name:"StyleEditor",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.computed(()=>o.getCurrentStyles);i.watch(a,b=>{n.value=b},{immediate:!0});const l=i.ref(""),s=i.ref(""),p=i.ref(""),d=i.ref(null),c=()=>{d.value&&d.value.focus()},m=async()=>{const b=l.value.trim(),u=s.value.trim();if(!b||!u){p.value="Please enter a property and a value.";return}if(n.value&&n.value[b]){p.value=`Property "${b}" already exists. Remove it first to add a new one.`;return}p.value="",t.handleAddStyle(b,u),await t.initializeElementStyles(),l.value="",s.value=""};return(b,u)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Inline Styles")),1)]),content:i.withCtx(()=>[i.createElementVNode("p",wv,i.toDisplayString(i.unref(e)("These are the inline styles applied by the builder. Add your own styles and press Enter to apply them to the selected element.")),1),i.createElementVNode("div",vv,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(g,x)=>(i.openBlock(),i.createElementBlock("div",{key:x,class:"pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",onClick:async()=>{i.unref(t).handleRemoveStyle(x),await i.unref(t).initializeElementStyles()}},[i.createElementVNode("div",kv,[i.createElementVNode("span",Cv,i.toDisplayString(x)+": "+i.toDisplayString(g)+"; ",1)])],8,Sv))),128))]),u[2]||(u[2]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",Ev,[i.createElementVNode("label",Tv,i.toDisplayString(i.unref(e)("Add your own style.")),1),i.createElementVNode("div",Mv,[i.withDirectives(i.createElementVNode("input",{id:"custom-style-property","onUpdate:modelValue":u[0]||(u[0]=g=>l.value=g),type:"text",placeholder:i.unref(e)("property"),onKeydown:i.withKeys(i.withModifiers(c,["prevent"]),["enter"]),autocomplete:"off",class:"pbx-myPrimaryInput"},null,40,Bv),[[i.vModelText,l.value]]),i.withDirectives(i.createElementVNode("input",{id:"custom-style-value",ref_key:"valueInputRef",ref:d,"onUpdate:modelValue":u[1]||(u[1]=g=>s.value=g),type:"text",placeholder:i.unref(e)("value"),onKeydown:i.withKeys(m,["enter"]),autocomplete:"off",class:"pbx-myPrimaryInput"},null,40,Nv),[[i.vModelText,s.value]]),i.createElementVNode("button",{onClick:m,type:"button",class:"pbx-myPrimaryButton"},i.toDisplayString(i.unref(e)("Add")),1)])]),p.value?(i.openBlock(),i.createElementBlock("p",Pv,i.toDisplayString(p.value),1)):i.createCommentVNode("",!0)]),_:1}))}},Lv={},Dv={class:"pbx-min-h-40"};function Av(r,e){return i.openBlock(),i.createElementBlock("div",Dv,[...e[0]||(e[0]=[i.createElementVNode("p",{class:"pbx-myPrimaryParagraph"},[i.createTextVNode(" Provide your own Media Library Component to integrate a custom media picker into the Page Builder. "),i.createElementVNode("br"),i.createTextVNode(" This allows full control over how media is selected and inserted. ")],-1)])])}const Vv=_o(Lv,[["render",Av]]),Iv={key:0,class:"pbx-w-full"},Ov={key:1},Mx={__name:"MediaLibraryModal",props:{title:{type:String,required:!0},description:{required:!0},firstButtonText:{type:String},secondButtonText:{type:String},thirdButtonText:{type:String},open:{required:!0},customMediaComponent:{type:Object,default:null}},emits:["firstMediaButtonFunction"],setup(r,{emit:e}){const t=e,o=function(){t("firstMediaButtonFunction")},n=()=>{o()};return i.provide("closeMediaLibraryModal",n),(a,l)=>(i.openBlock(),i.createBlock(at,{title:r.title,showModalBuilder:r.open,onCloseMainModalBuilder:o,maxWidth:"6xl"},{default:i.withCtx(()=>[r.customMediaComponent?(i.openBlock(),i.createElementBlock("div",Iv,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.customMediaComponent)))])):(i.openBlock(),i.createElementBlock("div",Ov,[i.createVNode(Vv)]))]),_:1},8,["title","showModalBuilder"]))}};function _v(r){return new Promise((e,t)=>{const o=new window.Image;o.onload=e,o.onerror=t,o.src=r})}const zv=["src"],Rv={__name:"ImageEditor",setup(r){const{translate:e}=ae(),t=Q,o=i.inject("CustomMediaComponent"),n=i.ref(!1),a=i.ref(!1),l=i.ref(""),s=i.ref(""),p=i.ref(""),d=i.ref(null),c=i.ref(null),m=i.ref(null),b=i.computed(()=>(t.getBasePrimaryImage&&g(t.getBasePrimaryImage),t.getBasePrimaryImage)),u=function(){a.value=!0,l.value=e("Media Library"),s.value=null,p.value=e("Close"),d.value=e("Select image"),m.value=function(){a.value=!1}},g=async function(x){n.value=!0,x&&typeof x=="string"&&x.length>2&&(await _v(x),await de(200),n.value=!1)};return(x,h)=>(i.openBlock(),i.createElementBlock("div",null,[i.withDirectives(i.createElementVNode("div",null,[...h[0]||(h[0]=[i.createElementVNode("div",{class:"pbx-flex pbx-items-center pbx-justify-center pbx-mt-4 pbx-min-h-80"},[i.createElementVNode("div",{class:"pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]"},[i.createElementVNode("span",{class:"!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]"},"Loading...")])],-1)])],512),[[i.vShow,n.value]]),i.withDirectives(i.createElementVNode("div",null,[i.createElementVNode("img",{class:"pbx-object-cover pbx-object-center pbx-w-full pbx-cursor-pointer",src:b.value,onClick:u,alt:"image"},null,8,zv)],512),[[i.vShow,b.value&&!n.value]]),i.createVNode(Mx,{open:a.value,title:l.value,description:s.value,firstButtonText:p.value,secondButtonText:d.value,thirdButtonText:c.value,customMediaComponent:i.unref(o),onFirstMediaButtonFunction:m.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"])]))}};function Hv(r,e,t){let o=i.ref(t==null?void 0:t.value),n=i.computed(()=>r.value!==void 0);return[i.computed(()=>n.value?r.value:o.value),function(a){return n.value||(o.value=a),e==null?void 0:e(a)}]}var Bx;let Fv=Symbol("headlessui.useid"),jv=0;const zo=(Bx=Cl.useId)!=null?Bx:function(){return Cl.inject(Fv,()=>`${++jv}`)()};function oe(r){var e;if(r==null||r.value==null)return null;let t=(e=r.value.$el)!=null?e:r.value;return t instanceof Node?t:null}function Ke(r,e,...t){if(r in e){let n=e[r];return typeof n=="function"?n(...t):n}let o=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(n=>`"${n}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Ke),o}var qv=Object.defineProperty,Wv=(r,e,t)=>e in r?qv(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Nx=(r,e,t)=>(Wv(r,typeof e!="symbol"?e+"":e,t),t);let Uv=class{constructor(){Nx(this,"current",this.detect()),Nx(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Tn=new Uv;function Gv(r){if(Tn.isServer)return null;if(r instanceof Node)return r.ownerDocument;if(r!=null&&r.hasOwnProperty("value")){let e=oe(r);if(e)return e.ownerDocument}return document}let Px=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(r=>`${r}:not([tabindex='-1'])`).join(",");var Kv=(r=>(r[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r))(Kv||{}),Jv=(r=>(r[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r))(Jv||{}),Yv=(r=>(r[r.Previous=-1]="Previous",r[r.Next=1]="Next",r))(Yv||{}),Mn=(r=>(r[r.Strict=0]="Strict",r[r.Loose=1]="Loose",r))(Mn||{});function Lx(r,e=0){var t;return r===((t=Gv(r))==null?void 0:t.body)?!1:Ke(e,{0(){return r.matches(Px)},1(){let o=r;for(;o!==null;){if(o.matches(Px))return!0;o=o.parentElement}return!1}})}var Qv=(r=>(r[r.Keyboard=0]="Keyboard",r[r.Mouse=1]="Mouse",r))(Qv||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",r=>{r.metaKey||r.altKey||r.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",r=>{r.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:r.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Xv(r,e=t=>t){return r.slice().sort((t,o)=>{let n=e(t),a=e(o);if(n===null||a===null)return 0;let l=n.compareDocumentPosition(a);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Zv(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function $v(){return/Android/gi.test(window.navigator.userAgent)}function e5(){return Zv()||$v()}function Ro(r,e,t){Tn.isServer||i.watchEffect(o=>{document.addEventListener(r,e,t),o(()=>document.removeEventListener(r,e,t))})}function t5(r,e,t){Tn.isServer||i.watchEffect(o=>{window.addEventListener(r,e,t),o(()=>window.removeEventListener(r,e,t))})}function r5(r,e,t=i.computed(()=>!0)){function o(a,l){if(!t.value||a.defaultPrevented)return;let s=l(a);if(s===null||!s.getRootNode().contains(s))return;let p=(function d(c){return typeof c=="function"?d(c()):Array.isArray(c)||c instanceof Set?c:[c]})(r);for(let d of p){if(d===null)continue;let c=d instanceof HTMLElement?d:oe(d);if(c!=null&&c.contains(s)||a.composed&&a.composedPath().includes(c))return}return!Lx(s,Mn.Loose)&&s.tabIndex!==-1&&a.preventDefault(),e(a,s)}let n=i.ref(null);Ro("pointerdown",a=>{var l,s;t.value&&(n.value=((s=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:s[0])||a.target)},!0),Ro("mousedown",a=>{var l,s;t.value&&(n.value=((s=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:s[0])||a.target)},!0),Ro("click",a=>{e5()||n.value&&(o(a,()=>n.value),n.value=null)},!0),Ro("touchend",a=>o(a,()=>a.target instanceof HTMLElement?a.target:null),!0),t5("blur",a=>o(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Dx(r,e){if(r)return r;let t=e??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function o5(r,e){let t=i.ref(Dx(r.value.type,r.value.as));return i.onMounted(()=>{t.value=Dx(r.value.type,r.value.as)}),i.watchEffect(()=>{var o;t.value||oe(e)&&oe(e)instanceof HTMLButtonElement&&!((o=oe(e))!=null&&o.hasAttribute("type"))&&(t.value="button")}),t}function Ax(r){return[r.screenX,r.screenY]}function i5(){let r=i.ref([-1,-1]);return{wasMoved(e){let t=Ax(e);return r.value[0]===t[0]&&r.value[1]===t[1]?!1:(r.value=t,!0)},update(e){r.value=Ax(e)}}}var Bn=(r=>(r[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r))(Bn||{}),n5=(r=>(r[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r))(n5||{});function fr({visible:r=!0,features:e=0,ourProps:t,theirProps:o,...n}){var a;let l=Ix(o,t),s=Object.assign(n,{props:l});if(r||e&2&&l.static)return Nn(s);if(e&1){let p=(a=l.unmount)==null||a?0:1;return Ke(p,{0(){return null},1(){return Nn({...n,props:{...l,hidden:!0,style:{display:"none"}}})}})}return Nn(s)}function Nn({props:r,attrs:e,slots:t,slot:o,name:n}){var a,l;let{as:s,...p}=Ox(r,["unmount","static"]),d=(a=t.default)==null?void 0:a.call(t,o),c={};if(o){let m=!1,b=[];for(let[u,g]of Object.entries(o))typeof g=="boolean"&&(m=!0),g===!0&&b.push(u);m&&(c["data-headlessui-state"]=b.join(" "))}if(s==="template"){if(d=Vx(d??[]),Object.keys(p).length>0||Object.keys(e).length>0){let[m,...b]=d??[];if(!l5(m)||b.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${n} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(p).concat(Object.keys(e)).map(x=>x.trim()).filter((x,h,f)=>f.indexOf(x)===h).sort((x,h)=>x.localeCompare(h)).map(x=>` - ${x}`).join(`
19
19
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(x=>` - ${x}`).join(`
20
20
  `)].join(`
21
21
  `));let u=Ix((l=m.props)!=null?l:{},p,c),g=i.cloneVNode(m,u,!0);for(let x in u)x.startsWith("on")&&(g.props||(g.props={}),g.props[x]=u[x]);return g}return Array.isArray(d)&&d.length===1?d[0]:d}return i.h(s,Object.assign({},p,c),{default:()=>d})}function Vx(r){return r.flatMap(e=>e.type===i.Fragment?Vx(e.children):[e])}function Ix(...r){if(r.length===0)return{};if(r.length===1)return r[0];let e={},t={};for(let o of r)for(let n in o)n.startsWith("on")&&typeof o[n]=="function"?(t[n]!=null||(t[n]=[]),t[n].push(o[n])):e[n]=o[n];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(o=>[o,void 0])));for(let o in t)Object.assign(e,{[o](n,...a){let l=t[o];for(let s of l){if(n instanceof Event&&n.defaultPrevented)return;s(n,...a)}}});return e}function a5(r){let e=Object.assign({},r);for(let t in e)e[t]===void 0&&delete e[t];return e}function Ox(r,e=[]){let t=Object.assign({},r);for(let o of e)o in t&&delete t[o];return t}function l5(r){return r==null?!1:typeof r.type=="string"||typeof r.type=="object"||typeof r.type=="function"}var _x=(r=>(r[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r))(_x||{});let s5=i.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(r,{slots:e,attrs:t}){return()=>{var o;let{features:n,...a}=r,l={"aria-hidden":(n&2)===2?!0:(o=a["aria-hidden"])!=null?o:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return fr({ourProps:l,theirProps:a,slot:{},attrs:t,slots:e,name:"Hidden"})}}}),zx=Symbol("Context");var Fr=(r=>(r[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r))(Fr||{});function p5(){return i.inject(zx,null)}function d5(r){i.provide(zx,r)}var me=(r=>(r.Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r))(me||{});function c5(r){throw new Error("Unexpected object: "+r)}var Te=(r=>(r[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r))(Te||{});function m5(r,e){let t=e.resolveItems();if(t.length<=0)return null;let o=e.resolveActiveIndex(),n=o??-1;switch(r.focus){case 0:{for(let a=0;a<t.length;++a)if(!e.resolveDisabled(t[a],a,t))return a;return o}case 1:{n===-1&&(n=t.length);for(let a=n-1;a>=0;--a)if(!e.resolveDisabled(t[a],a,t))return a;return o}case 2:{for(let a=n+1;a<t.length;++a)if(!e.resolveDisabled(t[a],a,t))return a;return o}case 3:{for(let a=t.length-1;a>=0;--a)if(!e.resolveDisabled(t[a],a,t))return a;return o}case 4:{for(let a=0;a<t.length;++a)if(e.resolveId(t[a],a,t)===r.id)return a;return o}case 5:return null;default:c5(r)}}function Rx(r={},e=null,t=[]){for(let[o,n]of Object.entries(r))Fx(t,Hx(e,o),n);return t}function Hx(r,e){return r?r+"["+e+"]":e}function Fx(r,e,t){if(Array.isArray(t))for(let[o,n]of t.entries())Fx(r,Hx(e,o.toString()),n);else t instanceof Date?r.push([e,t.toISOString()]):typeof t=="boolean"?r.push([e,t?"1":"0"]):typeof t=="string"?r.push([e,t]):typeof t=="number"?r.push([e,`${t}`]):t==null?r.push([e,""]):Rx(t,e,r)}let jx=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function qx(r){var e,t;let o=(e=r.innerText)!=null?e:"",n=r.cloneNode(!0);if(!(n instanceof HTMLElement))return o;let a=!1;for(let s of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let l=a?(t=n.innerText)!=null?t:"":o;return jx.test(l)&&(l=l.replace(jx,"")),l}function b5(r){let e=r.getAttribute("aria-label");if(typeof e=="string")return e.trim();let t=r.getAttribute("aria-labelledby");if(t){let o=t.split(" ").map(n=>{let a=document.getElementById(n);if(a){let l=a.getAttribute("aria-label");return typeof l=="string"?l.trim():qx(a).trim()}return null}).filter(Boolean);if(o.length>0)return o.join(", ")}return qx(r).trim()}function u5(r){let e=i.ref(""),t=i.ref("");return()=>{let o=oe(r);if(!o)return"";let n=o.innerText;if(e.value===n)return t.value;let a=b5(o).trim().toLowerCase();return e.value=n,t.value=a,a}}function g5(r,e){return r===e}var x5=(r=>(r[r.Open=0]="Open",r[r.Closed=1]="Closed",r))(x5||{}),h5=(r=>(r[r.Single=0]="Single",r[r.Multi=1]="Multi",r))(h5||{}),f5=(r=>(r[r.Pointer=0]="Pointer",r[r.Other=1]="Other",r))(f5||{});function y5(r){requestAnimationFrame(()=>requestAnimationFrame(r))}let Wx=Symbol("ListboxContext");function jr(r){let e=i.inject(Wx,null);if(e===null){let t=new Error(`<${r} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,jr),t}return e}let qr=i.defineComponent({name:"Listbox",emits:{"update:modelValue":r=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>g5},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(r,{slots:e,attrs:t,emit:o}){let n=i.ref(1),a=i.ref(null),l=i.ref(null),s=i.ref(null),p=i.ref([]),d=i.ref(""),c=i.ref(null),m=i.ref(1);function b(y=v=>v){let v=c.value!==null?p.value[c.value]:null,S=Xv(y(p.value.slice()),C=>oe(C.dataRef.domRef)),L=v?S.indexOf(v):null;return L===-1&&(L=null),{options:S,activeOptionIndex:L}}let u=i.computed(()=>r.multiple?1:0),[g,x]=Hv(i.computed(()=>r.modelValue),y=>o("update:modelValue",y),i.computed(()=>r.defaultValue)),h=i.computed(()=>g.value===void 0?Ke(u.value,{1:[],0:void 0}):g.value),f={listboxState:n,value:h,mode:u,compare(y,v){if(typeof r.by=="string"){let S=r.by;return(y==null?void 0:y[S])===(v==null?void 0:v[S])}return r.by(y,v)},orientation:i.computed(()=>r.horizontal?"horizontal":"vertical"),labelRef:a,buttonRef:l,optionsRef:s,disabled:i.computed(()=>r.disabled),options:p,searchQuery:d,activeOptionIndex:c,activationTrigger:m,closeListbox(){r.disabled||n.value!==1&&(n.value=1,c.value=null)},openListbox(){r.disabled||n.value!==0&&(n.value=0)},goToOption(y,v,S){if(r.disabled||n.value===1)return;let L=b(),C=m5(y===Te.Specific?{focus:Te.Specific,id:v}:{focus:y},{resolveItems:()=>L.options,resolveActiveIndex:()=>L.activeOptionIndex,resolveId:P=>P.id,resolveDisabled:P=>P.dataRef.disabled});d.value="",c.value=C,m.value=S??1,p.value=L.options},search(y){if(r.disabled||n.value===1)return;let v=d.value!==""?0:1;d.value+=y.toLowerCase();let S=(c.value!==null?p.value.slice(c.value+v).concat(p.value.slice(0,c.value+v)):p.value).find(C=>C.dataRef.textValue.startsWith(d.value)&&!C.dataRef.disabled),L=S?p.value.indexOf(S):-1;L===-1||L===c.value||(c.value=L,m.value=1)},clearSearch(){r.disabled||n.value!==1&&d.value!==""&&(d.value="")},registerOption(y,v){let S=b(L=>[...L,{id:y,dataRef:v}]);p.value=S.options,c.value=S.activeOptionIndex},unregisterOption(y){let v=b(S=>{let L=S.findIndex(C=>C.id===y);return L!==-1&&S.splice(L,1),S});p.value=v.options,c.value=v.activeOptionIndex,m.value=1},theirOnChange(y){r.disabled||x(y)},select(y){r.disabled||x(Ke(u.value,{0:()=>y,1:()=>{let v=i.toRaw(f.value.value).slice(),S=i.toRaw(y),L=v.findIndex(C=>f.compare(S,i.toRaw(C)));return L===-1?v.push(S):v.splice(L,1),v}}))}};r5([l,s],(y,v)=>{var S;f.closeListbox(),Lx(v,Mn.Loose)||(y.preventDefault(),(S=oe(l))==null||S.focus())},i.computed(()=>n.value===0)),i.provide(Wx,f),d5(i.computed(()=>Ke(n.value,{0:Fr.Open,1:Fr.Closed})));let w=i.computed(()=>{var y;return(y=oe(l))==null?void 0:y.closest("form")});return i.onMounted(()=>{i.watch([w],()=>{if(!w.value||r.defaultValue===void 0)return;function y(){f.theirOnChange(r.defaultValue)}return w.value.addEventListener("reset",y),()=>{var v;(v=w.value)==null||v.removeEventListener("reset",y)}},{immediate:!0})}),()=>{let{name:y,modelValue:v,disabled:S,form:L,...C}=r,P={open:n.value===0,disabled:S,value:h.value};return i.h(i.Fragment,[...y!=null&&h.value!=null?Rx({[y]:h.value}).map(([V,T])=>i.h(s5,a5({features:_x.Hidden,key:V,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:L,disabled:S,name:V,value:T}))):[],fr({ourProps:{},theirProps:{...t,...Ox(C,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:P,slots:e,attrs:t,name:"Listbox"})])}}});i.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(r,{attrs:e,slots:t}){var o;let n=(o=r.id)!=null?o:`headlessui-listbox-label-${zo()}`,a=jr("ListboxLabel");function l(){var s;(s=oe(a.buttonRef))==null||s.focus({preventScroll:!0})}return()=>{let s={open:a.listboxState.value===0,disabled:a.disabled.value},{...p}=r,d={id:n,ref:a.labelRef,onClick:l};return fr({ourProps:d,theirProps:p,slot:s,attrs:e,slots:t,name:"ListboxLabel"})}}});let Gt=i.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(r,{attrs:e,slots:t,expose:o}){var n;let a=(n=r.id)!=null?n:`headlessui-listbox-button-${zo()}`,l=jr("ListboxButton");o({el:l.buttonRef,$el:l.buttonRef});function s(m){switch(m.key){case me.Space:case me.Enter:case me.ArrowDown:m.preventDefault(),l.openListbox(),i.nextTick(()=>{var b;(b=oe(l.optionsRef))==null||b.focus({preventScroll:!0}),l.value.value||l.goToOption(Te.First)});break;case me.ArrowUp:m.preventDefault(),l.openListbox(),i.nextTick(()=>{var b;(b=oe(l.optionsRef))==null||b.focus({preventScroll:!0}),l.value.value||l.goToOption(Te.Last)});break}}function p(m){switch(m.key){case me.Space:m.preventDefault();break}}function d(m){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),i.nextTick(()=>{var b;return(b=oe(l.buttonRef))==null?void 0:b.focus({preventScroll:!0})})):(m.preventDefault(),l.openListbox(),y5(()=>{var b;return(b=oe(l.optionsRef))==null?void 0:b.focus({preventScroll:!0})})))}let c=o5(i.computed(()=>({as:r.as,type:e.type})),l.buttonRef);return()=>{var m,b;let u={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...g}=r,x={ref:l.buttonRef,id:a,type:c.value,"aria-haspopup":"listbox","aria-controls":(m=oe(l.optionsRef))==null?void 0:m.id,"aria-expanded":l.listboxState.value===0,"aria-labelledby":l.labelRef.value?[(b=oe(l.labelRef))==null?void 0:b.id,a].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:s,onKeyup:p,onClick:d};return fr({ourProps:x,theirProps:g,slot:u,attrs:e,slots:t,name:"ListboxButton"})}}}),Wr=i.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(r,{attrs:e,slots:t,expose:o}){var n;let a=(n=r.id)!=null?n:`headlessui-listbox-options-${zo()}`,l=jr("ListboxOptions"),s=i.ref(null);o({el:l.optionsRef,$el:l.optionsRef});function p(m){switch(s.value&&clearTimeout(s.value),m.key){case me.Space:if(l.searchQuery.value!=="")return m.preventDefault(),m.stopPropagation(),l.search(m.key);case me.Enter:if(m.preventDefault(),m.stopPropagation(),l.activeOptionIndex.value!==null){let b=l.options.value[l.activeOptionIndex.value];l.select(b.dataRef.value)}l.mode.value===0&&(l.closeListbox(),i.nextTick(()=>{var b;return(b=oe(l.buttonRef))==null?void 0:b.focus({preventScroll:!0})}));break;case Ke(l.orientation.value,{vertical:me.ArrowDown,horizontal:me.ArrowRight}):return m.preventDefault(),m.stopPropagation(),l.goToOption(Te.Next);case Ke(l.orientation.value,{vertical:me.ArrowUp,horizontal:me.ArrowLeft}):return m.preventDefault(),m.stopPropagation(),l.goToOption(Te.Previous);case me.Home:case me.PageUp:return m.preventDefault(),m.stopPropagation(),l.goToOption(Te.First);case me.End:case me.PageDown:return m.preventDefault(),m.stopPropagation(),l.goToOption(Te.Last);case me.Escape:m.preventDefault(),m.stopPropagation(),l.closeListbox(),i.nextTick(()=>{var b;return(b=oe(l.buttonRef))==null?void 0:b.focus({preventScroll:!0})});break;case me.Tab:m.preventDefault(),m.stopPropagation();break;default:m.key.length===1&&(l.search(m.key),s.value=setTimeout(()=>l.clearSearch(),350));break}}let d=p5(),c=i.computed(()=>d!==null?(d.value&Fr.Open)===Fr.Open:l.listboxState.value===0);return()=>{var m,b;let u={open:l.listboxState.value===0},{...g}=r,x={"aria-activedescendant":l.activeOptionIndex.value===null||(m=l.options.value[l.activeOptionIndex.value])==null?void 0:m.id,"aria-multiselectable":l.mode.value===1?!0:void 0,"aria-labelledby":(b=oe(l.buttonRef))==null?void 0:b.id,"aria-orientation":l.orientation.value,id:a,onKeydown:p,role:"listbox",tabIndex:0,ref:l.optionsRef};return fr({ourProps:x,theirProps:g,slot:u,attrs:e,slots:t,features:Bn.RenderStrategy|Bn.Static,visible:c.value,name:"ListboxOptions"})}}}),Ur=i.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(r,{slots:e,attrs:t,expose:o}){var n;let a=(n=r.id)!=null?n:`headlessui-listbox-option-${zo()}`,l=jr("ListboxOption"),s=i.ref(null);o({el:s,$el:s});let p=i.computed(()=>l.activeOptionIndex.value!==null?l.options.value[l.activeOptionIndex.value].id===a:!1),d=i.computed(()=>Ke(l.mode.value,{0:()=>l.compare(i.toRaw(l.value.value),i.toRaw(r.value)),1:()=>i.toRaw(l.value.value).some(y=>l.compare(i.toRaw(y),i.toRaw(r.value)))})),c=i.computed(()=>Ke(l.mode.value,{1:()=>{var y;let v=i.toRaw(l.value.value);return((y=l.options.value.find(S=>v.some(L=>l.compare(i.toRaw(L),i.toRaw(S.dataRef.value)))))==null?void 0:y.id)===a},0:()=>d.value})),m=u5(s),b=i.computed(()=>({disabled:r.disabled,value:r.value,get textValue(){return m()},domRef:s}));i.onMounted(()=>l.registerOption(a,b)),i.onUnmounted(()=>l.unregisterOption(a)),i.onMounted(()=>{i.watch([l.listboxState,d],()=>{l.listboxState.value===0&&d.value&&Ke(l.mode.value,{1:()=>{c.value&&l.goToOption(Te.Specific,a)},0:()=>{l.goToOption(Te.Specific,a)}})},{immediate:!0})}),i.watchEffect(()=>{l.listboxState.value===0&&p.value&&l.activationTrigger.value!==0&&i.nextTick(()=>{var y,v;return(v=(y=oe(s))==null?void 0:y.scrollIntoView)==null?void 0:v.call(y,{block:"nearest"})})});function u(y){if(r.disabled)return y.preventDefault();l.select(r.value),l.mode.value===0&&(l.closeListbox(),i.nextTick(()=>{var v;return(v=oe(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})}))}function g(){if(r.disabled)return l.goToOption(Te.Nothing);l.goToOption(Te.Specific,a)}let x=i5();function h(y){x.update(y)}function f(y){x.wasMoved(y)&&(r.disabled||p.value||l.goToOption(Te.Specific,a,0))}function w(y){x.wasMoved(y)&&(r.disabled||p.value&&l.goToOption(Te.Nothing))}return()=>{let{disabled:y}=r,v={active:p.value,selected:d.value,disabled:y},{value:S,disabled:L,...C}=r,P={id:a,ref:s,role:"option",tabIndex:y===!0?void 0:-1,"aria-disabled":y===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:u,onFocus:g,onPointerenter:h,onMouseenter:h,onPointermove:f,onMousemove:f,onPointerleave:w,onMouseleave:w};return fr({ourProps:P,theirProps:C,slot:v,attrs:t,slots:e,name:"ListboxOption"})}}});const w5={class:"pbx-my-2 pbx-py-2"},v5={class:"pbx-relative"},S5={class:"pbx-flex pbx-items-center pbx-gap-2"},k5={key:0},C5={class:"pbx-flex pbx-items-center"},E5={key:0},T5={key:2,class:"pbx-ml-3"},M5={key:3,class:"pbx-ml-3"},B5={__name:"ManageBackgroundOpacity",setup(r){const e=ne(),t=Q,o=i.ref(null),n=i.computed(()=>t.getBackgroundOpacity);return i.watch(n,async a=>{o.value=a,await e.initializeElementStyles()},{immediate:!0}),(a,l)=>(i.openBlock(),i.createElementBlock("div",w5,[l[3]||(l[3]=i.createElementVNode("label",{for:"bg-opacity",class:"pbx-myPrimaryInputLabel"}," Background Opacity",-1)),i.createVNode(i.unref(qr),{as:"div",modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=s=>o.value=s)},{default:i.withCtx(()=>[i.createElementVNode("div",v5,[i.createVNode(i.unref(Gt),{class:"pbx-myPrimarySelect",id:"bg-opacity"},{default:i.withCtx(()=>[i.createElementVNode("span",S5,[o.value==="none"?(i.openBlock(),i.createElementBlock("div",k5,[...l[1]||(l[1]=[i.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[i.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)])])):i.createCommentVNode("",!0),o.value!=="none"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950",`${o.value}`])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("span",{class:i.normalizeClass(["pbx-block pbx-truncate",[(o.value!=="none","")]])},i.toDisplayString(o.value==="none"?"Transparent":o.value),3)])]),_:1}),i.createVNode(i.Transition,{"leave-active-class":"pbx-transition pbx-ease-in pbx-duration-100","leave-from-class":"pbx-opacity-100","leave-to-class":"pbx-opacity-0"},{default:i.withCtx(()=>[i.createVNode(i.unref(Wr),{class:"pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Bo).backgroundOpacities,s=>(i.openBlock(),i.createBlock(i.unref(Ur),{as:"template",onClick:p=>i.unref(e).handleBackgroundOpacity(s),key:s,value:s},{default:i.withCtx(({active:p})=>[i.createElementVNode("li",{class:i.normalizeClass([p?"pbx-bg-myPrimaryLinkColor text-white":"pbx-text-myPrimaryDarkGrayColor","pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"])},[i.createElementVNode("div",C5,[s==="none"?(i.openBlock(),i.createElementBlock("div",E5,[...l[2]||(l[2]=[i.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[i.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)])])):i.createCommentVNode("",!0),s!=="none"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950",`${s}`])},null,2)):i.createCommentVNode("",!0),s==="none"?(i.openBlock(),i.createElementBlock("span",T5,"Transparent")):i.createCommentVNode("",!0),s!=="none"?(i.openBlock(),i.createElementBlock("span",M5,i.toDisplayString(s),1)):i.createCommentVNode("",!0)])],2)]),_:2},1032,["onClick","value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},N5={class:"pbx-my-2 pbx-py-2"},P5={class:"pbx-relative"},L5={class:"pbx-flex pbx-items-center pbx-gap-2"},D5={key:0},A5={class:"pbx-flex pbx-items-center"},V5={key:0},I5={key:2,class:"pbx-ml-3"},O5={key:3,class:"pbx-ml-3"},_5={__name:"ManageOpacity",setup(r){const e=ne(),t=Q,o=i.ref(null),n=i.computed(()=>t.getOpacity);return i.watch(n,async a=>{o.value=a,await e.initializeElementStyles()},{immediate:!0}),(a,l)=>(i.openBlock(),i.createElementBlock("div",N5,[l[3]||(l[3]=i.createElementVNode("label",{for:"default-opacity",class:"pbx-myPrimaryInputLabel"}," Opacity",-1)),i.createVNode(i.unref(qr),{as:"div",modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=s=>o.value=s)},{default:i.withCtx(()=>[i.createElementVNode("div",P5,[i.createVNode(i.unref(Gt),{class:"pbx-myPrimarySelect",id:"default-opacity"},{default:i.withCtx(()=>[i.createElementVNode("span",L5,[o.value==="none"?(i.openBlock(),i.createElementBlock("div",D5,[...l[1]||(l[1]=[i.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[i.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)])])):i.createCommentVNode("",!0),o.value!=="none"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950",`${o.value}`])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("span",{class:i.normalizeClass(["pbx-block pbx-truncate",[(o.value!=="none","")]])},i.toDisplayString(o.value==="none"?"Transparent":o.value),3)])]),_:1}),i.createVNode(i.Transition,{"leave-active-class":"pbx-transition pbx-ease-in pbx-duration-100","leave-from-class":"pbx-opacity-100","leave-to-class":"pbx-opacity-0"},{default:i.withCtx(()=>[i.createVNode(i.unref(Wr),{class:"pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Bo).opacities,s=>(i.openBlock(),i.createBlock(i.unref(Ur),{as:"template",onClick:p=>i.unref(e).handleOpacity(s),key:s,value:s},{default:i.withCtx(({active:p})=>[i.createElementVNode("li",{class:i.normalizeClass([p?"pbx-bg-myPrimaryLinkColor text-white":"pbx-text-myPrimaryDarkGrayColor","pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"])},[i.createElementVNode("div",A5,[s==="none"?(i.openBlock(),i.createElementBlock("div",V5,[...l[2]||(l[2]=[i.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[i.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)])])):i.createCommentVNode("",!0),s!=="none"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950",`${s}`])},null,2)):i.createCommentVNode("",!0),s==="none"?(i.openBlock(),i.createElementBlock("span",I5,"Transparent")):i.createCommentVNode("",!0),s!=="none"?(i.openBlock(),i.createElementBlock("span",O5,i.toDisplayString(s),1)):i.createCommentVNode("",!0)])],2)]),_:2},1032,["onClick","value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},z5={__name:"OpacityEditor",setup(r){const{translate:e}=ae();return(t,o)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Opacity & Transparency")),1)]),content:i.withCtx(()=>[i.createVNode(_5),o[0]||(o[0]=i.createElementVNode("hr",null,null,-1)),i.createVNode(B5)]),_:1}))}},R5={class:"pbx-my-2 pbx-py-2"},H5={class:"pbx-pt-4 pbx-pb-2 pbx-mb-4"},F5={class:"pbx-myPrimaryInputLabel pbx-font-medium pbx-italic"},j5={for:"vertical-padding",class:"pbx-myPrimaryInputLabel"},q5={disabled:"",value:""},W5={class:"pbx-my-2 pbx-py-2"},U5={for:"horizontal-padding",class:"pbx-myPrimaryInputLabel"},G5={disabled:"",value:""},Ux={__name:"Padding",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.ref(null),l=i.ref(null),s=i.ref(null),p=i.computed(()=>o.getFontVerticalPadding),d=i.computed(()=>o.getFontHorizontalPadding),c=i.computed(()=>o.getFontVerticalMargin),m=i.computed(()=>o.getFontHorizontalMargin);return i.watch(p,async b=>{n.value=b,await t.initializeElementStyles()},{immediate:!0}),i.watch(d,async b=>{a.value=b,await t.initializeElementStyles()},{immediate:!0}),i.watch(c,async b=>{l.value=b,await t.initializeElementStyles()},{immediate:!0}),i.watch(m,async b=>{s.value=b,await t.initializeElementStyles()},{immediate:!0}),(b,u)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Padding")),1)]),content:i.withCtx(()=>[i.createElementVNode("div",R5,[i.createElementVNode("div",H5,[i.createElementVNode("p",F5,i.toDisplayString(i.unref(e)("Large Screens Only")),1),u[4]||(u[4]=i.createElementVNode("hr",null,null,-1))]),i.createElementVNode("label",j5,i.toDisplayString(i.unref(e)("Vertical Padding")),1),i.withDirectives(i.createElementVNode("select",{id:"vertical-padding","onUpdate:modelValue":u[0]||(u[0]=g=>n.value=g),class:"pbx-myPrimarySelect",onChange:u[1]||(u[1]=g=>i.unref(t).handleVerticalPadding(n.value))},[i.createElementVNode("option",q5,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(wt).verticalPadding,g=>(i.openBlock(),i.createElementBlock("option",{key:g},i.toDisplayString(g),1))),128))],544),[[i.vModelSelect,n.value]])]),u[5]||(u[5]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",W5,[i.createElementVNode("label",U5,i.toDisplayString(i.unref(e)("Horizontal Padding")),1),i.withDirectives(i.createElementVNode("select",{id:"horizontal-padding","onUpdate:modelValue":u[2]||(u[2]=g=>a.value=g),class:"pbx-myPrimarySelect",onChange:u[3]||(u[3]=g=>i.unref(t).handleHorizontalPadding(a.value))},[i.createElementVNode("option",G5,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(wt).horizontalPadding,g=>(i.openBlock(),i.createElementBlock("option",{key:g},i.toDisplayString(g),1))),128))],544),[[i.vModelSelect,a.value]])])]),_:1}))}},K5={class:"pbx-my-2 pbx-py-2"},J5={class:"pbx-pt-4 pbx-pb-2 pbx-mb-4"},Y5={class:"pbx-myPrimaryInputLabel pbx-font-medium pbx-italic"},Q5={for:"vertical-margin",class:"pbx-myPrimaryInputLabel"},X5={disabled:"",value:""},Z5={class:"pbx-my-2 pbx-py-2"},$5={for:"horizontal-margin",class:"pbx-myPrimaryInputLabel"},e3={disabled:"",value:""},Gx={__name:"Margin",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.ref(null),l=i.ref(null),s=i.ref(null),p=i.computed(()=>o.getFontVerticalPadding),d=i.computed(()=>o.getFontHorizontalPadding),c=i.computed(()=>o.getFontVerticalMargin),m=i.computed(()=>o.getFontHorizontalMargin);return i.watch(p,async b=>{n.value=b,await t.initializeElementStyles()},{immediate:!0}),i.watch(d,async b=>{a.value=b,await t.initializeElementStyles()},{immediate:!0}),i.watch(c,async b=>{l.value=b,await t.initializeElementStyles()},{immediate:!0}),i.watch(m,async b=>{s.value=b,await t.initializeElementStyles()},{immediate:!0}),(b,u)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Margin")),1)]),content:i.withCtx(()=>[i.createElementVNode("div",K5,[i.createElementVNode("div",J5,[i.createElementVNode("p",Y5,i.toDisplayString(i.unref(e)("Large Screens Only")),1),u[4]||(u[4]=i.createElementVNode("hr",null,null,-1))]),i.createElementVNode("label",Q5,i.toDisplayString(i.unref(e)("Vertical Margin")),1),i.withDirectives(i.createElementVNode("select",{id:"vertical-margin","onUpdate:modelValue":u[0]||(u[0]=g=>l.value=g),class:"pbx-myPrimarySelect",onChange:u[1]||(u[1]=g=>i.unref(t).handleVerticalMargin(l.value))},[i.createElementVNode("option",X5,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(wt).verticalMargin,g=>(i.openBlock(),i.createElementBlock("option",{key:g},i.toDisplayString(g),1))),128))],544),[[i.vModelSelect,l.value]])]),u[5]||(u[5]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",Z5,[i.createElementVNode("label",$5,i.toDisplayString(i.unref(e)("Horizontal Margin")),1),i.withDirectives(i.createElementVNode("select",{id:"horizontal-margin","onUpdate:modelValue":u[2]||(u[2]=g=>s.value=g),class:"pbx-myPrimarySelect",onChange:u[3]||(u[3]=g=>i.unref(t).handleHorizontalMargin(s.value))},[i.createElementVNode("option",e3,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(wt).horizontalMargin,g=>(i.openBlock(),i.createElementBlock("option",{key:g},i.toDisplayString(g),1))),128))],544),[[i.vModelSelect,s.value]])])]),_:1}))}},t3={class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4"},r3={class:"pbx-my-2 pbx-py-2"},o3={for:"global-border-radius",class:"pbx-myPrimaryInputLabel"},i3={disabled:"",value:""},n3={class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4"},a3={class:"pbx-my-2 pbx-py-2"},l3={for:"border-radius-top-left",class:"pbx-myPrimaryInputLabel"},s3={disabled:"",value:""},p3={class:"pbx-my-2 pbx-py-2"},d3={for:"border-radius-top-right",class:"pbx-myPrimaryInputLabel"},c3={disabled:"",value:""},m3={class:"pbx-my-2 pbx-py-2"},b3={for:"border-radius-bottom-left",class:"pbx-myPrimaryInputLabel"},u3={disabled:"",value:""},g3={class:"pbx-my-2 pbx-py-2"},x3={for:"border-radius-bottom-right",class:"pbx-myPrimaryInputLabel"},h3={disabled:"",value:""},Kx={__name:"BorderRadius",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.ref(null),l=i.ref(null),s=i.ref(null),p=i.ref(null),d=i.computed(()=>o.getBorderRadiusGlobal),c=i.computed(()=>o.getBorderRadiusTopLeft),m=i.computed(()=>o.getBorderRadiusTopRight),b=i.computed(()=>o.getBorderRadiusBottomleft),u=i.computed(()=>o.getBorderRadiusBottomRight);return i.watch(d,async g=>{n.value=g,await t.initializeElementStyles()},{immediate:!0}),i.watch(c,async g=>{a.value=g,await t.initializeElementStyles()},{immediate:!0}),i.watch(m,async g=>{l.value=g,await t.initializeElementStyles()},{immediate:!0}),i.watch(b,async g=>{s.value=g,await t.initializeElementStyles()},{immediate:!0}),i.watch(u,async g=>{p.value=g,await t.initializeElementStyles()},{immediate:!0}),(g,x)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Border Radius")),1)]),content:i.withCtx(()=>[i.createElementVNode("p",t3,i.toDisplayString(i.unref(e)("Global")),1),i.createElementVNode("div",r3,[i.createElementVNode("label",o3,i.toDisplayString(i.unref(e)("Border Radius")),1),i.withDirectives(i.createElementVNode("select",{id:"global-border-radius","onUpdate:modelValue":x[0]||(x[0]=h=>n.value=h),class:"pbx-myPrimarySelect",onChange:x[1]||(x[1]=h=>i.unref(t).handleBorderRadiusGlobal(n.value))},[i.createElementVNode("option",i3,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Ze).roundedGlobal,h=>(i.openBlock(),i.createElementBlock("option",{key:h},i.toDisplayString(h),1))),128))],544),[[i.vModelSelect,n.value]])]),x[10]||(x[10]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("p",n3,i.toDisplayString(i.unref(e)("Specific")),1),i.createElementVNode("div",a3,[i.createElementVNode("label",l3,i.toDisplayString(i.unref(e)("Border Radius top left")),1),i.withDirectives(i.createElementVNode("select",{id:"border-radius-top-left","onUpdate:modelValue":x[2]||(x[2]=h=>a.value=h),class:"pbx-myPrimarySelect",onChange:x[3]||(x[3]=h=>i.unref(t).handleBorderRadiusTopLeft(a.value))},[i.createElementVNode("option",s3,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Ze).roundedTopLeft,h=>(i.openBlock(),i.createElementBlock("option",{key:h},i.toDisplayString(h),1))),128))],544),[[i.vModelSelect,a.value]])]),x[11]||(x[11]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",p3,[i.createElementVNode("label",d3,i.toDisplayString(i.unref(e)("Border Radius top right")),1),i.withDirectives(i.createElementVNode("select",{id:"border-radius-top-right","onUpdate:modelValue":x[4]||(x[4]=h=>l.value=h),class:"pbx-myPrimarySelect",onChange:x[5]||(x[5]=h=>i.unref(t).handleBorderRadiusTopRight(l.value))},[i.createElementVNode("option",c3,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Ze).roundedTopRight,h=>(i.openBlock(),i.createElementBlock("option",{key:h},i.toDisplayString(h),1))),128))],544),[[i.vModelSelect,l.value]])]),x[12]||(x[12]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",m3,[i.createElementVNode("label",b3,i.toDisplayString(i.unref(e)("Border Radius bottom left")),1),i.withDirectives(i.createElementVNode("select",{id:"border-radius-bottom-left","onUpdate:modelValue":x[6]||(x[6]=h=>s.value=h),class:"pbx-myPrimarySelect",onChange:x[7]||(x[7]=h=>i.unref(t).handleBorderRadiusBottomleft(s.value))},[i.createElementVNode("option",u3,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Ze).roundedBottomLeft,h=>(i.openBlock(),i.createElementBlock("option",{key:h},i.toDisplayString(h),1))),128))],544),[[i.vModelSelect,s.value]])]),x[13]||(x[13]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",g3,[i.createElementVNode("label",x3,i.toDisplayString(i.unref(e)("Border Radius bottom right")),1),i.withDirectives(i.createElementVNode("select",{id:"border-radius-bottom-right","onUpdate:modelValue":x[8]||(x[8]=h=>p.value=h),class:"pbx-myPrimarySelect",onChange:x[9]||(x[9]=h=>i.unref(t).handleBorderRadiusBottomRight(p.value))},[i.createElementVNode("option",h3,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Ze).roundedBottomRight,h=>(i.openBlock(),i.createElementBlock("option",{key:h},i.toDisplayString(h),1))),128))],544),[[i.vModelSelect,p.value]])])]),_:1}))}},f3={class:"pbx-relative"},y3={class:"pbx-flex pbx-justify-start pbx-items-center pbx-gap-2"},w3={key:0,class:"material-symbols-outlined"},v3={class:"pbx-flex pbx-flex-col"},S3={class:"pbx-flex pbx-gap-2 pbx-items-center"},k3={key:0,class:"pbx-flex pbx-items-center"},C3={class:"pbx-ml-3"},E3={key:1,class:"pbx-flex pbx-items-center"},T3={class:"pbx-ml-3"},Jx={__name:"BackgroundColorEditor",props:{globalPageLayout:{Type:Boolean}},setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.computed(()=>o.getBackgroundColor);return i.watch(a,async l=>{n.value=l,await t.initializeElementStyles()},{immediate:!0}),(l,s)=>(i.openBlock(),i.createBlock(i.unref(qr),{as:"div",modelValue:n.value,"onUpdate:modelValue":s[1]||(s[1]=p=>n.value=p)},{default:i.withCtx(()=>[i.createElementVNode("div",f3,[i.createElementVNode("div",{class:i.normalizeClass([r.globalPageLayout?"pbx-flex pbx-flex-col pbx-border-solid pbx-border pbx-border-gray-400":"pbx-flex pbx-gap-2 pbx-items-center"])},[r.globalPageLayout?(i.openBlock(),i.createBlock(i.unref(Gt),{key:0,class:"pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 hover:pbx-bg-myPrimaryLightGrayColor pbx-bg-white hover:pbx-text-black pbx-text-black pbx-font-sans pbx-font-medium pbx-border-0"},{default:i.withCtx(()=>{var p;return[i.createElementVNode("div",y3,[i.createElementVNode("div",{class:i.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-600 pbx-rounded-sm pbx-bg-none pbx-border-solid",`pbx-bg-${(p=n.value)==null?void 0:p.replace("pbx-bg-","")}`])},null,2),i.createElementVNode("div",null,i.toDisplayString(i.unref(e)("Background Color")),1)]),r.globalPageLayout?(i.openBlock(),i.createElementBlock("span",w3," chevron_right ")):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0),r.globalPageLayout?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Gt),{key:1,class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor"},{default:i.withCtx(()=>[i.createElementVNode("div",v3,[i.createElementVNode("div",S3,[s[2]||(s[2]=i.createElementVNode("span",null,[i.createElementVNode("svg",{fill:"currentColor",height:"25",viewBox:"0 0 22 22",width:"26",xmlns:"http://www.w3.org/2000/svg",class:"css-1eqh1o5"},[i.createElementVNode("path",{"clip-rule":"evenodd",d:"M4 11l8-8 8 8-8 8-8-8zm8-5.172L17.172 11H6.828L12 5.828z","fill-rule":"evenodd"}),i.createElementVNode("path",{d:"M3.5 13s-2 2.757-2 4.054c0 1.075.895 1.946 2 1.946s2-.871 2-1.946c0-1.297-2-4.054-2-4.054z"})])],-1)),i.createCommentVNode("",!0)])])]),_:1}))],2),i.createVNode(i.Transition,{"leave-active-class":"pbx-transition pbx-ease-in pbx-duration-100","leave-from-class":"pbx-opacity-100","leave-to-class":"pbx-opacity-0"},{default:i.withCtx(()=>[i.createVNode(i.unref(Wr),{class:"pbx-headless-dropdown pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Mo).backgroundColorVariables,p=>(i.openBlock(),i.createBlock(i.unref(Ur),{as:"template",onClick:s[0]||(s[0]=d=>i.unref(t).handleBackgroundColor(n.value)),key:p,value:p},{default:i.withCtx(({active:d,backgroundColor:c})=>[i.createElementVNode("li",{class:i.normalizeClass([d?"pbx-bg-myPrimaryLinkColor pbx-text-white":"pbx-text-myPrimaryDarkGrayColor","pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"])},[p==="none"?(i.openBlock(),i.createElementBlock("div",k3,[s[3]||(s[3]=i.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ",-1)),i.createElementVNode("span",C3,i.toDisplayString(i.unref(e)("Transparent")),1)])):i.createCommentVNode("",!0),p!=="none"?(i.openBlock(),i.createElementBlock("div",E3,[i.createElementVNode("div",{class:i.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-sm",`pbx-bg-${p.replace("pbx-bg-","")}`])},null,2),i.createElementVNode("span",T3,i.toDisplayString(p),1)])):i.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}},M3={class:"pbx-relative"},B3={class:"pbx-flex pbx-justify-start pbx-items-center pbx-gap-2"},N3={key:0,class:"material-symbols-outlined"},P3={class:"pbx-flex pbx-flex-col"},L3={class:"pbx-flex pbx-gap-2 pbx-items-center"},D3={key:0,class:"pbx-flex pbx-items-center"},A3={key:1,class:"pbx-flex pbx-items-center"},V3={class:"pbx-ml-3"},Yx={__name:"TextColorEditor",props:{globalPageLayout:{Type:Boolean}},setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.computed(()=>o.getTextColor);return i.watch(a,async l=>{n.value=l,await t.initializeElementStyles()},{immediate:!0}),(l,s)=>(i.openBlock(),i.createBlock(i.unref(qr),{as:"div",modelValue:n.value,"onUpdate:modelValue":s[1]||(s[1]=p=>n.value=p)},{default:i.withCtx(()=>[i.createElementVNode("div",M3,[i.createElementVNode("div",{class:i.normalizeClass([r.globalPageLayout?"pbx-flex pbx-flex-col pbx-border-solid pbx-border pbx-border-gray-400":"pbx-flex pbx-gap-2 pbx-items-center"])},[r.globalPageLayout?(i.openBlock(),i.createBlock(i.unref(Gt),{key:0,class:"pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 hover:pbx-bg-myPrimaryLightGrayColor pbx-bg-white hover:pbx-text-black pbx-text-black pbx-font-sans pbx-font-medium pbx-border-0"},{default:i.withCtx(()=>{var p;return[i.createElementVNode("div",B3,[i.createElementVNode("div",{class:i.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-600 pbx-rounded-sm pbx-bg-none pbx-border-solid",`pbx-bg-${(p=n.value)==null?void 0:p.replace("pbx-text-","")}`])},null,2),i.createElementVNode("div",null,[i.createElementVNode("div",null,i.toDisplayString(i.unref(e)("Text Color")),1)])]),r.globalPageLayout?(i.openBlock(),i.createElementBlock("span",N3," chevron_right ")):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0),r.globalPageLayout?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Gt),{key:1,class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor"},{default:i.withCtx(()=>{var p;return[i.createElementVNode("div",P3,[i.createElementVNode("div",L3,[i.createElementVNode("span",{class:i.normalizeClass(["material-symbols-outlined",`pbx-text-${(p=n.value)==null?void 0:p.replace("pbx-text-","")}`]),style:{"text-shadow":"rgb(0 0 0 / 10%) 1.5px 1.5px 0px"}}," format_color_text ",2)])])]}),_:1}))],2),i.createVNode(i.Transition,{"leave-active-class":"pbx-transition pbx-ease-in pbx-duration-100","leave-from-class":"pbx-opacity-100","leave-to-class":"pbx-opacity-0"},{default:i.withCtx(()=>[i.createVNode(i.unref(Wr),{class:"pbx-headless-dropdown pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Mo).textColorVariables,p=>(i.openBlock(),i.createBlock(i.unref(Ur),{as:"template",onClick:s[0]||(s[0]=d=>i.unref(t).handleTextColor(n.value)),key:p,value:p},{default:i.withCtx(({active:d,textColor:c})=>[i.createElementVNode("li",{class:i.normalizeClass([d?"pbx-bg-myPrimaryLinkColor pbx-text-white":"pbx-text-myPrimaryDarkGrayColor","pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"])},[p==="none"?(i.openBlock(),i.createElementBlock("div",D3,[...s[2]||(s[2]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," invert_colors ",-1),i.createElementVNode("span",{class:"pbx-ml-3"},"Default black",-1)])])):i.createCommentVNode("",!0),p!=="none"?(i.openBlock(),i.createElementBlock("div",A3,[i.createElementVNode("div",{class:i.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-sm",`pbx-bg-${p.replace("pbx-text-","")}`])},null,2),i.createElementVNode("span",V3,i.toDisplayString(p),1)])):i.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}},I3={class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4"},O3={class:"pbx-my-2 pbx-py-2"},_3={for:"border-style",class:"pbx-myPrimaryInputLabel"},z3={disabled:"",value:""},R3={class:"pbx-my-2 pbx-py-2"},H3={for:"border-width",class:"pbx-myPrimaryInputLabel"},F3={disabled:"",value:""},j3={class:"pbx-my-2 pbx-py-2"},q3={for:"border-color",class:"pbx-myPrimaryInputLabel"},W3={class:"pbx-relative pbx-mt-2"},U3={class:"pbx-flex pbx-items-center pbx-gap-2"},G3={key:0},K3={class:"pbx-block pbx-truncate"},J3={class:"pbx-flex pbx-items-center"},Y3={key:0},Q3={key:2,class:"pbx-ml-3"},X3={key:3,class:"pbx-ml-3"},Qx={__name:"Borders",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.ref(null),l=i.ref(null),s=i.computed(()=>o.getBorderStyle),p=i.computed(()=>o.getBorderWidth),d=i.computed(()=>o.getBorderColor);return i.watch(s,async c=>{n.value=c,await t.initializeElementStyles()},{immediate:!0}),i.watch(p,async c=>{a.value=c,await t.initializeElementStyles()},{immediate:!0}),i.watch(d,async c=>{l.value=c,await t.initializeElementStyles()},{immediate:!0}),(c,m)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(e)("Border Style, Width & Color")),1)]),content:i.withCtx(()=>[i.createElementVNode("p",I3,i.toDisplayString(i.unref(e)("Border")),1),i.createElementVNode("div",O3,[i.createElementVNode("label",_3,i.toDisplayString(i.unref(e)("Border Style")),1),i.withDirectives(i.createElementVNode("select",{id:"border-style","onUpdate:modelValue":m[0]||(m[0]=b=>n.value=b),class:"pbx-myPrimarySelect",onChange:m[1]||(m[1]=b=>i.unref(t).handleBorderStyle(n.value))},[i.createElementVNode("option",z3,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ur).borderStyle,b=>(i.openBlock(),i.createElementBlock("option",{key:b},i.toDisplayString(b),1))),128))],544),[[i.vModelSelect,n.value]])]),m[8]||(m[8]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",R3,[i.createElementVNode("label",H3,i.toDisplayString(i.unref(e)("Border Width")),1),i.withDirectives(i.createElementVNode("select",{id:"border-width","onUpdate:modelValue":m[2]||(m[2]=b=>a.value=b),class:"pbx-myPrimarySelect",onChange:m[3]||(m[3]=b=>i.unref(t).handleBorderWidth(a.value))},[i.createElementVNode("option",F3,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ur).borderWidth,b=>(i.openBlock(),i.createElementBlock("option",{key:b},i.toDisplayString(b),1))),128))],544),[[i.vModelSelect,a.value]])]),m[9]||(m[9]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",j3,[i.createElementVNode("label",q3,i.toDisplayString(i.unref(e)("Border Color")),1),i.createVNode(i.unref(qr),{as:"div",modelValue:l.value,"onUpdate:modelValue":m[5]||(m[5]=b=>l.value=b)},{default:i.withCtx(()=>[i.createElementVNode("div",W3,[i.createVNode(i.unref(Gt),{class:"pbx-myPrimarySelect",id:"border-color"},{default:i.withCtx(()=>{var b;return[i.createElementVNode("span",U3,[d.value==="none"?(i.openBlock(),i.createElementBlock("div",G3,[...m[6]||(m[6]=[i.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[i.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)])])):i.createCommentVNode("",!0),l.value!=="none"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-sm",`pbx-bg-${(b=l.value)==null?void 0:b.replace("pbx-border-","")}`])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("span",K3,i.toDisplayString(l.value),1)])]}),_:1}),i.createVNode(i.Transition,{"leave-active-class":"pbx-transition pbx-ease-in pbx-duration-100","leave-from-class":"pbx-opacity-100","leave-to-class":"pbx-opacity-0"},{default:i.withCtx(()=>[i.createVNode(i.unref(Wr),{class:"pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ur).borderColor,b=>(i.openBlock(),i.createBlock(i.unref(Ur),{as:"template",onClick:m[4]||(m[4]=u=>i.unref(t).handleBorderColor(l.value)),key:b,value:b},{default:i.withCtx(({active:u,borderColor:g})=>[i.createElementVNode("li",{class:i.normalizeClass([u?"pbx-bg-myPrimaryLinkColor pbx-text-white":"pbx-text-myPrimaryDarkGrayColor","pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"])},[i.createElementVNode("div",J3,[b==="none"?(i.openBlock(),i.createElementBlock("div",Y3,[...m[7]||(m[7]=[i.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[i.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)])])):i.createCommentVNode("",!0),b!=="none"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950",`pbx-bg-${b.replace("pbx-border-","")}`])},null,2)):i.createCommentVNode("",!0),b==="none"?(i.openBlock(),i.createElementBlock("span",Q3,i.toDisplayString(i.unref(e)("Transparent")),1)):i.createCommentVNode("",!0),b!=="none"?(i.openBlock(),i.createElementBlock("span",X3,i.toDisplayString(b),1)):i.createCommentVNode("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])])]),_:1}))}};function fe(r){this.content=r}fe.prototype={constructor:fe,find:function(r){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===r)return e;return-1},get:function(r){var e=this.find(r);return e==-1?void 0:this.content[e+1]},update:function(r,e,t){var o=t&&t!=r?this.remove(t):this,n=o.find(r),a=o.content.slice();return n==-1?a.push(t||r,e):(a[n+1]=e,t&&(a[n]=t)),new fe(a)},remove:function(r){var e=this.find(r);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new fe(t)},addToStart:function(r,e){return new fe([r,e].concat(this.remove(r).content))},addToEnd:function(r,e){var t=this.remove(r).content.slice();return t.push(r,e),new fe(t)},addBefore:function(r,e,t){var o=this.remove(e),n=o.content.slice(),a=o.find(r);return n.splice(a==-1?n.length:a,0,e,t),new fe(n)},forEach:function(r){for(var e=0;e<this.content.length;e+=2)r(this.content[e],this.content[e+1])},prepend:function(r){return r=fe.from(r),r.size?new fe(r.content.concat(this.subtract(r).content)):this},append:function(r){return r=fe.from(r),r.size?new fe(this.subtract(r).content.concat(r.content)):this},subtract:function(r){var e=this;r=fe.from(r);for(var t=0;t<r.content.length;t+=2)e=e.remove(r.content[t]);return e},toObject:function(){var r={};return this.forEach(function(e,t){r[e]=t}),r},get size(){return this.content.length>>1}},fe.from=function(r){if(r instanceof fe)return r;var e=[];if(r)for(var t in r)e.push(t,r[t]);return new fe(e)};function Xx(r,e,t){for(let o=0;;o++){if(o==r.childCount||o==e.childCount)return r.childCount==e.childCount?null:t;let n=r.child(o),a=e.child(o);if(n==a){t+=n.nodeSize;continue}if(!n.sameMarkup(a))return t;if(n.isText&&n.text!=a.text){for(let l=0;n.text[l]==a.text[l];l++)t++;return t}if(n.content.size||a.content.size){let l=Xx(n.content,a.content,t+1);if(l!=null)return l}t+=n.nodeSize}}function Zx(r,e,t,o){for(let n=r.childCount,a=e.childCount;;){if(n==0||a==0)return n==a?null:{a:t,b:o};let l=r.child(--n),s=e.child(--a),p=l.nodeSize;if(l==s){t-=p,o-=p;continue}if(!l.sameMarkup(s))return{a:t,b:o};if(l.isText&&l.text!=s.text){let d=0,c=Math.min(l.text.length,s.text.length);for(;d<c&&l.text[l.text.length-d-1]==s.text[s.text.length-d-1];)d++,t--,o--;return{a:t,b:o}}if(l.content.size||s.content.size){let d=Zx(l.content,s.content,t-1,o-1);if(d)return d}t-=p,o-=p}}class E{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,t,o,n=0,a){for(let l=0,s=0;s<t;l++){let p=this.content[l],d=s+p.nodeSize;if(d>e&&o(p,n+s,a||null,l)!==!1&&p.content.size){let c=s+1;p.nodesBetween(Math.max(0,e-c),Math.min(p.content.size,t-c),o,n+c)}s=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,o,n){let a="",l=!0;return this.nodesBetween(e,t,(s,p)=>{let d=s.isText?s.text.slice(Math.max(e,p)-p,t-p):s.isLeaf?n?typeof n=="function"?n(s):n:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&d||s.isTextblock)&&o&&(l?l=!1:a+=o),a+=d},0),a}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,o=e.firstChild,n=this.content.slice(),a=0;for(t.isText&&t.sameMarkup(o)&&(n[n.length-1]=t.withText(t.text+o.text),a=1);a<e.content.length;a++)n.push(e.content[a]);return new E(n,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let o=[],n=0;if(t>e)for(let a=0,l=0;l<t;a++){let s=this.content[a],p=l+s.nodeSize;p>e&&((l<e||p>t)&&(s.isText?s=s.cut(Math.max(0,e-l),Math.min(s.text.length,t-l)):s=s.cut(Math.max(0,e-l-1),Math.min(s.content.size,t-l-1))),o.push(s),n+=s.nodeSize),l=p}return new E(o,n)}cutByIndex(e,t){return e==t?E.empty:e==0&&t==this.content.length?this:new E(this.content.slice(e,t))}replaceChild(e,t){let o=this.content[e];if(o==t)return this;let n=this.content.slice(),a=this.size+t.nodeSize-o.nodeSize;return n[e]=t,new E(n,a)}addToStart(e){return new E([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new E(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,o=0;t<this.content.length;t++){let n=this.content[t];e(n,o,t),o+=n.nodeSize}}findDiffStart(e,t=0){return Xx(this,e,t)}findDiffEnd(e,t=this.size,o=e.size){return Zx(this,e,t,o)}findIndex(e){if(e==0)return Ho(0,e);if(e==this.size)return Ho(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,o=0;;t++){let n=this.child(t),a=o+n.nodeSize;if(a>=e)return a==e?Ho(t+1,a):Ho(t,o);o=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return E.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new E(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return E.empty;let t,o=0;for(let n=0;n<e.length;n++){let a=e[n];o+=a.nodeSize,n&&a.isText&&e[n-1].sameMarkup(a)?(t||(t=e.slice(0,n)),t[t.length-1]=a.withText(t[t.length-1].text+a.text)):t&&t.push(a)}return new E(t||e,o)}static from(e){if(!e)return E.empty;if(e instanceof E)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new E([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}E.empty=new E([],0);const Pn={index:0,offset:0};function Ho(r,e){return Pn.index=r,Pn.offset=e,Pn}function Fo(r,e){if(r===e)return!0;if(!(r&&typeof r=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(r);if(Array.isArray(e)!=t)return!1;if(t){if(r.length!=e.length)return!1;for(let o=0;o<r.length;o++)if(!Fo(r[o],e[o]))return!1}else{for(let o in r)if(!(o in e)||!Fo(r[o],e[o]))return!1;for(let o in e)if(!(o in r))return!1}return!0}let K=class vl{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,o=!1;for(let n=0;n<e.length;n++){let a=e[n];if(this.eq(a))return e;if(this.type.excludes(a.type))t||(t=e.slice(0,n));else{if(a.type.excludes(this.type))return e;!o&&a.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),o=!0),t&&t.push(a)}}return t||(t=e.slice()),o||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Fo(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[t.type];if(!o)throw new RangeError(`There is no mark type ${t.type} in this schema`);let n=o.create(t.attrs);return o.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(t[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return vl.none;if(e instanceof vl)return[e];let t=e.slice();return t.sort((o,n)=>o.type.rank-n.type.rank),t}};K.none=[];class jo extends Error{}class D{constructor(e,t,o){this.content=e,this.openStart=t,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let o=eh(this.content,e+this.openStart,t);return o&&new D(o,this.openStart,this.openEnd)}removeBetween(e,t){return new D($x(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return D.empty;let o=t.openStart||0,n=t.openEnd||0;if(typeof o!="number"||typeof n!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new D(E.fromJSON(e,t.content),o,n)}static maxOpen(e,t=!0){let o=0,n=0;for(let a=e.firstChild;a&&!a.isLeaf&&(t||!a.type.spec.isolating);a=a.firstChild)o++;for(let a=e.lastChild;a&&!a.isLeaf&&(t||!a.type.spec.isolating);a=a.lastChild)n++;return new D(e,o,n)}}D.empty=new D(E.empty,0,0);function $x(r,e,t){let{index:o,offset:n}=r.findIndex(e),a=r.maybeChild(o),{index:l,offset:s}=r.findIndex(t);if(n==e||a.isText){if(s!=t&&!r.child(l).isText)throw new RangeError("Removing non-flat range");return r.cut(0,e).append(r.cut(t))}if(o!=l)throw new RangeError("Removing non-flat range");return r.replaceChild(o,a.copy($x(a.content,e-n-1,t-n-1)))}function eh(r,e,t,o){let{index:n,offset:a}=r.findIndex(e),l=r.maybeChild(n);if(a==e||l.isText)return o&&!o.canReplace(n,n,t)?null:r.cut(0,e).append(t).append(r.cut(e));let s=eh(l.content,e-a-1,t,l);return s&&r.replaceChild(n,l.copy(s))}function Z3(r,e,t){if(t.openStart>r.depth)throw new jo("Inserted content deeper than insertion position");if(r.depth-t.openStart!=e.depth-t.openEnd)throw new jo("Inconsistent open depths");return th(r,e,t,0)}function th(r,e,t,o){let n=r.index(o),a=r.node(o);if(n==e.index(o)&&o<r.depth-t.openStart){let l=th(r,e,t,o+1);return a.copy(a.content.replaceChild(n,l))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&r.depth==o&&e.depth==o){let l=r.parent,s=l.content;return Jt(l,s.cut(0,r.parentOffset).append(t.content).append(s.cut(e.parentOffset)))}else{let{start:l,end:s}=$3(t,r);return Jt(a,oh(r,l,s,e,o))}else return Jt(a,qo(r,e,o))}function rh(r,e){if(!e.type.compatibleContent(r.type))throw new jo("Cannot join "+e.type.name+" onto "+r.type.name)}function Ln(r,e,t){let o=r.node(t);return rh(o,e.node(t)),o}function Kt(r,e){let t=e.length-1;t>=0&&r.isText&&r.sameMarkup(e[t])?e[t]=r.withText(e[t].text+r.text):e.push(r)}function Gr(r,e,t,o){let n=(e||r).node(t),a=0,l=e?e.index(t):n.childCount;r&&(a=r.index(t),r.depth>t?a++:r.textOffset&&(Kt(r.nodeAfter,o),a++));for(let s=a;s<l;s++)Kt(n.child(s),o);e&&e.depth==t&&e.textOffset&&Kt(e.nodeBefore,o)}function Jt(r,e){return r.type.checkContent(e),r.copy(e)}function oh(r,e,t,o,n){let a=r.depth>n&&Ln(r,e,n+1),l=o.depth>n&&Ln(t,o,n+1),s=[];return Gr(null,r,n,s),a&&l&&e.index(n)==t.index(n)?(rh(a,l),Kt(Jt(a,oh(r,e,t,o,n+1)),s)):(a&&Kt(Jt(a,qo(r,e,n+1)),s),Gr(e,t,n,s),l&&Kt(Jt(l,qo(t,o,n+1)),s)),Gr(o,null,n,s),new E(s)}function qo(r,e,t){let o=[];if(Gr(null,r,t,o),r.depth>t){let n=Ln(r,e,t+1);Kt(Jt(n,qo(r,e,t+1)),o)}return Gr(e,null,t,o),new E(o)}function $3(r,e){let t=e.depth-r.openStart,n=e.node(t).copy(r.content);for(let a=t-1;a>=0;a--)n=e.node(a).copy(E.from(n));return{start:n.resolveNoCache(r.openStart+t),end:n.resolveNoCache(n.content.size-r.openEnd-t)}}class Kr{constructor(e,t,o){this.pos=e,this.path=t,this.parentOffset=o,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],n=e.child(t);return o?e.child(t).cut(o):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let o=this.path[t*3],n=t==0?0:this.path[t*3-1]+1;for(let a=0;a<e;a++)n+=o.child(a).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return K.none;if(this.textOffset)return e.child(t).marks;let o=e.maybeChild(t-1),n=e.maybeChild(t);if(!o){let s=o;o=n,n=s}let a=o.marks;for(var l=0;l<a.length;l++)a[l].type.spec.inclusive===!1&&(!n||!a[l].isInSet(n.marks))&&(a=a[l--].removeFromSet(a));return a}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let o=t.marks,n=e.parent.maybeChild(e.index());for(var a=0;a<o.length;a++)o[a].type.spec.inclusive===!1&&(!n||!o[a].isInSet(n.marks))&&(o=o[a--].removeFromSet(o));return o}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!t||t(this.node(o))))return new Wo(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let o=[],n=0,a=t;for(let l=e;;){let{index:s,offset:p}=l.content.findIndex(a),d=a-p;if(o.push(l,s,n+p),!d||(l=l.child(s),l.isText))break;a=d-1,n+=p+1}return new Kr(t,o,a)}static resolveCached(e,t){let o=ih.get(e);if(o)for(let a=0;a<o.elts.length;a++){let l=o.elts[a];if(l.pos==t)return l}else ih.set(e,o=new eS);let n=o.elts[o.i]=Kr.resolve(e,t);return o.i=(o.i+1)%tS,n}}class eS{constructor(){this.elts=[],this.i=0}}const tS=12,ih=new WeakMap;class Wo{constructor(e,t,o){this.$from=e,this.$to=t,this.depth=o}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const rS=Object.create(null);let Ct=class Sl{constructor(e,t,o,n=K.none){this.type=e,this.attrs=t,this.marks=n,this.content=o||E.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,o,n=0){this.content.nodesBetween(e,t,o,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,o,n){return this.content.textBetween(e,t,o,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,o){return this.type==e&&Fo(this.attrs,t||e.defaultAttrs||rS)&&K.sameSet(this.marks,o||K.none)}copy(e=null){return e==this.content?this:new Sl(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Sl(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,o=!1){if(e==t)return D.empty;let n=this.resolve(e),a=this.resolve(t),l=o?0:n.sharedDepth(t),s=n.start(l),d=n.node(l).content.cut(n.pos-s,a.pos-s);return new D(d,n.depth-l,a.depth-l)}replace(e,t,o){return Z3(this.resolve(e),this.resolve(t),o)}nodeAt(e){for(let t=this;;){let{index:o,offset:n}=t.content.findIndex(e);if(t=t.maybeChild(o),!t)return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(t),index:t,offset:o};let n=this.content.child(t-1);return{node:n,index:t-1,offset:o-n.nodeSize}}resolve(e){return Kr.resolveCached(this,e)}resolveNoCache(e){return Kr.resolve(this,e)}rangeHasMark(e,t,o){let n=!1;return t>e&&this.nodesBetween(e,t,a=>(o.isInSet(a.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),nh(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,o=E.empty,n=0,a=o.childCount){let l=this.contentMatchAt(e).matchFragment(o,n,a),s=l&&l.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let p=n;p<a;p++)if(!this.type.allowsMarks(o.child(p).marks))return!1;return!0}canReplaceWith(e,t,o,n){if(n&&!this.type.allowsMarks(n))return!1;let a=this.contentMatchAt(e).matchType(o),l=a&&a.matchFragment(this.content,t);return l?l.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=K.none;for(let t=0;t<this.marks.length;t++){let o=this.marks[t];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!K.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let o;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,o)}let n=E.fromJSON(e,t.content),a=e.nodeType(t.type).create(t.attrs,n,o);return a.type.checkAttrs(a.attrs),a}};Ct.prototype.text=void 0;class Uo extends Ct{constructor(e,t,o,n){if(super(e,t,null,n),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):nh(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Uo(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Uo(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function nh(r,e){for(let t=r.length-1;t>=0;t--)e=r[t].type.name+"("+e+")";return e}class Yt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let o=new oS(e,t);if(o.next==null)return Yt.empty;let n=ah(o);o.next&&o.err("Unexpected trailing text");let a=dS(pS(n));return cS(a,o),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,o=e.childCount){let n=this;for(let a=t;n&&a<o;a++)n=n.matchType(e.child(a).type);return n}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let o=0;o<e.next.length;o++)if(this.next[t].type==e.next[o].type)return!0;return!1}fillBefore(e,t=!1,o=0){let n=[this];function a(l,s){let p=l.matchFragment(e,o);if(p&&(!t||p.validEnd))return E.from(s.map(d=>d.createAndFill()));for(let d=0;d<l.next.length;d++){let{type:c,next:m}=l.next[d];if(!(c.isText||c.hasRequiredAttrs())&&n.indexOf(m)==-1){n.push(m);let b=a(m,s.concat(c));if(b)return b}}return null}return a(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let n=o.shift(),a=n.match;if(a.matchType(e)){let l=[];for(let s=n;s.type;s=s.via)l.push(s.type);return l.reverse()}for(let l=0;l<a.next.length;l++){let{type:s,next:p}=a.next[l];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in t)&&(!n.type||p.validEnd)&&(o.push({match:s.contentMatch,type:s,via:n}),t[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(o){e.push(o);for(let n=0;n<o.next.length;n++)e.indexOf(o.next[n].next)==-1&&t(o.next[n].next)}return t(this),e.map((o,n)=>{let a=n+(o.validEnd?"*":" ")+" ";for(let l=0;l<o.next.length;l++)a+=(l?", ":"")+o.next[l].type.name+"->"+e.indexOf(o.next[l].next);return a}).join(`
@@ -121,7 +121,7 @@ img.ProseMirror-separator {
121
121
  `,S6="️",k6="‍",tl="";let Zi=null,$i=null;function C6(r=[]){const e={};De.groups=e;const t=new De;Zi==null&&(Zi=u0(x6)),$i==null&&($i=u0(h6)),M(t,"'",Hi),M(t,"{",ho),M(t,"}",fo),M(t,"[",Ei),M(t,"]",Ti),M(t,"(",Mi),M(t,")",Bi),M(t,"<",Ni),M(t,">",Pi),M(t,"(",Li),M(t,")",Di),M(t,"「",Ai),M(t,"」",Vi),M(t,"『",Ii),M(t,"』",Oi),M(t,"<",_i),M(t,">",zi),M(t,"&",Ri),M(t,"*",Fi),M(t,"@",zt),M(t,"`",qi),M(t,"^",Wi),M(t,":",Rt),M(t,",",Ja),M(t,"$",Ui),M(t,".",rt),M(t,"=",Gi),M(t,"!",Ya),M(t,"-",je),M(t,"%",yo),M(t,"|",Ki),M(t,"+",Ji),M(t,"#",Yi),M(t,"?",wo),M(t,'"',Qa),M(t,"/",ot),M(t,";",Xa),M(t,"~",vo),M(t,"_",Qi),M(t,"\\",ji),M(t,"・",p0);const o=ee(t,ft,Ua,{[_a]:!0});ee(o,ft,o);const n=ee(o,ht,l0,{[uo]:!0}),a=ee(o,So,s0,{[go]:!0}),l=ee(t,ht,xt,{[za]:!0});ee(l,ft,n),ee(l,ht,l),ee(n,ft,n),ee(n,ht,n);const s=ee(t,So,ja,{[Ra]:!0});ee(s,ht),ee(s,ft,a),ee(s,So,s),ee(a,ft,a),ee(a,ht),ee(a,So,a);const p=M(t,el,Ka,{[Fa]:!0}),d=M(t,m0,Ga,{[Fa]:!0}),c=ee(t,$a,Ga,{[Fa]:!0});M(t,tl,c),M(d,el,p),M(d,tl,c),ee(d,$a,c),M(c,m0),M(c,el),ee(c,$a,c),M(c,tl,c);const m=ee(t,Za,d0,{[n0]:!0});M(m,"#"),ee(m,Za,m),M(m,S6,m);const b=M(m,k6);M(b,"#"),ee(b,Za,m);const u=[[ht,l],[ft,n]],g=[[ht,null],[So,s],[ft,a]];for(let x=0;x<Zi.length;x++)Ht(t,Zi[x],qa,xt,u);for(let x=0;x<$i.length;x++)Ht(t,$i[x],Wa,ja,g);sr(qa,{tld:!0,ascii:!0},e),sr(Wa,{utld:!0,alpha:!0},e),Ht(t,"file",Ci,xt,u),Ht(t,"mailto",Ci,xt,u),Ht(t,"http",Ar,xt,u),Ht(t,"https",Ar,xt,u),Ht(t,"ftp",Ar,xt,u),Ht(t,"ftps",Ar,xt,u),sr(Ci,{scheme:!0,ascii:!0},e),sr(Ar,{slashscheme:!0,ascii:!0},e),r=r.sort((x,h)=>x[0]>h[0]?1:-1);for(let x=0;x<r.length;x++){const h=r[x][0],w=r[x][1]?{[f6]:!0}:{[y6]:!0};h.indexOf("-")>=0?w[Ha]=!0:ht.test(h)?ft.test(h)?w[uo]=!0:w[za]=!0:w[_a]=!0,a0(t,h,h,w)}return a0(t,"localhost",xo,{ascii:!0}),t.jd=new De(Xi),{start:t,tokens:Object.assign({groups:e},c0)}}function b0(r,e){const t=E6(e.replace(/[A-Z]/g,s=>s.toLowerCase())),o=t.length,n=[];let a=0,l=0;for(;l<o;){let s=r,p=null,d=0,c=null,m=-1,b=-1;for(;l<o&&(p=s.go(t[l]));)s=p,s.accepts()?(m=0,b=0,c=s):m>=0&&(m+=t[l].length,b++),d+=t[l].length,a+=t[l].length,l++;a-=m,l-=b,d-=m,n.push({t:c.t,v:e.slice(a-d,a),s:a-d,e:a})}return n}function E6(r){const e=[],t=r.length;let o=0;for(;o<t;){let n=r.charCodeAt(o),a,l=n<55296||n>56319||o+1===t||(a=r.charCodeAt(o+1))<56320||a>57343?r[o]:r.slice(o,o+2);e.push(l),o+=l.length}return e}function Ht(r,e,t,o,n){let a;const l=e.length;for(let s=0;s<l-1;s++){const p=e[s];r.j[p]?a=r.j[p]:(a=new De(o),a.jr=n.slice(),r.j[p]=a),r=a}return a=new De(t),a.jr=n.slice(),r.j[e[l-1]]=a,a}function u0(r){const e=[],t=[];let o=0,n="0123456789";for(;o<r.length;){let a=0;for(;n.indexOf(r[o+a])>=0;)a++;if(a>0){e.push(t.join(""));for(let l=parseInt(r.substring(o,o+a),10);l>0;l--)t.pop();o+=a}else t.push(r[o]),o++}return e}const ko={defaultProtocol:"http",events:null,format:g0,formatHref:g0,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function rl(r,e=null){let t=Object.assign({},ko);r&&(t=Object.assign(t,r instanceof rl?r.o:r));const o=t.ignoreTags,n=[];for(let a=0;a<o.length;a++)n.push(o[a].toUpperCase());this.o=t,e&&(this.defaultRender=e),this.ignoreTags=n}rl.prototype={o:ko,ignoreTags:[],defaultRender(r){return r},check(r){return this.get("validate",r.toString(),r)},get(r,e,t){const o=e!=null;let n=this.o[r];return n&&(typeof n=="object"?(n=t.t in n?n[t.t]:ko[r],typeof n=="function"&&o&&(n=n(e,t))):typeof n=="function"&&o&&(n=n(e,t.t,t)),n)},getObj(r,e,t){let o=this.o[r];return typeof o=="function"&&e!=null&&(o=o(e,t.t,t)),o},render(r){const e=r.render(this);return(this.get("render",null,r)||this.defaultRender)(e,r.t,r)}};function g0(r){return r}function x0(r,e){this.t="token",this.v=r,this.tk=e}x0.prototype={isLink:!1,toString(){return this.v},toHref(r){return this.toString()},toFormattedString(r){const e=this.toString(),t=r.get("truncate",e,this),o=r.get("format",e,this);return t&&o.length>t?o.substring(0,t)+"…":o},toFormattedHref(r){return r.get("formatHref",this.toHref(r.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(r=ko.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(r),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(r){return{type:this.t,value:this.toFormattedString(r),isLink:this.isLink,href:this.toFormattedHref(r),start:this.startIndex(),end:this.endIndex()}},validate(r){return r.get("validate",this.toString(),this)},render(r){const e=this,t=this.toHref(r.get("defaultProtocol")),o=r.get("formatHref",t,this),n=r.get("tagName",t,e),a=this.toFormattedString(r),l={},s=r.get("className",t,e),p=r.get("target",t,e),d=r.get("rel",t,e),c=r.getObj("attributes",t,e),m=r.getObj("events",t,e);return l.href=o,s&&(l.class=s),p&&(l.target=p),d&&(l.rel=d),c&&Object.assign(l,c),{tagName:n,attributes:l,content:a,eventListeners:m}}};function en(r,e){class t extends x0{constructor(n,a){super(n,a),this.t=r}}for(const o in e)t.prototype[o]=e[o];return t.t=r,t}const h0=en("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),f0=en("text"),T6=en("nl"),tn=en("url",{isLink:!0,toHref(r=ko.defaultProtocol){return this.hasProtocol()?this.v:`${r}://${this.v}`},hasProtocol(){const r=this.tk;return r.length>=2&&r[0].t!==xo&&r[1].t===Rt}}),qe=r=>new De(r);function M6({groups:r}){const e=r.domain.concat([Ri,Fi,zt,ji,qi,Wi,Ui,Gi,je,Ua,yo,Ki,Ji,Yi,ot,Xi,vo,Qi]),t=[Hi,Rt,Ja,rt,Ya,yo,wo,Qa,Xa,Ni,Pi,ho,fo,Ti,Ei,Mi,Bi,Li,Di,Ai,Vi,Ii,Oi,_i,zi],o=[Ri,Hi,Fi,ji,qi,Wi,Ui,Gi,je,ho,fo,yo,Ki,Ji,Yi,wo,ot,Xi,vo,Qi],n=qe(),a=M(n,vo);j(a,o,a),j(a,r.domain,a);const l=qe(),s=qe(),p=qe();j(n,r.domain,l),j(n,r.scheme,s),j(n,r.slashscheme,p),j(l,o,a),j(l,r.domain,l);const d=M(l,zt);M(a,zt,d),M(s,zt,d),M(p,zt,d);const c=M(a,rt);j(c,o,a),j(c,r.domain,a);const m=qe();j(d,r.domain,m),j(m,r.domain,m);const b=M(m,rt);j(b,r.domain,m);const u=qe(h0);j(b,r.tld,u),j(b,r.utld,u),M(d,xo,u);const g=M(m,je);M(g,je,g),j(g,r.domain,m),j(u,r.domain,m),M(u,rt,b),M(u,je,g);const x=M(u,Rt);j(x,r.numeric,h0);const h=M(l,je),f=M(l,rt);M(h,je,h),j(h,r.domain,l),j(f,o,a),j(f,r.domain,l);const w=qe(tn);j(f,r.tld,w),j(f,r.utld,w),j(w,r.domain,l),j(w,o,a),M(w,rt,f),M(w,je,h),M(w,zt,d);const y=M(w,Rt),v=qe(tn);j(y,r.numeric,v);const S=qe(tn),L=qe();j(S,e,S),j(S,t,L),j(L,e,S),j(L,t,L),M(w,ot,S),M(v,ot,S);const C=M(s,Rt),P=M(p,Rt),V=M(P,ot),T=M(V,ot);j(s,r.domain,l),M(s,rt,f),M(s,je,h),j(p,r.domain,l),M(p,rt,f),M(p,je,h),j(C,r.domain,S),M(C,ot,S),M(C,wo,S),j(T,r.domain,S),j(T,e,S),M(T,ot,S);const B=[[ho,fo],[Ei,Ti],[Mi,Bi],[Ni,Pi],[Li,Di],[Ai,Vi],[Ii,Oi],[_i,zi]];for(let A=0;A<B.length;A++){const[R,N]=B[A],W=M(S,R);M(L,R,W),M(W,N,S);const Ee=qe(tn);j(W,e,Ee);const Ue=qe();j(W,t),j(Ee,e,Ee),j(Ee,t,Ue),j(Ue,e,Ee),j(Ue,t,Ue),M(Ee,N,S),M(Ue,N,S)}return M(n,xo,w),M(n,Ka,T6),{start:n,tokens:c0}}function B6(r,e,t){let o=t.length,n=0,a=[],l=[];for(;n<o;){let s=r,p=null,d=null,c=0,m=null,b=-1;for(;n<o&&!(p=s.go(t[n].t));)l.push(t[n++]);for(;n<o&&(d=p||s.go(t[n].t));)p=null,s=d,s.accepts()?(b=0,m=s):b>=0&&b++,n++,c++;if(b<0)n-=c,n<o&&(l.push(t[n]),n++);else{l.length>0&&(a.push(ol(f0,e,l)),l=[]),n-=b,c-=b;const u=m.t,g=t.slice(n-c,n);a.push(ol(u,e,g))}}return l.length>0&&a.push(ol(f0,e,l)),a}function ol(r,e,t){const o=t[0].s,n=t[t.length-1].e,a=e.slice(o,n);return new r(a,t)}const N6=typeof console<"u"&&console&&console.warn||(()=>{}),P6="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",X={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function L6(){return De.groups={},X.scanner=null,X.parser=null,X.tokenQueue=[],X.pluginQueue=[],X.customSchemes=[],X.initialized=!1,X}function y0(r,e=!1){if(X.initialized&&N6(`linkifyjs: already initialized - will not register custom scheme "${r}" ${P6}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(r))throw new Error(`linkifyjs: incorrect scheme format.
122
122
  1. Must only contain digits, lowercase ASCII letters or "-"
123
123
  2. Cannot start or end with "-"
124
- 3. "-" cannot repeat`);X.customSchemes.push([r,e])}function D6(){X.scanner=C6(X.customSchemes);for(let r=0;r<X.tokenQueue.length;r++)X.tokenQueue[r][1]({scanner:X.scanner});X.parser=M6(X.scanner.tokens);for(let r=0;r<X.pluginQueue.length;r++)X.pluginQueue[r][1]({scanner:X.scanner,parser:X.parser});return X.initialized=!0,X}function il(r){return X.initialized||D6(),B6(X.parser.start,r,b0(X.scanner.start,r))}il.scan=b0;function w0(r,e=null,t=null){if(e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const o=new rl(t),n=il(r),a=[];for(let l=0;l<n.length;l++){const s=n[l];s.isLink&&(!e||s.t===e)&&o.check(s)&&a.push(s.toFormattedObject(o))}return a}var nl="[\0-   ᠎ -\u2029  ]",A6=new RegExp(nl),V6=new RegExp(`${nl}$`),I6=new RegExp(nl,"g");function O6(r){return r.length===1?r[0].isLink:r.length===3&&r[1].isLink?["()","[]"].includes(r[0].value+r[2].value):!1}function _6(r){return new $({key:new ge("autolink"),appendTransaction:(e,t,o)=>{const n=e.some(d=>d.docChanged)&&!t.doc.eq(o.doc),a=e.some(d=>d.getMeta("preventAutolink"));if(!n||a)return;const{tr:l}=o,s=Cy(t.doc,[...e]);if(Iy(s).forEach(({newRange:d})=>{const c=iC(o.doc,d,u=>u.isTextblock);let m,b;if(c.length>1)m=c[0],b=o.doc.textBetween(m.pos,m.pos+m.node.nodeSize,void 0," ");else if(c.length){const u=o.doc.textBetween(d.from,d.to," "," ");if(!V6.test(u))return;m=c[0],b=o.doc.textBetween(m.pos,d.to,void 0," ")}if(m&&b){const u=b.split(A6).filter(Boolean);if(u.length<=0)return!1;const g=u[u.length-1],x=m.pos+b.lastIndexOf(g);if(!g)return!1;const h=il(g).map(f=>f.toObject(r.defaultProtocol));if(!O6(h))return!1;h.filter(f=>f.isLink).map(f=>({...f,from:x+f.start+1,to:x+f.end+1})).filter(f=>o.schema.marks.code?!o.doc.rangeHasMark(f.from,f.to,o.schema.marks.code):!0).filter(f=>r.validate(f.value)).filter(f=>r.shouldAutoLink(f.value)).forEach(f=>{Na(f.from,f.to,o.doc).some(w=>w.mark.type===r.type)||l.addMark(f.from,f.to,r.type.create({href:f.href}))})}}),!!l.steps.length)return l}})}function z6(r){return new $({key:new ge("handleClickLink"),props:{handleClick:(e,t,o)=>{var n,a;if(o.button!==0||!e.editable)return!1;let l=null;if(o.target instanceof HTMLAnchorElement)l=o.target;else{let c=o.target;const m=[];for(;c.nodeName!=="DIV";)m.push(c),c=c.parentNode;l=m.find(b=>b.nodeName==="A")}if(!l)return!1;const s=Vy(e.state,r.type.name),p=(n=l==null?void 0:l.href)!=null?n:s.href,d=(a=l==null?void 0:l.target)!=null?a:s.target;return r.enableClickSelection&&r.editor.commands.extendMarkRange(r.type.name),l&&p?(window.open(p,d),!0):!1}}})}function R6(r){return new $({key:new ge("handlePasteLink"),props:{handlePaste:(e,t,o)=>{const{state:n}=e,{selection:a}=n,{empty:l}=a;if(l)return!1;let s="";o.content.forEach(d=>{s+=d.textContent});const p=w0(s,{defaultProtocol:r.defaultProtocol}).find(d=>d.isLink&&d.value===s);return!s||!p?!1:r.editor.commands.setMark(r.type,{href:p.href})}}})}function pr(r,e){const t=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const n=typeof o=="string"?o:o.scheme;n&&t.push(n)}),!r||r.replace(I6,"").match(new RegExp(`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var H6=ar.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(r=>{if(typeof r=="string"){y0(r);return}y0(r.scheme,r.optionalSlashes)})},onDestroy(){L6()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(r,e)=>!!pr(r,e.protocols),validate:r=>!!r,shouldAutoLink:r=>!!r}},addAttributes(){return{href:{default:null,parseHTML(r){return r.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:r=>{const e=r.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:t=>!!pr(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:r}){return this.options.isAllowedUri(r.href,{defaultValidate:e=>!!pr(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",se(this.options.HTMLAttributes,r),0]:["a",se(this.options.HTMLAttributes,{...r,href:""}),0]},addCommands(){return{setLink:r=>({chain:e})=>{const{href:t}=r;return this.options.isAllowedUri(t,{defaultValidate:o=>!!pr(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,r).setMeta("preventAutolink",!0).run():!1},toggleLink:r=>({chain:e})=>{const{href:t}=r||{};return t&&!this.options.isAllowedUri(t,{defaultValidate:o=>!!pr(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,r,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:r})=>r().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[lr({find:r=>{const e=[];if(r){const{protocols:t,defaultProtocol:o}=this.options,n=w0(r).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:l=>!!pr(l,t),protocols:t,defaultProtocol:o}));n.length&&n.forEach(a=>e.push({text:a.value,data:{href:a.href},index:a.start}))}return e},type:this.type,getAttributes:r=>{var e;return{href:(e=r.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const r=[],{protocols:e,defaultProtocol:t}=this.options;return this.options.autolink&&r.push(_6({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:n=>!!pr(n,e),protocols:e,defaultProtocol:t}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&r.push(z6({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&r.push(R6({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),r}}),F6=Object.defineProperty,j6=(r,e)=>{for(var t in e)F6(r,t,{get:e[t],enumerable:!0})},q6="listItem",v0="textStyle",S0=/^\s*([-+*])\s$/,k0=Ie.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:r}){return["ul",se(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleBulletList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(q6,this.editor.getAttributes(v0)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let r=Dr({find:S0,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(r=Dr({find:S0,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(v0),editor:this.editor})),[r]}}),C0=Ie.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:r}){return["li",se(this.options.HTMLAttributes,r),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),W6={};j6(W6,{findListItemPos:()=>Co,getNextListDepth:()=>al,handleBackspace:()=>ll,handleDelete:()=>sl,hasListBefore:()=>E0,hasListItemAfter:()=>U6,hasListItemBefore:()=>T0,listItemHasSubList:()=>M0,nextListIsDeeper:()=>B0,nextListIsHigher:()=>N0});var Co=(r,e)=>{const{$from:t}=e.selection,o=pe(r,e.schema);let n=null,a=t.depth,l=t.pos,s=null;for(;a>0&&s===null;)n=t.node(a),n.type===o?s=a:(a-=1,l-=1);return s===null?null:{$pos:e.doc.resolve(l),depth:s}},al=(r,e)=>{const t=Co(r,e);if(!t)return!1;const[,o]=uC(e,r,t.$pos.pos+4);return o},E0=(r,e,t)=>{const{$anchor:o}=r.selection,n=Math.max(0,o.pos-2),a=r.doc.resolve(n).node();return!(!a||!t.includes(a.type.name))},T0=(r,e)=>{var t;const{$anchor:o}=e.selection,n=e.doc.resolve(o.pos-2);return!(n.index()===0||((t=n.nodeBefore)==null?void 0:t.type.name)!==r)},M0=(r,e,t)=>{if(!t)return!1;const o=pe(r,e.schema);let n=!1;return t.descendants(a=>{a.type===o&&(n=!0)}),n},ll=(r,e,t)=>{if(r.commands.undoInputRule())return!0;if(r.state.selection.from!==r.state.selection.to)return!1;if(!_t(r.state,e)&&E0(r.state,e,t)){const{$anchor:s}=r.state.selection,p=r.state.doc.resolve(s.before()-1),d=[];p.node().descendants((b,u)=>{b.type.name===e&&d.push({node:b,pos:u})});const c=d.at(-1);if(!c)return!1;const m=r.state.doc.resolve(p.start()+c.pos+1);return r.chain().cut({from:s.start()-1,to:s.end()+1},m.end()).joinForward().run()}if(!_t(r.state,e)||!fC(r.state))return!1;const o=Co(e,r.state);if(!o)return!1;const a=r.state.doc.resolve(o.$pos.pos-2).node(o.depth),l=M0(e,r.state,a);return T0(e,r.state)&&!l?r.commands.joinItemBackward():r.chain().liftListItem(e).run()},B0=(r,e)=>{const t=al(r,e),o=Co(r,e);return!o||!t?!1:t>o.depth},N0=(r,e)=>{const t=al(r,e),o=Co(r,e);return!o||!t?!1:t<o.depth},sl=(r,e)=>{if(!_t(r.state,e)||!hC(r.state,e))return!1;const{selection:t}=r.state,{$from:o,$to:n}=t;return!t.empty&&o.sameParent(n)?!1:B0(e,r.state)?r.chain().focus(r.state.selection.from+4).lift(e).joinBackward().run():N0(e,r.state)?r.chain().joinForward().joinBackward().run():r.commands.joinItemForward()},U6=(r,e)=>{var t;const{$anchor:o}=e.selection,n=e.doc.resolve(o.pos-o.parentOffset-2);return!(n.index()===n.parent.childCount-1||((t=n.nodeAfter)==null?void 0:t.type.name)!==r)},P0=ie.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:r})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t})=>{r.state.schema.nodes[t]!==void 0&&sl(r,t)&&(e=!0)}),e},"Mod-Delete":({editor:r})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t})=>{r.state.schema.nodes[t]!==void 0&&sl(r,t)&&(e=!0)}),e},Backspace:({editor:r})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t,wrapperNames:o})=>{r.state.schema.nodes[t]!==void 0&&ll(r,t,o)&&(e=!0)}),e},"Mod-Backspace":({editor:r})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t,wrapperNames:o})=>{r.state.schema.nodes[t]!==void 0&&ll(r,t,o)&&(e=!0)}),e}}}}),G6="listItem",L0="textStyle",D0=/^(\d+)\.\s$/,A0=Ie.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:r=>r.hasAttribute("start")?parseInt(r.getAttribute("start")||"",10):1},type:{default:null,parseHTML:r=>r.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:r}){const{start:e,...t}=r;return e===1?["ol",se(this.options.HTMLAttributes,t),0]:["ol",se(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleOrderedList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(G6,this.editor.getAttributes(L0)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let r=Dr({find:D0,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(r=Dr({find:D0,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(L0)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[r]}}),K6=/^\s*(\[([( |x])?\])\s$/,J6=Ie.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:r=>{const e=r.getAttribute("data-checked");return e===""||e==="true"},renderHTML:r=>({"data-checked":r.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:r,HTMLAttributes:e}){return["li",se(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:r.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const r={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...r,Tab:()=>this.editor.commands.sinkListItem(this.name)}:r},addNodeView(){return({node:r,HTMLAttributes:e,getPos:t,editor:o})=>{const n=document.createElement("li"),a=document.createElement("label"),l=document.createElement("span"),s=document.createElement("input"),p=document.createElement("div"),d=c=>{var m,b;s.ariaLabel=((b=(m=this.options.a11y)==null?void 0:m.checkboxLabel)==null?void 0:b.call(m,c,s.checked))||`Task item checkbox for ${c.textContent||"empty task item"}`};return d(r),a.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",c=>c.preventDefault()),s.addEventListener("change",c=>{if(!o.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}const{checked:m}=c.target;o.isEditable&&typeof t=="function"&&o.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:b})=>{const u=t();if(typeof u!="number")return!1;const g=b.doc.nodeAt(u);return b.setNodeMarkup(u,void 0,{...g==null?void 0:g.attrs,checked:m}),!0}).run(),!o.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(r,m)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([c,m])=>{n.setAttribute(c,m)}),n.dataset.checked=r.attrs.checked,s.checked=r.attrs.checked,a.append(s,l),n.append(a,p),Object.entries(e).forEach(([c,m])=>{n.setAttribute(c,m)}),{dom:n,contentDOM:p,update:c=>c.type!==this.type?!1:(n.dataset.checked=c.attrs.checked,s.checked=c.attrs.checked,d(c),!0)}}},addInputRules(){return[Dr({find:K6,type:this.type,getAttributes:r=>({checked:r[r.length-1]==="x"})})]}}),Y6=Ie.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:r}){return["ul",se(this.options.HTMLAttributes,r,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:r})=>r.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});ie.create({name:"listKit",addExtensions(){const r=[];return this.options.bulletList!==!1&&r.push(k0.configure(this.options.bulletList)),this.options.listItem!==!1&&r.push(C0.configure(this.options.listItem)),this.options.listKeymap!==!1&&r.push(P0.configure(this.options.listKeymap)),this.options.orderedList!==!1&&r.push(A0.configure(this.options.orderedList)),this.options.taskItem!==!1&&r.push(J6.configure(this.options.taskItem)),this.options.taskList!==!1&&r.push(Y6.configure(this.options.taskList)),r}});var Q6=Ie.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:r}){return["p",se(this.options.HTMLAttributes,r),0]},addCommands(){return{setParagraph:()=>({commands:r})=>r.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),X6=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Z6=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,$6=ar.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:r=>r.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["s",se(this.options.HTMLAttributes,r),0]},addCommands(){return{setStrike:()=>({commands:r})=>r.setMark(this.name),toggleStrike:()=>({commands:r})=>r.toggleMark(this.name),unsetStrike:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Lr({find:X6,type:this.type})]},addPasteRules(){return[lr({find:Z6,type:this.type})]}}),eT=Ie.create({name:"text",group:"inline"}),tT=ar.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:r=>r.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["u",se(this.options.HTMLAttributes,r),0]},addCommands(){return{setUnderline:()=>({commands:r})=>r.setMark(this.name),toggleUnderline:()=>({commands:r})=>r.toggleMark(this.name),unsetUnderline:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function rT(r={}){return new $({view(e){return new oT(e,r)}})}class oT{constructor(e,t){var o;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(o=t.width)!==null&&o!==void 0?o:1,this.color=t.color===!1?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(n=>{let a=l=>{this[n](l)};return e.dom.addEventListener(n,a),{name:n,handler:a}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,o,n=this.editorView.dom,a=n.getBoundingClientRect(),l=a.width/n.offsetWidth,s=a.height/n.offsetHeight;if(t){let m=e.nodeBefore,b=e.nodeAfter;if(m||b){let u=this.editorView.nodeDOM(this.cursorPos-(m?m.nodeSize:0));if(u){let g=u.getBoundingClientRect(),x=m?g.bottom:g.top;m&&b&&(x=(x+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let h=this.width/2*s;o={left:g.left,right:g.right,top:x-h,bottom:x+h}}}}if(!o){let m=this.editorView.coordsAtPos(this.cursorPos),b=this.width/2*l;o={left:m.left-b,right:m.left+b,top:m.top,bottom:m.bottom}}let p=this.editorView.dom.offsetParent;this.element||(this.element=p.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t);let d,c;if(!p||p==document.body&&getComputedStyle(p).position=="static")d=-pageXOffset,c=-pageYOffset;else{let m=p.getBoundingClientRect(),b=m.width/p.offsetWidth,u=m.height/p.offsetHeight;d=m.left-p.scrollLeft*b,c=m.top-p.scrollTop*u}this.element.style.left=(o.left-d)/l+"px",this.element.style.top=(o.top-c)/s+"px",this.element.style.width=(o.right-o.left)/l+"px",this.element.style.height=(o.bottom-o.top)/s+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),o=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=o&&o.type.spec.disableDropCursor,a=typeof n=="function"?n(this.editorView,t,e):n;if(t&&!a){let l=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=Ih(this.editorView.state.doc,l,this.editorView.dragging.slice);s!=null&&(l=s)}this.setCursor(l),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class te extends F{constructor(e){super(e,e)}map(e,t){let o=e.resolve(t.map(this.head));return te.valid(o)?new te(o):F.near(o)}content(){return D.empty}eq(e){return e instanceof te&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new te(e.resolve(t.pos))}getBookmark(){return new pl(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!iT(e)||!nT(e))return!1;let o=t.type.spec.allowGapCursor;if(o!=null)return o;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,o=!1){e:for(;;){if(!o&&te.valid(e))return e;let n=e.pos,a=null;for(let l=e.depth;;l--){let s=e.node(l);if(t>0?e.indexAfter(l)<s.childCount:e.index(l)>0){a=s.child(t>0?e.indexAfter(l):e.index(l)-1);break}else if(l==0)return null;n+=t;let p=e.doc.resolve(n);if(te.valid(p))return p}for(;;){let l=t>0?a.firstChild:a.lastChild;if(!l){if(a.isAtom&&!a.isText&&!O.isSelectable(a)){e=e.doc.resolve(n+a.nodeSize*t),o=!1;continue e}break}a=l,n+=t;let s=e.doc.resolve(n);if(te.valid(s))return s}return null}}}te.prototype.visible=!1,te.findFrom=te.findGapCursorFrom,F.jsonID("gapcursor",te);class pl{constructor(e){this.pos=e}map(e){return new pl(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return te.valid(t)?new te(t):F.near(t)}}function iT(r){for(let e=r.depth;e>=0;e--){let t=r.index(e),o=r.node(e);if(t==0){if(o.type.spec.isolating)return!0;continue}for(let n=o.child(t-1);;n=n.lastChild){if(n.childCount==0&&!n.inlineContent||n.isAtom||n.type.spec.isolating)return!0;if(n.inlineContent)return!1}}return!0}function nT(r){for(let e=r.depth;e>=0;e--){let t=r.indexAfter(e),o=r.node(e);if(t==o.childCount){if(o.type.spec.isolating)return!0;continue}for(let n=o.child(t);;n=n.firstChild){if(n.childCount==0&&!n.inlineContent||n.isAtom||n.type.spec.isolating)return!0;if(n.inlineContent)return!1}}return!0}function aT(){return new $({props:{decorations:dT,createSelectionBetween(r,e,t){return e.pos==t.pos&&te.valid(t)?new te(t):null},handleClick:sT,handleKeyDown:lT,handleDOMEvents:{beforeinput:pT}}})}const lT=py({ArrowLeft:rn("horiz",-1),ArrowRight:rn("horiz",1),ArrowUp:rn("vert",-1),ArrowDown:rn("vert",1)});function rn(r,e){const t=r=="vert"?e>0?"down":"up":e>0?"right":"left";return function(o,n,a){let l=o.selection,s=e>0?l.$to:l.$from,p=l.empty;if(l instanceof H){if(!a.endOfTextblock(t)||s.depth==0)return!1;p=!1,s=o.doc.resolve(e>0?s.after():s.before())}let d=te.findGapCursorFrom(s,e,p);return d?(n&&n(o.tr.setSelection(new te(d))),!0):!1}}function sT(r,e,t){if(!r||!r.editable)return!1;let o=r.state.doc.resolve(e);if(!te.valid(o))return!1;let n=r.posAtCoords({left:t.clientX,top:t.clientY});return n&&n.inside>-1&&O.isSelectable(r.state.doc.nodeAt(n.inside))?!1:(r.dispatch(r.state.tr.setSelection(new te(o))),!0)}function pT(r,e){if(e.inputType!="insertCompositionText"||!(r.state.selection instanceof te))return!1;let{$from:t}=r.state.selection,o=t.parent.contentMatchAt(t.index()).findWrapping(r.state.schema.nodes.text);if(!o)return!1;let n=E.empty;for(let l=o.length-1;l>=0;l--)n=E.from(o[l].createAndFill(null,n));let a=r.state.tr.replace(t.pos,t.pos,new D(n,0,0));return a.setSelection(H.near(a.doc.resolve(t.pos+1))),r.dispatch(a),!1}function dT(r){if(!(r.selection instanceof te))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Z.create(r.doc,[Pe.widget(r.selection.head,e,{key:"gapcursor"})])}var on=200,xe=function(){};xe.prototype.append=function(e){return e.length?(e=xe.from(e),!this.length&&e||e.length<on&&this.leafAppend(e)||this.length<on&&e.leafPrepend(this)||this.appendInner(e)):this},xe.prototype.prepend=function(e){return e.length?xe.from(e).append(this):this},xe.prototype.appendInner=function(e){return new cT(this,e)},xe.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?xe.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},xe.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},xe.prototype.forEach=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length),t<=o?this.forEachInner(e,t,o,0):this.forEachInvertedInner(e,t,o,0)},xe.prototype.map=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length);var n=[];return this.forEach(function(a,l){return n.push(e(a,l))},t,o),n},xe.from=function(e){return e instanceof xe?e:e&&e.length?new V0(e):xe.empty};var V0=(function(r){function e(o){r.call(this),this.values=o}r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(n,a){return n==0&&a==this.length?this:new e(this.values.slice(n,a))},e.prototype.getInner=function(n){return this.values[n]},e.prototype.forEachInner=function(n,a,l,s){for(var p=a;p<l;p++)if(n(this.values[p],s+p)===!1)return!1},e.prototype.forEachInvertedInner=function(n,a,l,s){for(var p=a-1;p>=l;p--)if(n(this.values[p],s+p)===!1)return!1},e.prototype.leafAppend=function(n){if(this.length+n.length<=on)return new e(this.values.concat(n.flatten()))},e.prototype.leafPrepend=function(n){if(this.length+n.length<=on)return new e(n.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e})(xe);xe.empty=new V0([]);var cT=(function(r){function e(t,o){r.call(this),this.left=t,this.right=o,this.length=t.length+o.length,this.depth=Math.max(t.depth,o.depth)+1}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(o){return o<this.left.length?this.left.get(o):this.right.get(o-this.left.length)},e.prototype.forEachInner=function(o,n,a,l){var s=this.left.length;if(n<s&&this.left.forEachInner(o,n,Math.min(a,s),l)===!1||a>s&&this.right.forEachInner(o,Math.max(n-s,0),Math.min(this.length,a)-s,l+s)===!1)return!1},e.prototype.forEachInvertedInner=function(o,n,a,l){var s=this.left.length;if(n>s&&this.right.forEachInvertedInner(o,n-s,Math.max(a,s)-s,l+s)===!1||a<s&&this.left.forEachInvertedInner(o,Math.min(n,s),a,l)===!1)return!1},e.prototype.sliceInner=function(o,n){if(o==0&&n==this.length)return this;var a=this.left.length;return n<=a?this.left.slice(o,n):o>=a?this.right.slice(o-a,n-a):this.left.slice(o,a).append(this.right.slice(0,n-a))},e.prototype.leafAppend=function(o){var n=this.right.leafAppend(o);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(o){var n=this.left.leafPrepend(o);if(n)return new e(n,this.right)},e.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new e(this.left,new e(this.right,o)):new e(this,o)},e})(xe);const mT=500;class Ye{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let n,a;t&&(n=this.remapping(o,this.items.length),a=n.maps.length);let l=e.tr,s,p,d=[],c=[];return this.items.forEach((m,b)=>{if(!m.step){n||(n=this.remapping(o,b+1),a=n.maps.length),a--,c.push(m);return}if(n){c.push(new it(m.map));let u=m.step.map(n.slice(a)),g;u&&l.maybeStep(u).doc&&(g=l.mapping.maps[l.mapping.maps.length-1],d.push(new it(g,void 0,void 0,d.length+c.length))),a--,g&&n.appendMap(g,a)}else l.maybeStep(m.step);if(m.selection)return s=n?m.selection.map(n.slice(a)):m.selection,p=new Ye(this.items.slice(0,o).append(c.reverse().concat(d)),this.eventCount-1),!1},this.items.length,0),{remaining:p,transform:l,selection:s}}addTransform(e,t,o,n){let a=[],l=this.eventCount,s=this.items,p=!n&&s.length?s.get(s.length-1):null;for(let c=0;c<e.steps.length;c++){let m=e.steps[c].invert(e.docs[c]),b=new it(e.mapping.maps[c],m,t),u;(u=p&&p.merge(b))&&(b=u,c?a.pop():s=s.slice(0,s.length-1)),a.push(b),t&&(l++,t=void 0),n||(p=b)}let d=l-o.depth;return d>uT&&(s=bT(s,d),l-=d),new Ye(s.append(a),l)}remapping(e,t){let o=new Xr;return this.items.forEach((n,a)=>{let l=n.mirrorOffset!=null&&a-n.mirrorOffset>=e?o.maps.length-n.mirrorOffset:void 0;o.appendMap(n.map,l)},e,t),o}addMaps(e){return this.eventCount==0?this:new Ye(this.items.append(e.map(t=>new it(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let o=[],n=Math.max(0,this.items.length-t),a=e.mapping,l=e.steps.length,s=this.eventCount;this.items.forEach(b=>{b.selection&&s--},n);let p=t;this.items.forEach(b=>{let u=a.getMirror(--p);if(u==null)return;l=Math.min(l,u);let g=a.maps[u];if(b.step){let x=e.steps[u].invert(e.docs[u]),h=b.selection&&b.selection.map(a.slice(p+1,u));h&&s++,o.push(new it(g,x,h))}else o.push(new it(g))},n);let d=[];for(let b=t;b<l;b++)d.push(new it(a.maps[b]));let c=this.items.slice(0,n).append(d).append(o),m=new Ye(c,s);return m.emptyItemCount()>mT&&(m=m.compress(this.items.length-o.length)),m}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),o=t.maps.length,n=[],a=0;return this.items.forEach((l,s)=>{if(s>=e)n.push(l),l.selection&&a++;else if(l.step){let p=l.step.map(t.slice(o)),d=p&&p.getMap();if(o--,d&&t.appendMap(d,o),p){let c=l.selection&&l.selection.map(t.slice(o));c&&a++;let m=new it(d.invert(),p,c),b,u=n.length-1;(b=n.length&&n[u].merge(m))?n[u]=b:n.push(m)}}else l.map&&o--},this.items.length,0),new Ye(xe.from(n.reverse()),a)}}Ye.empty=new Ye(xe.empty,0);function bT(r,e){let t;return r.forEach((o,n)=>{if(o.selection&&e--==0)return t=n,!1}),r.slice(t)}class it{constructor(e,t,o,n){this.map=e,this.step=t,this.selection=o,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new it(t.getMap().invert(),t,this.selection)}}}class Ft{constructor(e,t,o,n,a){this.done=e,this.undone=t,this.prevRanges=o,this.prevTime=n,this.prevComposition=a}}const uT=20;function gT(r,e,t,o){let n=t.getMeta(dr),a;if(n)return n.historyState;t.getMeta(fT)&&(r=new Ft(r.done,r.undone,null,0,-1));let l=t.getMeta("appendedTransaction");if(t.steps.length==0)return r;if(l&&l.getMeta(dr))return l.getMeta(dr).redo?new Ft(r.done.addTransform(t,void 0,o,nn(e)),r.undone,I0(t.mapping.maps),r.prevTime,r.prevComposition):new Ft(r.done,r.undone.addTransform(t,void 0,o,nn(e)),null,r.prevTime,r.prevComposition);if(t.getMeta("addToHistory")!==!1&&!(l&&l.getMeta("addToHistory")===!1)){let s=t.getMeta("composition"),p=r.prevTime==0||!l&&r.prevComposition!=s&&(r.prevTime<(t.time||0)-o.newGroupDelay||!xT(t,r.prevRanges)),d=l?dl(r.prevRanges,t.mapping):I0(t.mapping.maps);return new Ft(r.done.addTransform(t,p?e.selection.getBookmark():void 0,o,nn(e)),Ye.empty,d,t.time,s??r.prevComposition)}else return(a=t.getMeta("rebased"))?new Ft(r.done.rebased(t,a),r.undone.rebased(t,a),dl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition):new Ft(r.done.addMaps(t.mapping.maps),r.undone.addMaps(t.mapping.maps),dl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition)}function xT(r,e){if(!e)return!1;if(!r.docChanged)return!0;let t=!1;return r.mapping.maps[0].forEach((o,n)=>{for(let a=0;a<e.length;a+=2)o<=e[a+1]&&n>=e[a]&&(t=!0)}),t}function I0(r){let e=[];for(let t=r.length-1;t>=0&&e.length==0;t--)r[t].forEach((o,n,a,l)=>e.push(a,l));return e}function dl(r,e){if(!r)return null;let t=[];for(let o=0;o<r.length;o+=2){let n=e.map(r[o],1),a=e.map(r[o+1],-1);n<=a&&t.push(n,a)}return t}function hT(r,e,t){let o=nn(e),n=dr.get(e).spec.config,a=(t?r.undone:r.done).popEvent(e,o);if(!a)return null;let l=a.selection.resolve(a.transform.doc),s=(t?r.done:r.undone).addTransform(a.transform,e.selection.getBookmark(),n,o),p=new Ft(t?s:a.remaining,t?a.remaining:s,null,0,-1);return a.transform.setSelection(l).setMeta(dr,{redo:t,historyState:p})}let cl=!1,O0=null;function nn(r){let e=r.plugins;if(O0!=e){cl=!1,O0=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){cl=!0;break}}return cl}const dr=new ge("history"),fT=new ge("closeHistory");function yT(r={}){return r={depth:r.depth||100,newGroupDelay:r.newGroupDelay||500},new $({key:dr,state:{init(){return new Ft(Ye.empty,Ye.empty,null,0,-1)},apply(e,t,o){return gT(t,o,e,r)}},config:r,props:{handleDOMEvents:{beforeinput(e,t){let o=t.inputType,n=o=="historyUndo"?z0:o=="historyRedo"?R0:null;return n?(t.preventDefault(),n(e.state,e.dispatch)):!1}}}})}function _0(r,e){return(t,o)=>{let n=dr.getState(t);if(!n||(r?n.undone:n.done).eventCount==0)return!1;if(o){let a=hT(n,t,r);a&&o(e?a.scrollIntoView():a)}return!0}}const z0=_0(!1,!0),R0=_0(!0,!0);ie.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:r=>r.length,wordCounter:r=>r.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=r=>{const e=(r==null?void 0:r.node)||this.editor.state.doc;if(((r==null?void 0:r.mode)||this.options.mode)==="textSize"){const o=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(o)}return e.nodeSize},this.storage.words=r=>{const e=(r==null?void 0:r.node)||this.editor.state.doc,t=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(t)}},addProseMirrorPlugins(){let r=!1;return[new $({key:new ge("characterCount"),appendTransaction:(e,t,o)=>{if(r)return;const n=this.options.limit;if(n==null||n===0){r=!0;return}const a=this.storage.characters({node:o.doc});if(a>n){const l=a-n,s=0,p=l;console.warn(`[CharacterCount] Initial content exceeded limit of ${n} characters. Content was automatically trimmed.`);const d=o.tr.deleteRange(s,p);return r=!0,d}r=!0},filterTransaction:(e,t)=>{const o=this.options.limit;if(!e.docChanged||o===0||o===null||o===void 0)return!0;const n=this.storage.characters({node:t.doc}),a=this.storage.characters({node:e.doc});if(a<=o||n>o&&a>o&&a<=n)return!0;if(n>o&&a>o&&a>n||!e.getMeta("paste"))return!1;const s=e.selection.$head.pos,p=a-o,d=s-p,c=s;return e.deleteRange(d,c),!(this.storage.characters({node:e.doc})>o)}})]}});var wT=ie.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[rT(this.options)]}});ie.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new $({key:new ge("focus"),props:{decorations:({doc:r,selection:e})=>{const{isEditable:t,isFocused:o}=this.editor,{anchor:n}=e,a=[];if(!t||!o)return Z.create(r,[]);let l=0;this.options.mode==="deepest"&&r.descendants((p,d)=>{if(p.isText)return;if(!(n>=d&&n<=d+p.nodeSize-1))return!1;l+=1});let s=0;return r.descendants((p,d)=>{if(p.isText||!(n>=d&&n<=d+p.nodeSize-1))return!1;if(s+=1,this.options.mode==="deepest"&&l-s>0||this.options.mode==="shallowest"&&s>1)return this.options.mode==="deepest";a.push(Pe.node(d,d+p.nodeSize,{class:this.options.className}))}),Z.create(r,a)}}})]}});var vT=ie.create({name:"gapCursor",addProseMirrorPlugins(){return[aT()]},extendNodeSchema(r){var e;const t={name:r.name,options:r.options,storage:r.storage};return{allowGapCursor:(e=G(I(r,"allowGapCursor",t)))!=null?e:null}}});ie.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new $({key:new ge("placeholder"),props:{decorations:({doc:r,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,n=[];if(!t)return null;const a=this.editor.isEmpty;return r.descendants((l,s)=>{const p=o>=s&&o<=s+l.nodeSize,d=!l.isLeaf&&hi(l);if((p||!this.options.showOnlyCurrent)&&d){const c=[this.options.emptyNodeClass];a&&c.push(this.options.emptyEditorClass);const m=Pe.node(s,s+l.nodeSize,{class:c.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:s,hasAnchor:p}):this.options.placeholder});n.push(m)}return this.options.includeChildren}),Z.create(r,n)}}})]}}),ie.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:r,options:e}=this;return[new $({key:new ge("selection"),props:{decorations(t){return t.selection.empty||r.isFocused||!r.isEditable||Hy(t.selection)||r.view.dragging?null:Z.create(t.doc,[Pe.inline(t.selection.from,t.selection.to,{class:e.className})])}}})]}});function H0({types:r,node:e}){return e&&Array.isArray(r)&&r.includes(e.type)||(e==null?void 0:e.type)===r}var ST=ie.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const r=new ge(this.name),e=Object.entries(this.editor.schema.nodes).map(([,t])=>t).filter(t=>(this.options.notAfter||[]).concat(this.options.node).includes(t.name));return[new $({key:r,appendTransaction:(t,o,n)=>{const{doc:a,tr:l,schema:s}=n,p=r.getState(n),d=a.content.size,c=s.nodes[this.options.node];if(p)return l.insert(d,c.create())},state:{init:(t,o)=>{const n=o.tr.doc.lastChild;return!H0({node:n,types:e})},apply:(t,o)=>{if(!t.docChanged)return o;const n=t.doc.lastChild;return!H0({node:n,types:e})}}})]}}),kT=ie.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:r,dispatch:e})=>z0(r,e),redo:()=>({state:r,dispatch:e})=>R0(r,e)}},addProseMirrorPlugins(){return[yT(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),CT=ie.create({name:"starterKit",addExtensions(){var r,e,t,o;const n=[];return this.options.bold!==!1&&n.push(e6.configure(this.options.bold)),this.options.blockquote!==!1&&n.push(YE.configure(this.options.blockquote)),this.options.bulletList!==!1&&n.push(k0.configure(this.options.bulletList)),this.options.code!==!1&&n.push(o6.configure(this.options.code)),this.options.codeBlock!==!1&&n.push(a6.configure(this.options.codeBlock)),this.options.document!==!1&&n.push(l6.configure(this.options.document)),this.options.dropcursor!==!1&&n.push(wT.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&n.push(vT.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&n.push(s6.configure(this.options.hardBreak)),this.options.heading!==!1&&n.push(p6.configure(this.options.heading)),this.options.undoRedo!==!1&&n.push(kT.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&n.push(d6.configure(this.options.horizontalRule)),this.options.italic!==!1&&n.push(g6.configure(this.options.italic)),this.options.listItem!==!1&&n.push(C0.configure(this.options.listItem)),this.options.listKeymap!==!1&&n.push(P0.configure((r=this.options)==null?void 0:r.listKeymap)),this.options.link!==!1&&n.push(H6.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&n.push(A0.configure(this.options.orderedList)),this.options.paragraph!==!1&&n.push(Q6.configure(this.options.paragraph)),this.options.strike!==!1&&n.push($6.configure(this.options.strike)),this.options.text!==!1&&n.push(eT.configure(this.options.text)),this.options.underline!==!1&&n.push(tT.configure((t=this.options)==null?void 0:t.underline)),this.options.trailingNode!==!1&&n.push(ST.configure((o=this.options)==null?void 0:o.trailingNode)),n}}),ET=CT,TT=ie.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:r=>{const e=r.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:r=>r.textAlign?{style:`text-align: ${r.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:r=>({commands:e})=>this.options.alignments.includes(r)?this.options.types.map(t=>e.updateAttributes(t,{textAlign:r})).every(t=>t):!1,unsetTextAlign:()=>({commands:r})=>this.options.types.map(e=>r.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:r=>({editor:e,commands:t})=>this.options.alignments.includes(r)?e.isActive({textAlign:r})?t.unsetTextAlign():t.setTextAlign(r):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),MT=TT;const BT={class:"pbx-my-2 pbx-py-2"},NT={for:"font-desktop",class:"pbx-myPrimaryInputLabel"},PT={disabled:"",value:""},LT={class:"pbx-my-2 pbx-py-2"},DT={for:"font-weight",class:"pbx-myPrimaryInputLabel"},AT={disabled:"",value:""},VT={class:"pbx-my-2 pbx-py-2"},IT={for:"font-family",class:"pbx-myPrimaryInputLabel"},OT={disabled:"",value:""},_T={class:"pbx-my-2 pbx-py-2"},zT={for:"font-style",class:"pbx-myPrimaryInputLabel"},RT={disabled:"",value:""},HT={__name:"TypographyForTipTap",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.ref(null),l=i.ref(null),s=i.ref(null),p=i.ref(null),d=i.ref(null),c=i.ref(null),m=i.computed(()=>o.getFontBase),b=i.computed(()=>o.getFontDesktop),u=i.computed(()=>o.getFontTablet),g=i.computed(()=>o.getFontMobile),x=i.computed(()=>o.getFontWeight),h=i.computed(()=>o.getFontFamily),f=i.computed(()=>o.getFontStyle);return i.watch(m,async w=>{n.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(b,async w=>{a.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(u,async w=>{l.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(g,async w=>{s.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(x,async w=>{p.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(h,async w=>{d.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(f,async w=>{c.value=w,await t.initializeElementStyles()},{immediate:!0}),(w,y)=>(i.openBlock(),i.createElementBlock("div",null,[i.createCommentVNode("",!0),i.createElementVNode("div",BT,[i.createElementVNode("label",NT,i.toDisplayString(i.unref(e)("Font size")),1),i.withDirectives(i.createElementVNode("select",{id:"font-desktop","onUpdate:modelValue":y[2]||(y[2]=v=>a.value=v),class:"pbx-myPrimarySelect",onChange:y[3]||(y[3]=v=>i.unref(t).handleFontSizeDesktop(a.value))},[i.createElementVNode("option",PT,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(br).fontDesktop,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,a.value]])]),i.createCommentVNode("",!0),y[14]||(y[14]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",LT,[i.createElementVNode("label",DT,i.toDisplayString(i.unref(e)("Font weight")),1),i.withDirectives(i.createElementVNode("select",{id:"font-weight","onUpdate:modelValue":y[8]||(y[8]=v=>p.value=v),class:"pbx-myPrimarySelect",onChange:y[9]||(y[9]=v=>i.unref(t).handleFontWeight(p.value))},[i.createElementVNode("option",AT,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontWeight,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,p.value]])]),y[15]||(y[15]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",VT,[i.createElementVNode("label",IT,i.toDisplayString(i.unref(e)("Font family")),1),i.withDirectives(i.createElementVNode("select",{id:"font-family","onUpdate:modelValue":y[10]||(y[10]=v=>d.value=v),class:"pbx-myPrimarySelect",onChange:y[11]||(y[11]=v=>i.unref(t).handleFontFamily(d.value))},[i.createElementVNode("option",OT,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontFamily,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,d.value]])]),y[16]||(y[16]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",_T,[i.createElementVNode("label",zT,i.toDisplayString(i.unref(e)("Font Style")),1),i.withDirectives(i.createElementVNode("select",{id:"font-style","onUpdate:modelValue":y[12]||(y[12]=v=>c.value=v),class:"pbx-myPrimarySelect",onChange:y[13]||(y[13]=v=>i.unref(t).handleFontStyle(c.value))},[i.createElementVNode("option",RT,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontStyle,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,c.value]])])]))}},FT={class:"pbx-myInputGroup"},jT={class:"pbx-myPrimaryInputLabel",for:"roles"},qT={key:0,class:"pbx-min-h-[2.5rem] pbx-flex pbx-items-center pbx-justify-start"},WT={class:"pbx-myPrimaryInputError pbx-mt-2 pbx-mb-0 pbx-py-0 pbx-self-start"},UT={class:"pbx-blockease-linear pbx-duration-200 pbx-block pbx-ease-linear"},GT={key:0},KT={class:"pbx-relative pbx-rounded-lg pbx-px-2"},JT={class:"pbx-flex pbx-flex-wrap pbx-items-center pbx-border-solid pbx-p-1 pbx-border pbx-border-gray-200 pbx-shadow-sm pbx-mb-4"},YT={class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-mr-6"},QT={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},XT={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},ZT={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},$T={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},e8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},t8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},r8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},o8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},i8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},n8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},a8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},l8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5 pbx-relative"},s8={key:0,class:"pbx-top-full pbx-absolute pbx-z-40 pbx-left-1/2 pbx-transform pbx--translate-x-1/2 pbx-w-72 pbx-select-none"},p8={class:"pbx-rounded-3xl pbx-border pbx-border-gray-100 pbx-bg-white pbx-shadow-lg pbx-pt-4 pbx-pb-4 pbx-flex pbx-flex-col pbx-overflow-y-auto pbx-max-h-[50vh] pbx-mx-4 pbx-pl-2 pbx-pr-4"},d8={__name:"TipTapInput",setup(r){const e=ne(),{translate:t}=ae(),o=Q,n=i.ref(!1),a=i.ref(""),l=i.ref(1),s=i.ref(""),p=i.ref(""),d=i.ref(""),c=i.ref(null),m=i.ref(null),b=i.ref(null),u=i.ref(null),g=i.ref(null),x=i.computed(()=>o.getElement),h=i.ref(""),f=i.computed(()=>y.value?y.value.getHTML():null),w=i.ref(0);i.watch(x,R=>{const N=document.createElement("div");if(R){N.innerHTML=R;const W=N.textContent;w.value=W.length}});const y=KE({content:"",extensions:[ET.configure({link:{openOnClick:!1}}),MT.configure({types:["heading","paragraph"]})],editorProps:{attributes:{class:"prose-sm sm:prose-sm lg:prose-sm focus:outline-none"}}});i.watch(f,async R=>{e.isSelectedElementValidText()&&x.value&&(o.setTextAreaVueModel(R),typeof R=="string"&&R!==h.value&&await e.handleTextInput(R))});const v=function(){e.isSelectedElementValidText()&&y.value&&y.value.commands.setContent(x.value.innerHTML)};i.watch(x,()=>{v()});const S=i.ref(""),L=i.ref(""),C=i.ref(null);i.watch(S,R=>{L.value=R});const P=function(){S.value=y.value.getAttributes("link").href,n.value=!0,a.value="success",l.value=2,s.value=t("Enter URL"),p.value=t("Add a valid URL to transform the selected text into a clickable hyperlink that directs users to the specified web address."),d.value=t("Close"),c.value=S.value?"Remove url":null,m.value=t("Save"),b.value=function(){n.value=!1,C.value=null},u.value=function(){y.value.chain().focus().extendMarkRange("link").unsetLink().run(),n.value=!1},g.value=function(){const R=V();R||(R||T(),n.value=!1)}},V=function(){C.value=null;const R=/^https?:\/\//,N=i.ref(!0);return N.value=R.test(L.value),N.value===!1?(C.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},T=function(){y.value.chain().focus().extendMarkRange("link").setLink({href:L.value}).run()},B=i.ref(!1),A=function(){B.value=!B.value};return i.onBeforeMount(()=>{var R;(R=y.value)==null||R.destroy()}),i.onMounted(()=>{v()}),(R,N)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(qt,{maxWidth:"4xl",showDynamicModalBuilder:n.value,type:a.value,gridColumnAmount:l.value,title:s.value,description:p.value,firstButtonText:d.value,secondButtonText:c.value,thirdButtonText:m.value,onFirstModalButtonFunctionDynamicModalBuilder:b.value,onSecondModalButtonFunctionDynamicModalBuilder:u.value,onThirdModalButtonFunctionDynamicModalBuilder:g.value},{default:i.withCtx(()=>[N[12]||(N[12]=i.createElementVNode("header",null,null,-1)),i.createElementVNode("main",null,[i.createElementVNode("div",FT,[i.createElementVNode("label",jT,[i.createElementVNode("span",null,i.toDisplayString(i.unref(t)("Enter URL")),1)]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":N[0]||(N[0]=W=>S.value=W),class:"pbx-myPrimaryInput pbx-mt-1 pbx-w-full",type:"url",placeholder:"url"},null,512),[[i.vModelText,S.value]]),C.value?(i.openBlock(),i.createElementBlock("div",qT,[i.createElementVNode("p",WT,i.toDisplayString(C.value),1)])):i.createCommentVNode("",!0)])])]),_:1},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),i.createElementVNode("div",UT,[i.unref(e).isSelectedElementValidText()&&i.unref(y)?(i.openBlock(),i.createElementBlock("div",GT,[i.createElementVNode("div",KT,[i.createElementVNode("div",JT,[i.createElementVNode("div",YT,[i.createElementVNode("button",{onClick:N[1]||(N[1]=W=>i.unref(e).toggleTipTapModal(!1)),type:"button",class:"pbx-myPrimaryTag pbx-cursor-pointer"},[N[13]||(N[13]=i.createElementVNode("span",{class:"material-symbols-outlined"}," save ",-1)),i.createElementVNode("span",null,i.toDisplayString(i.unref(t)("Save")),1)])]),i.createElementVNode("div",QT,[i.createElementVNode("button",{onClick:N[2]||(N[2]=W=>i.unref(y).chain().focus().toggleBold().run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("bold")}])},[...N[14]||(N[14]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," format_bold ",-1)])],2)]),i.createElementVNode("div",XT,[i.createElementVNode("button",{onClick:P,type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("link")}])},[...N[15]||(N[15]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," link ",-1)])],2)]),i.createElementVNode("div",ZT,[i.createElementVNode("button",{onClick:N[3]||(N[3]=W=>i.unref(y).chain().focus().toggleHeading({level:2}).run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("heading",{level:2})}])},[...N[16]||(N[16]=[i.createElementVNode("div",{class:"pbx-font-semibold pbx-text-sm"},"H2",-1)])],2)]),i.createElementVNode("div",$T,[i.createElementVNode("button",{onClick:N[4]||(N[4]=W=>i.unref(y).chain().focus().toggleHeading({level:3}).run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("heading",{level:3})}])},[...N[17]||(N[17]=[i.createElementVNode("div",{class:"pbx-font-semibold pbx-text-sm"},"H3",-1)])],2)]),i.createElementVNode("div",e8,[i.createElementVNode("button",{onClick:N[5]||(N[5]=W=>i.unref(y).chain().focus().toggleHeading({level:4}).run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("heading",{level:4})}])},[...N[18]||(N[18]=[i.createElementVNode("div",{class:"pbx-font-semibold pbx-text-sm"},"H4",-1)])],2)]),i.createElementVNode("div",t8,[i.createElementVNode("button",{onClick:N[6]||(N[6]=W=>i.unref(y).chain().focus().toggleHeading({level:5}).run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("heading",{level:5})}])},[...N[19]||(N[19]=[i.createElementVNode("div",{class:"pbx-font-semibold pbx-text-sm"},"H5",-1)])],2)]),i.createElementVNode("div",r8,[i.createElementVNode("button",{onClick:N[7]||(N[7]=W=>i.unref(y).chain().focus().toggleHeading({level:6}).run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("heading",{level:6})}])},[...N[20]||(N[20]=[i.createElementVNode("div",{class:"pbx-font-semibold pbx-text-sm"},"H6",-1)])],2)]),i.createElementVNode("div",o8,[i.createElementVNode("button",{onClick:N[8]||(N[8]=W=>i.unref(y).isActive({textAlign:"left"})?i.unref(y).chain().focus().unsetTextAlign().run():i.unref(y).chain().focus().setTextAlign("left").run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive({textAlign:"left"})}])},[...N[21]||(N[21]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," format_align_left ",-1)])],2)]),i.createElementVNode("div",i8,[i.createElementVNode("button",{onClick:N[9]||(N[9]=W=>i.unref(y).isActive({textAlign:"center"})?i.unref(y).chain().focus().unsetTextAlign().run():i.unref(y).chain().focus().setTextAlign("center").run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive({textAlign:"center"})}])},[...N[22]||(N[22]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," format_align_center ",-1)])],2)]),i.createElementVNode("div",n8,[i.createElementVNode("button",{onClick:N[10]||(N[10]=W=>i.unref(y).isActive({textAlign:"right"})?i.unref(y).chain().focus().unsetTextAlign().run():i.unref(y).chain().focus().setTextAlign("right").run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive({textAlign:"right"})}])},[...N[23]||(N[23]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," format_align_right ",-1)])],2)]),i.createElementVNode("div",a8,[i.createElementVNode("button",{onClick:N[11]||(N[11]=W=>i.unref(y).chain().focus().toggleBulletList().run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("bulletList")}])},[...N[24]||(N[24]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," format_list_bulleted ",-1)])],2)]),i.createElementVNode("div",l8,[i.createElementVNode("button",{onClick:A,type:"button",class:i.normalizeClass(["pbx-h-10 pbx-px-12 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-text-myPrimaryDarkGrayColor pbx-font-medium",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":B.value}])},i.toDisplayString(i.unref(t)("Font Appearance")),3),i.createVNode(i.Transition,{name:"popup-fade"},{default:i.withCtx(()=>[B.value?(i.openBlock(),i.createElementBlock("div",s8,[i.createElementVNode("div",p8,[i.createVNode(HT)])])):i.createCommentVNode("",!0)]),_:1})])]),i.unref(y)?(i.openBlock(),i.createBlock(i.unref(GE),{key:0,id:"page-builder-editor",editor:i.unref(y),class:"pbx-p-2 pbx-prounded-lg lg:pbx-min-h-[20rem] lg:pbx-max-h-[30rem] md:pbx-min-h-[20rem] md:pbx-max-h-[20rem] pbx-min-h-[20rem] pbx-max-h-[20rem] pbx-overflow-y-auto"},null,8,["editor"])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)])]))}},c8={class:"pbx-myInputGroup"},m8={class:"pbx-myPrimaryFormOrganizationHeaderDescriptionSection"},b8={class:"pbx-myPrimaryFormOrganizationHeader"},u8={key:0,class:"pbx-min-h-[2.5rem] pbx-flex pbx-items-center pbx-justify-start"},g8={class:"pbx-myPrimaryInputError pbx-mt-2 pbx-mb-0 pbx-py-0 pbx-self-start"},x8={class:"pbx-overflow-y-auto"},h8={class:"pbx-select-none"},f8={key:0,class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},y8={key:2,class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},w8={key:0,class:"pbx-top-10 pbx-absolute pbx-z-40 pbx-left-1/2 pbx-transform pbx--translate-x-1/2 pbx-w-72 pbx-select-none"},v8={class:"pbx-rounded-3xl pbx-border pbx-border-gray-100 pbx-bg-white pbx-shadow-lg pbx-pt-4 pbx-pb-4 pbx-flex pbx-flex-col pbx-overflow-y-auto pbx-max-h-[80vh] pbx-mx-4 pbx-px-2"},S8={class:"pbx-flex pbx-flex-col"},k8=["disabled"],C8={class:"pbx-text-sm"},E8=["disabled"],T8={class:"pbx-text-sm"},M8={class:"pbx-text-sm"},B8={class:"pbx-text-sm"},N8={class:"pbx-text-sm"},P8={__name:"EditGetElement",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.inject("CustomMediaComponent"),a=i.computed(()=>o.getElement);i.computed(()=>{var Oe;return(Oe=a.value)==null?void 0:Oe.tagName});const l=i.computed(()=>t.canMoveUp()),s=i.computed(()=>t.canMoveDown()),p=i.computed(()=>{const Oe=o.getShowModalTipTap;return Oe&&v(),Oe}),d=i.computed(()=>o.getComponent),c=i.ref(""),m=i.ref(1),b=i.ref(""),u=i.ref(""),g=i.ref(""),x=i.ref(null),h=i.ref(null),f=i.ref(null),w=i.ref(null),y=i.ref(null),v=function(){t.toggleTipTapModal(!0),c.value="success",m.value=2,b.value=e("Manage Content"),u.value=null,g.value=null,x.value=null,h.value="Save",f.value=function(){t.toggleTipTapModal(!1)},y.value=function(){t.toggleTipTapModal(!0)}},S=i.computed(()=>o.getBasePrimaryImage),L=i.ref(!1),C=i.ref(""),P=i.ref(""),V=i.ref(""),T=i.ref(null),B=i.ref(null),A=i.ref(null),R=function(){L.value=!0,C.value=e("Media Library"),P.value=null,V.value=e("Close"),T.value=e("Select image"),A.value=function(){L.value=!1}},N=i.ref(null),W=i.ref(""),Ee=i.ref(!1),Ue=function(){N.value=null;const Oe=/^https?:\/\//,_=i.ref(!0);return _.value=Oe.test(W.value),_.value===!1?(N.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},Qe=function(){var _;N.value=null;const Oe=a.value&&((_=a.value.firstElementChild)==null?void 0:_.tagName)==="IFRAME"&&a.value.firstElementChild.hasAttribute("src")&&a.value.firstElementChild.getAttribute("src").trim()!==""?a.value.firstElementChild.src:"";W.value=Oe,Ee.value=!0,c.value="success",m.value=2,b.value="Add video url",u.value=null,g.value=e("Close"),x.value="Save",h.value=null,f.value=function(){Ee.value=!1},w.value=function(){Ue()||(a.value&&a.value.firstElementChild&&a.value.firstElementChild.tagName==="IFRAME"&&(W.value=W.value.replace("watch?v=","embed/"),W.value=W.value.replace(/&ab_channel=[^&]*/,"").replace(/&list=[^&]*/,"").replace(/&start_radio=[^&]*/,"").replace(/&t=[^&]*/,""),a.value.firstElementChild.src=W.value),Ee.value=!1)}},U=i.ref(!1),gl=async()=>{o.setToggleGlobalHtmlMode(!1),U.value=!1,o.setShowModalHTMLEditor(!0)},Vr=i.ref(!1),Ir=i.ref(""),an=i.ref(1),ln=i.ref(""),sn=i.ref(""),pn=i.ref(""),Or=i.ref(null),dn=i.ref(null),cr=i.ref(null),xl=i.ref(null),Eo=i.ref(null),_r=function(){Vr.value=!0,Ir.value="delete",an.value=2,ln.value=e("Remove Component?"),sn.value=e("Are you sure you want to remove this Component?"),pn.value=e("Close"),Or.value=null,dn.value=e("Delete"),cr.value=function(){Vr.value=!1},Eo.value=async function(){await t.deleteComponentFromDOM(),Vr.value=!1}};return(Oe,_)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(qt,{showDynamicModalBuilder:Ee.value,maxWidth:"2xl",type:c.value,gridColumnAmount:m.value,title:b.value,description:u.value,firstButtonText:g.value,secondButtonText:x.value,thirdButtonText:h.value,onFirstModalButtonFunctionDynamicModalBuilder:f.value,onSecondModalButtonFunctionDynamicModalBuilder:w.value,onThirdModalButtonFunctionDynamicModalBuilder:y.value},{default:i.withCtx(()=>[_[9]||(_[9]=i.createElementVNode("header",null,null,-1)),i.createElementVNode("main",null,[i.createElementVNode("div",c8,[i.createElementVNode("div",m8,[i.createElementVNode("div",b8,[_[8]||(_[8]=i.createElementVNode("label",{for:"youtube-video",class:"pbx-myPrimaryInputLabel"},"Video url:",-1)),i.withDirectives(i.createElementVNode("input",{id:"youtube-video","onUpdate:modelValue":_[0]||(_[0]=Xe=>W.value=Xe),type:"text",class:"pbx-myPrimaryInput",name:"video"},null,512),[[i.vModelText,W.value]]),N.value?(i.openBlock(),i.createElementBlock("div",u8,[i.createElementVNode("p",g8,i.toDisplayString(N.value),1)])):i.createCommentVNode("",!0)])])])])]),_:1},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),i.createVNode(qt,{simpleModal:!0,showDynamicModalBuilder:p.value,maxWidth:"6xl",type:c.value,gridColumnAmount:m.value,title:b.value,description:u.value,firstButtonText:g.value,secondButtonText:x.value,thirdButtonText:h.value,onFirstModalButtonFunctionDynamicModalBuilder:f.value,onSecondModalButtonFunctionDynamicModalBuilder:w.value,onThirdModalButtonFunctionDynamicModalBuilder:y.value},{default:i.withCtx(()=>[_[10]||(_[10]=i.createElementVNode("header",null,null,-1)),i.createElementVNode("main",x8,[i.createVNode(d8)])]),_:1},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),i.createVNode(qt,{showDynamicModalBuilder:Vr.value,type:Ir.value,gridColumnAmount:an.value,title:ln.value,description:sn.value,firstButtonText:pn.value,secondButtonText:Or.value,thirdButtonText:dn.value,onFirstModalButtonFunctionDynamicModalBuilder:cr.value,onSecondModalButtonFunctionDynamicModalBuilder:xl.value,onThirdModalButtonFunctionDynamicModalBuilder:Eo.value},{default:i.withCtx(()=>[..._[11]||(_[11]=[i.createElementVNode("header",null,null,-1),i.createElementVNode("main",null,null,-1)])]),_:1},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),i.createVNode(Mx,{open:L.value,title:C.value,description:P.value,firstButtonText:V.value,secondButtonText:T.value,thirdButtonText:B.value,customMediaComponent:i.unref(n),onFirstMediaButtonFunction:A.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"]),i.createElementVNode("div",h8,[i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["pbx-flex pbx-items-center pbx-justify-center pbx-divide-x pbx-divide-gray-300",{"":a.value}])},[i.unref(t).ElOrFirstChildIsIframe()?(i.openBlock(),i.createElementBlock("div",f8,[i.createElementVNode("button",{onClick:Qe,type:"button",class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor"},[..._[13]||(_[13]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," play_circle ",-1)])])])):i.createCommentVNode("",!0),i.unref(t).isSelectedElementValidText()&&!i.unref(t).ElOrFirstChildIsIframe()?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",{class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},[i.createElementVNode("button",{onClick:v,type:"button",class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor"},[..._[14]||(_[14]=[i.createElementVNode("span",null,[i.createElementVNode("svg",{fill:"currentColor",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",class:"css-1eqh1o5"},[i.createElementVNode("path",{"clip-rule":"evenodd",d:"M20.5 6.5L7 20H2v-5L15.5 1.5l5 5zm-7.823.651L4 15.828V18h2.172l8.677-8.677-2.172-2.172zm3.586.758L17.672 6.5 15.5 4.328l-1.409 1.41 2.172 2.17z","fill-rule":"evenodd"})])],-1)])])]),i.createVNode(Yx)],64)):i.createCommentVNode("",!0),a.value&&d.value&&S.value&&!i.unref(t).ElOrFirstChildIsIframe()?(i.openBlock(),i.createElementBlock("div",y8,[i.createElementVNode("button",{onClick:R,type:"button",class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor"},[..._[15]||(_[15]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," add_photo_alternate ",-1)])])])):i.createCommentVNode("",!0),a.value&&a.value.nodeType===1&&!S.value&&!i.unref(t).ElOrFirstChildIsIframe()?(i.openBlock(),i.createBlock(Jx,{key:3})):i.createCommentVNode("",!0),(a.value,i.createCommentVNode("",!0)),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:5,class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",onClick:_[2]||(_[2]=Xe=>U.value=!U.value)},[..._[17]||(_[17]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," more_horiz ",-1)])])):i.createCommentVNode("",!0),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:6,class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",onClick:_[3]||(_[3]=Xe=>i.unref(t).clearHtmlSelection())},[..._[18]||(_[18]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," close_small",-1)])])):i.createCommentVNode("",!0)],2)]),i.createVNode(i.Transition,{name:"popup-fade"},{default:i.withCtx(()=>[U.value?(i.openBlock(),i.createElementBlock("div",w8,[i.createElementVNode("div",v8,[i.createElementVNode("div",S8,[a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:_[4]||(_[4]=Xe=>i.unref(t).reorderComponent(-1)),disabled:!l.value,class:i.normalizeClass(["pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-py-2 pbx-px-2 pbx-rounded-full",[l.value?"pbx-cursor-pointer hover:pbx-bg-red-50":"pbx-cursor-not-allowed"]])},[i.createElementVNode("div",{class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",[l.value?"hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer":"pbx-cursor-not-allowed pbx-bg-opacity-20 hover:pbx-bg-gray-200"]])},[..._[19]||(_[19]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," move_up ",-1)])],2),i.createElementVNode("div",C8,i.toDisplayString(i.unref(e)("Move up")),1)],10,k8)):i.createCommentVNode("",!0),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:1,onClick:_[5]||(_[5]=Xe=>i.unref(t).reorderComponent(1)),disabled:!s.value,class:i.normalizeClass(["pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-py-2 pbx-px-2 pbx-rounded-full",[s.value?"pbx-cursor-pointer hover:pbx-bg-red-50":"pbx-cursor-not-allowed "]])},[i.createElementVNode("div",{class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",[s.value?"hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer":"pbx-cursor-not-allowed pbx-bg-opacity-20 hover:pbx-bg-gray-200"]])},[..._[20]||(_[20]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," move_down ",-1)])],2),i.createElementVNode("div",T8,i.toDisplayString(i.unref(e)("Move down")),1)],10,E8)):i.createCommentVNode("",!0),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:2,onClick:_[6]||(_[6]=Xe=>_r()),class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"},[_[21]||(_[21]=i.createElementVNode("div",{class:"ppbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-myPrimaryErrorColor"},[i.createElementVNode("span",{class:"material-symbols-outlined"}," delete_forever ")],-1)),i.createElementVNode("div",M8,i.toDisplayString(i.unref(e)("Delete component")),1)])):i.createCommentVNode("",!0),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:3,onClick:_[7]||(_[7]=()=>{U.value=!U.value,i.unref(t).duplicateComponent()}),class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"},[_[22]||(_[22]=i.createElementVNode("div",{class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer"},[i.createElementVNode("span",null,[i.createElementVNode("svg",{fill:"currentColor",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",class:"css-a99szh"},[i.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 16V2h14v4h4v14H6v-4H2zM4 4h10v10H4V4zm4 12v2h10V8h-2v8H8z","fill-rule":"evenodd"})])])],-1)),i.createElementVNode("div",B8,i.toDisplayString(i.unref(e)("Duplicate component")),1)])):i.createCommentVNode("",!0),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:4,onClick:gl,class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"},[_[23]||(_[23]=i.createElementVNode("div",{class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer"},[i.createElementVNode("span",{class:"material-symbols-outlined"}," deployed_code ")],-1)),i.createElementVNode("div",N8,i.toDisplayString(i.unref(e)("HTML Editor")),1)])):i.createCommentVNode("",!0)])])])):i.createCommentVNode("",!0)]),_:1})]))}},L8={class:"pbx-my-2 pbx-py-2"},D8={for:"vertical-margin",class:"pbx-myPrimaryInputLabel"},A8={__name:"HTMLEditor",setup(r){const e=Q,{translate:t}=ae(),o=async()=>{e.setShowModalHTMLEditor(!0)};return(n,a)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(t)("HTML Editor")),1)]),content:i.withCtx(()=>[i.createElementVNode("div",L8,[i.createElementVNode("label",D8,i.toDisplayString(i.unref(t)("Gain full control over components by editing the raw HTML.")),1),a[0]||(a[0]=i.createElementVNode("hr",null,null,-1))]),i.createElementVNode("button",{onClick:o,type:"button",class:"pbx-myPrimaryButton"},i.toDisplayString(i.unref(t)("HTML Editor")),1)]),_:1}))}},V8={class:"pbx-mb-4 pbx-flex pbx-justify-start pbx-items-center pbx-gap-2 pbx-border-b pbx-border-solid pbx-border-gray-200 pbx-pb-4 pbx-overflow-x-auto"},I8={class:"pbx-flex pbx-justify-center pbx-items-center pbx-gap-2"},O8={key:0},_8={key:0,class:"pbx-min-h-[50rem]"},z8={class:"pbx-myPrimaryParagraph pbx-mt-12 pbx-mb-8"},R8={class:"pbx-my-2 pbx-py-2"},H8={key:1},F8={class:"pbx-myPrimaryParagraph pbx-mt-12 pbx-mb-8"},j8={class:"pbx-my-1"},q8={class:"pbx-my-1"},W8={class:"pbx-my-1"},U8={class:"pbx-my-1"},G8={class:"pbx-my-1"},K8={class:"pbx-my-1"},J8={class:"pbx-my-1"},Y8={class:"pbx-my-1"},Q8={class:"pbx-my-1"},X8={class:"pbx-my-1"},Z8={key:2},$8={class:"pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"},e7={class:"pbx-flex pbx-items-left pbx-flex-col pbx-myPrimaryGap pbx-border-myPrimaryMediumGrayColor"},t7={class:"pbx-myPrimaryParagraph"},r7={class:"pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2"},o7={class:"pbx-text-gray-100 pbx-overflow-hidden pbx-bg-gray-900"},i7={class:"pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5"},n7={class:"pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor"},a7={class:"pbx-px-4 pbx-py-4 pbx-text-gray-100"},l7={class:"pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs"},s7={class:"pbx-text-xs pbx-pb-2"},p7={class:"pbx-text-xs pbx-pb-2"},d7={class:"pbx-text-xs pbx-pb-2"},c7={class:"pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2"},m7={class:"pbx-overflow-hidden pbx-bg-gray-900"},b7={class:"pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5"},u7={class:"pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor"},g7={class:"pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs pbx-break-all"},x7={key:0},h7={key:0},f7={class:"pbx-pb-2 pbx-text-xs"},y7={key:1,class:"pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"},w7={class:"pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200"},v7={class:"pbx-overflow-x-auto"},S7={class:"pbx-min-w-full"},k7={class:"pbx-bg-gray-900"},C7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},E7={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},T7={class:"pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-b"},M7={class:"pbx-overflow-x-auto"},B7={class:"pbx-min-w-full"},N7={class:"pbx-bg-gray-900"},P7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},L7={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},D7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line"},A7={class:"pbx-overflow-x-auto"},V7={class:"pbx-min-w-full"},I7={class:"pbx-bg-gray-900"},O7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},_7={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},z7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},R7={key:1},H7={key:0},F7={class:"pbx-pb-2 pbx-text-xs"},j7={key:1,class:"pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"},q7={class:"pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200"},W7={class:"pbx-overflow-x-auto"},U7={class:"pbx-min-w-full"},G7={class:"pbx-bg-gray-900"},K7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},J7={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},Y7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},Q7={class:"pbx-overflow-x-auto"},X7={class:"pbx-min-w-full"},Z7={class:"pbx-bg-gray-900"},$7={class:"pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-t pbx-border-gray-200"},e9={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},t9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line"},r9={class:"pbx-overflow-x-auto"},o9={class:"pbx-min-w-full"},i9={class:"pbx-bg-gray-900"},n9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},a9={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},l9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},s9={class:"pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left"},p9=["innerHTML"],d9={key:2},c9={key:0},m9={class:"pbx-pb-2 pbx-text-xs"},b9={key:1},u9={class:"pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200"},g9={class:"pbx-overflow-x-auto"},x9={class:"pbx-min-w-full"},h9={class:"pbx-bg-gray-900"},f9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},y9={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},w9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},v9={class:"pbx-overflow-x-auto"},S9={class:"pbx-min-w-full"},k9={class:"pbx-bg-gray-900"},C9={class:"pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-t pbx-border-gray-200"},E9={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},T9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line"},M9={class:"pbx-overflow-x-auto"},B9={class:"pbx-min-w-full"},N9={class:"pbx-bg-gray-900"},P9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},L9={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},D9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},A9={class:"pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left"},V9=["innerHTML"],I9={__name:"AdvancedPageBuilderSettings",setup(r){const{translate:e}=ae(),t=Q,o=i.computed(()=>t.getElement),n=i.computed(()=>t.getComponent),a=i.computed(()=>t.getComponents),l=i.ref("element"),s=function(u){l.value=u};function p(u){if(!u)return"";const g=" ";let x=0,h="";const w=u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").split(/(&lt;[^&gt;]+&gt;)/g),y=["&lt;area","&lt;base","&lt;br","&lt;col","&lt;embed","&lt;hr","&lt;img","&lt;input","&lt;link","&lt;meta","&lt;param","&lt;source","&lt;track","&lt;wbr"];return w.forEach(v=>{const S=v.trim();if(!S)return;const L=S.startsWith("&lt;")&&S.endsWith("&gt;"),C=L&&S.startsWith("&lt;/");C&&(x=Math.max(0,x-1));let P=g.repeat(x)+S;L&&(P=P.replace(/(&lt;\/?[[\w\s="/.':;#-\/\?]+&gt;)/g,V=>{var A;const T=(A=V.match(/&lt;\/?([\w-]+)/))==null?void 0:A[1];let B=V.replace(/(&lt;\/?[\w-]+)/g,`<span class="html-tag-symbol">&lt;</span><span class="html-tag-name">${T}</span>`);return B=B.replace(/([\w-]+)=(&quot;[^&quot;]*&quot;)/g,'<span class="html-attribute-name">$1</span><span class="html-operator">=</span><span class="html-attribute-value">$2</span>'),B+'<span class="html-tag-symbol">&gt;</span>'})),h+=P+`
124
+ 3. "-" cannot repeat`);X.customSchemes.push([r,e])}function D6(){X.scanner=C6(X.customSchemes);for(let r=0;r<X.tokenQueue.length;r++)X.tokenQueue[r][1]({scanner:X.scanner});X.parser=M6(X.scanner.tokens);for(let r=0;r<X.pluginQueue.length;r++)X.pluginQueue[r][1]({scanner:X.scanner,parser:X.parser});return X.initialized=!0,X}function il(r){return X.initialized||D6(),B6(X.parser.start,r,b0(X.scanner.start,r))}il.scan=b0;function w0(r,e=null,t=null){if(e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const o=new rl(t),n=il(r),a=[];for(let l=0;l<n.length;l++){const s=n[l];s.isLink&&(!e||s.t===e)&&o.check(s)&&a.push(s.toFormattedObject(o))}return a}var nl="[\0-   ᠎ -\u2029  ]",A6=new RegExp(nl),V6=new RegExp(`${nl}$`),I6=new RegExp(nl,"g");function O6(r){return r.length===1?r[0].isLink:r.length===3&&r[1].isLink?["()","[]"].includes(r[0].value+r[2].value):!1}function _6(r){return new $({key:new ge("autolink"),appendTransaction:(e,t,o)=>{const n=e.some(d=>d.docChanged)&&!t.doc.eq(o.doc),a=e.some(d=>d.getMeta("preventAutolink"));if(!n||a)return;const{tr:l}=o,s=Cy(t.doc,[...e]);if(Iy(s).forEach(({newRange:d})=>{const c=iC(o.doc,d,u=>u.isTextblock);let m,b;if(c.length>1)m=c[0],b=o.doc.textBetween(m.pos,m.pos+m.node.nodeSize,void 0," ");else if(c.length){const u=o.doc.textBetween(d.from,d.to," "," ");if(!V6.test(u))return;m=c[0],b=o.doc.textBetween(m.pos,d.to,void 0," ")}if(m&&b){const u=b.split(A6).filter(Boolean);if(u.length<=0)return!1;const g=u[u.length-1],x=m.pos+b.lastIndexOf(g);if(!g)return!1;const h=il(g).map(f=>f.toObject(r.defaultProtocol));if(!O6(h))return!1;h.filter(f=>f.isLink).map(f=>({...f,from:x+f.start+1,to:x+f.end+1})).filter(f=>o.schema.marks.code?!o.doc.rangeHasMark(f.from,f.to,o.schema.marks.code):!0).filter(f=>r.validate(f.value)).filter(f=>r.shouldAutoLink(f.value)).forEach(f=>{Na(f.from,f.to,o.doc).some(w=>w.mark.type===r.type)||l.addMark(f.from,f.to,r.type.create({href:f.href}))})}}),!!l.steps.length)return l}})}function z6(r){return new $({key:new ge("handleClickLink"),props:{handleClick:(e,t,o)=>{var n,a;if(o.button!==0||!e.editable)return!1;let l=null;if(o.target instanceof HTMLAnchorElement)l=o.target;else{let c=o.target;const m=[];for(;c.nodeName!=="DIV";)m.push(c),c=c.parentNode;l=m.find(b=>b.nodeName==="A")}if(!l)return!1;const s=Vy(e.state,r.type.name),p=(n=l==null?void 0:l.href)!=null?n:s.href,d=(a=l==null?void 0:l.target)!=null?a:s.target;return r.enableClickSelection&&r.editor.commands.extendMarkRange(r.type.name),l&&p?(window.open(p,d),!0):!1}}})}function R6(r){return new $({key:new ge("handlePasteLink"),props:{handlePaste:(e,t,o)=>{const{state:n}=e,{selection:a}=n,{empty:l}=a;if(l)return!1;let s="";o.content.forEach(d=>{s+=d.textContent});const p=w0(s,{defaultProtocol:r.defaultProtocol}).find(d=>d.isLink&&d.value===s);return!s||!p?!1:r.editor.commands.setMark(r.type,{href:p.href})}}})}function pr(r,e){const t=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const n=typeof o=="string"?o:o.scheme;n&&t.push(n)}),!r||r.replace(I6,"").match(new RegExp(`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var H6=ar.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(r=>{if(typeof r=="string"){y0(r);return}y0(r.scheme,r.optionalSlashes)})},onDestroy(){L6()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(r,e)=>!!pr(r,e.protocols),validate:r=>!!r,shouldAutoLink:r=>!!r}},addAttributes(){return{href:{default:null,parseHTML(r){return r.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:r=>{const e=r.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:t=>!!pr(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:r}){return this.options.isAllowedUri(r.href,{defaultValidate:e=>!!pr(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",se(this.options.HTMLAttributes,r),0]:["a",se(this.options.HTMLAttributes,{...r,href:""}),0]},addCommands(){return{setLink:r=>({chain:e})=>{const{href:t}=r;return this.options.isAllowedUri(t,{defaultValidate:o=>!!pr(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,r).setMeta("preventAutolink",!0).run():!1},toggleLink:r=>({chain:e})=>{const{href:t}=r||{};return t&&!this.options.isAllowedUri(t,{defaultValidate:o=>!!pr(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,r,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:r})=>r().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[lr({find:r=>{const e=[];if(r){const{protocols:t,defaultProtocol:o}=this.options,n=w0(r).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:l=>!!pr(l,t),protocols:t,defaultProtocol:o}));n.length&&n.forEach(a=>e.push({text:a.value,data:{href:a.href},index:a.start}))}return e},type:this.type,getAttributes:r=>{var e;return{href:(e=r.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const r=[],{protocols:e,defaultProtocol:t}=this.options;return this.options.autolink&&r.push(_6({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:n=>!!pr(n,e),protocols:e,defaultProtocol:t}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&r.push(z6({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&r.push(R6({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),r}}),F6=Object.defineProperty,j6=(r,e)=>{for(var t in e)F6(r,t,{get:e[t],enumerable:!0})},q6="listItem",v0="textStyle",S0=/^\s*([-+*])\s$/,k0=Ie.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:r}){return["ul",se(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleBulletList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(q6,this.editor.getAttributes(v0)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let r=Dr({find:S0,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(r=Dr({find:S0,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(v0),editor:this.editor})),[r]}}),C0=Ie.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:r}){return["li",se(this.options.HTMLAttributes,r),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),W6={};j6(W6,{findListItemPos:()=>Co,getNextListDepth:()=>al,handleBackspace:()=>ll,handleDelete:()=>sl,hasListBefore:()=>E0,hasListItemAfter:()=>U6,hasListItemBefore:()=>T0,listItemHasSubList:()=>M0,nextListIsDeeper:()=>B0,nextListIsHigher:()=>N0});var Co=(r,e)=>{const{$from:t}=e.selection,o=pe(r,e.schema);let n=null,a=t.depth,l=t.pos,s=null;for(;a>0&&s===null;)n=t.node(a),n.type===o?s=a:(a-=1,l-=1);return s===null?null:{$pos:e.doc.resolve(l),depth:s}},al=(r,e)=>{const t=Co(r,e);if(!t)return!1;const[,o]=uC(e,r,t.$pos.pos+4);return o},E0=(r,e,t)=>{const{$anchor:o}=r.selection,n=Math.max(0,o.pos-2),a=r.doc.resolve(n).node();return!(!a||!t.includes(a.type.name))},T0=(r,e)=>{var t;const{$anchor:o}=e.selection,n=e.doc.resolve(o.pos-2);return!(n.index()===0||((t=n.nodeBefore)==null?void 0:t.type.name)!==r)},M0=(r,e,t)=>{if(!t)return!1;const o=pe(r,e.schema);let n=!1;return t.descendants(a=>{a.type===o&&(n=!0)}),n},ll=(r,e,t)=>{if(r.commands.undoInputRule())return!0;if(r.state.selection.from!==r.state.selection.to)return!1;if(!_t(r.state,e)&&E0(r.state,e,t)){const{$anchor:s}=r.state.selection,p=r.state.doc.resolve(s.before()-1),d=[];p.node().descendants((b,u)=>{b.type.name===e&&d.push({node:b,pos:u})});const c=d.at(-1);if(!c)return!1;const m=r.state.doc.resolve(p.start()+c.pos+1);return r.chain().cut({from:s.start()-1,to:s.end()+1},m.end()).joinForward().run()}if(!_t(r.state,e)||!fC(r.state))return!1;const o=Co(e,r.state);if(!o)return!1;const a=r.state.doc.resolve(o.$pos.pos-2).node(o.depth),l=M0(e,r.state,a);return T0(e,r.state)&&!l?r.commands.joinItemBackward():r.chain().liftListItem(e).run()},B0=(r,e)=>{const t=al(r,e),o=Co(r,e);return!o||!t?!1:t>o.depth},N0=(r,e)=>{const t=al(r,e),o=Co(r,e);return!o||!t?!1:t<o.depth},sl=(r,e)=>{if(!_t(r.state,e)||!hC(r.state,e))return!1;const{selection:t}=r.state,{$from:o,$to:n}=t;return!t.empty&&o.sameParent(n)?!1:B0(e,r.state)?r.chain().focus(r.state.selection.from+4).lift(e).joinBackward().run():N0(e,r.state)?r.chain().joinForward().joinBackward().run():r.commands.joinItemForward()},U6=(r,e)=>{var t;const{$anchor:o}=e.selection,n=e.doc.resolve(o.pos-o.parentOffset-2);return!(n.index()===n.parent.childCount-1||((t=n.nodeAfter)==null?void 0:t.type.name)!==r)},P0=ie.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:r})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t})=>{r.state.schema.nodes[t]!==void 0&&sl(r,t)&&(e=!0)}),e},"Mod-Delete":({editor:r})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t})=>{r.state.schema.nodes[t]!==void 0&&sl(r,t)&&(e=!0)}),e},Backspace:({editor:r})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t,wrapperNames:o})=>{r.state.schema.nodes[t]!==void 0&&ll(r,t,o)&&(e=!0)}),e},"Mod-Backspace":({editor:r})=>{let e=!1;return this.options.listTypes.forEach(({itemName:t,wrapperNames:o})=>{r.state.schema.nodes[t]!==void 0&&ll(r,t,o)&&(e=!0)}),e}}}}),G6="listItem",L0="textStyle",D0=/^(\d+)\.\s$/,A0=Ie.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:r=>r.hasAttribute("start")?parseInt(r.getAttribute("start")||"",10):1},type:{default:null,parseHTML:r=>r.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:r}){const{start:e,...t}=r;return e===1?["ol",se(this.options.HTMLAttributes,t),0]:["ol",se(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleOrderedList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(G6,this.editor.getAttributes(L0)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let r=Dr({find:D0,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(r=Dr({find:D0,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(L0)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[r]}}),K6=/^\s*(\[([( |x])?\])\s$/,J6=Ie.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:r=>{const e=r.getAttribute("data-checked");return e===""||e==="true"},renderHTML:r=>({"data-checked":r.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:r,HTMLAttributes:e}){return["li",se(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:r.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const r={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...r,Tab:()=>this.editor.commands.sinkListItem(this.name)}:r},addNodeView(){return({node:r,HTMLAttributes:e,getPos:t,editor:o})=>{const n=document.createElement("li"),a=document.createElement("label"),l=document.createElement("span"),s=document.createElement("input"),p=document.createElement("div"),d=c=>{var m,b;s.ariaLabel=((b=(m=this.options.a11y)==null?void 0:m.checkboxLabel)==null?void 0:b.call(m,c,s.checked))||`Task item checkbox for ${c.textContent||"empty task item"}`};return d(r),a.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",c=>c.preventDefault()),s.addEventListener("change",c=>{if(!o.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}const{checked:m}=c.target;o.isEditable&&typeof t=="function"&&o.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:b})=>{const u=t();if(typeof u!="number")return!1;const g=b.doc.nodeAt(u);return b.setNodeMarkup(u,void 0,{...g==null?void 0:g.attrs,checked:m}),!0}).run(),!o.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(r,m)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([c,m])=>{n.setAttribute(c,m)}),n.dataset.checked=r.attrs.checked,s.checked=r.attrs.checked,a.append(s,l),n.append(a,p),Object.entries(e).forEach(([c,m])=>{n.setAttribute(c,m)}),{dom:n,contentDOM:p,update:c=>c.type!==this.type?!1:(n.dataset.checked=c.attrs.checked,s.checked=c.attrs.checked,d(c),!0)}}},addInputRules(){return[Dr({find:K6,type:this.type,getAttributes:r=>({checked:r[r.length-1]==="x"})})]}}),Y6=Ie.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:r}){return["ul",se(this.options.HTMLAttributes,r,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:r})=>r.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});ie.create({name:"listKit",addExtensions(){const r=[];return this.options.bulletList!==!1&&r.push(k0.configure(this.options.bulletList)),this.options.listItem!==!1&&r.push(C0.configure(this.options.listItem)),this.options.listKeymap!==!1&&r.push(P0.configure(this.options.listKeymap)),this.options.orderedList!==!1&&r.push(A0.configure(this.options.orderedList)),this.options.taskItem!==!1&&r.push(J6.configure(this.options.taskItem)),this.options.taskList!==!1&&r.push(Y6.configure(this.options.taskList)),r}});var Q6=Ie.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:r}){return["p",se(this.options.HTMLAttributes,r),0]},addCommands(){return{setParagraph:()=>({commands:r})=>r.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),X6=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Z6=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,$6=ar.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:r=>r.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["s",se(this.options.HTMLAttributes,r),0]},addCommands(){return{setStrike:()=>({commands:r})=>r.setMark(this.name),toggleStrike:()=>({commands:r})=>r.toggleMark(this.name),unsetStrike:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Lr({find:X6,type:this.type})]},addPasteRules(){return[lr({find:Z6,type:this.type})]}}),eT=Ie.create({name:"text",group:"inline"}),tT=ar.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:r=>r.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["u",se(this.options.HTMLAttributes,r),0]},addCommands(){return{setUnderline:()=>({commands:r})=>r.setMark(this.name),toggleUnderline:()=>({commands:r})=>r.toggleMark(this.name),unsetUnderline:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function rT(r={}){return new $({view(e){return new oT(e,r)}})}class oT{constructor(e,t){var o;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(o=t.width)!==null&&o!==void 0?o:1,this.color=t.color===!1?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(n=>{let a=l=>{this[n](l)};return e.dom.addEventListener(n,a),{name:n,handler:a}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,o,n=this.editorView.dom,a=n.getBoundingClientRect(),l=a.width/n.offsetWidth,s=a.height/n.offsetHeight;if(t){let m=e.nodeBefore,b=e.nodeAfter;if(m||b){let u=this.editorView.nodeDOM(this.cursorPos-(m?m.nodeSize:0));if(u){let g=u.getBoundingClientRect(),x=m?g.bottom:g.top;m&&b&&(x=(x+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let h=this.width/2*s;o={left:g.left,right:g.right,top:x-h,bottom:x+h}}}}if(!o){let m=this.editorView.coordsAtPos(this.cursorPos),b=this.width/2*l;o={left:m.left-b,right:m.left+b,top:m.top,bottom:m.bottom}}let p=this.editorView.dom.offsetParent;this.element||(this.element=p.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t);let d,c;if(!p||p==document.body&&getComputedStyle(p).position=="static")d=-pageXOffset,c=-pageYOffset;else{let m=p.getBoundingClientRect(),b=m.width/p.offsetWidth,u=m.height/p.offsetHeight;d=m.left-p.scrollLeft*b,c=m.top-p.scrollTop*u}this.element.style.left=(o.left-d)/l+"px",this.element.style.top=(o.top-c)/s+"px",this.element.style.width=(o.right-o.left)/l+"px",this.element.style.height=(o.bottom-o.top)/s+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),o=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=o&&o.type.spec.disableDropCursor,a=typeof n=="function"?n(this.editorView,t,e):n;if(t&&!a){let l=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=Ih(this.editorView.state.doc,l,this.editorView.dragging.slice);s!=null&&(l=s)}this.setCursor(l),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class te extends F{constructor(e){super(e,e)}map(e,t){let o=e.resolve(t.map(this.head));return te.valid(o)?new te(o):F.near(o)}content(){return D.empty}eq(e){return e instanceof te&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new te(e.resolve(t.pos))}getBookmark(){return new pl(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!iT(e)||!nT(e))return!1;let o=t.type.spec.allowGapCursor;if(o!=null)return o;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,o=!1){e:for(;;){if(!o&&te.valid(e))return e;let n=e.pos,a=null;for(let l=e.depth;;l--){let s=e.node(l);if(t>0?e.indexAfter(l)<s.childCount:e.index(l)>0){a=s.child(t>0?e.indexAfter(l):e.index(l)-1);break}else if(l==0)return null;n+=t;let p=e.doc.resolve(n);if(te.valid(p))return p}for(;;){let l=t>0?a.firstChild:a.lastChild;if(!l){if(a.isAtom&&!a.isText&&!O.isSelectable(a)){e=e.doc.resolve(n+a.nodeSize*t),o=!1;continue e}break}a=l,n+=t;let s=e.doc.resolve(n);if(te.valid(s))return s}return null}}}te.prototype.visible=!1,te.findFrom=te.findGapCursorFrom,F.jsonID("gapcursor",te);class pl{constructor(e){this.pos=e}map(e){return new pl(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return te.valid(t)?new te(t):F.near(t)}}function iT(r){for(let e=r.depth;e>=0;e--){let t=r.index(e),o=r.node(e);if(t==0){if(o.type.spec.isolating)return!0;continue}for(let n=o.child(t-1);;n=n.lastChild){if(n.childCount==0&&!n.inlineContent||n.isAtom||n.type.spec.isolating)return!0;if(n.inlineContent)return!1}}return!0}function nT(r){for(let e=r.depth;e>=0;e--){let t=r.indexAfter(e),o=r.node(e);if(t==o.childCount){if(o.type.spec.isolating)return!0;continue}for(let n=o.child(t);;n=n.firstChild){if(n.childCount==0&&!n.inlineContent||n.isAtom||n.type.spec.isolating)return!0;if(n.inlineContent)return!1}}return!0}function aT(){return new $({props:{decorations:dT,createSelectionBetween(r,e,t){return e.pos==t.pos&&te.valid(t)?new te(t):null},handleClick:sT,handleKeyDown:lT,handleDOMEvents:{beforeinput:pT}}})}const lT=py({ArrowLeft:rn("horiz",-1),ArrowRight:rn("horiz",1),ArrowUp:rn("vert",-1),ArrowDown:rn("vert",1)});function rn(r,e){const t=r=="vert"?e>0?"down":"up":e>0?"right":"left";return function(o,n,a){let l=o.selection,s=e>0?l.$to:l.$from,p=l.empty;if(l instanceof H){if(!a.endOfTextblock(t)||s.depth==0)return!1;p=!1,s=o.doc.resolve(e>0?s.after():s.before())}let d=te.findGapCursorFrom(s,e,p);return d?(n&&n(o.tr.setSelection(new te(d))),!0):!1}}function sT(r,e,t){if(!r||!r.editable)return!1;let o=r.state.doc.resolve(e);if(!te.valid(o))return!1;let n=r.posAtCoords({left:t.clientX,top:t.clientY});return n&&n.inside>-1&&O.isSelectable(r.state.doc.nodeAt(n.inside))?!1:(r.dispatch(r.state.tr.setSelection(new te(o))),!0)}function pT(r,e){if(e.inputType!="insertCompositionText"||!(r.state.selection instanceof te))return!1;let{$from:t}=r.state.selection,o=t.parent.contentMatchAt(t.index()).findWrapping(r.state.schema.nodes.text);if(!o)return!1;let n=E.empty;for(let l=o.length-1;l>=0;l--)n=E.from(o[l].createAndFill(null,n));let a=r.state.tr.replace(t.pos,t.pos,new D(n,0,0));return a.setSelection(H.near(a.doc.resolve(t.pos+1))),r.dispatch(a),!1}function dT(r){if(!(r.selection instanceof te))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Z.create(r.doc,[Pe.widget(r.selection.head,e,{key:"gapcursor"})])}var on=200,xe=function(){};xe.prototype.append=function(e){return e.length?(e=xe.from(e),!this.length&&e||e.length<on&&this.leafAppend(e)||this.length<on&&e.leafPrepend(this)||this.appendInner(e)):this},xe.prototype.prepend=function(e){return e.length?xe.from(e).append(this):this},xe.prototype.appendInner=function(e){return new cT(this,e)},xe.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?xe.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},xe.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},xe.prototype.forEach=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length),t<=o?this.forEachInner(e,t,o,0):this.forEachInvertedInner(e,t,o,0)},xe.prototype.map=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length);var n=[];return this.forEach(function(a,l){return n.push(e(a,l))},t,o),n},xe.from=function(e){return e instanceof xe?e:e&&e.length?new V0(e):xe.empty};var V0=(function(r){function e(o){r.call(this),this.values=o}r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(n,a){return n==0&&a==this.length?this:new e(this.values.slice(n,a))},e.prototype.getInner=function(n){return this.values[n]},e.prototype.forEachInner=function(n,a,l,s){for(var p=a;p<l;p++)if(n(this.values[p],s+p)===!1)return!1},e.prototype.forEachInvertedInner=function(n,a,l,s){for(var p=a-1;p>=l;p--)if(n(this.values[p],s+p)===!1)return!1},e.prototype.leafAppend=function(n){if(this.length+n.length<=on)return new e(this.values.concat(n.flatten()))},e.prototype.leafPrepend=function(n){if(this.length+n.length<=on)return new e(n.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e})(xe);xe.empty=new V0([]);var cT=(function(r){function e(t,o){r.call(this),this.left=t,this.right=o,this.length=t.length+o.length,this.depth=Math.max(t.depth,o.depth)+1}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(o){return o<this.left.length?this.left.get(o):this.right.get(o-this.left.length)},e.prototype.forEachInner=function(o,n,a,l){var s=this.left.length;if(n<s&&this.left.forEachInner(o,n,Math.min(a,s),l)===!1||a>s&&this.right.forEachInner(o,Math.max(n-s,0),Math.min(this.length,a)-s,l+s)===!1)return!1},e.prototype.forEachInvertedInner=function(o,n,a,l){var s=this.left.length;if(n>s&&this.right.forEachInvertedInner(o,n-s,Math.max(a,s)-s,l+s)===!1||a<s&&this.left.forEachInvertedInner(o,Math.min(n,s),a,l)===!1)return!1},e.prototype.sliceInner=function(o,n){if(o==0&&n==this.length)return this;var a=this.left.length;return n<=a?this.left.slice(o,n):o>=a?this.right.slice(o-a,n-a):this.left.slice(o,a).append(this.right.slice(0,n-a))},e.prototype.leafAppend=function(o){var n=this.right.leafAppend(o);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(o){var n=this.left.leafPrepend(o);if(n)return new e(n,this.right)},e.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new e(this.left,new e(this.right,o)):new e(this,o)},e})(xe);const mT=500;class Ye{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let n,a;t&&(n=this.remapping(o,this.items.length),a=n.maps.length);let l=e.tr,s,p,d=[],c=[];return this.items.forEach((m,b)=>{if(!m.step){n||(n=this.remapping(o,b+1),a=n.maps.length),a--,c.push(m);return}if(n){c.push(new it(m.map));let u=m.step.map(n.slice(a)),g;u&&l.maybeStep(u).doc&&(g=l.mapping.maps[l.mapping.maps.length-1],d.push(new it(g,void 0,void 0,d.length+c.length))),a--,g&&n.appendMap(g,a)}else l.maybeStep(m.step);if(m.selection)return s=n?m.selection.map(n.slice(a)):m.selection,p=new Ye(this.items.slice(0,o).append(c.reverse().concat(d)),this.eventCount-1),!1},this.items.length,0),{remaining:p,transform:l,selection:s}}addTransform(e,t,o,n){let a=[],l=this.eventCount,s=this.items,p=!n&&s.length?s.get(s.length-1):null;for(let c=0;c<e.steps.length;c++){let m=e.steps[c].invert(e.docs[c]),b=new it(e.mapping.maps[c],m,t),u;(u=p&&p.merge(b))&&(b=u,c?a.pop():s=s.slice(0,s.length-1)),a.push(b),t&&(l++,t=void 0),n||(p=b)}let d=l-o.depth;return d>uT&&(s=bT(s,d),l-=d),new Ye(s.append(a),l)}remapping(e,t){let o=new Xr;return this.items.forEach((n,a)=>{let l=n.mirrorOffset!=null&&a-n.mirrorOffset>=e?o.maps.length-n.mirrorOffset:void 0;o.appendMap(n.map,l)},e,t),o}addMaps(e){return this.eventCount==0?this:new Ye(this.items.append(e.map(t=>new it(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let o=[],n=Math.max(0,this.items.length-t),a=e.mapping,l=e.steps.length,s=this.eventCount;this.items.forEach(b=>{b.selection&&s--},n);let p=t;this.items.forEach(b=>{let u=a.getMirror(--p);if(u==null)return;l=Math.min(l,u);let g=a.maps[u];if(b.step){let x=e.steps[u].invert(e.docs[u]),h=b.selection&&b.selection.map(a.slice(p+1,u));h&&s++,o.push(new it(g,x,h))}else o.push(new it(g))},n);let d=[];for(let b=t;b<l;b++)d.push(new it(a.maps[b]));let c=this.items.slice(0,n).append(d).append(o),m=new Ye(c,s);return m.emptyItemCount()>mT&&(m=m.compress(this.items.length-o.length)),m}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),o=t.maps.length,n=[],a=0;return this.items.forEach((l,s)=>{if(s>=e)n.push(l),l.selection&&a++;else if(l.step){let p=l.step.map(t.slice(o)),d=p&&p.getMap();if(o--,d&&t.appendMap(d,o),p){let c=l.selection&&l.selection.map(t.slice(o));c&&a++;let m=new it(d.invert(),p,c),b,u=n.length-1;(b=n.length&&n[u].merge(m))?n[u]=b:n.push(m)}}else l.map&&o--},this.items.length,0),new Ye(xe.from(n.reverse()),a)}}Ye.empty=new Ye(xe.empty,0);function bT(r,e){let t;return r.forEach((o,n)=>{if(o.selection&&e--==0)return t=n,!1}),r.slice(t)}class it{constructor(e,t,o,n){this.map=e,this.step=t,this.selection=o,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new it(t.getMap().invert(),t,this.selection)}}}class Ft{constructor(e,t,o,n,a){this.done=e,this.undone=t,this.prevRanges=o,this.prevTime=n,this.prevComposition=a}}const uT=20;function gT(r,e,t,o){let n=t.getMeta(dr),a;if(n)return n.historyState;t.getMeta(fT)&&(r=new Ft(r.done,r.undone,null,0,-1));let l=t.getMeta("appendedTransaction");if(t.steps.length==0)return r;if(l&&l.getMeta(dr))return l.getMeta(dr).redo?new Ft(r.done.addTransform(t,void 0,o,nn(e)),r.undone,I0(t.mapping.maps),r.prevTime,r.prevComposition):new Ft(r.done,r.undone.addTransform(t,void 0,o,nn(e)),null,r.prevTime,r.prevComposition);if(t.getMeta("addToHistory")!==!1&&!(l&&l.getMeta("addToHistory")===!1)){let s=t.getMeta("composition"),p=r.prevTime==0||!l&&r.prevComposition!=s&&(r.prevTime<(t.time||0)-o.newGroupDelay||!xT(t,r.prevRanges)),d=l?dl(r.prevRanges,t.mapping):I0(t.mapping.maps);return new Ft(r.done.addTransform(t,p?e.selection.getBookmark():void 0,o,nn(e)),Ye.empty,d,t.time,s??r.prevComposition)}else return(a=t.getMeta("rebased"))?new Ft(r.done.rebased(t,a),r.undone.rebased(t,a),dl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition):new Ft(r.done.addMaps(t.mapping.maps),r.undone.addMaps(t.mapping.maps),dl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition)}function xT(r,e){if(!e)return!1;if(!r.docChanged)return!0;let t=!1;return r.mapping.maps[0].forEach((o,n)=>{for(let a=0;a<e.length;a+=2)o<=e[a+1]&&n>=e[a]&&(t=!0)}),t}function I0(r){let e=[];for(let t=r.length-1;t>=0&&e.length==0;t--)r[t].forEach((o,n,a,l)=>e.push(a,l));return e}function dl(r,e){if(!r)return null;let t=[];for(let o=0;o<r.length;o+=2){let n=e.map(r[o],1),a=e.map(r[o+1],-1);n<=a&&t.push(n,a)}return t}function hT(r,e,t){let o=nn(e),n=dr.get(e).spec.config,a=(t?r.undone:r.done).popEvent(e,o);if(!a)return null;let l=a.selection.resolve(a.transform.doc),s=(t?r.done:r.undone).addTransform(a.transform,e.selection.getBookmark(),n,o),p=new Ft(t?s:a.remaining,t?a.remaining:s,null,0,-1);return a.transform.setSelection(l).setMeta(dr,{redo:t,historyState:p})}let cl=!1,O0=null;function nn(r){let e=r.plugins;if(O0!=e){cl=!1,O0=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){cl=!0;break}}return cl}const dr=new ge("history"),fT=new ge("closeHistory");function yT(r={}){return r={depth:r.depth||100,newGroupDelay:r.newGroupDelay||500},new $({key:dr,state:{init(){return new Ft(Ye.empty,Ye.empty,null,0,-1)},apply(e,t,o){return gT(t,o,e,r)}},config:r,props:{handleDOMEvents:{beforeinput(e,t){let o=t.inputType,n=o=="historyUndo"?z0:o=="historyRedo"?R0:null;return n?(t.preventDefault(),n(e.state,e.dispatch)):!1}}}})}function _0(r,e){return(t,o)=>{let n=dr.getState(t);if(!n||(r?n.undone:n.done).eventCount==0)return!1;if(o){let a=hT(n,t,r);a&&o(e?a.scrollIntoView():a)}return!0}}const z0=_0(!1,!0),R0=_0(!0,!0);ie.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:r=>r.length,wordCounter:r=>r.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=r=>{const e=(r==null?void 0:r.node)||this.editor.state.doc;if(((r==null?void 0:r.mode)||this.options.mode)==="textSize"){const o=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(o)}return e.nodeSize},this.storage.words=r=>{const e=(r==null?void 0:r.node)||this.editor.state.doc,t=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(t)}},addProseMirrorPlugins(){let r=!1;return[new $({key:new ge("characterCount"),appendTransaction:(e,t,o)=>{if(r)return;const n=this.options.limit;if(n==null||n===0){r=!0;return}const a=this.storage.characters({node:o.doc});if(a>n){const l=a-n,s=0,p=l;console.warn(`[CharacterCount] Initial content exceeded limit of ${n} characters. Content was automatically trimmed.`);const d=o.tr.deleteRange(s,p);return r=!0,d}r=!0},filterTransaction:(e,t)=>{const o=this.options.limit;if(!e.docChanged||o===0||o===null||o===void 0)return!0;const n=this.storage.characters({node:t.doc}),a=this.storage.characters({node:e.doc});if(a<=o||n>o&&a>o&&a<=n)return!0;if(n>o&&a>o&&a>n||!e.getMeta("paste"))return!1;const s=e.selection.$head.pos,p=a-o,d=s-p,c=s;return e.deleteRange(d,c),!(this.storage.characters({node:e.doc})>o)}})]}});var wT=ie.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[rT(this.options)]}});ie.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new $({key:new ge("focus"),props:{decorations:({doc:r,selection:e})=>{const{isEditable:t,isFocused:o}=this.editor,{anchor:n}=e,a=[];if(!t||!o)return Z.create(r,[]);let l=0;this.options.mode==="deepest"&&r.descendants((p,d)=>{if(p.isText)return;if(!(n>=d&&n<=d+p.nodeSize-1))return!1;l+=1});let s=0;return r.descendants((p,d)=>{if(p.isText||!(n>=d&&n<=d+p.nodeSize-1))return!1;if(s+=1,this.options.mode==="deepest"&&l-s>0||this.options.mode==="shallowest"&&s>1)return this.options.mode==="deepest";a.push(Pe.node(d,d+p.nodeSize,{class:this.options.className}))}),Z.create(r,a)}}})]}});var vT=ie.create({name:"gapCursor",addProseMirrorPlugins(){return[aT()]},extendNodeSchema(r){var e;const t={name:r.name,options:r.options,storage:r.storage};return{allowGapCursor:(e=G(I(r,"allowGapCursor",t)))!=null?e:null}}});ie.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new $({key:new ge("placeholder"),props:{decorations:({doc:r,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,n=[];if(!t)return null;const a=this.editor.isEmpty;return r.descendants((l,s)=>{const p=o>=s&&o<=s+l.nodeSize,d=!l.isLeaf&&hi(l);if((p||!this.options.showOnlyCurrent)&&d){const c=[this.options.emptyNodeClass];a&&c.push(this.options.emptyEditorClass);const m=Pe.node(s,s+l.nodeSize,{class:c.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:s,hasAnchor:p}):this.options.placeholder});n.push(m)}return this.options.includeChildren}),Z.create(r,n)}}})]}}),ie.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:r,options:e}=this;return[new $({key:new ge("selection"),props:{decorations(t){return t.selection.empty||r.isFocused||!r.isEditable||Hy(t.selection)||r.view.dragging?null:Z.create(t.doc,[Pe.inline(t.selection.from,t.selection.to,{class:e.className})])}}})]}});function H0({types:r,node:e}){return e&&Array.isArray(r)&&r.includes(e.type)||(e==null?void 0:e.type)===r}var ST=ie.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const r=new ge(this.name),e=Object.entries(this.editor.schema.nodes).map(([,t])=>t).filter(t=>(this.options.notAfter||[]).concat(this.options.node).includes(t.name));return[new $({key:r,appendTransaction:(t,o,n)=>{const{doc:a,tr:l,schema:s}=n,p=r.getState(n),d=a.content.size,c=s.nodes[this.options.node];if(p)return l.insert(d,c.create())},state:{init:(t,o)=>{const n=o.tr.doc.lastChild;return!H0({node:n,types:e})},apply:(t,o)=>{if(!t.docChanged)return o;const n=t.doc.lastChild;return!H0({node:n,types:e})}}})]}}),kT=ie.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:r,dispatch:e})=>z0(r,e),redo:()=>({state:r,dispatch:e})=>R0(r,e)}},addProseMirrorPlugins(){return[yT(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),CT=ie.create({name:"starterKit",addExtensions(){var r,e,t,o;const n=[];return this.options.bold!==!1&&n.push(e6.configure(this.options.bold)),this.options.blockquote!==!1&&n.push(YE.configure(this.options.blockquote)),this.options.bulletList!==!1&&n.push(k0.configure(this.options.bulletList)),this.options.code!==!1&&n.push(o6.configure(this.options.code)),this.options.codeBlock!==!1&&n.push(a6.configure(this.options.codeBlock)),this.options.document!==!1&&n.push(l6.configure(this.options.document)),this.options.dropcursor!==!1&&n.push(wT.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&n.push(vT.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&n.push(s6.configure(this.options.hardBreak)),this.options.heading!==!1&&n.push(p6.configure(this.options.heading)),this.options.undoRedo!==!1&&n.push(kT.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&n.push(d6.configure(this.options.horizontalRule)),this.options.italic!==!1&&n.push(g6.configure(this.options.italic)),this.options.listItem!==!1&&n.push(C0.configure(this.options.listItem)),this.options.listKeymap!==!1&&n.push(P0.configure((r=this.options)==null?void 0:r.listKeymap)),this.options.link!==!1&&n.push(H6.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&n.push(A0.configure(this.options.orderedList)),this.options.paragraph!==!1&&n.push(Q6.configure(this.options.paragraph)),this.options.strike!==!1&&n.push($6.configure(this.options.strike)),this.options.text!==!1&&n.push(eT.configure(this.options.text)),this.options.underline!==!1&&n.push(tT.configure((t=this.options)==null?void 0:t.underline)),this.options.trailingNode!==!1&&n.push(ST.configure((o=this.options)==null?void 0:o.trailingNode)),n}}),ET=CT,TT=ie.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:r=>{const e=r.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:r=>r.textAlign?{style:`text-align: ${r.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:r=>({commands:e})=>this.options.alignments.includes(r)?this.options.types.map(t=>e.updateAttributes(t,{textAlign:r})).every(t=>t):!1,unsetTextAlign:()=>({commands:r})=>this.options.types.map(e=>r.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:r=>({editor:e,commands:t})=>this.options.alignments.includes(r)?e.isActive({textAlign:r})?t.unsetTextAlign():t.setTextAlign(r):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),MT=TT;const BT={class:"pbx-my-2 pbx-py-2"},NT={for:"font-desktop",class:"pbx-myPrimaryInputLabel"},PT={disabled:"",value:""},LT={class:"pbx-my-2 pbx-py-2"},DT={for:"font-weight",class:"pbx-myPrimaryInputLabel"},AT={disabled:"",value:""},VT={class:"pbx-my-2 pbx-py-2"},IT={for:"font-family",class:"pbx-myPrimaryInputLabel"},OT={disabled:"",value:""},_T={class:"pbx-my-2 pbx-py-2"},zT={for:"font-style",class:"pbx-myPrimaryInputLabel"},RT={disabled:"",value:""},HT={__name:"TypographyForTipTap",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.ref(null),a=i.ref(null),l=i.ref(null),s=i.ref(null),p=i.ref(null),d=i.ref(null),c=i.ref(null),m=i.computed(()=>o.getFontBase),b=i.computed(()=>o.getFontDesktop),u=i.computed(()=>o.getFontTablet),g=i.computed(()=>o.getFontMobile),x=i.computed(()=>o.getFontWeight),h=i.computed(()=>o.getFontFamily),f=i.computed(()=>o.getFontStyle);return i.watch(m,async w=>{n.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(b,async w=>{a.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(u,async w=>{l.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(g,async w=>{s.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(x,async w=>{p.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(h,async w=>{d.value=w,await t.initializeElementStyles()},{immediate:!0}),i.watch(f,async w=>{c.value=w,await t.initializeElementStyles()},{immediate:!0}),(w,y)=>(i.openBlock(),i.createElementBlock("div",null,[i.createCommentVNode("",!0),i.createElementVNode("div",BT,[i.createElementVNode("label",NT,i.toDisplayString(i.unref(e)("Font size")),1),i.withDirectives(i.createElementVNode("select",{id:"font-desktop","onUpdate:modelValue":y[2]||(y[2]=v=>a.value=v),class:"pbx-myPrimarySelect",onChange:y[3]||(y[3]=v=>i.unref(t).handleFontSizeDesktop(a.value))},[i.createElementVNode("option",PT,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(br).fontDesktop,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,a.value]])]),i.createCommentVNode("",!0),y[14]||(y[14]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",LT,[i.createElementVNode("label",DT,i.toDisplayString(i.unref(e)("Font weight")),1),i.withDirectives(i.createElementVNode("select",{id:"font-weight","onUpdate:modelValue":y[8]||(y[8]=v=>p.value=v),class:"pbx-myPrimarySelect",onChange:y[9]||(y[9]=v=>i.unref(t).handleFontWeight(p.value))},[i.createElementVNode("option",AT,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontWeight,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,p.value]])]),y[15]||(y[15]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",VT,[i.createElementVNode("label",IT,i.toDisplayString(i.unref(e)("Font family")),1),i.withDirectives(i.createElementVNode("select",{id:"font-family","onUpdate:modelValue":y[10]||(y[10]=v=>d.value=v),class:"pbx-myPrimarySelect",onChange:y[11]||(y[11]=v=>i.unref(t).handleFontFamily(d.value))},[i.createElementVNode("option",OT,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontFamily,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,d.value]])]),y[16]||(y[16]=i.createElementVNode("hr",null,null,-1)),i.createElementVNode("div",_T,[i.createElementVNode("label",zT,i.toDisplayString(i.unref(e)("Font Style")),1),i.withDirectives(i.createElementVNode("select",{id:"font-style","onUpdate:modelValue":y[12]||(y[12]=v=>c.value=v),class:"pbx-myPrimarySelect",onChange:y[13]||(y[13]=v=>i.unref(t).handleFontStyle(c.value))},[i.createElementVNode("option",RT,i.toDisplayString(i.unref(e)("Select")),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(lt).fontStyle,v=>(i.openBlock(),i.createElementBlock("option",{key:v},i.toDisplayString(v),1))),128))],544),[[i.vModelSelect,c.value]])])]))}},FT={class:"pbx-myInputGroup"},jT={class:"pbx-myPrimaryInputLabel",for:"roles"},qT={key:0,class:"pbx-min-h-[2.5rem] pbx-flex pbx-items-center pbx-justify-start"},WT={class:"pbx-myPrimaryInputError pbx-mt-2 pbx-mb-0 pbx-py-0 pbx-self-start"},UT={class:"pbx-blockease-linear pbx-duration-200 pbx-block pbx-ease-linear"},GT={key:0},KT={class:"pbx-relative pbx-rounded-lg pbx-px-2"},JT={class:"pbx-flex pbx-flex-wrap pbx-items-center pbx-border-solid pbx-p-1 pbx-border pbx-border-gray-200 pbx-shadow-sm pbx-mb-4"},YT={class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-mr-6"},QT={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},XT={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},ZT={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},$T={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},e8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},t8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},r8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},o8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},i8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},n8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},a8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5"},l8={class:"pbx-py-1 pbx-px-1 pbx-flex pbx-items-center pbx-gap-2 pbx-border pbxborder-gray-100 pbx-my-0.5 pbx-mx-0.5 pbx-relative"},s8={key:0,class:"pbx-top-full pbx-absolute pbx-z-40 pbx-left-1/2 pbx-transform pbx--translate-x-1/2 pbx-w-72 pbx-select-none"},p8={class:"pbx-rounded-3xl pbx-border pbx-border-gray-100 pbx-bg-white pbx-shadow-lg pbx-pt-4 pbx-pb-4 pbx-flex pbx-flex-col pbx-overflow-y-auto pbx-max-h-[50vh] pbx-mx-4 pbx-pl-2 pbx-pr-4"},d8={__name:"TipTapInput",setup(r){const e=ne(),{translate:t}=ae(),o=Q,n=i.ref(!1),a=i.ref(""),l=i.ref(1),s=i.ref(""),p=i.ref(""),d=i.ref(""),c=i.ref(null),m=i.ref(null),b=i.ref(null),u=i.ref(null),g=i.ref(null),x=i.computed(()=>o.getElement),h=i.ref(""),f=i.computed(()=>y.value?y.value.getHTML():null),w=i.ref(0);i.watch(x,R=>{const N=document.createElement("div");if(R){N.innerHTML=R;const W=N.textContent;w.value=W.length}});const y=KE({content:"",extensions:[ET.configure({link:{openOnClick:!1}}),MT.configure({types:["heading","paragraph"]})],editorProps:{attributes:{class:"prose-sm sm:prose-sm lg:prose-sm focus:outline-none"}}});i.watch(f,async R=>{e.isSelectedElementValidText()&&x.value&&(o.setTextAreaVueModel(R),typeof R=="string"&&R!==h.value&&await e.handleTextInput(R))});const v=function(){e.isSelectedElementValidText()&&y.value&&y.value.commands.setContent(x.value.innerHTML)};i.watch(x,()=>{v()});const S=i.ref(""),L=i.ref(""),C=i.ref(null);i.watch(S,R=>{L.value=R});const P=function(){S.value=y.value.getAttributes("link").href,n.value=!0,a.value="success",l.value=2,s.value=t("Enter URL"),p.value=t("Add a valid URL to transform the selected text into a clickable hyperlink that directs users to the specified web address."),d.value=t("Close"),c.value=S.value?"Remove url":null,m.value=t("Save"),b.value=function(){n.value=!1,C.value=null},u.value=function(){y.value.chain().focus().extendMarkRange("link").unsetLink().run(),n.value=!1},g.value=function(){const R=V();R||(R||T(),n.value=!1)}},V=function(){C.value=null;const R=/^https?:\/\//,N=i.ref(!0);return N.value=R.test(L.value),N.value===!1?(C.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},T=function(){y.value.chain().focus().extendMarkRange("link").setLink({href:L.value}).run()},B=i.ref(!1),A=function(){B.value=!B.value};return i.onBeforeMount(()=>{var R;(R=y.value)==null||R.destroy()}),i.onMounted(()=>{v()}),(R,N)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(qt,{maxWidth:"4xl",showDynamicModalBuilder:n.value,type:a.value,gridColumnAmount:l.value,title:s.value,description:p.value,firstButtonText:d.value,secondButtonText:c.value,thirdButtonText:m.value,onFirstModalButtonFunctionDynamicModalBuilder:b.value,onSecondModalButtonFunctionDynamicModalBuilder:u.value,onThirdModalButtonFunctionDynamicModalBuilder:g.value},{default:i.withCtx(()=>[N[12]||(N[12]=i.createElementVNode("header",null,null,-1)),i.createElementVNode("main",null,[i.createElementVNode("div",FT,[i.createElementVNode("label",jT,[i.createElementVNode("span",null,i.toDisplayString(i.unref(t)("Enter URL")),1)]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":N[0]||(N[0]=W=>S.value=W),class:"pbx-myPrimaryInput pbx-mt-1 pbx-w-full",type:"url",placeholder:"url"},null,512),[[i.vModelText,S.value]]),C.value?(i.openBlock(),i.createElementBlock("div",qT,[i.createElementVNode("p",WT,i.toDisplayString(C.value),1)])):i.createCommentVNode("",!0)])])]),_:1},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),i.createElementVNode("div",UT,[i.unref(e).isSelectedElementValidText()&&i.unref(y)?(i.openBlock(),i.createElementBlock("div",GT,[i.createElementVNode("div",KT,[i.createElementVNode("div",JT,[i.createElementVNode("div",YT,[i.createElementVNode("button",{onClick:N[1]||(N[1]=W=>i.unref(e).toggleTipTapModal(!1)),type:"button",class:"pbx-myPrimaryTag pbx-cursor-pointer"},[N[13]||(N[13]=i.createElementVNode("span",{class:"material-symbols-outlined"}," save ",-1)),i.createElementVNode("span",null,i.toDisplayString(i.unref(t)("Save")),1)])]),i.createElementVNode("div",QT,[i.createElementVNode("button",{onClick:N[2]||(N[2]=W=>i.unref(y).chain().focus().toggleBold().run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("bold")}])},[...N[14]||(N[14]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," format_bold ",-1)])],2)]),i.createElementVNode("div",XT,[i.createElementVNode("button",{onClick:P,type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("link")}])},[...N[15]||(N[15]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," link ",-1)])],2)]),i.createElementVNode("div",ZT,[i.createElementVNode("button",{onClick:N[3]||(N[3]=W=>i.unref(y).chain().focus().toggleHeading({level:2}).run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("heading",{level:2})}])},[...N[16]||(N[16]=[i.createElementVNode("div",{class:"pbx-font-semibold pbx-text-sm"},"H2",-1)])],2)]),i.createElementVNode("div",$T,[i.createElementVNode("button",{onClick:N[4]||(N[4]=W=>i.unref(y).chain().focus().toggleHeading({level:3}).run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("heading",{level:3})}])},[...N[17]||(N[17]=[i.createElementVNode("div",{class:"pbx-font-semibold pbx-text-sm"},"H3",-1)])],2)]),i.createElementVNode("div",e8,[i.createElementVNode("button",{onClick:N[5]||(N[5]=W=>i.unref(y).chain().focus().toggleHeading({level:4}).run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("heading",{level:4})}])},[...N[18]||(N[18]=[i.createElementVNode("div",{class:"pbx-font-semibold pbx-text-sm"},"H4",-1)])],2)]),i.createElementVNode("div",t8,[i.createElementVNode("button",{onClick:N[6]||(N[6]=W=>i.unref(y).chain().focus().toggleHeading({level:5}).run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("heading",{level:5})}])},[...N[19]||(N[19]=[i.createElementVNode("div",{class:"pbx-font-semibold pbx-text-sm"},"H5",-1)])],2)]),i.createElementVNode("div",r8,[i.createElementVNode("button",{onClick:N[7]||(N[7]=W=>i.unref(y).chain().focus().toggleHeading({level:6}).run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("heading",{level:6})}])},[...N[20]||(N[20]=[i.createElementVNode("div",{class:"pbx-font-semibold pbx-text-sm"},"H6",-1)])],2)]),i.createElementVNode("div",o8,[i.createElementVNode("button",{onClick:N[8]||(N[8]=W=>i.unref(y).isActive({textAlign:"left"})?i.unref(y).chain().focus().unsetTextAlign().run():i.unref(y).chain().focus().setTextAlign("left").run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive({textAlign:"left"})}])},[...N[21]||(N[21]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," format_align_left ",-1)])],2)]),i.createElementVNode("div",i8,[i.createElementVNode("button",{onClick:N[9]||(N[9]=W=>i.unref(y).isActive({textAlign:"center"})?i.unref(y).chain().focus().unsetTextAlign().run():i.unref(y).chain().focus().setTextAlign("center").run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive({textAlign:"center"})}])},[...N[22]||(N[22]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," format_align_center ",-1)])],2)]),i.createElementVNode("div",n8,[i.createElementVNode("button",{onClick:N[10]||(N[10]=W=>i.unref(y).isActive({textAlign:"right"})?i.unref(y).chain().focus().unsetTextAlign().run():i.unref(y).chain().focus().setTextAlign("right").run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive({textAlign:"right"})}])},[...N[23]||(N[23]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," format_align_right ",-1)])],2)]),i.createElementVNode("div",a8,[i.createElementVNode("button",{onClick:N[11]||(N[11]=W=>i.unref(y).chain().focus().toggleBulletList().run()),type:"button",class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":i.unref(y).isActive("bulletList")}])},[...N[24]||(N[24]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," format_list_bulleted ",-1)])],2)]),i.createElementVNode("div",l8,[i.createElementVNode("button",{onClick:A,type:"button",class:i.normalizeClass(["pbx-h-10 pbx-px-12 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-text-myPrimaryDarkGrayColor pbx-font-medium",{"pbx-bg-myPrimaryLinkColor pbx-text-white hover:pbx-text-white hover:pbx-bg-myPrimaryLinkColor":B.value}])},i.toDisplayString(i.unref(t)("Font Appearance")),3),i.createVNode(i.Transition,{name:"popup-fade"},{default:i.withCtx(()=>[B.value?(i.openBlock(),i.createElementBlock("div",s8,[i.createElementVNode("div",p8,[i.createVNode(HT)])])):i.createCommentVNode("",!0)]),_:1})])]),i.unref(y)?(i.openBlock(),i.createBlock(i.unref(GE),{key:0,id:"page-builder-editor",editor:i.unref(y),class:"pbx-p-2 pbx-prounded-lg lg:pbx-min-h-[20rem] lg:pbx-max-h-[30rem] md:pbx-min-h-[20rem] md:pbx-max-h-[20rem] pbx-min-h-[20rem] pbx-max-h-[20rem] pbx-overflow-y-auto"},null,8,["editor"])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)])]))}},c8={class:"pbx-myInputGroup"},m8={class:"pbx-myPrimaryFormOrganizationHeaderDescriptionSection"},b8={class:"pbx-myPrimaryFormOrganizationHeader"},u8={key:0,class:"pbx-min-h-[2.5rem] pbx-flex pbx-items-center pbx-justify-start"},g8={class:"pbx-myPrimaryInputError pbx-mt-2 pbx-mb-0 pbx-py-0 pbx-self-start"},x8={class:"pbx-overflow-y-auto"},h8={class:"pbx-select-none"},f8={key:0,class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},y8={key:2,class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},w8={key:0,class:"pbx-top-10 pbx-absolute pbx-z-40 pbx-left-1/2 pbx-transform pbx--translate-x-1/2 pbx-w-72 pbx-select-none"},v8={class:"pbx-rounded-3xl pbx-border pbx-border-gray-100 pbx-bg-white pbx-shadow-lg pbx-pt-4 pbx-pb-4 pbx-flex pbx-flex-col pbx-overflow-y-auto pbx-max-h-[80vh] pbx-mx-4 pbx-px-2"},S8={class:"pbx-flex pbx-flex-col"},k8=["disabled"],C8={class:"pbx-text-sm"},E8=["disabled"],T8={class:"pbx-text-sm"},M8={class:"pbx-text-sm"},B8={class:"pbx-text-sm"},N8={class:"pbx-text-sm"},P8={__name:"EditGetElement",setup(r){const{translate:e}=ae(),t=ne(),o=Q,n=i.inject("CustomMediaComponent"),a=i.computed(()=>o.getElement);i.computed(()=>{var Oe;return(Oe=a.value)==null?void 0:Oe.tagName});const l=i.computed(()=>t.canMoveUp()),s=i.computed(()=>t.canMoveDown()),p=i.computed(()=>{const Oe=o.getShowModalTipTap;return Oe&&v(),Oe}),d=i.computed(()=>o.getComponent),c=i.ref(""),m=i.ref(1),b=i.ref(""),u=i.ref(""),g=i.ref(""),x=i.ref(null),h=i.ref(null),f=i.ref(null),w=i.ref(null),y=i.ref(null),v=function(){t.toggleTipTapModal(!0),c.value="success",m.value=2,b.value=e("Manage Content"),u.value=null,g.value=null,x.value=null,h.value="Save",f.value=function(){t.toggleTipTapModal(!1)},y.value=function(){t.toggleTipTapModal(!0)}},S=i.computed(()=>o.getBasePrimaryImage),L=i.ref(!1),C=i.ref(""),P=i.ref(""),V=i.ref(""),T=i.ref(null),B=i.ref(null),A=i.ref(null),R=function(){L.value=!0,C.value=e("Media Library"),P.value=null,V.value=e("Close"),T.value=e("Select image"),A.value=function(){L.value=!1}},N=i.ref(null),W=i.ref(""),Ee=i.ref(!1),Ue=function(){N.value=null;const Oe=/^https?:\/\//,_=i.ref(!0);return _.value=Oe.test(W.value),_.value===!1?(N.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},Qe=function(){var _;N.value=null;const Oe=a.value&&((_=a.value.firstElementChild)==null?void 0:_.tagName)==="IFRAME"&&a.value.firstElementChild.hasAttribute("src")&&a.value.firstElementChild.getAttribute("src").trim()!==""?a.value.firstElementChild.src:"";W.value=Oe,Ee.value=!0,c.value="success",m.value=2,b.value="Add video url",u.value=null,g.value=e("Close"),x.value="Save",h.value=null,f.value=function(){Ee.value=!1},w.value=function(){Ue()||(a.value&&a.value.firstElementChild&&a.value.firstElementChild.tagName==="IFRAME"&&(W.value=W.value.replace("watch?v=","embed/"),W.value=W.value.replace(/&ab_channel=[^&]*/,"").replace(/&list=[^&]*/,"").replace(/&start_radio=[^&]*/,"").replace(/&t=[^&]*/,""),a.value.firstElementChild.src=W.value),Ee.value=!1)}},U=i.ref(!1),gl=async()=>{o.setToggleGlobalHtmlMode(!1),U.value=!1,o.setShowModalHTMLEditor(!0)},Vr=i.ref(!1),Ir=i.ref(""),an=i.ref(1),ln=i.ref(""),sn=i.ref(""),pn=i.ref(""),Or=i.ref(null),dn=i.ref(null),cr=i.ref(null),xl=i.ref(null),Eo=i.ref(null),_r=function(){Vr.value=!0,Ir.value="delete",an.value=2,ln.value=e("Remove Component?"),sn.value=e("Are you sure you want to remove this Component?"),pn.value=e("Close"),Or.value=null,dn.value=e("Delete"),cr.value=function(){Vr.value=!1},Eo.value=async function(){await t.deleteComponentFromDOM(),Vr.value=!1}};return(Oe,_)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(qt,{showDynamicModalBuilder:Ee.value,maxWidth:"2xl",type:c.value,gridColumnAmount:m.value,title:b.value,description:u.value,firstButtonText:g.value,secondButtonText:x.value,thirdButtonText:h.value,onFirstModalButtonFunctionDynamicModalBuilder:f.value,onSecondModalButtonFunctionDynamicModalBuilder:w.value,onThirdModalButtonFunctionDynamicModalBuilder:y.value},{default:i.withCtx(()=>[_[9]||(_[9]=i.createElementVNode("header",null,null,-1)),i.createElementVNode("main",null,[i.createElementVNode("div",c8,[i.createElementVNode("div",m8,[i.createElementVNode("div",b8,[_[8]||(_[8]=i.createElementVNode("label",{for:"youtube-video",class:"pbx-myPrimaryInputLabel"},"Video url:",-1)),i.withDirectives(i.createElementVNode("input",{id:"youtube-video","onUpdate:modelValue":_[0]||(_[0]=Xe=>W.value=Xe),type:"text",class:"pbx-myPrimaryInput",name:"video"},null,512),[[i.vModelText,W.value]]),N.value?(i.openBlock(),i.createElementBlock("div",u8,[i.createElementVNode("p",g8,i.toDisplayString(N.value),1)])):i.createCommentVNode("",!0)])])])])]),_:1},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),i.createVNode(qt,{simpleModal:!0,showDynamicModalBuilder:p.value,maxWidth:"6xl",type:c.value,gridColumnAmount:m.value,title:b.value,description:u.value,firstButtonText:g.value,secondButtonText:x.value,thirdButtonText:h.value,onFirstModalButtonFunctionDynamicModalBuilder:f.value,onSecondModalButtonFunctionDynamicModalBuilder:w.value,onThirdModalButtonFunctionDynamicModalBuilder:y.value},{default:i.withCtx(()=>[_[10]||(_[10]=i.createElementVNode("header",null,null,-1)),i.createElementVNode("main",x8,[i.createVNode(d8)])]),_:1},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),i.createVNode(qt,{showDynamicModalBuilder:Vr.value,type:Ir.value,gridColumnAmount:an.value,title:ln.value,description:sn.value,firstButtonText:pn.value,secondButtonText:Or.value,thirdButtonText:dn.value,onFirstModalButtonFunctionDynamicModalBuilder:cr.value,onSecondModalButtonFunctionDynamicModalBuilder:xl.value,onThirdModalButtonFunctionDynamicModalBuilder:Eo.value},{default:i.withCtx(()=>[..._[11]||(_[11]=[i.createElementVNode("header",null,null,-1),i.createElementVNode("main",null,null,-1)])]),_:1},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),i.createVNode(Mx,{open:L.value,title:C.value,description:P.value,firstButtonText:V.value,secondButtonText:T.value,thirdButtonText:B.value,customMediaComponent:i.unref(n),onFirstMediaButtonFunction:A.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"]),i.createElementVNode("div",h8,[i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["pbx-flex pbx-items-center pbx-justify-center pbx-divide-x pbx-divide-gray-300",{"":a.value}])},[i.unref(t).ElOrFirstChildIsIframe()?(i.openBlock(),i.createElementBlock("div",f8,[i.createElementVNode("button",{onClick:Qe,type:"button",class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor"},[..._[13]||(_[13]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," play_circle ",-1)])])])):i.createCommentVNode("",!0),i.unref(t).isSelectedElementValidText()&&!i.unref(t).ElOrFirstChildIsIframe()?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",{class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},[i.createElementVNode("button",{onClick:v,type:"button",class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor"},[..._[14]||(_[14]=[i.createElementVNode("span",null,[i.createElementVNode("svg",{fill:"currentColor",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",class:"css-1eqh1o5"},[i.createElementVNode("path",{"clip-rule":"evenodd",d:"M20.5 6.5L7 20H2v-5L15.5 1.5l5 5zm-7.823.651L4 15.828V18h2.172l8.677-8.677-2.172-2.172zm3.586.758L17.672 6.5 15.5 4.328l-1.409 1.41 2.172 2.17z","fill-rule":"evenodd"})])],-1)])])]),i.createVNode(Yx)],64)):i.createCommentVNode("",!0),a.value&&d.value&&S.value&&!i.unref(t).ElOrFirstChildIsIframe()?(i.openBlock(),i.createElementBlock("div",y8,[i.createElementVNode("button",{onClick:R,type:"button",class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor"},[..._[15]||(_[15]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," add_photo_alternate ",-1)])])])):i.createCommentVNode("",!0),a.value&&a.value.nodeType===1&&!S.value&&!i.unref(t).ElOrFirstChildIsIframe()?(i.openBlock(),i.createBlock(Jx,{key:3})):i.createCommentVNode("",!0),(a.value,i.createCommentVNode("",!0)),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:5,class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",onClick:_[2]||(_[2]=Xe=>U.value=!U.value)},[..._[17]||(_[17]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," more_horiz ",-1)])])):i.createCommentVNode("",!0),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:6,class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",onClick:_[3]||(_[3]=Xe=>i.unref(t).clearHtmlSelection())},[..._[18]||(_[18]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," close_small",-1)])])):i.createCommentVNode("",!0)],2)]),i.createVNode(i.Transition,{name:"popup-fade"},{default:i.withCtx(()=>[U.value?(i.openBlock(),i.createElementBlock("div",w8,[i.createElementVNode("div",v8,[i.createElementVNode("div",S8,[a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:_[4]||(_[4]=Xe=>i.unref(t).reorderComponent(-1)),disabled:!l.value,class:i.normalizeClass(["pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-py-2 pbx-px-2 pbx-rounded-full",[l.value?"pbx-cursor-pointer hover:pbx-bg-red-50":"pbx-cursor-not-allowed"]])},[i.createElementVNode("div",{class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",[l.value?"hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer":"pbx-cursor-not-allowed pbx-bg-opacity-20 hover:pbx-bg-gray-200"]])},[..._[19]||(_[19]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," move_up ",-1)])],2),i.createElementVNode("div",C8,i.toDisplayString(i.unref(e)("Move up")),1)],10,k8)):i.createCommentVNode("",!0),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:1,onClick:_[5]||(_[5]=Xe=>i.unref(t).reorderComponent(1)),disabled:!s.value,class:i.normalizeClass(["pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-py-2 pbx-px-2 pbx-rounded-full",[s.value?"pbx-cursor-pointer hover:pbx-bg-red-50":"pbx-cursor-not-allowed "]])},[i.createElementVNode("div",{class:i.normalizeClass(["pbx-h-10 pbx-w-10 pbx-flex-end pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center hover:pbx-bg-gray-100 pbx-aspect-square pbx-text-myPrimaryDarkGrayColor",[s.value?"hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer":"pbx-cursor-not-allowed pbx-bg-opacity-20 hover:pbx-bg-gray-200"]])},[..._[20]||(_[20]=[i.createElementVNode("span",{class:"material-symbols-outlined"}," move_down ",-1)])],2),i.createElementVNode("div",T8,i.toDisplayString(i.unref(e)("Move down")),1)],10,E8)):i.createCommentVNode("",!0),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:2,onClick:_[6]||(_[6]=Xe=>_r()),class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"},[_[21]||(_[21]=i.createElementVNode("div",{class:"ppbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-sm pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-myPrimaryErrorColor"},[i.createElementVNode("span",{class:"material-symbols-outlined"}," delete_forever ")],-1)),i.createElementVNode("div",M8,i.toDisplayString(i.unref(e)("Delete component")),1)])):i.createCommentVNode("",!0),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:3,onClick:_[7]||(_[7]=()=>{U.value=!U.value,i.unref(t).duplicateComponent()}),class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"},[_[22]||(_[22]=i.createElementVNode("div",{class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer"},[i.createElementVNode("span",null,[i.createElementVNode("svg",{fill:"currentColor",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",class:"css-a99szh"},[i.createElementVNode("path",{"clip-rule":"evenodd",d:"M2 16V2h14v4h4v14H6v-4H2zM4 4h10v10H4V4zm4 12v2h10V8h-2v8H8z","fill-rule":"evenodd"})])])],-1)),i.createElementVNode("div",B8,i.toDisplayString(i.unref(e)("Duplicate component")),1)])):i.createCommentVNode("",!0),a.value&&d.value?(i.openBlock(),i.createElementBlock("div",{key:4,onClick:gl,class:"pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-cursor-pointer hover:pbx-bg-red-50 pbx-py-2 pbx-px-2 pbx-rounded-full"},[_[23]||(_[23]=i.createElementVNode("div",{class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer"},[i.createElementVNode("span",{class:"material-symbols-outlined"}," deployed_code ")],-1)),i.createElementVNode("div",N8,i.toDisplayString(i.unref(e)("HTML Editor")),1)])):i.createCommentVNode("",!0)])])])):i.createCommentVNode("",!0)]),_:1})]))}},L8={class:"pbx-my-2 pbx-py-2"},D8={for:"vertical-margin",class:"pbx-myPrimaryInputLabel"},A8={__name:"HTMLEditor",setup(r){const e=Q,{translate:t}=ae(),o=async()=>{e.setShowModalHTMLEditor(!0)};return(n,a)=>(i.openBlock(),i.createBlock(pt,null,{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(t)("HTML Editor")),1)]),content:i.withCtx(()=>[i.createElementVNode("div",L8,[i.createElementVNode("label",D8,i.toDisplayString(i.unref(t)("Gain full control over components by editing the raw HTML.")),1),a[0]||(a[0]=i.createElementVNode("hr",null,null,-1))]),i.createElementVNode("button",{onClick:o,type:"button",class:"pbx-myPrimaryButton"},i.toDisplayString(i.unref(t)("HTML Editor")),1)]),_:1}))}},V8={class:"pbx-mb-4 pbx-flex pbx-justify-start pbx-items-center pbx-gap-2 pbx-border-b pbx-border-solid pbx-border-gray-200 pbx-pb-4 pbx-overflow-x-auto"},I8={class:"pbx-flex pbx-justify-center pbx-items-center pbx-gap-2"},O8={key:0,class:"pbx-min-h-[50rem]"},_8={key:0},z8={class:"pbx-myPrimaryParagraph pbx-mt-12 pbx-mb-8"},R8={class:"pbx-my-2 pbx-py-2"},H8={key:1,class:"pbx-min-h-[50rem]"},F8={class:"pbx-myPrimaryParagraph pbx-mt-12 pbx-mb-8"},j8={class:"pbx-my-1"},q8={class:"pbx-my-1"},W8={class:"pbx-my-1"},U8={class:"pbx-my-1"},G8={class:"pbx-my-1"},K8={class:"pbx-my-1"},J8={class:"pbx-my-1"},Y8={class:"pbx-my-1"},Q8={class:"pbx-my-1"},X8={class:"pbx-my-1"},Z8={key:2,class:"pbx-min-h-[50rem]"},$8={class:"pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"},e7={class:"pbx-flex pbx-items-left pbx-flex-col pbx-myPrimaryGap pbx-border-myPrimaryMediumGrayColor"},t7={class:"pbx-myPrimaryParagraph"},r7={class:"pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2"},o7={class:"pbx-text-gray-100 pbx-overflow-hidden pbx-bg-gray-900"},i7={class:"pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5"},n7={class:"pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor"},a7={class:"pbx-px-4 pbx-py-4 pbx-text-gray-100"},l7={class:"pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs"},s7={class:"pbx-text-xs pbx-pb-2"},p7={class:"pbx-text-xs pbx-pb-2"},d7={class:"pbx-text-xs pbx-pb-2"},c7={class:"pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2"},m7={class:"pbx-overflow-hidden pbx-bg-gray-900"},b7={class:"pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5"},u7={class:"pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor"},g7={class:"pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs pbx-break-all"},x7={key:0},h7={key:0},f7={class:"pbx-pb-2 pbx-text-xs"},y7={key:1,class:"pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"},w7={class:"pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200"},v7={class:"pbx-overflow-x-auto"},S7={class:"pbx-min-w-full"},k7={class:"pbx-bg-gray-900"},C7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},E7={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},T7={class:"pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-b"},M7={class:"pbx-overflow-x-auto"},B7={class:"pbx-min-w-full"},N7={class:"pbx-bg-gray-900"},P7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},L7={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},D7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line"},A7={class:"pbx-overflow-x-auto"},V7={class:"pbx-min-w-full"},I7={class:"pbx-bg-gray-900"},O7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},_7={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},z7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},R7={key:1},H7={key:0},F7={class:"pbx-pb-2 pbx-text-xs"},j7={key:1,class:"pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"},q7={class:"pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200"},W7={class:"pbx-overflow-x-auto"},U7={class:"pbx-min-w-full"},G7={class:"pbx-bg-gray-900"},K7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},J7={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},Y7={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},Q7={class:"pbx-overflow-x-auto"},X7={class:"pbx-min-w-full"},Z7={class:"pbx-bg-gray-900"},$7={class:"pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-t pbx-border-gray-200"},e9={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},t9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line"},r9={class:"pbx-overflow-x-auto"},o9={class:"pbx-min-w-full"},i9={class:"pbx-bg-gray-900"},n9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},a9={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},l9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},s9={class:"pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left"},p9=["innerHTML"],d9={key:2},c9={key:0},m9={class:"pbx-pb-2 pbx-text-xs"},b9={key:1},u9={class:"pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200"},g9={class:"pbx-overflow-x-auto"},x9={class:"pbx-min-w-full"},h9={class:"pbx-bg-gray-900"},f9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},y9={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},w9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},v9={class:"pbx-overflow-x-auto"},S9={class:"pbx-min-w-full"},k9={class:"pbx-bg-gray-900"},C9={class:"pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-t pbx-border-gray-200"},E9={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},T9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line"},M9={class:"pbx-overflow-x-auto"},B9={class:"pbx-min-w-full"},N9={class:"pbx-bg-gray-900"},P9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},L9={class:"pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200"},D9={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},A9={class:"pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left"},V9=["innerHTML"],I9={__name:"AdvancedPageBuilderSettings",setup(r){const{translate:e}=ae(),t=Q,o=i.computed(()=>t.getElement),n=i.computed(()=>t.getComponent),a=i.computed(()=>t.getComponents),l=i.ref("element"),s=function(u){l.value=u};function p(u){if(!u)return"";const g=" ";let x=0,h="";const w=u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").split(/(&lt;[^&gt;]+&gt;)/g),y=["&lt;area","&lt;base","&lt;br","&lt;col","&lt;embed","&lt;hr","&lt;img","&lt;input","&lt;link","&lt;meta","&lt;param","&lt;source","&lt;track","&lt;wbr"];return w.forEach(v=>{const S=v.trim();if(!S)return;const L=S.startsWith("&lt;")&&S.endsWith("&gt;"),C=L&&S.startsWith("&lt;/");C&&(x=Math.max(0,x-1));let P=g.repeat(x)+S;L&&(P=P.replace(/(&lt;\/?[[\w\s="/.':;#-\/\?]+&gt;)/g,V=>{var A;const T=(A=V.match(/&lt;\/?([\w-]+)/))==null?void 0:A[1];let B=V.replace(/(&lt;\/?[\w-]+)/g,`<span class="html-tag-symbol">&lt;</span><span class="html-tag-name">${T}</span>`);return B=B.replace(/([\w-]+)=(&quot;[^&quot;]*&quot;)/g,'<span class="html-attribute-name">$1</span><span class="html-operator">=</span><span class="html-attribute-value">$2</span>'),B+'<span class="html-tag-symbol">&gt;</span>'})),h+=P+`
125
125
  `,L&&!C&&(S.endsWith("/&gt;")||y.some(T=>S.startsWith(T))||x++)}),h}const d=function(u,g){const w=`
126
126
  <!DOCTYPE html>
127
127
  <html lang="en">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myissue/vue-website-page-builder",
3
- "version": "3.4.48",
3
+ "version": "3.4.49",
4
4
  "description": "Vue 3 page builder component with drag & drop functionality.",
5
5
  "type": "module",
6
6
  "main": "./dist/vue-website-page-builder.umd.cjs",