gp-designer 1.0.96 → 1.0.97

Sign up to get free protection for your applications and to get access to all the features.
@@ -17596,7 +17596,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17596
17596
  setup(A, { expose: e, emit: t }) {
17597
17597
  const r = A, n = t, a = z(r.rules || []), s = z(r.template), u = z();
17598
17598
  let o = Qu("", {}, !1);
17599
- const c = z("");
17599
+ const c = z(""), l = z("#3574e6");
17600
17600
  ne(
17601
17601
  () => r.template,
17602
17602
  (F) => {
@@ -17630,7 +17630,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17630
17630
  },
17631
17631
  { immediate: !0 }
17632
17632
  );
17633
- const l = z(r.mode);
17633
+ const f = z(r.mode);
17634
17634
  ne(
17635
17635
  () => u.value,
17636
17636
  (F) => {
@@ -17638,7 +17638,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17638
17638
  },
17639
17639
  { immediate: !0 }
17640
17640
  );
17641
- const f = z(""), h = z("#3574e6");
17641
+ const h = z("");
17642
17642
  ne(
17643
17643
  () => c.value,
17644
17644
  (F) => {
@@ -17647,7 +17647,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17647
17647
  ), D = getComputedStyle(document.documentElement).getPropertyValue(
17648
17648
  "--gp-designer-theme-color"
17649
17649
  );
17650
- h.value = D || y, n("update:modelValue", F);
17650
+ l.value = D || y, n("update:modelValue", F);
17651
17651
  },
17652
17652
  { immediate: !0 }
17653
17653
  );
@@ -17729,7 +17729,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17729
17729
  }));
17730
17730
  }
17731
17731
  }
17732
- f.value = (/* @__PURE__ */ new Date()).getTime().toString(), eA.success("保存成功"), n("update:element", u.value);
17732
+ h.value = (/* @__PURE__ */ new Date()).getTime().toString(), eA.success("保存成功"), n("update:element", u.value);
17733
17733
  }
17734
17734
  }
17735
17735
  function fA(F) {
@@ -17737,7 +17737,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17737
17737
  y && (y.rule = F.rule, y.type = F.type, y.children && F.children && y.children.forEach((D) => {
17738
17738
  const Y = F.children.find((oA) => oA.xpath === D.xpath);
17739
17739
  Y && (D.rule = Y.rule, D.type = Y.type);
17740
- })), eA.success("操作成功"), f.value = (/* @__PURE__ */ new Date()).getTime().toString(), n("update:element", u.value);
17740
+ })), eA.success("操作成功"), h.value = (/* @__PURE__ */ new Date()).getTime().toString(), n("update:element", u.value);
17741
17741
  }
17742
17742
  function EA(F) {
17743
17743
  c.value = F;
@@ -17779,7 +17779,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17779
17779
  ), oA = getComputedStyle(document.documentElement).getPropertyValue(
17780
17780
  "--gp-designer-theme-color"
17781
17781
  );
17782
- return h.value = oA || Y, D;
17782
+ return l.value = oA || Y, D;
17783
17783
  }
17784
17784
  function iA(F, y = "") {
17785
17785
  var bA, SA;
@@ -17902,18 +17902,18 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17902
17902
  const y = F.file, D = R(u.value, F.element.xpath);
17903
17903
  if (r.uploadByFile)
17904
17904
  r.uploadByFile(y).then((Y) => {
17905
- Y.success && (D.attrs.src = Y.file.url, f.value = (/* @__PURE__ */ new Date()).getTime().toString());
17905
+ Y.success && (D.attrs.src = Y.file.url, h.value = (/* @__PURE__ */ new Date()).getTime().toString());
17906
17906
  });
17907
17907
  else {
17908
17908
  D.attrs.alt = y.name;
17909
17909
  const Y = URL.createObjectURL(y);
17910
- D.attrs.src = Y, f.value = (/* @__PURE__ */ new Date()).getTime().toString();
17910
+ D.attrs.src = Y, h.value = (/* @__PURE__ */ new Date()).getTime().toString();
17911
17911
  }
17912
17912
  }
17913
17913
  function zA(F) {
17914
17914
  const { icon: y } = F, D = R(u.value, F.element.xpath);
17915
17915
  let Y = D.attrs.class.replace(/icon-\S+/g, `icon-${y}`);
17916
- D.attrs.class = Y, f.value = (/* @__PURE__ */ new Date()).getTime().toString();
17916
+ D.attrs.class = Y, h.value = (/* @__PURE__ */ new Date()).getTime().toString();
17917
17917
  }
17918
17918
  const te = (F) => F.type.startsWith("image/") ? !0 : (eA.error("只能上传图片文件"), !1), RA = z({});
17919
17919
  function YA(F, y) {
@@ -17936,8 +17936,8 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17936
17936
  D.name,
17937
17937
  y
17938
17938
  )) : r.uploadByFile ? r.uploadByFile(D.file).then((Y) => {
17939
- Y.success && (y.attrs.src = Y.file.url, f.value = (/* @__PURE__ */ new Date()).getTime().toString());
17940
- }) : (y.attrs.src = D.thumbUrl, f.value = (/* @__PURE__ */ new Date()).getTime().toString()));
17939
+ Y.success && (y.attrs.src = Y.file.url, h.value = (/* @__PURE__ */ new Date()).getTime().toString());
17940
+ }) : (y.attrs.src = D.thumbUrl, h.value = (/* @__PURE__ */ new Date()).getTime().toString()));
17941
17941
  }
17942
17942
  const XA = z(r.previewWidth), I = z(360);
17943
17943
  let _ = z(!1), sA = z(""), AA = 0, wA = 0;
@@ -17967,7 +17967,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17967
17967
  );
17968
17968
  return;
17969
17969
  }
17970
- f.value = (/* @__PURE__ */ new Date()).getTime().toString(), w.value && w.value.type === X.Text && (w.value.text = de.value, w.value.editText = de.value), St.value = !1;
17970
+ h.value = (/* @__PURE__ */ new Date()).getTime().toString(), w.value && w.value.type === X.Text && (w.value.text = de.value, w.value.editText = de.value), St.value = !1;
17971
17971
  }
17972
17972
  }
17973
17973
  return e({
@@ -17997,7 +17997,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
17997
17997
  class: "gp-designer-preview",
17998
17998
  ref_key: "previewRef",
17999
17999
  ref: Q,
18000
- "theme-color": h.value
18000
+ "theme-color": l.value
18001
18001
  }, null, 8, ["css-files", "js-files", "html-content", "theme-color"])) : (M(), Ve(Ko, {
18002
18002
  key: 1,
18003
18003
  "css-files": F.css,
@@ -18006,7 +18006,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
18006
18006
  class: "gp-designer-preview",
18007
18007
  ref_key: "previewRef",
18008
18008
  ref: Q,
18009
- "theme-color": h.value
18009
+ "theme-color": l.value
18010
18010
  }, null, 8, ["css-files", "js-files", "html-content", "theme-color"]))
18011
18011
  ])
18012
18012
  ], 4)) : q("", !0),
@@ -18039,7 +18039,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
18039
18039
  upload: T.value,
18040
18040
  mode: F.mode,
18041
18041
  icons: F.icons,
18042
- r: f.value,
18042
+ r: h.value,
18043
18043
  "show-margin": K.value,
18044
18044
  element: u.value,
18045
18045
  selectedElement: w.value,
@@ -18054,12 +18054,12 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
18054
18054
  }, null, 8, ["upload-by-file", "cropper", "icon", "upload", "mode", "icons", "r", "show-margin", "element", "selectedElement", "hoveredElement"])) : q("", !0)
18055
18055
  ])
18056
18056
  ]),
18057
- l.value == "design" ? (M(), V("div", {
18057
+ f.value == "design" ? (M(), V("div", {
18058
18058
  key: 2,
18059
18059
  class: "resizer",
18060
18060
  onMousedown: y[3] || (y[3] = (D) => Je("structure"))
18061
18061
  }, null, 32)) : q("", !0),
18062
- l.value == "design" ? (M(), V("div", {
18062
+ f.value == "design" ? (M(), V("div", {
18063
18063
  key: 3,
18064
18064
  class: "resize-area",
18065
18065
  style: gs({ width: I.value + "px" })
@@ -18135,7 +18135,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
18135
18135
  }, 8, ["visible"])
18136
18136
  ]));
18137
18137
  }
18138
- }), nQ = /* @__PURE__ */ gt(rQ, [["__scopeId", "data-v-af92f944"]]), lQ = {
18138
+ }), nQ = /* @__PURE__ */ gt(rQ, [["__scopeId", "data-v-952e15a9"]]), lQ = {
18139
18139
  install(A) {
18140
18140
  A.component("Designer", nQ);
18141
18141
  }
@@ -50,9 +50,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
50
50
  --main-color: ${A.themeColor} !important;
51
51
  --gp-designer-theme-color: ${A.themeColor} !important;
52
52
  }
53
- `,o.appendChild(u);const l=i.createElement("style");l.innerHTML=AU,o.appendChild(l);const d=i.createElement("script");d.src="/spa/topic/js/jquery-3.6.0.min.js",d.async=!1,o.appendChild(d);const f=i.createElement("script");f.src="/spa/topic/js/swiper-bundle.min.js",f.async=!1,o.appendChild(f);const h=i.createElement("script");h.src="/spa/topic/js/index.js?t="+new Date().getTime(),h.async=!1,o.appendChild(h);const C=i.body;C.innerHTML=A.htmlContent,A.jsFiles.forEach(T=>{const Q=i.createElement("script");Q.src=T+"?t="+new Date().getTime(),Q.async=!1,C.appendChild(Q)}),t.value=C,c.nextTick(()=>{})};c.watch(t,a=>{if(!a)return;new MutationObserver(()=>{const o=e.value;o&&(o.style.height=`${a.scrollHeight}px`)}).observe(a,{childList:!0,subtree:!0})});const n=async a=>{var l;const i=e.value;if(!i)return;const o=i.contentDocument||((l=i.contentWindow)==null?void 0:l.document);if(!o)return;const u=o.body;if(u)try{await c.nextTick();const d=await zT(u,{x:0,y:0,scrollX:window.scrollX,scrollY:window.scrollY,useCORS:!0,allowTaint:!0,foreignObjectRendering:!1});a?a(d):d.toBlob(f=>{const h=URL.createObjectURL(f);window.open(h,"_blank")})}catch(d){console.error("截图生成失败:",d)}};return c.watch(()=>[A.htmlContent,A.jsFiles,A.cssFiles],r,{deep:!0}),c.onMounted(()=>{r()}),{iframeRef:e,generateCover:n}}});function tU(A,e,t,r,n,a){return c.openBlock(),c.createElementBlock("div",null,[c.createElementVNode("iframe",{ref:"iframeRef",style:c.normalizeStyle([{"min-height":"600px"},A.iframeStyle])},null,4)])}const e0=Ke(eU,[["render",tU],["__scopeId","data-v-75c23f37"]]),rU={class:"flex gp-dsigner"},nU={key:0,class:"flex items-center justify-between border-b"},aU={class:"text-lg font-bold p-2"},iU={class:"text-sm font-thin text-gray-500"},sU={class:"flex-1 overflow-auto"},oU={key:0,class:"flex justify-between items-center border-b p-2"},uU={class:"flex items-center"},cU={class:"p-2"},lU={class:"sticky top-0"},dU={key:0,class:"text-lg font-bold border-b p-2"},fU={class:"text-sm font-thin text-gray-500"},hU={class:"p-2"},BU={key:0,class:"max-h-[500px] overflow-hidden w-[640px] h-[360px] bg-light-100"},gU={key:1,class:"text-gray-500 text-xs mt-2"},pU={key:0},EU={key:1},mU={key:2},CU={key:0,class:"text-red-500 text-xs mt-2"},wU={key:1,class:"text-red-500 text-xs mt-2"},t0=Ke(c.defineComponent({__name:"Designer",props:{mode:{default:"design"},template:{},css:{},js:{},previewWidth:{default:360},uploadByFile:{},icons:{},rules:{},preview:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0}},emits:["update:modelValue","update:element"],setup(A,{expose:e,emit:t}){const r=A,n=t,a=c.ref(r.rules||[]),i=c.ref(r.template),o=c.ref();let u=Eu("",{},!1);const l=c.ref("");c.watch(()=>r.template,F=>{i.value=F},{immediate:!0}),c.watch(()=>i.value,F=>{F&&(o.value=q(F))},{immediate:!0}),c.watch(()=>r.css,F=>{F.forEach(x=>{if(document.querySelector(`link[href="${x}"]`)||document.querySelector(`link[id="${x}"]`))return;const D=document.createElement("link");D.rel="stylesheet",D.href=x+"?t="+new Date().getTime(),D.id=x,document.head.appendChild(D)})},{immediate:!0}),c.watch(()=>r.js,F=>{!F||F.length===0||F.forEach(x=>{if(document.querySelector(`script[src="${x}"]`)||document.querySelector(`script[id="${x}"]`))return;const D=document.createElement("script");D.src=x+"?t="+new Date().getTime(),D.id=x,document.body.appendChild(D)})},{immediate:!0});const d=c.ref(r.mode);c.watch(()=>o.value,F=>{F&&n("update:element",F)},{immediate:!0});const f=c.ref(""),h=c.ref("#3574e6");c.watch(()=>l.value,F=>{const x=getComputedStyle(document.documentElement).getPropertyValue("--main-color"),D=getComputedStyle(document.documentElement).getPropertyValue("--gp-designer-theme-color");h.value=D||x,n("update:modelValue",F)},{immediate:!0});const C=c.ref(),m=c.ref(),T=c.ref(),Q=c.ref(),b=c.ref(),v=c.ref(),H=c.ref(""),K=c.ref(r.mode==="design");c.watch(()=>r.rules,F=>{a.value=F,i.value&&(o.value=q(i.value))},{immediate:!0});function L(F=void 0){Q.value&&Q.value.generateCover(F)}function E(F){var x,D,V,iA,BA,ae,wA,yA,W,he,VA;b.value=F,F.type===Y.Text&&F.rule.allowWrap&&(Yt.value=!0,fe.value=(VA=(he=(W=(yA=(wA=(ae=(BA=(iA=(V=(D=(x=F.text)==null?void 0:x.replace(/<br>/g,`
53
+ `,o.appendChild(u);const l=i.createElement("style");l.innerHTML=AU,o.appendChild(l);const d=i.createElement("script");d.src="/spa/topic/js/jquery-3.6.0.min.js",d.async=!1,o.appendChild(d);const f=i.createElement("script");f.src="/spa/topic/js/swiper-bundle.min.js",f.async=!1,o.appendChild(f);const h=i.createElement("script");h.src="/spa/topic/js/index.js?t="+new Date().getTime(),h.async=!1,o.appendChild(h);const C=i.body;C.innerHTML=A.htmlContent,A.jsFiles.forEach(T=>{const Q=i.createElement("script");Q.src=T+"?t="+new Date().getTime(),Q.async=!1,C.appendChild(Q)}),t.value=C,c.nextTick(()=>{})};c.watch(t,a=>{if(!a)return;new MutationObserver(()=>{const o=e.value;o&&(o.style.height=`${a.scrollHeight}px`)}).observe(a,{childList:!0,subtree:!0})});const n=async a=>{var l;const i=e.value;if(!i)return;const o=i.contentDocument||((l=i.contentWindow)==null?void 0:l.document);if(!o)return;const u=o.body;if(u)try{await c.nextTick();const d=await zT(u,{x:0,y:0,scrollX:window.scrollX,scrollY:window.scrollY,useCORS:!0,allowTaint:!0,foreignObjectRendering:!1});a?a(d):d.toBlob(f=>{const h=URL.createObjectURL(f);window.open(h,"_blank")})}catch(d){console.error("截图生成失败:",d)}};return c.watch(()=>[A.htmlContent,A.jsFiles,A.cssFiles],r,{deep:!0}),c.onMounted(()=>{r()}),{iframeRef:e,generateCover:n}}});function tU(A,e,t,r,n,a){return c.openBlock(),c.createElementBlock("div",null,[c.createElementVNode("iframe",{ref:"iframeRef",style:c.normalizeStyle([{"min-height":"600px"},A.iframeStyle])},null,4)])}const e0=Ke(eU,[["render",tU],["__scopeId","data-v-75c23f37"]]),rU={class:"flex gp-dsigner"},nU={key:0,class:"flex items-center justify-between border-b"},aU={class:"text-lg font-bold p-2"},iU={class:"text-sm font-thin text-gray-500"},sU={class:"flex-1 overflow-auto"},oU={key:0,class:"flex justify-between items-center border-b p-2"},uU={class:"flex items-center"},cU={class:"p-2"},lU={class:"sticky top-0"},dU={key:0,class:"text-lg font-bold border-b p-2"},fU={class:"text-sm font-thin text-gray-500"},hU={class:"p-2"},BU={key:0,class:"max-h-[500px] overflow-hidden w-[640px] h-[360px] bg-light-100"},gU={key:1,class:"text-gray-500 text-xs mt-2"},pU={key:0},EU={key:1},mU={key:2},CU={key:0,class:"text-red-500 text-xs mt-2"},wU={key:1,class:"text-red-500 text-xs mt-2"},t0=Ke(c.defineComponent({__name:"Designer",props:{mode:{default:"design"},template:{},css:{},js:{},previewWidth:{default:360},uploadByFile:{},icons:{},rules:{},preview:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0}},emits:["update:modelValue","update:element"],setup(A,{expose:e,emit:t}){const r=A,n=t,a=c.ref(r.rules||[]),i=c.ref(r.template),o=c.ref();let u=Eu("",{},!1);const l=c.ref(""),d=c.ref("#3574e6");c.watch(()=>r.template,F=>{i.value=F},{immediate:!0}),c.watch(()=>i.value,F=>{F&&(o.value=q(F))},{immediate:!0}),c.watch(()=>r.css,F=>{F.forEach(x=>{if(document.querySelector(`link[href="${x}"]`)||document.querySelector(`link[id="${x}"]`))return;const D=document.createElement("link");D.rel="stylesheet",D.href=x+"?t="+new Date().getTime(),D.id=x,document.head.appendChild(D)})},{immediate:!0}),c.watch(()=>r.js,F=>{!F||F.length===0||F.forEach(x=>{if(document.querySelector(`script[src="${x}"]`)||document.querySelector(`script[id="${x}"]`))return;const D=document.createElement("script");D.src=x+"?t="+new Date().getTime(),D.id=x,document.body.appendChild(D)})},{immediate:!0});const f=c.ref(r.mode);c.watch(()=>o.value,F=>{F&&n("update:element",F)},{immediate:!0});const h=c.ref("");c.watch(()=>l.value,F=>{const x=getComputedStyle(document.documentElement).getPropertyValue("--main-color"),D=getComputedStyle(document.documentElement).getPropertyValue("--gp-designer-theme-color");d.value=D||x,n("update:modelValue",F)},{immediate:!0});const C=c.ref(),m=c.ref(),T=c.ref(),Q=c.ref(),b=c.ref(),v=c.ref(),H=c.ref(""),K=c.ref(r.mode==="design");c.watch(()=>r.rules,F=>{a.value=F,i.value&&(o.value=q(i.value))},{immediate:!0});function L(F=void 0){Q.value&&Q.value.generateCover(F)}function E(F){var x,D,V,iA,BA,ae,wA,yA,W,he,VA;b.value=F,F.type===Y.Text&&F.rule.allowWrap&&(Yt.value=!0,fe.value=(VA=(he=(W=(yA=(wA=(ae=(BA=(iA=(V=(D=(x=F.text)==null?void 0:x.replace(/<br>/g,`
54
54
  `))==null?void 0:D.replace(/<br\/>/g,`
55
55
  `))==null?void 0:V.replace(/<br \/>/g,`
56
56
  `))==null?void 0:iA.replace(/<br \s*\/>/g,`
57
57
  `))==null?void 0:BA.replace(/<br\s*\/>/g,`
58
- `))==null?void 0:ae.replace(/&nbsp;/g," "))==null?void 0:wA.replace(/&lt;/g,"<"))==null?void 0:yA.replace(/&gt;/g,">"))==null?void 0:W.replace(/&amp;/g,"&"))==null?void 0:he.replace(/&quot;/g,'"'))==null?void 0:VA.replace(/&apos;/g,"'"))}function O(F,x=""){if(x){const D=R(o.value,x);D?v.value=D:v.value=F}else v.value=F}function R(F,x){if(F.xpath===x)return F;if(F.children&&F.children.length)for(const D of F.children){const V=R(D,x);if(V)return V}}function k(F,x){var D,V;return F.tag===x.tag&&((D=F.children)==null?void 0:D.length)===((V=x.children)==null?void 0:V.length)}function eA(F){if(b.value.xpath==F.xpath){if(b.value){if(F.type===Y.Block){var x=!0;const D=R(o.value,b.value.parentxpath||"");if(D&&D.children&&D.children.forEach(V=>{if(V.tag!=b.value.tag||!k(V,b.value)){x=!1;return}}),!x){z.error("同级结构不一致,错误配置!");return}}if(b.value.rule=F.rule,b.value.type=F.type,b.value.type===Y.Block){const D=R(o.value,b.value.parentxpath||"");D&&D.children&&(D.children.forEach(V=>{if(V.tag!=b.value.tag||!k(V,b.value)){z.error("同级结构不一致,无法配置为块类型");return}}),D.children.forEach(V=>{V.tag===b.value.tag&&(V.rule=F.rule,V.type=F.type)}))}}f.value=new Date().getTime().toString(),z.success("保存成功"),n("update:element",o.value)}}function cA(F){const x=R(o.value,F.xpath||"");x&&(x.rule=F.rule,x.type=F.type,x.children&&F.children&&x.children.forEach(D=>{const V=F.children.find(iA=>iA.xpath===D.xpath);V&&(D.rule=V.rule,D.type=V.type)})),z.success("操作成功"),f.value=new Date().getTime().toString(),n("update:element",o.value)}function hA(F){l.value=F}function q(F){u=Eu(F);const x=u("body").children().toArray().map(BA=>nA(u(BA)));l.value=u("body").html()||"";const D=x[0];if(D){let BA=function(wA,yA,W){var tt;const he=wA.xpath.replace(yA.xpath,W.xpath),VA=(tt=a.value)==null?void 0:tt.find(Xt=>Xt.xpath===he);VA&&(wA.rule=VA.rule,wA.type=VA.type),wA.children&&wA.children.length>0&&wA.children.forEach(Xt=>{BA(Xt,yA,W)})},ae=function(wA){if(wA.children&&wA.children.length>0){const yA=wA.children.find(W=>W.type===Y.Block);yA&&wA.children.forEach(W=>{var he,VA,tt;W.tag===yA.tag&&(W.rule=yA.rule,W.type=yA.type,W.attrs.class=(tt=(VA=(he=W.attrs)==null?void 0:he.class)==null?void 0:VA.replace(/pc:basis-\d\/\d/g,""))==null?void 0:tt.replace(/basis-\d\/\d/g,""),W.children&&W.children.length>0&&W.children.forEach(Xt=>{BA(Xt,W,yA)}))}),wA.children.forEach(W=>{ae(W)})}};ae(D)}const V=getComputedStyle(document.documentElement).getPropertyValue("--main-color"),iA=getComputedStyle(document.documentElement).getPropertyValue("--gp-designer-theme-color");return h.value=iA||V,D}function nA(F,x=""){var wA,yA;function D(W){if(!W||!W[0])return"";const he=[];let VA=W;for(;VA.length&&VA[0].tagName!=="html";){const tt=VA[0].tagName,TU=VA.parent().children(tt).index(VA)+1;he.unshift(`${tt}[${TU}]`),VA=VA.parent()}return"/html/"+he.join("/")}const V=D(F).replace("/html/body[1]",""),iA=F.children().toArray().map(W=>nA(u(W),V)).filter(W=>W.tag!=="br");let BA=(wA=a.value)==null?void 0:wA.find(W=>W.xpath===V),ae=F.contents().not(F.children()).text().trim();return BA&&((yA=BA.rule)!=null&&yA.allowWrap)&&(ae=F.html()),{tag:F[0].tagName,text:ae,attrs:F[0].attribs,children:iA,xpath:V,parentxpath:x,type:(BA==null?void 0:BA.type)||Y.None,rule:(BA==null?void 0:BA.rule)||{}}}function lA(F){const x=R(o.value,F.element.xpath);if(x){const D=c.toRaw(x);D.editText=F.newText}}function dA(F,x=""){function D(V,iA){var wA;const ae=(iA?((wA=R(o.value,iA))==null?void 0:wA.children)||[]:[o.value]).filter(yA=>yA.tag===V.tag).indexOf(V)+1;return`${iA}/${V.tag}[${ae}]`}F.xpath=D(F,x),F.parentxpath=x,(F.children||[]).forEach(V=>dA(V,F.xpath))}function TA({action:F,element:x,newBlock:D}){const V=R(o.value,x.parentxpath||"");if(!V||!V.children)return;const iA=V.children.findIndex(W=>W===x);if(iA===-1){z.error("未找到元素");return}const BA=V.children.length,{minBlock:ae,maxBlock:wA}=x.rule;if((F==="add"||F==="copy")&&BA>=(wA||1/0)){H.value=`无法添加更多块。最大块数量为 ${wA}`,z.error(H.value);return}function yA(W){W.xpath="",W.parentxpath="",W.text=W.editText||W.text,W.editText="",W.children.forEach(he=>{yA(he)})}switch(F){case"add":if(D){const W={...D,children:JSON.parse(JSON.stringify(D.children))};yA(W),V.children.splice(iA+1,0,W),z.success("添加成功")}break;case"copy":if(D){const W={...D,children:JSON.parse(JSON.stringify(D.children))};yA(W),V.children.splice(iA+1,0,W),z.success("复制成功")}break;case"moveUp":if(iA>0){const[W]=V.children.splice(iA,1);V.children.splice(iA-1,0,W),z.success("前移成功")}else z.error("已经是第一个块,无法前移");break;case"moveDown":if(iA<V.children.length-1){const[W]=V.children.splice(iA,1);V.children.splice(iA+1,0,W),z.success("后移成功")}else z.error("已经是最后一个块,无法后移");break;case"delete":if(BA<=(ae||0)){H.value=`无法删除更多块。最小块数量为 ${ae}`,z.error(H.value);return}V.children.splice(iA,1),z.success("删除成功");break}H.value="",dA(o.value)}function qA(F,x){let D=x.attrs.class.replace(/icon-\S+/g,`icon-${F}`);x.attrs.class=D}function _A(F){const x=F.file,D=R(o.value,F.element.xpath);if(r.uploadByFile)r.uploadByFile(x).then(V=>{V.success&&(D.attrs.src=V.file.url,f.value=new Date().getTime().toString())});else{D.attrs.alt=x.name;const V=URL.createObjectURL(x);D.attrs.src=V,f.value=new Date().getTime().toString()}}function WA(F){const{icon:x}=F,D=R(o.value,F.element.xpath);let V=D.attrs.class.replace(/icon-\S+/g,`icon-${x}`);D.attrs.class=V,f.value=new Date().getTime().toString()}const jA=F=>F.type.startsWith("image/")?!0:(z.error("只能上传图片文件"),!1),OA=c.ref({});function PA(F,x){if(!F||F.length===0)return;const D=F[0];if(x.rule&&(x.rule.minImageWidth||x.rule.maxImageHeight)){if(x.rule.minImageWidth&&D.width<x.rule.minImageWidth){z.error(`图片宽度不能小于 ${x.rule.minImageWidth}px`);return}if(x.rule.maxImageHeight&&D.height<x.rule.maxImageHeight){z.error(`图片高度不能小于 ${x.rule.maxImageHeight}px`);return}}x.rule.minImageWidth&&x.rule.maxImageHeight?(OA.value.width=x.rule.minImageWidth,OA.value.height=x.rule.maxImageHeight,OA.value.aspectRatio=x.rule.minImageWidth/x.rule.maxImageHeight):OA.value={},D&&(x.rule.crop?(D.thumbUrl,C.value.handleOpenCropper(OA.value,D.file,D.name,x)):r.uploadByFile?r.uploadByFile(D.file).then(V=>{V.success&&(x.attrs.src=V.file.url,f.value=new Date().getTime().toString())}):(x.attrs.src=D.thumbUrl,f.value=new Date().getTime().toString()))}const KA=c.ref(r.previewWidth),y=c.ref(360);let _=c.ref(!1),tA=c.ref(""),j=0,CA=0;function et(F){tA.value=F,_.value=!0,j=event.clientX,F==="preview"?CA=KA.value:F==="structure"&&(CA=y.value),window.addEventListener("mousemove",Pr),window.addEventListener("mouseup",Gt)}function Pr(F){if(!_.value)return;const x=F.clientX-j;tA.value==="preview"?KA.value=Math.max(200,CA+x):tA.value==="structure"&&(y.value=Math.max(200,CA-x))}function Gt(){_.value=!1,tA.value="",window.removeEventListener("mousemove",Pr),window.removeEventListener("mouseup",Gt)}const Yt=c.ref(!1),fe=c.ref("");function bs(){if(b.value){if(b.value&&b.value.rule&&b.value.rule.maxText&&fe.value.length>b.value.rule.maxText){z.error(`文本内容超出最大字数 ${b.value.rule.maxText} 个`);return}if(b.value&&b.value.rule&&b.value.rule.minText&&fe.value.length<b.value.rule.minText){z.error(`文本内容不能少于最小字数 ${b.value.rule.minText} 个`);return}f.value=new Date().getTime().toString(),b.value&&b.value.type===Y.Text&&(b.value.text=fe.value,b.value.editText=fe.value),Yt.value=!1}}return e({generateCover:L}),(F,x)=>(c.openBlock(),c.createElementBlock("div",rU,[F.preview?(c.openBlock(),c.createElementBlock("div",{key:0,class:"border-l overflow-auto resize-area",style:c.normalizeStyle({width:KA.value+"px"})},[F.showTitle?(c.openBlock(),c.createElementBlock("div",nU,[c.createElementVNode("h2",aU,[x[6]||(x[6]=c.createTextVNode(" 实时预览 ")),c.createElementVNode("span",iU,c.toDisplayString(KA.value)+"px",1)]),c.createElementVNode("div",{onClick:x[0]||(x[0]=()=>L()),class:"p-2 cursor-pointer text-blue-500"}," 封面 ")])):c.createCommentVNode("",!0),c.createElementVNode("div",null,[l.value?(c.openBlock(),c.createBlock(e0,{key:0,"css-files":F.css,"js-files":F.js,"html-content":l.value,class:"gp-designer-preview",ref_key:"previewRef",ref:Q,"theme-color":h.value},null,8,["css-files","js-files","html-content","theme-color"])):(c.openBlock(),c.createBlock(e0,{key:1,"css-files":F.css,"js-files":F.js,"html-content":c.unref(u)("body").html(),class:"gp-designer-preview",ref_key:"previewRef",ref:Q,"theme-color":h.value},null,8,["css-files","js-files","html-content","theme-color"]))])],4)):c.createCommentVNode("",!0),F.preview?(c.openBlock(),c.createElementBlock("div",{key:1,class:"resizer",onMousedown:x[1]||(x[1]=D=>et("preview"))},null,32)):c.createCommentVNode("",!0),c.createElementVNode("div",sU,[F.showTitle?(c.openBlock(),c.createElementBlock("div",oU,[x[8]||(x[8]=c.createElementVNode("h2",{class:"text-lg font-bold"},"结构渲染",-1)),c.createElementVNode("div",uU,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":x[2]||(x[2]=D=>K.value=D),type:"checkbox",id:"showMargin",class:"mr-2"},null,512),[[c.vModelCheckbox,K.value]]),x[7]||(x[7]=c.createElementVNode("label",{for:"showMargin"},"间距",-1))])])):c.createCommentVNode("",!0),c.createElementVNode("div",cU,[o.value?(c.openBlock(),c.createBlock(yp,{key:0,"upload-by-file":F.uploadByFile,cropper:C.value,icon:m.value,upload:T.value,mode:F.mode,icons:F.icons,r:f.value,"show-margin":K.value,element:o.value,selectedElement:b.value,hoveredElement:v.value,onSelectElement:E,onHoverElement:O,onContentUpdated:hA,onUpdateText:lA,onBlockAction:TA,onAddIcon:qA,onUpdateElementRule:cA},null,8,["upload-by-file","cropper","icon","upload","mode","icons","r","show-margin","element","selectedElement","hoveredElement"])):c.createCommentVNode("",!0)])]),d.value=="design"?(c.openBlock(),c.createElementBlock("div",{key:2,class:"resizer",onMousedown:x[3]||(x[3]=D=>et("structure"))},null,32)):c.createCommentVNode("",!0),d.value=="design"?(c.openBlock(),c.createElementBlock("div",{key:3,class:"resize-area",style:c.normalizeStyle({width:y.value+"px"})},[c.createElementVNode("div",lU,[F.showTitle?(c.openBlock(),c.createElementBlock("h2",dU,[x[9]||(x[9]=c.createTextVNode(" 节点属性 ")),c.createElementVNode("span",fU,c.toDisplayString(y.value)+"px",1)])):c.createCommentVNode("",!0),c.createElementVNode("div",hU,[b.value?(c.openBlock(),c.createBlock(Zp,{key:0,element:b.value,onUpdateElement:eA},null,8,["element"])):c.createCommentVNode("",!0)])])],4)):c.createCommentVNode("",!0),c.createVNode(um,{ref_key:"cropperRef",ref:C,onOk:_A},null,512),c.createVNode(mm,{icons:F.icons,ref_key:"iconRef",ref:m,onOk:WA},null,8,["icons"]),c.createVNode(ym,{ref_key:"uploadRef",ref:T,multiple:!1,show:!1,beforeUpload:jA,onChange:PA},{"upload-icon":c.withCtx(()=>x[10]||(x[10]=[c.createElementVNode("div",{class:"p-2"},"上传",-1)])),_:1},512),c.createVNode($u,{title:"多行文本编辑",visible:Yt.value,"onUpdate:visible":x[5]||(x[5]=D=>Yt.value=D),onOk:bs,"mask-closable":!1},{default:c.withCtx(()=>{var D;return[b.value?(c.openBlock(),c.createElementBlock("div",BU,[c.withDirectives(c.createElementVNode("textarea",{"onUpdate:modelValue":x[4]||(x[4]=V=>fe.value=V),class:"w-full h-full text-sm"},null,512),[[c.vModelText,fe.value]])])):c.createCommentVNode("",!0),b.value&&b.value.rule?(c.openBlock(),c.createElementBlock("div",gU,[c.createElementVNode("div",null,[c.createElementVNode("span",null,c.toDisplayString(((D=fe.value)==null?void 0:D.length)||0)+" 字",1),b.value.rule.minText&&b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",pU," / "+c.toDisplayString(b.value.rule.minText||0)+" ~ "+c.toDisplayString(b.value.rule.maxText||0)+" 字 ",1)):b.value.rule.minText?(c.openBlock(),c.createElementBlock("span",EU," / 最少 "+c.toDisplayString(b.value.rule.minText)+" 字",1)):b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",mU," / 最多 "+c.toDisplayString(b.value.rule.maxText)+" 字",1)):c.createCommentVNode("",!0)]),c.createElementVNode("div",null,[b.value.rule.maxText&&fe.value.length>b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",CU," 超出最大字数 "+c.toDisplayString(b.value.rule.maxText)+" 字 ",1)):b.value.rule.minText&&fe.value.length<b.value.rule.minText?(c.openBlock(),c.createElementBlock("span",wU," 不能少于最小字数 "+c.toDisplayString(b.value.rule.minText)+" 字 ",1)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0)]}),_:1},8,["visible"])]))}}),[["__scopeId","data-v-af92f944"]]),bU={install(A){A.component("Designer",t0)}};He.Designer=t0,He.default=bU,Object.defineProperties(He,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
58
+ `))==null?void 0:ae.replace(/&nbsp;/g," "))==null?void 0:wA.replace(/&lt;/g,"<"))==null?void 0:yA.replace(/&gt;/g,">"))==null?void 0:W.replace(/&amp;/g,"&"))==null?void 0:he.replace(/&quot;/g,'"'))==null?void 0:VA.replace(/&apos;/g,"'"))}function O(F,x=""){if(x){const D=R(o.value,x);D?v.value=D:v.value=F}else v.value=F}function R(F,x){if(F.xpath===x)return F;if(F.children&&F.children.length)for(const D of F.children){const V=R(D,x);if(V)return V}}function k(F,x){var D,V;return F.tag===x.tag&&((D=F.children)==null?void 0:D.length)===((V=x.children)==null?void 0:V.length)}function eA(F){if(b.value.xpath==F.xpath){if(b.value){if(F.type===Y.Block){var x=!0;const D=R(o.value,b.value.parentxpath||"");if(D&&D.children&&D.children.forEach(V=>{if(V.tag!=b.value.tag||!k(V,b.value)){x=!1;return}}),!x){z.error("同级结构不一致,错误配置!");return}}if(b.value.rule=F.rule,b.value.type=F.type,b.value.type===Y.Block){const D=R(o.value,b.value.parentxpath||"");D&&D.children&&(D.children.forEach(V=>{if(V.tag!=b.value.tag||!k(V,b.value)){z.error("同级结构不一致,无法配置为块类型");return}}),D.children.forEach(V=>{V.tag===b.value.tag&&(V.rule=F.rule,V.type=F.type)}))}}h.value=new Date().getTime().toString(),z.success("保存成功"),n("update:element",o.value)}}function cA(F){const x=R(o.value,F.xpath||"");x&&(x.rule=F.rule,x.type=F.type,x.children&&F.children&&x.children.forEach(D=>{const V=F.children.find(iA=>iA.xpath===D.xpath);V&&(D.rule=V.rule,D.type=V.type)})),z.success("操作成功"),h.value=new Date().getTime().toString(),n("update:element",o.value)}function hA(F){l.value=F}function q(F){u=Eu(F);const x=u("body").children().toArray().map(BA=>nA(u(BA)));l.value=u("body").html()||"";const D=x[0];if(D){let BA=function(wA,yA,W){var tt;const he=wA.xpath.replace(yA.xpath,W.xpath),VA=(tt=a.value)==null?void 0:tt.find(Xt=>Xt.xpath===he);VA&&(wA.rule=VA.rule,wA.type=VA.type),wA.children&&wA.children.length>0&&wA.children.forEach(Xt=>{BA(Xt,yA,W)})},ae=function(wA){if(wA.children&&wA.children.length>0){const yA=wA.children.find(W=>W.type===Y.Block);yA&&wA.children.forEach(W=>{var he,VA,tt;W.tag===yA.tag&&(W.rule=yA.rule,W.type=yA.type,W.attrs.class=(tt=(VA=(he=W.attrs)==null?void 0:he.class)==null?void 0:VA.replace(/pc:basis-\d\/\d/g,""))==null?void 0:tt.replace(/basis-\d\/\d/g,""),W.children&&W.children.length>0&&W.children.forEach(Xt=>{BA(Xt,W,yA)}))}),wA.children.forEach(W=>{ae(W)})}};ae(D)}const V=getComputedStyle(document.documentElement).getPropertyValue("--main-color"),iA=getComputedStyle(document.documentElement).getPropertyValue("--gp-designer-theme-color");return d.value=iA||V,D}function nA(F,x=""){var wA,yA;function D(W){if(!W||!W[0])return"";const he=[];let VA=W;for(;VA.length&&VA[0].tagName!=="html";){const tt=VA[0].tagName,TU=VA.parent().children(tt).index(VA)+1;he.unshift(`${tt}[${TU}]`),VA=VA.parent()}return"/html/"+he.join("/")}const V=D(F).replace("/html/body[1]",""),iA=F.children().toArray().map(W=>nA(u(W),V)).filter(W=>W.tag!=="br");let BA=(wA=a.value)==null?void 0:wA.find(W=>W.xpath===V),ae=F.contents().not(F.children()).text().trim();return BA&&((yA=BA.rule)!=null&&yA.allowWrap)&&(ae=F.html()),{tag:F[0].tagName,text:ae,attrs:F[0].attribs,children:iA,xpath:V,parentxpath:x,type:(BA==null?void 0:BA.type)||Y.None,rule:(BA==null?void 0:BA.rule)||{}}}function lA(F){const x=R(o.value,F.element.xpath);if(x){const D=c.toRaw(x);D.editText=F.newText}}function dA(F,x=""){function D(V,iA){var wA;const ae=(iA?((wA=R(o.value,iA))==null?void 0:wA.children)||[]:[o.value]).filter(yA=>yA.tag===V.tag).indexOf(V)+1;return`${iA}/${V.tag}[${ae}]`}F.xpath=D(F,x),F.parentxpath=x,(F.children||[]).forEach(V=>dA(V,F.xpath))}function TA({action:F,element:x,newBlock:D}){const V=R(o.value,x.parentxpath||"");if(!V||!V.children)return;const iA=V.children.findIndex(W=>W===x);if(iA===-1){z.error("未找到元素");return}const BA=V.children.length,{minBlock:ae,maxBlock:wA}=x.rule;if((F==="add"||F==="copy")&&BA>=(wA||1/0)){H.value=`无法添加更多块。最大块数量为 ${wA}`,z.error(H.value);return}function yA(W){W.xpath="",W.parentxpath="",W.text=W.editText||W.text,W.editText="",W.children.forEach(he=>{yA(he)})}switch(F){case"add":if(D){const W={...D,children:JSON.parse(JSON.stringify(D.children))};yA(W),V.children.splice(iA+1,0,W),z.success("添加成功")}break;case"copy":if(D){const W={...D,children:JSON.parse(JSON.stringify(D.children))};yA(W),V.children.splice(iA+1,0,W),z.success("复制成功")}break;case"moveUp":if(iA>0){const[W]=V.children.splice(iA,1);V.children.splice(iA-1,0,W),z.success("前移成功")}else z.error("已经是第一个块,无法前移");break;case"moveDown":if(iA<V.children.length-1){const[W]=V.children.splice(iA,1);V.children.splice(iA+1,0,W),z.success("后移成功")}else z.error("已经是最后一个块,无法后移");break;case"delete":if(BA<=(ae||0)){H.value=`无法删除更多块。最小块数量为 ${ae}`,z.error(H.value);return}V.children.splice(iA,1),z.success("删除成功");break}H.value="",dA(o.value)}function qA(F,x){let D=x.attrs.class.replace(/icon-\S+/g,`icon-${F}`);x.attrs.class=D}function _A(F){const x=F.file,D=R(o.value,F.element.xpath);if(r.uploadByFile)r.uploadByFile(x).then(V=>{V.success&&(D.attrs.src=V.file.url,h.value=new Date().getTime().toString())});else{D.attrs.alt=x.name;const V=URL.createObjectURL(x);D.attrs.src=V,h.value=new Date().getTime().toString()}}function WA(F){const{icon:x}=F,D=R(o.value,F.element.xpath);let V=D.attrs.class.replace(/icon-\S+/g,`icon-${x}`);D.attrs.class=V,h.value=new Date().getTime().toString()}const jA=F=>F.type.startsWith("image/")?!0:(z.error("只能上传图片文件"),!1),OA=c.ref({});function PA(F,x){if(!F||F.length===0)return;const D=F[0];if(x.rule&&(x.rule.minImageWidth||x.rule.maxImageHeight)){if(x.rule.minImageWidth&&D.width<x.rule.minImageWidth){z.error(`图片宽度不能小于 ${x.rule.minImageWidth}px`);return}if(x.rule.maxImageHeight&&D.height<x.rule.maxImageHeight){z.error(`图片高度不能小于 ${x.rule.maxImageHeight}px`);return}}x.rule.minImageWidth&&x.rule.maxImageHeight?(OA.value.width=x.rule.minImageWidth,OA.value.height=x.rule.maxImageHeight,OA.value.aspectRatio=x.rule.minImageWidth/x.rule.maxImageHeight):OA.value={},D&&(x.rule.crop?(D.thumbUrl,C.value.handleOpenCropper(OA.value,D.file,D.name,x)):r.uploadByFile?r.uploadByFile(D.file).then(V=>{V.success&&(x.attrs.src=V.file.url,h.value=new Date().getTime().toString())}):(x.attrs.src=D.thumbUrl,h.value=new Date().getTime().toString()))}const KA=c.ref(r.previewWidth),y=c.ref(360);let _=c.ref(!1),tA=c.ref(""),j=0,CA=0;function et(F){tA.value=F,_.value=!0,j=event.clientX,F==="preview"?CA=KA.value:F==="structure"&&(CA=y.value),window.addEventListener("mousemove",Pr),window.addEventListener("mouseup",Gt)}function Pr(F){if(!_.value)return;const x=F.clientX-j;tA.value==="preview"?KA.value=Math.max(200,CA+x):tA.value==="structure"&&(y.value=Math.max(200,CA-x))}function Gt(){_.value=!1,tA.value="",window.removeEventListener("mousemove",Pr),window.removeEventListener("mouseup",Gt)}const Yt=c.ref(!1),fe=c.ref("");function bs(){if(b.value){if(b.value&&b.value.rule&&b.value.rule.maxText&&fe.value.length>b.value.rule.maxText){z.error(`文本内容超出最大字数 ${b.value.rule.maxText} 个`);return}if(b.value&&b.value.rule&&b.value.rule.minText&&fe.value.length<b.value.rule.minText){z.error(`文本内容不能少于最小字数 ${b.value.rule.minText} 个`);return}h.value=new Date().getTime().toString(),b.value&&b.value.type===Y.Text&&(b.value.text=fe.value,b.value.editText=fe.value),Yt.value=!1}}return e({generateCover:L}),(F,x)=>(c.openBlock(),c.createElementBlock("div",rU,[F.preview?(c.openBlock(),c.createElementBlock("div",{key:0,class:"border-l overflow-auto resize-area",style:c.normalizeStyle({width:KA.value+"px"})},[F.showTitle?(c.openBlock(),c.createElementBlock("div",nU,[c.createElementVNode("h2",aU,[x[6]||(x[6]=c.createTextVNode(" 实时预览 ")),c.createElementVNode("span",iU,c.toDisplayString(KA.value)+"px",1)]),c.createElementVNode("div",{onClick:x[0]||(x[0]=()=>L()),class:"p-2 cursor-pointer text-blue-500"}," 封面 ")])):c.createCommentVNode("",!0),c.createElementVNode("div",null,[l.value?(c.openBlock(),c.createBlock(e0,{key:0,"css-files":F.css,"js-files":F.js,"html-content":l.value,class:"gp-designer-preview",ref_key:"previewRef",ref:Q,"theme-color":d.value},null,8,["css-files","js-files","html-content","theme-color"])):(c.openBlock(),c.createBlock(e0,{key:1,"css-files":F.css,"js-files":F.js,"html-content":c.unref(u)("body").html(),class:"gp-designer-preview",ref_key:"previewRef",ref:Q,"theme-color":d.value},null,8,["css-files","js-files","html-content","theme-color"]))])],4)):c.createCommentVNode("",!0),F.preview?(c.openBlock(),c.createElementBlock("div",{key:1,class:"resizer",onMousedown:x[1]||(x[1]=D=>et("preview"))},null,32)):c.createCommentVNode("",!0),c.createElementVNode("div",sU,[F.showTitle?(c.openBlock(),c.createElementBlock("div",oU,[x[8]||(x[8]=c.createElementVNode("h2",{class:"text-lg font-bold"},"结构渲染",-1)),c.createElementVNode("div",uU,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":x[2]||(x[2]=D=>K.value=D),type:"checkbox",id:"showMargin",class:"mr-2"},null,512),[[c.vModelCheckbox,K.value]]),x[7]||(x[7]=c.createElementVNode("label",{for:"showMargin"},"间距",-1))])])):c.createCommentVNode("",!0),c.createElementVNode("div",cU,[o.value?(c.openBlock(),c.createBlock(yp,{key:0,"upload-by-file":F.uploadByFile,cropper:C.value,icon:m.value,upload:T.value,mode:F.mode,icons:F.icons,r:h.value,"show-margin":K.value,element:o.value,selectedElement:b.value,hoveredElement:v.value,onSelectElement:E,onHoverElement:O,onContentUpdated:hA,onUpdateText:lA,onBlockAction:TA,onAddIcon:qA,onUpdateElementRule:cA},null,8,["upload-by-file","cropper","icon","upload","mode","icons","r","show-margin","element","selectedElement","hoveredElement"])):c.createCommentVNode("",!0)])]),f.value=="design"?(c.openBlock(),c.createElementBlock("div",{key:2,class:"resizer",onMousedown:x[3]||(x[3]=D=>et("structure"))},null,32)):c.createCommentVNode("",!0),f.value=="design"?(c.openBlock(),c.createElementBlock("div",{key:3,class:"resize-area",style:c.normalizeStyle({width:y.value+"px"})},[c.createElementVNode("div",lU,[F.showTitle?(c.openBlock(),c.createElementBlock("h2",dU,[x[9]||(x[9]=c.createTextVNode(" 节点属性 ")),c.createElementVNode("span",fU,c.toDisplayString(y.value)+"px",1)])):c.createCommentVNode("",!0),c.createElementVNode("div",hU,[b.value?(c.openBlock(),c.createBlock(Zp,{key:0,element:b.value,onUpdateElement:eA},null,8,["element"])):c.createCommentVNode("",!0)])])],4)):c.createCommentVNode("",!0),c.createVNode(um,{ref_key:"cropperRef",ref:C,onOk:_A},null,512),c.createVNode(mm,{icons:F.icons,ref_key:"iconRef",ref:m,onOk:WA},null,8,["icons"]),c.createVNode(ym,{ref_key:"uploadRef",ref:T,multiple:!1,show:!1,beforeUpload:jA,onChange:PA},{"upload-icon":c.withCtx(()=>x[10]||(x[10]=[c.createElementVNode("div",{class:"p-2"},"上传",-1)])),_:1},512),c.createVNode($u,{title:"多行文本编辑",visible:Yt.value,"onUpdate:visible":x[5]||(x[5]=D=>Yt.value=D),onOk:bs,"mask-closable":!1},{default:c.withCtx(()=>{var D;return[b.value?(c.openBlock(),c.createElementBlock("div",BU,[c.withDirectives(c.createElementVNode("textarea",{"onUpdate:modelValue":x[4]||(x[4]=V=>fe.value=V),class:"w-full h-full text-sm"},null,512),[[c.vModelText,fe.value]])])):c.createCommentVNode("",!0),b.value&&b.value.rule?(c.openBlock(),c.createElementBlock("div",gU,[c.createElementVNode("div",null,[c.createElementVNode("span",null,c.toDisplayString(((D=fe.value)==null?void 0:D.length)||0)+" 字",1),b.value.rule.minText&&b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",pU," / "+c.toDisplayString(b.value.rule.minText||0)+" ~ "+c.toDisplayString(b.value.rule.maxText||0)+" 字 ",1)):b.value.rule.minText?(c.openBlock(),c.createElementBlock("span",EU," / 最少 "+c.toDisplayString(b.value.rule.minText)+" 字",1)):b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",mU," / 最多 "+c.toDisplayString(b.value.rule.maxText)+" 字",1)):c.createCommentVNode("",!0)]),c.createElementVNode("div",null,[b.value.rule.maxText&&fe.value.length>b.value.rule.maxText?(c.openBlock(),c.createElementBlock("span",CU," 超出最大字数 "+c.toDisplayString(b.value.rule.maxText)+" 字 ",1)):b.value.rule.minText&&fe.value.length<b.value.rule.minText?(c.openBlock(),c.createElementBlock("span",wU," 不能少于最小字数 "+c.toDisplayString(b.value.rule.minText)+" 字 ",1)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0)]}),_:1},8,["visible"])]))}}),[["__scopeId","data-v-952e15a9"]]),bU={install(A){A.component("Designer",t0)}};He.Designer=t0,He.default=bU,Object.defineProperties(He,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -6,4 +6,4 @@
6
6
  * Released under the MIT license
7
7
  *
8
8
  * Date: 2024-04-21T07:43:02.731Z
9
- */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-container img{backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.before{position:relative;overflow:hidden}.before img{position:absolute}.upload-wrapper[data-v-08babff9]{max-width:500px}.file-list[data-v-08babff9]{max-height:300px;overflow-y:auto}.gp-dsigner[data-v-af92f944]{font-family:微软雅黑}.resize-area[data-v-af92f944]{transition:width .1s ease}.resizer[data-v-af92f944]{width:6px;background:#f0f0f0;cursor:col-resize;display:flex;justify-content:center;align-items:center;position:relative;z-index:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}textarea[data-v-af92f944]{resize:none;border:none;outline:none;background:transparent}.gp-dsigner{width:100%}:root{--gp-designer-theme-color: #3574e6}.gp-designer-theme-text,.gp-designer-theme-icon{color:var(--gp-designer-theme-color)!important}.gp-designer-theme-button{background-color:var(--gp-designer-theme-color)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 1200px){.container{max-width:1200px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-top-6{top:-1.5rem}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.z-10{z-index:10}.z-\[99999\]{z-index:99999}.m-1{margin:.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-12{height:3rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-\[100vh\]{height:100vh}.h-\[200px\]{height:200px}.h-\[300px\]{height:300px}.h-\[360px\]{height:360px}.h-\[40px\]{height:40px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[500px\]{max-height:500px}.w-10{width:2.5rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100vw\]{width:100vw}.w-\[110px\]{width:110px}.w-\[270px\]{width:270px}.w-\[300px\]{width:300px}.w-\[640px\]{width:640px}.w-\[700px\]{width:700px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.flex-1{flex:1 1 0%}.flex-none{flex:none}.basis-1\/10{flex-basis:10%}.basis-1\/11{flex-basis:9.09090909%}.basis-1\/12{flex-basis:8.33333333%}.basis-1\/2{flex-basis:50%}.basis-1\/3{flex-basis:33.333333%}.basis-1\/4{flex-basis:25%}.basis-1\/5{flex-basis:20%}.basis-1\/6{flex-basis:16.666667%}.basis-1\/7{flex-basis:14.2857143%}.basis-1\/8{flex-basis:12.5%}.basis-1\/9{flex-basis:11.1111111%}.basis-full{flex-basis:100%}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-normal{justify-content:normal}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[\#DEDEDE\]{--tw-border-opacity: 1;border-color:rgb(222 222 222 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-\[\#474AFF\]{--tw-bg-opacity: 1;background-color:rgb(71 74 255 / var(--tw-bg-opacity))}.bg-\[\#f4f8ff\]{--tw-bg-opacity: 1;background-color:rgb(244 248 255 / var(--tw-bg-opacity))}.bg-\[rgba\(0\,0\,0\,0\.7\)\]{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-blue-500\/80{background-color:#3b82f6cc}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-green-500\/80{background-color:#22c55ecc}.bg-purple-400\/80{background-color:#c084fccc}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-red-500\/80{background-color:#ef4444cc}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pr-\[70px\]{padding-right:70px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.\!text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.text-\[\#333\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}.text-\[\#666\]{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-\[\#999\]{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-50{--tw-text-opacity: 1;color:rgb(239 246 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:z-10:hover{z-index:10}.hover\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.hover\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\:bg-black:hover{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.hover\:bg-purple-600:hover{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity))}.hover\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}@media (min-width: 1200px){.pc\:box-border{box-sizing:border-box}.pc\:basis-1\/10{flex-basis:10%}.pc\:basis-1\/11{flex-basis:9.09090909%}.pc\:basis-1\/12{flex-basis:8.33333333%}.pc\:basis-1\/2{flex-basis:50%}.pc\:basis-1\/3{flex-basis:33.333333%}.pc\:basis-1\/4{flex-basis:25%}.pc\:basis-1\/5{flex-basis:20%}.pc\:basis-1\/6{flex-basis:16.666667%}.pc\:basis-1\/7{flex-basis:14.2857143%}.pc\:basis-1\/8{flex-basis:12.5%}.pc\:basis-1\/9{flex-basis:11.1111111%}.pc\:basis-full{flex-basis:100%}.pc\:justify-normal{justify-content:normal}.pc\:justify-center{justify-content:center}}
9
+ */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-container img{backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.before{position:relative;overflow:hidden}.before img{position:absolute}.upload-wrapper[data-v-08babff9]{max-width:500px}.file-list[data-v-08babff9]{max-height:300px;overflow-y:auto}.gp-dsigner[data-v-952e15a9]{font-family:微软雅黑}.resize-area[data-v-952e15a9]{transition:width .1s ease}.resizer[data-v-952e15a9]{width:6px;background:#f0f0f0;cursor:col-resize;display:flex;justify-content:center;align-items:center;position:relative;z-index:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}textarea[data-v-952e15a9]{resize:none;border:none;outline:none;background:transparent}.gp-dsigner{width:100%}:root{--gp-designer-theme-color: #3574e6}.gp-designer-theme-text,.gp-designer-theme-icon{color:var(--gp-designer-theme-color)!important}.gp-designer-theme-button{background-color:var(--gp-designer-theme-color)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 1200px){.container{max-width:1200px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-top-6{top:-1.5rem}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.z-10{z-index:10}.z-\[99999\]{z-index:99999}.m-1{margin:.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-12{height:3rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-\[100vh\]{height:100vh}.h-\[200px\]{height:200px}.h-\[300px\]{height:300px}.h-\[360px\]{height:360px}.h-\[40px\]{height:40px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[500px\]{max-height:500px}.w-10{width:2.5rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100vw\]{width:100vw}.w-\[110px\]{width:110px}.w-\[270px\]{width:270px}.w-\[300px\]{width:300px}.w-\[640px\]{width:640px}.w-\[700px\]{width:700px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.flex-1{flex:1 1 0%}.flex-none{flex:none}.basis-1\/10{flex-basis:10%}.basis-1\/11{flex-basis:9.09090909%}.basis-1\/12{flex-basis:8.33333333%}.basis-1\/2{flex-basis:50%}.basis-1\/3{flex-basis:33.333333%}.basis-1\/4{flex-basis:25%}.basis-1\/5{flex-basis:20%}.basis-1\/6{flex-basis:16.666667%}.basis-1\/7{flex-basis:14.2857143%}.basis-1\/8{flex-basis:12.5%}.basis-1\/9{flex-basis:11.1111111%}.basis-full{flex-basis:100%}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-normal{justify-content:normal}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[\#DEDEDE\]{--tw-border-opacity: 1;border-color:rgb(222 222 222 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-\[\#474AFF\]{--tw-bg-opacity: 1;background-color:rgb(71 74 255 / var(--tw-bg-opacity))}.bg-\[\#f4f8ff\]{--tw-bg-opacity: 1;background-color:rgb(244 248 255 / var(--tw-bg-opacity))}.bg-\[rgba\(0\,0\,0\,0\.7\)\]{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-blue-500\/80{background-color:#3b82f6cc}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-green-500\/80{background-color:#22c55ecc}.bg-purple-400\/80{background-color:#c084fccc}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-red-500\/80{background-color:#ef4444cc}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pr-\[70px\]{padding-right:70px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.\!text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.text-\[\#333\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}.text-\[\#666\]{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-\[\#999\]{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-50{--tw-text-opacity: 1;color:rgb(239 246 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:z-10:hover{z-index:10}.hover\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.hover\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\:bg-black:hover{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.hover\:bg-purple-600:hover{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity))}.hover\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}@media (min-width: 1200px){.pc\:box-border{box-sizing:border-box}.pc\:basis-1\/10{flex-basis:10%}.pc\:basis-1\/11{flex-basis:9.09090909%}.pc\:basis-1\/12{flex-basis:8.33333333%}.pc\:basis-1\/2{flex-basis:50%}.pc\:basis-1\/3{flex-basis:33.333333%}.pc\:basis-1\/4{flex-basis:25%}.pc\:basis-1\/5{flex-basis:20%}.pc\:basis-1\/6{flex-basis:16.666667%}.pc\:basis-1\/7{flex-basis:14.2857143%}.pc\:basis-1\/8{flex-basis:12.5%}.pc\:basis-1\/9{flex-basis:11.1111111%}.pc\:basis-full{flex-basis:100%}.pc\:justify-normal{justify-content:normal}.pc\:justify-center{justify-content:center}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gp-designer",
3
3
  "private": false,
4
- "version": "1.0.96",
4
+ "version": "1.0.97",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "gp",