')).get(0),A=v+E+"-el",L="".concat(v+P+"-el"," ").concat(v+P),N="".concat(A," ").concat(v+E);b=u('
')).get(0),w=u('
')).get(0),x=u('
')).get(0),O=u('
')).get(0),C=u('
')).get(0),S=u('
')).get(0),k=u('
')).get(0),T=u('
')).get(0),this["marginT"+o]=b,this["marginB"+o]=w,this["marginL"+o]=x,this["marginR"+o]=O,this["padT"+o]=C,this["padB"+o]=S,this["padL"+o]=k,this["padR"+o]=T,M.appendChild(b),M.appendChild(w),M.appendChild(x),M.appendChild(O),D.appendChild(C),D.appendChild(S),D.appendChild(k),D.appendChild(T),y.appendChild(M),y.appendChild(D),this[m]="1"}var I=parseFloat(g.marginLeft.replace("px",""))*h,F=parseFloat(g.marginRight.replace("px",""))*h,_=parseFloat(g.marginTop.replace("px",""))*h,V=parseFloat(g.marginBottom.replace("px",""))*h,R=b.style,H=w.style,z=x.style,$=O.style,W=C.style,U=S.style,B=k.style,q=T.style,G=parseFloat(p.left),K=parseFloat(g.width)*h+"px";R.height=_+"px",R.width=K,R.top=p.top-_+"px",R.left=G+"px",H.height=V+"px",H.width=K,H.top=p.top+p.height+"px",H.left=G+"px";var Y=p.height+_+V+"px",X=p.top-_+"px";z.height=Y,z.width=I+"px",z.top=X,z.left=G-I+"px",$.height=Y,$.width=F+"px",$.top=X,$.left=G+p.width+"px";var J=parseFloat(g.paddingTop)*h;W.height=J+"px";var Z=parseFloat(g.paddingBottom)*h;U.height=Z+"px";var Q=p.height-Z-J+"px",tt=p.top+J+"px";B.height=Q,B.width=parseFloat(g.paddingLeft)*h+"px",B.top=tt;var et=parseFloat(g.paddingRight)*h;q.height=Q,q.width=et+"px",q.top=tt}},stop:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n||{},i=r.state||"",o=this.getOffsetMethod(i),a=t.Canvas,s=a[o](n.view);s.style.opacity=0}}},function(t,e,n){"use strict";n.r(e),e.default={run:function(t){this.toggleVis(t)},stop:function(t){this.toggleVis(t,0)},toggleVis:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=n?"add":"remove";t.Canvas.getFrames().forEach((function(t){t.view.getBody().classList[r]("".concat(e.ppfx,"dashed"))}))}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n.n(r),o=n(0),a={stylePrefix:"sm-",sectors:[],appendTo:"",hideNotStylable:!0,highlightChanged:!0,highlightComputed:!0,showComputed:!0,clearProperties:0,avoidComputed:["width","height"]},s=n(1),l=n.n(s),c=n(23),u=function(){return{build:function(t){var e=[];"string"==typeof t&&(t=[t]);for(var n=0,r=t.length;n
\n \n <%= label %>\n '),events:{"click [data-sector-title]":"toggle"},initialize:function(t){this.config=t.config||{},this.em=this.config.em,this.pfx=this.config.stylePrefix||"",this.target=t.target||{},this.propTarget=t.propTarget||{},this.caretR="fa-caret-right",this.caretD="fa-caret-down";var e=this.model;this.listenTo(e,"change:open",this.updateOpen),this.listenTo(e,"updateVisibility",this.updateVisibility),this.listenTo(e,"destroy remove",this.remove)},updateVisibility:function(){var t;this.model.get("properties").each((function(e){e.get("visible")&&(t=1)})),this.el.style.display=t?"block":"none"},updateOpen:function(){this.model.get("open")?this.show():this.hide()},show:function(){this.$el.addClass(this.pfx+"open"),this.getPropertiesEl().style.display="",this.$caret.removeClass(this.caretR).addClass(this.caretD)},hide:function(){this.$el.removeClass(this.pfx+"open"),this.getPropertiesEl().style.display="none",this.$caret.removeClass(this.caretD).addClass(this.caretR)},getPropertiesEl:function(){return this.$el.find(".".concat(this.pfx,"properties")).get(0)},toggle:function(t){var e=this.model.get("open")?0:1;this.model.set("open",e)},render:function(){var t=this.pfx,e=this.model,n=this.em,r=this.$el,i=e.attributes,o=i.id,a=i.name,s=n&&n.t("styleManager.sectors.".concat(o))||a;return r.html(this.template({pfx:t,label:s})),this.$caret=r.find("#".concat(t,"caret")),this.renderProperties(),r.attr("class","".concat(t,"sector ").concat(t,"sector__").concat(o," no-select")),this.updateOpen(),this},renderProperties:function(){var t=this.model.get("properties");if(t){var e=new g.default({collection:t,target:this.target,propTarget:this.propTarget,config:this.config});this.$el.append(e.render().el)}}});function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e