filesbox/web/dist/63924.252ad8c3.async.js

312 lines
170 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[63924],{79935:function(Ee){Ee.exports={root:"root___1Llwz",colorWeak:"colorWeak___38Q-s","ant-layout":"ant-layout___1YPRb",globalSpin:"globalSpin___1VT2H","ant-table":"ant-table___1ofai","ant-table-thead":"ant-table-thead___3gi8J","ant-table-tbody":"ant-table-tbody___2_wj6",formBox:"formBox___1nnqJ",Canvas:"Canvas___1Dz02",gridLines:"gridLines___2dYRA",moveBotton:"moveBotton___WDkK1",bottomPageSize:"bottomPageSize___2iLoU",rightPageSize:"rightPageSize___1ic7f"}},77929:function(Ee){Ee.exports={root:"root___2CB70",colorWeak:"colorWeak___20egs","ant-layout":"ant-layout___29Mul",globalSpin:"globalSpin___3t2G2","ant-table":"ant-table___1_r_v","ant-table-thead":"ant-table-thead___Mxcw3","ant-table-tbody":"ant-table-tbody___1vOI0",formBox:"formBox___3qOlG",rightMenu:"rightMenu___2m18S"}},10992:function(Ee){Ee.exports={root:"root___3b2GH",colorWeak:"colorWeak___Cvk9z","ant-layout":"ant-layout___IjswQ",globalSpin:"globalSpin___J-V51","ant-table":"ant-table___2dOGd","ant-table-thead":"ant-table-thead___2AuKs","ant-table-tbody":"ant-table-tbody___36wEq",formBox:"formBox___3Ba9_",contentBox:"contentBox___1iZUI",screenViewport:"screenViewport___3HQnu",screenViewportCanvas:"screenViewportCanvas___2zhlK",screenScrollY:"screenScrollY___33Kr-",scrollBar:"scrollBar___3C330",screenScrollX:"screenScrollX___2c1PI"}},33210:function(Ee){Ee.exports={root:"root___1g3v7",colorWeak:"colorWeak___3FQgG","ant-layout":"ant-layout___3krP9",globalSpin:"globalSpin___vS4X4","ant-table":"ant-table___1_VIv","ant-table-thead":"ant-table-thead___3zJMl","ant-table-tbody":"ant-table-tbody___2ggxp",formBox:"formBox___2wdJR",fixedHeader:"fixedHeader___2KUQ2",headerStyle:"headerStyle___LtPWV"}},39592:function(Ee){Ee.exports={root:"root___1dZPg",colorWeak:"colorWeak___13Nkp","ant-layout":"ant-layout___3Wdxc",globalSpin:"globalSpin___3zIl3","ant-table":"ant-table___1cT5P","ant-table-thead":"ant-table-thead___2qfVr","ant-table-tbody":"ant-table-tbody___pnnLi",formBox:"formBox___2dWXb",leftBarBox:"leftBarBox___3kWBw",activeKey:"activeKey___1R3fN",floatBarBox:"floatBarBox___3Wq5z"}},43252:function(Ee){Ee.exports={root:"root___2Xxz-",colorWeak:"colorWeak___1Rc7v","ant-layout":"ant-layout___32waW",globalSpin:"globalSpin___r4cTW","ant-table":"ant-table___2Mkg_","ant-table-thead":"ant-table-thead___1Sfpc","ant-table-tbody":"ant-table-tbody___1rkXA",formBox:"formBox___wCmVQ",rightBarBox:"rightBarBox___1AoM6",activeKey:"activeKey___3ipYy",floatBarBox:"floatBarBox___fa3qV"}},3231:function(Ee,$e,e){"use strict";e.d($e,{Z:function(){return we}});var R=e(11849),w=e(20228),q=e(11382),V=e(67294),g=e(85893);function we(){var de={style:{textAlign:"center",borderRadius:4,marginBottom:20,padding:"30px 100px",margin:"20px 0"}};return(0,g.jsx)("div",(0,R.Z)((0,R.Z)({},de),{},{children:(0,g.jsx)(q.Z,{})}))}},54482:function(Ee,$e,e){"use strict";e.d($e,{Z:function(){return me}});var R=e(11849),w=e(67294),q=e(28216),V=e(19755),g=e.n(V),we=e(10992),de=e.n(we),je=e(20228),Oe=e(11382),Te=e(25782),ne=e(85663),U=e(79935),ve=e.n(U),k=e(41273),E=e(70138),W=e(89256),j=e(38986),i=e(7861),O=e(56173),y=e(30672),d=e(85893),f,H,L=O.vc.limitX,c=O.vc.limitY,ee=O.vc.vague,b=(f=(0,q.$j)(se=>{var n=se.globaldesign,a=se.commondesign,t=se.record,l=se.loading;return{globaldesign:n,commondesign:a,record:t,loading:l.effects["page/getDesignDetail"]}}),f(H=class extends w.Component{constructor(){super(...arguments);this.state={},this.LimitEvent=(n,a)=>{var t=n.top,l=n.left,o=a.ParentW,r=a.ParentH,s=a.StartW,v=a.StartH,p=a.childLimitX,C=p===void 0?!1:p,m=a.isNoLimit,N=a.isNoLimitX;return m?{top:t,left:l}:N?{top:r,left:l}:(c&&(t<0&&(t=0),t>r-v&&(t=r-v)),(L||C)&&s<=o&&(l<0&&(l=0),l>o-s&&(l=o-s)),{top:t,left:l})},this.changeLimit=(n,a)=>{var t=n.top,l=n.left,o=n.width,r=n.height,s=a.ParentW,v=a.ParentH,p=a.StartX,C=a.StartY,m=a.StartW,N=a.StartH,B=a.childLimitX,X=B===void 0?!1:B,ge=a.isNoLimit,te=a.isNoLimitX;return ge?{top:t,left:l,width:o,height:r}:te?{top:t,left:l,width:o,height:r}:(c&&(t<0&&(t=0,r=N+C),r>v-t&&(r=v-t,t=C)),(L||X)&&m<=s&&(
#drawer-`.concat(Ze,` .drawer-content{
color:`).concat(Ne.textColor,`;
}
#drawer-`).concat(Ze,` .drawer-content a{
color:`).concat(Ne.textColor,`;
}
#drawer-`).concat(Ze,` .drawer-content {
background-color:`).concat(Ne.moduleColor,`;
}
#drawer-`).concat(Ze," .drawer-title, #drawer-").concat(Ze,` li{
height: `).concat((0,O.bf)(Ne.linesHeight),`;
line-height: `).concat((0,O.bf)(Ne.linesHeight),`;
}
</style>
<div class="drawer-mask"></div>
<div class="drawer-content" >
<div class="drawer-title"><img src="`).concat(r.logo,`" />\u9996\u9875</div>
<ul class="drawer-menu">
`),Xe=0,aa=Ne.list.length;Xe<aa;Xe++){var Ve=Ne.list[Xe];Re+='<a hrefd="'.concat(Ve.href.url,'"><li>').concat(Ve.before?"<img src='".concat(Ve.before,"'/>"):"","<span>").concat(Ve.name,"</span></li></a>")}Re+="</ul></div>",Se.html(Re),Se.on("click",function(){$(this).removeClass("drawer-open")})}break;case"changeTab":(function(){var re=s,Ae=re.find("> .dl-tabs-nav"),Be=Ae.find(">.dl-tabs-tab"),ze=Be.length,We=re.find(">.dl-tabs-content"),Pe=We.find(">.ant-tabs-tabpane"),Me=Ae.find(".dl-tabs-tab-active").index()+1;Ae.find(".dl-tabs-tab-active").removeClass("dl-tabs-tab-active"),Me>=ze&&(Me=0),Be.eq(Me).addClass("dl-tabs-tab-active"),Pe.hide(),Pe.eq(Me).show()})();break}},this.doubleClickEvent=n=>{var a=this,t=n.attr("data-type"),l=n.find(">.box");switch(t){case"picture":(0,i.vZ)({Picture:{visible:!0,callback:o=>{var r=l.find("img").length>0;if(l.attr("href")||(l.replaceWith('<div class="box">'+n.html()+"</div>"),l=n.find(">.box")),l.html('<img src="'+o.src+'">'),r)n.css({backgroundColor:"transparent"});else if(differenceType==2||differenceType==4){if(o.width>375){var s=o.width/o.height;o.width=375,o.height=375/s,selectElement.css({left:0})}selectElement.css({backgroundColor:"transparent",width:o.width,height:o.height})}else selectElement.css({backgroundColor:"transparent",width:(0,O.bf)(o.width),height:(0,O.bf)(o.height)})}}},a);break;case"menu":(0,i.vZ)({MenuNav:{visible:!0,element:n,callback:o=>{}}},a);break;case"tabs":(0,i.vZ)({TabsNav:{visible:!0,element:n,callback:o=>{}}},a);break;case"editor":(0,i.vZ)({Editor:{visible:!0,editCon:l.hasClass("editCon")?l.html():"",callback:o=>{o&&o!="<p></p>"?(l.css({height:"auto",width:"auto"}),l.addClass("editCon"),l.html(o),n.css({height:l.outerHeight()+10,width:l.outerWidth()}),l.css({height:"100%",width:"100%"})):(l.removeClass("editCon"),l.html("\u8BF7\u8F93\u5165\u5185\u5BB9"))}}},a);break;case"Icon":(0,i.vZ)({Iconfont:{visible:!0,iconClassName:l.find("i").attr("class").split(" ")[1],callback:o=>{l.find("i").attr("class","iconfont "+o.icon)}}},a);break;case"suspend":(0,i.vZ)({Suspend:{visible:!0,modata:n.attr("data-suspend"),element:n,callback:o=>{}}},a);break;case"rolling":(0,i.vZ)({Rolling:{visible:!0,element:n,callback:o=>{}}},a);break;case"carousel":(0,i.vZ)({Carousel:{visible:!0,element:n,callback:o=>{}}},a);break;case"time":(0,i.vZ)({Time:{visible:!0,element:n,callback:o=>{}}},a);break;case"Flash":(0,i.vZ)({Flash:{visible:!0,element:n,callback:o=>{}}},a);break;case"MP3":(0,i.vZ)({Audio:{visible:!0,element:n,callback:o=>{}}},a);break;case"iframe":(0,i.vZ)({Iframe:{visible:!0,element:n,callback:o=>{}}},a);break;case"Map":(0,i.vZ)({Maps:{visible:!0,element:n,callback:o=>{}}},a);break;case"course":(0,i.vZ)({Course:{visible:!0,element:n,callback:o=>{}}},a);break;case"courseware":(0,i.vZ)({Courseware:{visible:!0,element:n,callback:o=>{}}},a);break;case"article":(0,i.vZ)({Article:{visible:!0,element:n,callback:o=>{}}},a);break;case"shortvideo":(0,i.vZ)({ShortVideo:{visible:!0,element:n,callback:o=>{}}},a);break;case"player":(0,i.vZ)({Player:{visible:!0,element:n,callback:o=>{}}},a);break;case"qrcode":(0,i.vZ)({QRCode:{visible:!0,element:n,callback:o=>{}}},a);break;case"headerNav":(0,i.vZ)({HeaderNav:{visible:!0,element:n,callback:o=>{(0,k.OS)(a),(0,k.J$)(n,a)}}},a);break;case"footerNav":(0,i.vZ)({FooterNav:{visible:!0,element:n,callback:o=>{(0,k.OS)(a),(0,k.J$)(n,a)}}},a);break;case"magicNav":(0,i.vZ)({MagicNav:{visible:!0,element:selectElement,callback:o=>{(0,k.OS)(a),(0,k.J$)(selectElement,a)}}},a);break;case"tabNav":(0,i.vZ)({TabNav:{visible:!0,element:selectElement,callback:o=>{(0,k.OS)(a),(0,k.J$)(selectElement,a)}}},a);break;case"registerLogin":(0,i.vZ)({RegisterLogin:{visible:!0,element:n,callback:o=>{}}},a);break;case"customer":(0,i.vZ)({Customer:{visible:!0,element:n,callback:o=>{}}},a);break;case"pageform":(0,i.vZ)({PageForm:{visible:!0,element:n,callback:o=>{}}},a);break;case"topnav":(0,i.vZ)({TopNav:{visible:!0,element:n,callback:o=>{}}},a);break;case"text":(0,i.Tl)(n,"","",t,a);break;case"button":(0,i.Tl)(n,!0,"",t,a);break;case"circular":
left: `).concat(Y,`px;
width: `).concat(S-Y,`px;
height: `).concat(u-M,`px;
`);D.parent().append('<div class="multiModule" style="'+_+'"></div>');var me=$(".multiModule");me.on("mousedown",function(se){J(D,"move");var n=se.pageY,a=se.pageX,t=parseInt(me.css("top"))-n,l=parseInt(me.css("left"))-a,o=s=>{me.css({top:s.pageY+t,left:s.pageX+l});var v=s.pageY-n,p=s.pageX-a;c(D,v,p)},r=s=>{ke({type:"move",parentSelf:h})};(0,de.Y0)(o,r)}),x({type:"globaldesign/changeState",payload:{selectElement:me}})}function c(h,x,D){h.each(M=>{var Y=h.eq(M),S=Y.attr("data-mid");Y.css({top:G[S].top+x,left:G[S].left+D})})}function ee(h,x){var D=h||$(".multiModule");D.remove()}function b(h){var x=h.attr("data-type"),D=x&&Oe.t$[x]&&Oe.t$[x].tool,M="",Y=parseInt(h.css("left")),S=parseInt(h.outerWidth()),u=Y<0?S+Y<89?S-89:-Y:0,Q=0;if(Array.isArray(D)&&D.length>0){M+='<div class="suspendMenuBox" style="left: '+u+"px;top: "+(Q-28)+'px;">';for(var _=0,me=D.length;_<me;_++)switch(D[_]){case"edit":h.hasClass("dl-tabs-content")?M+='<li data-tool="tabpane">'+Te.formatMessage({id:"common.edit"})+"</li>":h.hasClass("menuBox")?M+='<li data-tool="menuBox">'+Te.formatMessage({id:"common.edit"})+"</li>":M+='<li data-tool="'+x+'">'+Te.formatMessage({id:"common.edit"})+"</li>";break;case"show":M+='<li data-tool="show">'+Te.formatMessage({id:"common.display"})+"</li>";break;case"change":M+='<li data-tool="'+D[_]+'">\u5207\u6362</li>';break;case"changeTab":M+='<li data-tool="changeTab">\u5207\u6362\u6807\u7B7E</li>';break;case"picture":M+='<li data-tool="'+D[_]+'"><i aria-label="\u56FE\u6807: picture" class="anticon anticon-picture"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="picture" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 1 0 0-176 88 88 0 0 0 0 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"></path></svg></i></li>';break;case"href":M+='<li data-tool="'+D[_]+'"><i aria-label="\u56FE\u6807: link" class="anticon anticon-link"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="link" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M574 665.4a8.03 8.03 0 0 0-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 0 0-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 0 0 0 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 0 0 0 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 0 0-11.3 0L372.3 598.7a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"></path></svg></i></li>';break;case"menu":if(!window.isEditChildModule&&!window.isMobile){M+='<li data-tool="menu">'+Te.formatMessage({id:"mack.dsc.ad"})+"</li>";var se=h.find(">.menuBox");se.length>0&&(M+='<li data-tool="menuHide">\u7F16\u8F91\u83DC\u5355</li>')}break}h.find(">.hoverConBox").length>0&&!window.isEditChildModule&&!window.isMobile&&(M+='<li data-tool="hoverConBox">\u7F16\u8F91hover</li>'),M+="</div>"}return M}function A(h){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"single",D=h.attr("data-type"),M=D&&Oe.t$[D]&&Oe.t$[D].tool;if(x=="single"){var Y=["tLeft","tCenter","tRight","lLeft","rRight","bLeft","bCenter","bRight"];switch(D){case"transverse":Y=["lLeft","rRight"];break;case"vertical":Y=["tCenter","bCenter"];break;case"horizontalarrow":Y=["lLeft","rRight"];break;case"verticalarrow":Y=["tCenter","bCenter"];break;case"calendar":Y=["lLeft","rRight"];break;case"weather":Y=[];break;case"customer":Y=[];break;case"qrcode":Y=["tLeft","tRight","bLeft","bRight"];b
<div class="horizontalLine vagueLeft"></div>
<div class="horizontalLine vagueCenter"></div>
<div class="horizontalLine vagueRight"></div>
<div class="verticalLine vagueTop"></div>
<div class="verticalLine vagueMiddle"></div>
<div class="verticalLine vagueBottom"></div>
</div>`}function P(h){var x=h.props,D=x.dispatch,M=x.globaldesign,Y=x.commondesign,S=Y.rightMenuEvent,u=Y.copyCase,Q=M.scale,_=M.startPageX,me=_===void 0?0:_,se=M.startPageY,n=se===void 0?0:se,a=M.pageWidth,t=M.pageHeight,l=M.endPageX,o=M.endPageY,r=M.selectElement,s=(S.pageY-o-t/2*(1-Q))/Q,v=(S.pageX-l-a/2*(1-Q))/Q,p=0,C=$(S.target).hasClass("topFloor")?$(S.target):$(S.target).parents(".topFloor"),m=$("#header").height(),N=$("#mainly").height();switch(C.attr("id")){case"header":break;case"mainly":p=m;break;case"footer":p=m+N;break}C.append('<div class="copyModule" style="opacity: 0;">'+u+"</div>");var B=$(".copyModule"),X=B.find(" > .module"),ge=parseInt(X.eq(0).css("top")),te=parseInt(X.eq(0).css("left"));X.each(he=>{var ie=X.eq(he),xe=parseInt(ie.css("top")),pe=parseInt(ie.css("left"));ge=xe<ge?xe:ge,te=pe<te?pe:te});var ye="";Z=[],X.each(he=>{var ie=X.eq(he),xe=parseInt(ie.css("top")),pe=parseInt(ie.css("left"));ie.css({top:s+xe-ge-p,left:v+pe-te});var De=U();Z.push(De),ie.attr("data-mid",De),ie.attr("data-type")=="calendar"||ie.attr("data-type")=="weather"||ie.attr("data-type")=="customer"||ie.attr("data-type")=="pageform"?q.ZP.warning("\u65E5\u5386\u3001\u5929\u6C14\u3001\u5BA2\u670D\u6A21\u5757\u53EA\u80FD\u6DFB\u52A0\u4E00\u4E2A"):ye+=ie.prop("outerHTML")}),$(".copyModule").remove(),C.append(ye),y(h,!1)}function T(h){var x=h.props,D=x.dispatch,M=x.globaldesign,Y=x.commondesign,S=Y.rightMenuEvent,u=M.scale,Q=M.startPageX,_=Q===void 0?0:Q,me=M.startPageY,se=me===void 0?0:me,n=M.pageWidth,a=M.pageHeight,t=M.endPageX,l=M.endPageY,o=M.selectElement,r=(S.pageY-l-a/2*(1-u))/u,s=(S.pageX-t-n/2*(1-u))/u,v=0,p=$(S.target).hasClass("topFloor")?$(S.target):$(S.target).parents(".topFloor"),C=$("#header").height(),m=$("#mainly").height();switch(p.attr("id")){case"header":break;case"mainly":v=C;break;case"footer":v=C+m;break}var N=$(".shearModule");N.removeClass("shearModule");var B=parseInt(N.eq(0).css("top")),X=parseInt(N.eq(0).css("left"));N.each(te=>{var ye=N.eq(te),he=parseInt(ye.css("top")),ie=parseInt(ye.css("left"));B=he<B?he:B,X=ie<X?ie:X});var ge="";N.each(te=>{var ye=N.eq(te),he=parseInt(ye.css("top")),ie=parseInt(ye.css("left"));ye.css({top:r+he-B-v,left:s+ie-X}),ge+=ye.prop("outerHTML"),ye.remove()}),p.append(ge)}function z(h,x){var D=h.parent,M=h.target,Y=h.data,S=h.parentSelf,u=S.props.globaldesign,Q=u.qrcode,_=u.logo,me=u.introduce,se=M.find(".module");se.each(o=>{se.eq(o).attr("data-mid",U())});var n=U();M.attr("data-mid",n),M.css((0,R.Z)((0,R.Z)({},Y),{},{zIndex:50}));var a=M.attr("data-type"),t=()=>{D.append(M.prop("outerHTML")),M.remove(),d($(".module[data-mid="+n+"]"),S),x&&x(n),(0,je.AF)(S)};switch(a){case"suspend":(0,de.vZ)({Suspend:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"rolling":(0,de.vZ)({Rolling:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"carousel":(0,de.vZ)({Carousel:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"time":(0,de.vZ)({Time:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"Flash":(0,de.vZ)({Flash:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"calendar":$(".topFloor").find(".module[data-type=calendar]").length>0?q.ZP.warning("\u65E5\u5386\u6A21\u5757\u53EA\u80FD\u6DFB\u52A0\u4E00\u4E2A"):(t(),self.myCalendar=new SimpleCalendar("#calendarbox"));break;case"weather":$(".topFloor").find(".module[data-type=weather]").length>0?q.ZP.warning("\u5929\u6C14\u6A21\u5757\u53EA\u80FD\u6DFB\u52A0\u4E00\u4E2A"):(t(),(0,Oe.b_)(S,()=>{d($(".module[data-mid="+n+"]"),S)}));break;case"MP3":(0,de.vZ)({Audio:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"iframe":(0,de.vZ)({Iframe:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"Map":(0,de.vZ)({Maps:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"course":(0,de.vZ)({Course:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"courseware":(0,de.vZ)({Courseware:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"article":(0,de.vZ)({Article:{visible:!0,element:M,callback:()=>{t()}}},S);break;case"player":(0,de.vZ)({Player:{visible:!0,element:M,callback:()=>{t()}}}
<div class='module' data-type='tabs' data-tabposition='left'>
<div class='dl-tabs-nav module unDelete' data-type="free">
<div class="dl-tabs-tab dl-tabs-tab-active" key="0">`.concat(g.formatMessage({id:"utils.filetype.label"}),`1</div>
<div class="dl-tabs-tab" key="1">`).concat(g.formatMessage({id:"utils.filetype.label"}),`2</div>
</div>
<div class='dl-tabs-content module unDelete' data-type="free">
<div class="ant-tabs-tabpane" data-type="container" key="0"></div>
<div class="ant-tabs-tabpane" data-type="container" key="1" style="display: none;"></div>
</div>
</div>
`)}],senior:[{zh:g.formatMessage({id:"mack.dsc.s"}),en:"current time",type:"time",icon:"c1.png",tool:["edit"],differenceType:[1],content:"<div class='module' data-type='time'><a class='box'>2018\u5E748\u67084\u65E5 \u661F\u671F\u516D</a></div>"},{zh:g.formatMessage({id:"mack.dsc.t"}),en:"calendar",type:"calendar",icon:"c2.png",differenceType:[1],content:"<div class='module' data-type='calendar'><div id='calendarbox' class='box'></div></div>"},{zh:g.formatMessage({id:"mack.dsc.u"}),en:"weather",type:"weather",icon:"c3.png",differenceType:[1],content:"<div class='module' data-type='weather'><a class='box'></a></div>"},{zh:g.formatMessage({id:"mack.dsc.v"}),en:"MP3",type:"MP3",icon:"c4.png",tool:["edit"],differenceType:[1],content:"<div class='module' data-type='MP3'></div>"},{zh:g.formatMessage({id:"mack.dsc.w"}),en:"Embedded subpage",type:"iframe",icon:"c5.png",tool:["edit"],differenceType:[1],content:"<div class='module' data-type='iframe'><a class='box'></a></div>"}],school:[{zh:g.formatMessage({id:"mack.dsc.x"}),en:"Article information",type:"article",icon:"d3.png",tool:["edit"],differenceType:[1,2],content:"<div class='module' data-type='article'><a class='box'></a></div>"},{zh:g.formatMessage({id:"mack.dsc.y"}),en:"QR code",type:"qrcode",icon:"d6.png",tool:["edit"],content:"<div class='module' data-type='qrcode'><a class='box'></a></div>"},{zh:g.formatMessage({id:"mack.dsc.z"}),en:"language",type:"language",icon:"d14.png",tool:[],differenceType:[1,2],iconStyle:{width:26,marginLeft:-13,marginTop:7},content:`<div class='module' data-type='language'>
<div class="languageBox" >
<select name="language" class="language select2-hidden-accessible">
<option value="zh-CN" data-select2-id="3">CN \u7B80\u4F53\u4E2D\u6587</option>
<option value="zh-TW" data-select2-id="7">HK \u7E41\u9AD4\u4E2D\u6587</option>
<option value="en-US" data-select2-id="8">US English</option>
<option value="ja-JP" data-select2-id="9">JP \u65E5\u672C\u8A9E</option>
<option value="fr-FR" data-select2-id="4">FR Fran\xE7ais</option>
<option value="es-ES" data-select2-id="10">ES Espa\xF1ol</option>
<option value="ru-RU" data-select2-id="11">RU Ruso</option>
<option value="it-IT" data-select2-id="12">IT Italia</option>
</select><span class="select2 select2-container select2-container--default select2-container--above select2-container--focus" dir="ltr" data-select2-id="2" style="width: 100%;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-language-mn-container"><span class="select2-selection__rendered" id="select2-language-mn-container" role="textbox" aria-readonly="true" title="CN \u7B80\u4F53\u4E2D\u6587">CN \u7B80\u4F53\u4E2D\u6587</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
</div>
</div>`},{zh:g.formatMessage({id:"mack.dsc.aa"}),en:"Registered login",type:"registerLogin",icon:"d8.png",tool:["edit"],differenceType:[1,2],content:"<div class='module' data-type='registerLogin'><a class='box'><span class='loginEvent'>".concat(g.formatMessage({id:"mack.dsc.aa"}),"</span></a></div>")},{zh:g.formatMessage({id:"mack.dsc.ab"}),en:"Login Box",type:"loginBox",icon:"d9.png",tool:[],differenceType:[1],content:`<div class='module' data-type='loginBox' data-islogin='0' style="`.concat(window.designneedCheckCode=="1"?"":"height:270px;",`">
<div class="unlogin" data-type='container'>
<div class='module iconUser' data-type='Icon' style='top: 30px;left:42px;'>
<a class='box'><i class='iconfont icon-user'></i></a>
</div>
<div class="module" data-type='container' style='top: 28px;left:37px; width: 328px;height: 40px;'>
<input class='account' type='text' placeholder='`).concat(g.formatMessage({id:"common.input"})).concat(g.formatMessage({id:"user.account"}),`'/>
</div>
<div class='module accountRemoveModule' style="text-align: center; line-height: 40px;"><i class="iconfont icon-close-circle-fill"></i></div>
<div class='module iconLock' data-type='Icon' style='top: 100px;left:42px;'>
<a class='box'>
<i class='iconfont icon-lock'></i>
</a>
</div>
<div class="module" data-type='container' style='top: 98px;left:37px; width: 328px;height: 40px;'>
<input class='password' type='password' placeholder='`).concat(g.formatMessage({id:"user.inputPwd"}),`'/>
</div>
<div class='module eyesModule'></div>
<div class='module rememberPassword' style="`).concat(window.designneedCheckCode=="1"?"":"top:150px;",`">
<div class="checkboxDiv on" style="width: 120px;"><div class="checkbox"><i class="iconfont icon-check"></i></div>`).concat(g.formatMessage({id:"user.keepPwd"}),`</div>
</div>
<div class='module loginDragbox'>
<div style="`).concat(window.designneedCheckCode=="1"?"":"display:none;",`" class="logindrag"><div class="drag_bg" style="width: 0px;"></div><div class="drag_text" onselectstart="return false;" unselectable="on">\u8BF7\u6309\u4F4F\u6ED1\u5757\uFF0C\u62D6\u52A8\u5230\u6700\u53F3\u8FB9</div><div class="handler handler_bg" style="left: 0px;"></div></div>
</div>
<div class='module submit' data-type='button' style='top: `).concat(window.designneedCheckCode=="1"?"248px;":"200px;",` left: 37px; width: 328px; height: 40px; color: #fff; border-radius:5px;
border-color: #722ed1;
background: #722ed1;
text-shadow: 0 -1px 0 rgba(0,0,0,.12);
box-shadow: 0 2px 0 rgba(0,0,0,.045);'>
<div class='box editable'>`).concat(g.formatMessage({id:"user.loginNow"}),`</div>
</div>
</div>
<div class="onlogin" data-type='container'>
<div class="module" data-type='container' style="width:80px;height:80px;top: 26px;left: 20px;">
<img class="head" src="/design/designstatic/common/image/head/boy.png">
</div>
<div class="module" data-type='container' style='top: 28px;left:120px; width: 180px;height: 24px;'>
<div class="realName">\u4F5A\u540D</div>
</div>
<div class="module" data-type='container' style='top: 60px;left:120px; width: 180px;height: 24px;'>
<div class="loginname">\u8D26\u53F7</div>
</div>
<div class="module" data-type='container' style='top: 88px;left:120px; width: 180px;height: 24px;'>
<div class="lastLogin">1 \u5206\u949F\u524D</div>
</div>
<div class="module going" data-type="button" style="top: 135px; left: 29px; width: 328px; height: 40px; border-radius: 0;
border-color: #722ed1;
background: #722ed1;
text-shadow: 0 -1px 0 rgba(0,0,0,.12);
box-shadow: 0 2px 0 rgba(0,0,0,.045);" data-hover="false">
<div class="box editable">`).concat(g.formatMessage({id:"user.isLoginEnter"}),`</div>
</div>
<div class="module quitBtn" data-type="button" style="top: 185px; left: 29px; width: 328px; height: 40px;border-radius: 0;" data-hover="false">
<div class="box editable">`).concat(g.formatMessage({id:"menu.account.logout"}),`</div>
</div>
</div>
<script></script>
</div>`)},{zh:g.formatMessage({id:"mack.dsc.ac"}),en:"Search box",type:"magicNav",icon:"bannerNav.png",tool:["edit"],iconStyle:{width:26,marginLeft:-13,marginTop:7},differenceType:[2],content:`<div class='module addmodule' data-type='magicNav'>
<div class='navContent'>
<li>
<a>
<img class="mgicon">
<p class="mgtext">\u5BFC\u822A\u540D\u79F0</p>
</a>
</li>
<li>
<a>
<img class="mgicon">
<p class="mgtext">\u5BFC\u822A\u540D\u79F0</p>
</a>
</li>
<li>
<a>
<img class="mgicon">
<p class="mgtext">\u5BFC\u822A\u540D\u79F0</p>
</a>
</li>
<li>
<a>
<img class="mgicon">
<p class="mgtext">\u5BFC\u822A\u540D\u79F0</p>
</a>
</li>
<li>
<a>
<img class="mgicon">
<p class="mgtext">\u5BFC\u822A\u540D\u79F0</p>
</a>
</li>
</div>
</div>`},{zh:"\u6807\u7B7E\u5BFC\u822A",en:"Search box",type:"tabNav",icon:"tabNav.png",tool:["edit"],iconStyle:{width:26,marginLeft:-13,marginTop:7},differenceType:[],content:"<div class='module addmodule' data-type='tabNav'><div style='width: 100px;text-align: center;'>\u6807\u7B7E\u5BFC\u822A</div></div>"}],study:[{zh:"\u53D8\u91CF",en:"variable",type:"variable",icon:"e3.png",tool:["edit"],differenceType:[3,4],content:"<div class='module addmodule' data-type='variable'><a class='box'>\u53D8\u91CF</a></div>"},{zh:"\u6211\u7684\u4FE1\u606F",en:"myInfo",type:"myInfo",icon:"e4.png",resizerArr:["r","l"],differenceType:[3,4],content:"<div class='module addmodule' data-type='myInfo'></div>"},{zh:"\u7B7E\u5230",en:"calendar",type:"calendar",icon:"e9.png",differenceType:[3,4],content:"<div class='module addmodule' data-type='calendar'><div class='box'>\u7B7E\u5230</div></div>"},{zh:"\u6D88\u606F\u680F",en:"Introduction of net school",type:"message ",icon:"e91.png",differenceType:[3,4],content:"<div class='module addmodule' data-type='message'><a class='box'><i class='iconfont icon-bell'></i></a></div>"},{zh:"\u4E2A\u4EBA\u4E2D\u5FC3",en:"personal",type:"personal",icon:"e92.png",differenceType:[3,4],content:"<div class='module addmodule' data-type='personal'><img src='/design/designstatic/common/image/head/boy.png'/><span class='realname'>\u59D3\u540D</span><span class='accont'>\uFF08\u8D26\u53F7\uFF09</span></div>"},{zh:g.formatMessage({id:"mack.dsc.ad"}),en:"menu",type:"headerNav",icon:"e93.png",tool:["edit","show"],differenceType:[2,3,4],content:"<div class='module addmodule' data-type='headerNav'><div class='box'><i class='iconfont icon-outdent'></i></div></div>"},{zh:g.formatMessage({id:"mack.dsc.ae"}),en:"footer",type:"footerNav",icon:"e94.png",tool:["edit"],differenceType:[2],content:"<div class='module addmodule' data-type='footerNav'><div class='box'>\u5E95\u90E8\u5BFC\u822A</div></div>"}],group:[{zh:"\u7EC4\u5408",en:"group",type:"group",tool:["href"]}],container:[{zh:"\u5BB9\u5668",en:"group",type:"container",tool:["edit"]}],free:[{zh:"\u81EA\u7531\u6A21\u5757",en:"free",type:"free",tool:["edit"]}]},de=V([...we.basics,...we.often,...we.senior,...we.school,...we.study,...we.group,...we.container,...we.free]);function je(Oe,Te){var ne=w()(".onModule");fetch("https://wthrcdn.xx.cn/weather_mini?city=\u676D\u5DDE").then(function(U){return U.json()}).then(function(U){var ve,k;if(U.status==1e3){k='<ul class="scene-ul">';var E=U.data,W=E.aqi,j="";W<=50&&W>0&&(j="\u4F18\u79C0"),W<=100&&W>50&&(j="\u826F\u597D"),W<=150&&W>100&&(j="\u4E00\u822C"),W<=200&&W>150&&(j="\u5F88\u5DEE"),W>200&&(j="\u5F88\u5DEE"),ve=W+" "+j,W||(j="\u6682\u7F3A",ve=j);for(var i="",O="",y=/[\u4E00-\u9FA5]/g,d=[],f=[],H="//static.ebanhui.com/ebh/tpl/wnl/images/",L=0;L<3;++L){switch(d[L]=E.forecast[L].low.replace(y,""),f[L]=E.forecast[L].high.replace(y,""),E.forecast[L].type){case"\u591A\u4E91":i="cloud.png",O="cloud2.png";break;case"\u6674":i="fine.png",O="fine2.png";break;case"\u9634":i="overcast.png",O="overcast2.png";break;case"\u5C0F\u96E8":i="small_rain.png",O="small_rain2.png";break;case"\u5C0F\u5230\u4E2D\u96E8":i="stom_rain.png",O="stom_rain2.png";break;case"\u5927\u96E8":i="big_rain.png",O="big_rain2.png";break;case"\u4E2D\u5230\u5927\u96E8":i="big_rain.png",O="big_rain2.png";break;case"\u66B4\u96E8":i="mbig_rain.png",O="mbig_rain2.png";break;case"\u5927\u66B4\u96E8":i="mbig_rain.png",O="mbig_rain2.png";break;case"\u7279\u5927\u66B4\u96E8":i="mbig_rain.png",O="mbig_rain2.png";break;case"\u5927\u5230\u66B4\u96E8":i="mbig_rain.png",O="mbig_rain2.png";break;case"\u66B4\u96E8\u5230\u5927\u66B4\u96E8":i="mbig_rain.png",O="mbig_rain2.png";break;case"\u5927\u66B4\u96E8\u5230\u7279\u5927\u66B4\u96E8":i="mbig_rain.png",O="mbig_rain2.png";break;case"\u96E8\u5939\u96EA":i="rain_snow.png",O="rain_snow2.png";break;case"\u9635\u96EA":i="quick_snow.png",O="quick_snow2.png";break;case"\u5C0F\u96EA":i="small_snow.png",O="small_snow2.png";break;case"\u5C0F\u5230\u4E2D\u96EA":i="small_snow.png",O="small_snow2.png";break;case"\u4E2D\u96EA":i="mid_s
.content {margin: 0 auto;
width: 100%;
height: auto;
color: `.concat(J,`;
background-color: `).concat(G,`;
background-attachment: `).concat(le.backgroundAttachment,`;
background-image: `).concat(le.backgroundImage,`;
background-position: `).concat(le.backgroundPosition,`;
background-repeat: `).concat(le.backgroundRepeat,`;
background-size: `).concat(le.backgroundSize,`;}
.module{color: `).concat(J,`;}
.module a[href]:hover{color: `).concat(ae,`}
.comHead {
margin: 0 auto;
position:relative;
width: 100%;
height: `).concat((0,w.bf)(T,2),`
}
.comHead .showSet{
background-color:#fff;
z-index: 999;
top: 0;
left: auto;
margin: 0 auto;
width: 100%;
height: `).concat((0,w.bf)(T,2),`;
position: `).concat(K,`;}
.content {
position:relative;
height: `).concat((0,w.bf)(z,2),`}
.comFoot {
margin: 0 auto;
position:relative;
width: 100%;
height: `).concat((0,w.bf)(F,2),`}
.comFoot .showSet{
background-color:#fff;
z-index: 999;
width: 100%;
height: `).concat((0,w.bf)(F,2),`;
margin: 0 auto;
top: auto;
left: auto;
bottom: -1px;
position: `).concat(Ue,"}"),x={width:I,height:P,header:T,mainly:z,footer:F,pgColor:G,pgObject:le,color:J,headerSet:K,footerSet:Ue,cssText:h};je(!0),Te(f.find("#header"),!0),Te(f.find("#mainly"),!0),Te(f.find("#footer"),!0),L({type:"page/editDesignDetail",payload:{designType:ee,clientType:b,designId:A,setting:JSON.stringify(x),head:f.find("#header").html(),body:f.find("#mainly").html(),foot:f.find("#footer").html(),searchComponent:f.find('.module[data-handle="getUsername"]').length>0},callback:D=>(window.startSavePage=!1,D.success&&(je(!1),d&&d()),"\u4FDD\u5B58")})}function Te(y){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=y.find(".module");f.each(H=>{var L=f.eq(H),c=parseInt(L.css("left")),ee=(0,w.bf)(c,2),b=parseInt(L.css("top")),A=(0,w.bf)(b,2),I=parseInt(L.outerWidth()),P=(0,w.bf)(I,2),T=parseInt(L.outerHeight()),z=(0,w.bf)(T,2);d&&(L.attr("data-vl",c),L.attr("data-vt",b),L.attr("data-vw",I),L.attr("data-vh",T));var F=(0,w.bf)(parseInt(L.css("fontSize")),2),Z=(0,w.bf)(parseInt(L.css("lineHeight")),2);L.css({left:ee,top:A,width:P,height:z,fontSize:F,lineHeight:Z})})}function ne(y,d){var f=g()("#canvasId"),H=y.props,L=H.dispatch,c=H.commondesign,ee=c.designType,b=c.clientType,A=c.mainDesignId,I=c.width,P=c.height,T=c.header,z=c.mainly,F=c.footer,Z=c.bgColor,G=c.pgColor,J=c.color,ae=c.hoverColor,ue=c.bgObject,ke=ue===void 0?{}:ue,le=c.pgObject,He=c.backvedio;A||L(R.VF("/exception/404"));var K=`<style>
body {background:`.concat(Z,`;
background-attachment: `).concat(ke.backgroundAttachment,`;
background-image: `).concat(ke.backgroundImage,`;
background-position: `).concat(ke.backgroundPosition,`;
background-repeat: `).concat(ke.backgroundRepeat,`;
background-size: `).concat(ke.backgroundSize,`;}
.content {margin: 0 auto;
width: `).concat(I,`px;
height: auto;
color: `).concat(J,`;
background-color: `).concat(G,`;
background-attachment: `).concat(le.backgroundAttachment,`;
background-image: `).concat(le.backgroundImage,`;
background-position: `).concat(le.backgroundPosition,`;
background-repeat: `).concat(le.backgroundRepeat,`;
background-size: `).concat(le.backgroundSize,`;}
.module{color: `).concat(J,`;}
.module a[href]:hover{color: `).concat(ae,`}
.head {position:relative;
height: `).concat(T,`px}
.middle {position:relative;
height: `).concat(z,`px}
.foot {position:relative;
height: `).concat(F,`px}
</style>`);f.find(".module[data-type=Map]").length>0&&(K+='<script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=CAlr2cowj9PaVKF5xK1ZFWDXgiuhHBGw"></script>');var Ue="";if(ke.thumb){var h=ke.sourcePath;Ue=`<div class="videoJs">
<script>
var bgVideoBox = $('#bgVideoBox')
if (bgVideoBox.length < 1) {
$('body').append('<div id="bgVideoBox" style="width: 100vw;height: 100vh;pointer-events: none;position: fixed;top: 0;left: 0;"><style> .content { position: relative; z-index: 2; }.content > div { background-color: #fff;}.content > .head, .content > .foot { background-color: inherit }</style></div>')
bgVideoBox = $('#bgVideoBox')
}
var bgWidth = bgVideoBox.outerWidth()
var bgHeight = bgVideoBox.outerHeight()
bgVideoBox.append('<video id="bgVideo" src="`.concat(""+h,`" autoplay loop muted style="width: 1px; opacity: 0;" /><canvas id="bgCanvas" width="'+bgWidth+'" height="'+bgHeight+'" style="position:absolute; top: 0;left: 0;"/>')
var v = document.getElementById("bgVideo");
var c = document.getElementById("bgCanvas");
var ctx = c.getContext('2d');
v.addEventListener('play', () => {
var videoRatio = $('#bgVideo').outerHeight()
window.screenInterval = window.setInterval(function() {
ctx.drawImage(v, 0, 0, bgWidth, bgWidth * videoRatio)
}, 20)
}, false)
</script>
</div>`)}var x={width:I,height:P,header:T,mainly:z,footer:F,bgColor:Z,bgObject:ke,pgColor:G,pgObject:le,color:J,hoverColor:ae,backvedio:He,cssText:K};f.find("#header .videoJs, #bgVideoBox").remove(),L({type:"page/editDesignDetail",payload:{designId:A,setting:JSON.stringify(x),head:f.find("#header").html()+Ue,body:f.find("#mainly").html(),foot:f.find("#footer").html(),searchComponent:f.find('.module[data-handle="getUsername"]').length>0},callback:D=>(window.startSavePage=!1,D.success&&d&&d(),"\u4FDD\u5B58\u9875\u9762")})}function U(y,d){var f=g()("#canvasId"),H=y.props,L=H.dispatch,c=H.commondesign,ee=H.globaldesign,b=c.designType,A=c.clientType,I=c.designId,P=c.width,T=c.mainly,z=g()("#contentHstyle");z.length>0&&z.remove();var F="<style id='contentHstyle'>.content{height: ".concat((0,w.bf)(T,2),"} }</style>");je(!0),Te(f.find("#mainly")),L({type:"page/editDesignDetail",payload:{designType:b,clientType:A,designId:I,size:P+"|"+T,body:F+f.find("#mainly").html(),searchComponent:Array.from(document.querySelectorAll('.module[data-handle="getUsername"]')).length>0},callback:Z=>(window.startSavePage=!1,Z.success&&(je(!1),d&&d()),"\u4FDD\u5B58")})}function ve(y,d){var f=g()("#canvasId"),H=y.props,L=H.dispatch,c=H.commondesign,ee=c,b="";f.find(".module[data-type=Map]").length>0&&(b='<script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=CAlr2cowj9PaVKF5xK1ZFWDXgiuhHBGw"></script>'),b+=f.find("#mainly").html(),L({type:"page/editDesignDetail",payload:{designType:2,clientType:c.designType,designId:c.designId,size:c.width+"|"+c.mainly,body:b,searchComponent:f.find('.module[data-handle="getUsername"]').length>0},callback:A=>(window.startSavePage=!1,A.success&&d&&d(),"\u4FDD\u5B58\u9875\u9762")})}function k(y){W(y);var d=y.props.commondesign,f=d.clientType,H=d.designId,L=d.mainDesignId,c=H==L?1:2;switch(console.log(location),f+"|"+c){case"1|1":window.open(location.origin+"/design/index/preview.html");break;case"1|2":window.open(location.origin+"/design/index/subPreview.html");break;case"1|3":window.open(location.origin+"/design/studyIndex/preview.html");break;case"2|1":window.open(location.origin+"/design/mobile/preview.html");break;case"2|2":window.open(location.origin+"/design/mobile/subPreview.html");break;case"2|3":window.open(location.origin+"/design/studyMobile/Preview.html");break}}function E(y){W(y),g()("#previewIframe").length>0&&g()("#previewIframe")[0].contentWindow.updateDom&&g()("#previewIframe")[0].contentWindow.updateDom()}function W(y){var d=g()("#canvasId"),f=y.props.commondesign,H=f.designId,L=f.mainDesignId,c=f.clientType;if(H==L)switch(c+""){case"1":j(y);break;case"2":i(y);break}else O(y)}function j(y){var d=g()("#canvasId"),f=y.props.commondesign,H=f.designType,L=f.clientType,c=f.mainDesignId,ee=f.width,b=f.height,A=f.header,I=f.mainly,P=f.footer,T=f.bgColor,z=f.pgColor,F=f.color,Z=f.hoverColor,G=f.bgObject,J=G===void 0?{}:G,ae=f.pgObject,ue=f.backvedio,ke=`<style id="previewStyle">
body {background:`.concat(T,`;
background-attachment: `).concat(J.backgroundAttachment,`;
background-image: `).concat(J.backgroundImage,`;
background-position: `).concat(J.backgroundPosition,`;
background-repeat: `).concat(J.backgroundRepeat,`;
background-size: `).concat(J.backgroundSize,`;}
.content {margin: 0 auto;
width: `).concat(ee,`px;
height: auto;
color: `).concat(F,`;
background-color: `).concat(z,`;
background-attachment: `).concat(ae.backgroundAttachment,`;
background-image: `).concat(ae.backgroundImage,`;
background-position: `).concat(ae.backgroundPosition,`;
background-repeat: `).concat(ae.backgroundRepeat,`;
background-size: `).concat(ae.backgroundSize,`;}
.module{color: `).concat(F,`;}
.module a[href]:hover{color: `).concat(Z,`}
.head {position:relative;
height: `).concat(A,`px}
.middle {position:relative;
height: `).concat(I,`px}
.foot {position:relative;
height: `).concat(P,`px}
</style>`);d.find(".module[data-type=Map]").length>0&&(ke+='<script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=CAlr2cowj9PaVKF5xK1ZFWDXgiuhHBGw"></script>');var le={header:d.find("#header").html(),mainly:d.find("#mainly").html(),footer:d.find("#footer").html(),cssText:ke};localStorage.previewPage=JSON.stringify(le)}function i(y){var d=g()("#canvasId"),f=y.props.commondesign,H=f.designType,L=f.clientType,c=f.mainDesignId,ee=f.width,b=f.height,A=f.header,I=f.mainly,P=f.footer,T=f.headerSet,z=f.footerSet,F=f.pgColor,Z=f.color,G=f.pgObject,J=`<style id="previewStyle">
.content {margin: 0 auto;
width: 100%;
height: auto;
color: `.concat(Z,`;
background-color: `).concat(F,`;
background-attachment: `).concat(G.backgroundAttachment,`;
background-image: `).concat(G.backgroundImage,`;
background-position: `).concat(G.backgroundPosition,`;
background-repeat: `).concat(G.backgroundRepeat,`;
background-size: `).concat(G.backgroundSize,`;}
.module{color: `).concat(Z=="inherit"?"#666":Z,`;}
.comHead {
margin: 0 auto;
position:relative;
width: 375px;
height: `).concat((0,w.bf)(A,2),`
}
.comHead .showSet{
background-color:#fff;
z-index: 999;
top: `).concat(T=="fixed"?80:0,`px;
left: auto;
margin: 0 auto;
width: 375px;
height: `).concat((0,w.bf)(A,2),`;
position: `).concat(T,`;}
.content {
position:relative;
height: `).concat((0,w.bf)(I,2),`}
.comFoot {
margin: 0 auto;
position:relative;
width: 375px;
height: `).concat((0,w.bf)(P,2),`}
.comFoot .showSet{
background-color:#fff;
z-index: 999;
width: 375px;
height: `).concat((0,w.bf)(P,2),`;
margin: 0 auto;
top: `).concat(z=="fixed"?80+667-P:0,`px;
left: auto;
position: `).concat(z,"}</style>");Te(d.find("#header")),Te(d.find("#mainly")),Te(d.find("#footer"));var ae={header:d.find("#header").html(),mainly:d.find("#mainly").html(),footer:d.find("#footer").html(),cssText:J};localStorage.previewMobilePage=JSON.stringify(ae)}function O(y){var d=y.props.commondesign,f=g()("#canvasId"),H=d.designType,L=d.clientType,c=d.width,ee=d.height;parseInt(L)==2&&Te(f.find("#mainly"));var b={size:d.width+"|"+parseInt(f.find("#mainly").height()),mainly:f.find("#mainly").html()};switch(L+""){case"1":localStorage.previewSubPage=JSON.stringify(b);break;case"2":localStorage.previewMobileSubPage=JSON.stringify(b);break;default:localStorage.previewSubPage=JSON.stringify(b)}}},7861:function(Ee,$e,e){"use strict";e.d($e,{pM:function(){return g},r0:function(){return we},U7:function(){return de},Y0:function(){return je},Tl:function(){return Oe},vZ:function(){return U},GA:function(){return ve},bV:function(){return E},x4:function(){return j},A7:function(){return i},Xn:function(){return O}});var R=e(34792),w=e(19755),q=e.n(w),V=e(56173);function g(y){if(typeof y=="string")try{var d=JSON.parse(y);return!!(typeof d=="object"&&d)}catch(f){return!1}}function we(y){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof y=="string")try{var f=JSON.parse(y);return typeof f=="object"&&f?f:d}catch(H){return d}}function de(y){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:200,f=y.props,H=f.dispatch,L=f.commondesign,c=L.header,ee=L.mainly,b=L.height,A=q()("#mainly > div"),I=d;A.each(P=>{var T=A.eq(P);I+=T.outerHeight()}),I>b-200&&(H({type:"commondesign/setState",payload:{mainly:I,height:c+I}}),q()("#canvasId").css("height",c+I),q()("#mainly").css("height",I))}function je(y,d){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;window.startMouseMove=f,q()("#mainly iframe").css("pointer-events","none"),q()(document).on("mousemove",function(H){y&&y(H)}),q()(document).on("mouseup",function(H){q()(document).unbind("mousemove mouseup"),q()("#mainly iframe").css("pointer-events","auto"),window.startMouseMove=!1,d&&d(H)})}function Oe(y,d,f,H,L){var c=y.find(">.box"),ee=y.find(">.suspenTool");y.addClass("onEditModule"),c.addClass("editor"),c.attr("contenteditable","true"),ee.css({zIndex:-1}),c[0].focus(),L.startVague=!1,H=="text"&&c.text()=="\u8F93\u5165\u6587\u672C"&&c.html(""),f||(d?c.css({display:"block",minWidth:"100%",minHeight:"100%"}):c.css({display:"block"}),y.css({textAlign:"center"}),c[0].onkeydown=()=>{var b=y.attr("data-menuopenstyle")=="hover"||y.attr("data-menuopenstyle")=="click";y.css({minWidth:y.width(),width:"auto",height:"auto",overflow:b?void 0:"visible"})}),c.blur(function(){if(L.startVague=!0,H=="text"&&c.text()=="")c.html("\u8F93\u5165\u6587\u672C");else if(H=="text"){for(var b=c.html(),A=b.split("<br>"),I="",P=0,T=A.length;P<T;P++){var z=A[P],F=document.createElement("div");F.innerHTML=z,P>0&&(I+="<br>"),I+=F.innerText}c.html(I)}c.removeClass("editor"),c.removeAttr("contenteditable"),ee.css({zIndex:1e3}),y.removeClass("onEditModule"),c[0].onkeydown="",y.css({width:y.outerWidth()+2}),c.unbind("blur"),y.css({minWidth:"auto"})})}function Te(y){var d=y.size/1024/1024<2;return d||_message.error("\u6587\u4EF6\u6700\u5927\u4E0D\u8D85\u8FC72MB!"),y.type!="text/html"?(_message.error("\u8BF7\u9009\u62E9html\u6587\u4EF6"),!1):d}function ne(y){for(var d=document.cookie,f=d.split("; "),H=0;H<f.length;H++){var L=f[H].split("=");if(L[0]==y)return L[1]}return""}function U(y,d){d.props.dispatch({type:"commondesign/setState",payload:y})}function ve(y){return"/design/"+y}function k(y){return y.toDataURL("image/png")}function E(y,d,f){var H=d.props.commondesign.height,L=f||H,c=q()(document).height(),ee=(V.h5-y)/(L+2*V.h5)*(c-V.cM-V.e)+V.cM;return ee}function W(y,d){var f=$("#header").height(),H=$("#mainly").height(),L=parseInt(y.css("top"));switch(y.parents(".topFloor").attr("id")){case"header":L-100-150,_readOnlyError("top");break;case"mainly":L+f-150-150,_readOnlyError("top");break;case"footer":L+f+H-350,_readOnlyError("top");break}var c=-L,ee=d.props.commondesign.height