').append("")),this.$cn.append(this.$header),l.custom?s.__trgCustom({container:this.$cn2.get(0)}):(this.$cn2.append("
").concat(i.t('traitManager.label'),"
")),this.$cn2.append(s.render()));var c=t.Panels;null==(n=c.getPanel('views-container')?c.getPanel('views-container'):c.addPanel({id:'views-container'}))||n.set('appendContent',this.$cn.get(0)).trigger('change:appendContent'),this.target=t.getModel(),this.listenTo(this.target,r.IT.toggled,this.toggleTm)}this.toggleTm()}},toggleTm:function(){var t=this.sender;t&&t.get&&!t.get('active')||(1===this.target.getSelectedAll().length?(this.$cn2.show(),this.$header.hide()):(this.$cn2.hide(),this.$header.show()))},stop:function(){this.$cn2&&this.$cn2.hide(),this.$header&&this.$header.hide()}}},6979:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var o=n(5706),r=n(2225);const i={run:function(t,e,n){void 0===n&&(n={});var i=t.getModel(),s=i.get('clipboard'),l=t.getSelected();(null==s?void 0:s.length)&&l&&(t.getSelectedAll().forEach((function(e){var l,c,u,p,d=(null===(c=null===(l=e.delegate)||void 0===l?void 0:l.copy)||void 0===c?void 0:c.call(l,e))||e,f=d.collection;if(f){var h={at:d.index()+1,action:n.action||'paste-component'};p=(0,o.contains)(s,d)&&d.get('copyable')?f.add(d.clone(),h):a(t,s,d.parent(),h)}else{var v=null===(u=i.Pages.getSelected())||void 0===u?void 0:u.getMainComponent();h={at:(null==v?void 0:v.components().length)||0,action:n.action||'paste-component'};p=a(t,s,v,h)}(p=(0,o.isArray)(p)?p:[p]).forEach((function(e){return t.trigger(r.IT.paste,e)}))})),l.emitUpdate())}};function a(t,e,n,o){var r=e.filter((function(t){return t.get('copyable')})).filter((function(e){return t.Components.canMove(n,e).result}));return n.components().add(r.map((function(t){return t.clone()})),o)}},4457:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5706),r=void 0&&(void 0).__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r
{"use strict";n.r(e),n.d(e,{ConvertUnitsToPx:()=>o,default:()=>l});var o,r=n(2225),i=n(1166),a=void 0&&(void 0).__assign||function(){return a=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0,O=['cl','cr'].indexOf(f)>=0,E=!p,I={};if(!S){var N=(null===(s=u.getBody())||void 0===s?void 0:s.offsetWidth)||0,R=n.w{"use strict";n.r(e),n.d(e,{default:()=>O});var o,r=n(5706),i=n(179),a=n(9064),s=n(9156),l=void 0&&(void 0).__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.defaults=function(){return{command:'',attributes:{}}},e}(s.Kx);var u=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e}(s.pM);const d=p;p.prototype.model=c;var f=n(2225),h=n(8242),v=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),g=void 0&&(void 0).__assign||function(){return g=Object.assign||function(t){for(var e,n=1,o=arguments.length;n").concat(l," "):'',"\n