-
-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathplugin.js
1 lines (1 loc) · 95.1 KB
/
plugin.js
1
module.exports=function(t){function e(e){for(var i,s,l=e[0],r=e[1],c=e[2],d=0,u=[];d<l.length;d++)s=l[d],o[s]&&u.push(o[s][0]),o[s]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);for(p&&p(e);u.length;)u.shift()();return a.push.apply(a,c||[]),n()}function n(){for(var t,e=0;e<a.length;e++){for(var n=a[e],i=!0,l=1;l<n.length;l++){var r=n[l];0!==o[r]&&(i=!1)}i&&(a.splice(e--,1),t=s(s.s=n[0]))}return t}var i={},o={main:0},a=[];function s(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=t,s.c=i,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(n,i,function(e){return t[e]}.bind(null,i));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="";var l=window.webpackJsonp=window.webpackJsonp||[],r=l.push.bind(l);l.push=e,l=l.slice();for(var c=0;c<l.length;c++)e(l[c]);var p=r;return a.push([68,"vendors~main"]),n()}([,,,function(t,e){t.exports=require("uxp")},function(t,e,n){"use strict";n.r(e),e.default={id:"Smart Layout",version:"1.0.0",helpUrl:"n/a"}},,function(t,e,n){"use strict";var i=n(7),o=n.n(i);e.default=o.a},function(t,e){t.exports={mounted(){},methods:{}}},function(t,e,n){var i=n(70);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("4732e0e8",i,!1,{})},function(t,e,n){"use strict";var i=n(10),o=n.n(i);e.default=o.a},function(t,e){t.exports={props:{img:{type:String}}}},function(t,e,n){var i=n(72);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("7eacdbdb",i,!1,{})},function(t,e,n){"use strict";var i=n(13),o=n.n(i);e.default=o.a},function(t,e){t.exports={props:["value","size","height"]}},function(t,e,n){var i=n(74);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("1988085b",i,!1,{})},function(t,e,n){"use strict";var i=n(16),o=n.n(i);e.default=o.a},function(t,e){t.exports={props:["value","size","height","legacy"],methods:{on_add_click(t,e){this.$emit("select",t,e),t.currentTarget.classList.add("show-success")}}}},function(t,e,n){var i=n(76);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("b0a041ca",i,!1,{})},function(t,e,n){"use strict";var i=n(19),o=n.n(i);e.default=o.a},function(t,e,n){const i=n(3).storage.localFileSystem;t.exports={props:["value","path","folder","size","height","legacy"],data:()=>({all:[],filtered:[],limited:[],subFolders:[],currentFolder:null,searchString:null,limit:30,limitDefault:30,infiniteScrollTimeout:null,ui:{showFolders:!1}}),created(){this.init(),this.currentFolder=this.folder},methods:{scroll(t){t.currentTarget.scrollTop+t.currentTarget.clientHeight>=t.currentTarget.scrollHeight-40&&(this.infiniteScrollTimeout&&clearTimeout(this.infiniteScrollTimeout),this.infiniteScrollTimeout=setTimeout(()=>{this.limit+=this.limitDefault,this.applyLimit()},400))},async init(){let t=await(await i.getPluginFolder()).getEntry(this.path),e=(await t.getEntries()).filter(t=>t.name.match(/\.xdtpl\.manifest$/));this.all.length=0;for(let t=0;t<e.length;t++){let n=e[t],i=JSON.parse(await n.read());this.all.push({icon:`${this.path}/${i.id}_small.jpg`,folder:i.folder,value:i.id,title:i.title,description:i.description,tags:i.tags,source:i.source,author:i.author,license:i.license})}this.query(),this.all.forEach(t=>{-1==this.subFolders.indexOf(t.folder)&&this.subFolders.push(t.folder)})},query(){this.filtered=[],this.limit=this.limitDefault,this.filtered=this.all.filter(t=>{let e={folderMatch:!1,searchMatch:!1};if(this.currentFolder?this.currentFolder&&t.folder.toLowerCase()==this.currentFolder.toLowerCase()&&(e.folderMatch=!0):e.folderMatch=!0,this.searchString)if(-1!=t.title.toLowerCase().indexOf(this.searchString.toLowerCase()))e.searchMatch=!0;else{if(-1!=t.description.toLowerCase().indexOf(this.searchString.toLowerCase()))return!0;if(-1!=t.tags.toLowerCase().indexOf(this.searchString.toLowerCase()))return!0}else e.searchMatch=!0;return!(!e.folderMatch||!e.searchMatch)}),this.applyLimit()},applyLimit(){this.limited=this.filtered.slice(0,this.limit)},search(t){this.searchString=t,this.query()},selectFolder(t){this.currentFolder=t,this.query(),this.ui.showFolders=!1},resetFolder(){this.currentFolder=null,setTimeout(()=>{this.query()},1)},on_item_over(t){},on_item_out(t){},on_add_click(t,e){this.$emit("select",t,e),t.currentTarget.classList.add("show-success")}}}},function(t,e,n){var i=n(78);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("2fedf90a",i,!1,{})},function(t,e,n){"use strict";var i=n(22),o=n.n(i);e.default=o.a},function(t,e){},function(t,e,n){var i=n(80);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("1be4accf",i,!1,{})},function(t,e,n){"use strict";var i=n(25),o=n.n(i);e.default=o.a},function(t,e){},function(t,e,n){var i=n(82);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("17ac618a",i,!1,{})},function(t,e,n){"use strict";var i=n(28),o=n.n(i);e.default=o.a},function(t,e){t.exports={components:{},props:{},data:()=>({type:"selection",existingColors:[]}),async mounted(){this.$root.$on("update",this.onUpdate),this.onUpdate()},destroyed(){this.$root.$off("update",this.onUpdate)},methods:{onUpdate(){this.setSelectedColors(this.type)},setSelectedColors(t){switch(this.type=t,t){case"global":this.existingColors=n.getNamedColors();break;case"document":this.existingColors=n.getDocumentColors();break;case"selection":this.existingColors=n.getSelectionColors()}},setHex(t){this.select({kind:"custom",type:"Color",color:new XDC.scenegraph.Color(t)})},select(t){this.$emit("change",t)}}};class n{static getNamedColors(){const t=[];return XDC.assets.colors.get().forEach(e=>{this._addColor("named",e.color,t,e.name)}),t}static getSelectionColors(){const t=[];return XDC.selection.items.length>0&&XDC.selection.items.forEach(e=>{this._process(e,t)}),t}static getDocumentColors(){const t=[];return this._process(XDC.root,t),t}static _process(t,e){t.fill&&t.fillEnabled&&"Color"==t.fill.constructor.name&&this._addColor("fill",t.fill,e),t.stroke&&t.strokeEnabled&&"Color"==t.stroke.constructor.name&&this._addColor("stroke",t.stroke,e),t.children.length&&t.children.forEach(t=>{this._process(t,e)})}static _addColor(t,e,n,i){let o=null;for(let t=0;t<n.length;t++){let i=n[t];if(i.color.toHex()==e.toHex()){o=i;break}}o||n.push({kind:t,type:"Color",color:e,name:i})}}},function(t,e,n){var i=n(84);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("6e87720b",i,!1,{})},function(t,e,n){"use strict";var i=n(31),o=n.n(i);e.default=o.a},function(t,e,n){n(3).storage.localFileSystem;const i=n(85).default;t.exports={components:{"default-view":i},data:()=>({}),methods:{}}},function(t,e,n){"use strict";n.r(e);var i=n(33),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,function(){return i[t]})}(a);e.default=o.a},function(t,e,n){const i=n(4).default,o=n(86).default,a=n(89).default,s=n(45).default;t.exports={components:{"hello-view":o,"main-view":a},props:{},data:()=>({PluginManifest:i,isHello:!1,mode:"main"}),async mounted(){this.$root.$on("activate",this.onActivate),this.$root.$on("update",this.onUpdate),this.onActivate(),this.showHello()},destroyed(){this.$root.$off("activate",this.onActivate),this.$root.$off("update",this.onUpdate)},methods:{onActivate(){},onUpdate(){},async helloClose(t){this.isHello=!1,t&&await s.writeDataFile("hello_smartlayout","no")},async showHello(){let t=await s.readDataFile("hello_smartlayout");this.isHello="no"!=t}}}},function(t,e,n){"use strict";n.r(e);var i=n(35),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,function(){return i[t]})}(a);e.default=o.a},function(t,e,n){const i=n(3).shell,o=n(4).default;t.exports={data:()=>({PluginManifest:o,neverAgain:!1}),async mounted(){this.$root.$on("activate",this.onActivate),this.$root.$on("update",this.onUpdate),this.onActivate()},destroyed(){this.$root.$off("activate",this.onActivate),this.$root.$off("update",this.onUpdate)},methods:{onActivate(){},onUpdate(){},openGuide(){i.openExternal("https://xdhero.com/smart-layout/tutorials")},close(){this.$emit("close",this.neverAgain)}}}},function(t,e,n){var i=n(88);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("62dc23c4",i,!1,{})},function(t,e,n){"use strict";n.r(e);var i=n(38),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,function(){return i[t]})}(a);e.default=o.a},function(t,e,n){n(4).default;const i=n(90).default,o=n(95);t.exports={components:{},props:{},data:()=>({platform:o.platform(),layerName:"",selection:XDC.selection,selectedItem:null,selectionType:null,summaryOfLastApply:null,ui:{showConvertToSmartLayout:!1,showContainerSection:!1,showElementSection:!1,showInspector:!1,isMoveElementUpDisabled:!1,isMoveElementDownDisabled:!1},attributes:{autoLayout:void 0,gap:void 0,paddingInput:void 0,padding:void 0,bg:void 0,exclude:void 0,marginInput:void 0,margin:void 0},defaults:{autoLayout:"none",gap:10,padding:10,bg:!1,exclude:!1,margin:0},inspectorNodes:[]}),async mounted(){this.$root.$on("activate",this.onActivate),this.$root.$on("update",this.onUpdate),this.onActivate()},destroyed(){this.$root.$off("activate",this.onActivate),this.$root.$off("update",this.onUpdate)},methods:{onActivate(){},onUpdate(){this.readLayerName(),this.reflectSelection()},readLayerName(){const t=XDC.selection;this.layerName="",1==t.items.length&&(this.layerName=t.items[0].name)},setLayerName(t){const e=XDC.selection;1==e.items.length&&(e.items[0].name=t),this.apply(!0)},reflectSelection(){if(this.selection=XDC.selection,this.ui.showConvertToSmartLayout=this.selection.items.length>1,0==this.selection.items.length)return this.selectionType=null,this.selectedItem=null,this.ui.showContainerSection=!1,this.ui.showElementSection=!1,void(this.ui.showInspector=!1);this.selectedItem!=this.selection.items[0]&&(this.selection.items.length>1||(this.selection=XDC.selection,this.selectedItem=this.selection.items[0],this.selectionType="Group"==this.selectedItem.constructor.name?"container":"element",this.readProperties()))},setPaddingInput(t){""==this.attributes.paddingInput&&(this.attributes.padding=void 0),this.attributes.paddingInput.match(/^\d+(?: \d+){0,3}[ ]*$/)?this.attributes.padding=this.attributes.paddingInput:t&&(this.attributes.paddingInput=this.attributes.padding||this.defaults.padding),this.updateProperties()},setMarginInput(t){""==this.attributes.marginInput&&(this.attributes.margin=void 0),this.attributes.marginInput.match(/^\d+(?: \d+){0,3}[ ]*$/)?this.attributes.margin=this.attributes.marginInput:t&&(this.attributes.marginInput=this.attributes.margin||this.defaults.margin),this.updateProperties()},readProperties(){const t=XDC.expressions.get(this.selectedItem,"smartlayout");let e=this.attributes;this.ui.showContainerSection="container"==this.selectionType;const n=XDC.expressions.get(this.selectedItem.parent,"smartlayout");if(this.ui.showElementSection=!!n,n){let t=XDC.core.getChildIndex(this.selectedItem),e=XDC.core.getChildByIndex(this.selectedItem.parent,0),n=1!=XDC.expressions.get(e,"smartlayout","bg")?0:1;this.ui.isMoveElementUpDisabled=!(t>n),this.ui.isMoveElementDownDisabled=!(t<this.selectedItem.parent.children.length-1)}if(this.ui.showInspector=!(!t&&!n),!t)return e.autoLayout=this.defaults.autoLayout,e.bg=this.defaults.bg,e.exclude=this.defaults.exclude,void(e.marginInput=this.defaults.margin);"container"==this.selectionType&&(e.autoLayout=t.get("autoLayout")||"none",e.gap=null!=t.get("gap")?t.get("gap"):this.defaults.gap,e.padding=e.paddingInput=t.get("padding")||this.defaults.padding),e.bg=1==t.get("bg"),e.exclude=1==t.get("exclude"),e.margin=e.marginInput=t.get("margin")||this.defaults.margin},async updateProperties(){await XDC.application.editDocument({editLabel:"Smart Layout",mergeId:"smartlayout"},async()=>new Promise(async(t,e)=>{try{let n=this.attributes,i=this.defaults;"container"==this.selectionType&&(XDC.expressions.set(this.selectedItem,"smartlayout","autoLayout",n.autoLayout),XDC.expressions.set(this.selectedItem,"smartlayout","gap",""!=n.gap&&n.gap!=i.gap?n.gap:void 0),XDC.expressions.set(this.selectedItem,"smartlayout","padding",""!=n.padding&&n.padding!=i.padding?n.padding:void 0)),XDC.expressions.set(this.selectedItem,"smartlayout","bg",n.bg),XDC.expressions.set(this.selectedItem,"smartlayout","exclude",n.exclude),XDC.expressions.set(this.selectedItem,"smartlayout","margin",""!=n.margin&&n.margin!=i.margin?n.margin:void 0),await this.apply(!1),t()}catch(t){console.log("Error:",t),e()}}))},async makeLayoutContainer(){this.selection.items.length<1||1==this.selection.items.length&&"Group"==this.selection.items[0].constructor.name||await XDC.application.editDocument({editLabel:"Smart Layout",mergeId:"smartlayout"},async()=>new Promise(async(t,e)=>{try{const n=this.selection.items[0],i=XDC.core.getBounds([n]),o=this.selection.items.slice(1),a=XDC.core.getBounds(o);i.top<=a.top&&i.bottom>=a.bottom&&i.left<=a.left&&i.right>=a.right&&XDC.expressions.set(n,"smartlayout","bg","true"),XDC.commands.group();let s=XDC.selection.items[0];XDC.expressions.set(s,"smartlayout","autoLayout","vertical"),XDC.expressions.set(s,"smartlayout","gap","10"),XDC.expressions.set(s,"smartlayout","padding","10"),this.reflectSelection(),this.updateProperties(),await this.apply(!1),t()}catch(t){console.log("Error:",t),e()}}))},async updateLayouts(){await this.apply(!0);const t=this.summaryOfLastApply.totalSmartLayouts;t>0?(this.$refs.updateLayoutButton_label.innerHTML=t+` Layout${t>1?"s":""} refreshed`,setTimeout(()=>{this.$refs.updateLayoutButton_label.innerHTML="Update Layouts"},1200)):i.open(null,{width:400,height:200},{title:"No Smart Layouts found",message:'There are no Smart Layouts in this document. Please start with creating one by selecting multiple elements and clicking "Convert to Smart Layout".'})},async apply(t){XDC.selection;this.summaryOfLastApply={totalSmartLayouts:0},t?await XDC.application.editDocument({editLabel:"Smart Layout",mergeId:"smartlayout"},async()=>new Promise(async(t,e)=>{try{await this.applyLevel(XDC.selection.editContext,!0),t()}catch(t){console.log("Error:",t),e()}})):await this.applyLevel(XDC.selection.editContext,!0)},async applyLevel(t,e){if(-1!=["RootNode","Artboard","Group"].indexOf(t.constructor.name))return new Promise(async(n,i)=>{try{const o=XDC.expressions.get(t,"smartlayout");if(o){if("none"==o.get("autoLayout"))return void n();let e;this.summaryOfLastApply.totalSmartLayouts++;let i=a.findBackground(t);const s={gap:o&&Number(o.get("gap"))>=0?Number(o.get("gap")):10,padding:o&&null!=o.get("padding")?a.extractTopRightBottomLeft(o.get("padding")):a.extractTopRightBottomLeft(this.defaults.padding),x:null,y:null,firstElementMarginTop:0,lastElementMarginBottom:0};if("absolute"==o.get("autoLayout")&&(e=t.children.filter(t=>t!=i&&1!=XDC.expressions.get(t,"smartlayout","exclude"))),"vertical"==o.get("autoLayout")&&(e=t.children.filter(t=>t!=i&&1!=XDC.expressions.get(t,"smartlayout","exclude")),s.x=i?i.boundsInParent.x+s.padding.left:t.children.at(0).boundsInParent.x,s.y=i?i.boundsInParent.y+s.padding.top:t.children.at(0).boundsInParent.y,e.forEach((t,n)=>{try{if(1==XDC.expressions.get(t,"smartlayout","exclude"))return;const i=XDC.expressions.get(t,"smartlayout");let o=i&&null!=i.get("margin")?i.get("margin"):this.defaults.margin,l=a.extractTopRightBottomLeft(o);0==n&&(s.firstElementMarginTop=l.top),n==e.length-1&&(s.lastElementMarginBottom=l.bottom),t.placeInParentCoordinates(t.localBounds,{x:s.x+l.left,y:s.y+l.top}),s.y+=t.boundsInParent.height+l.top+s.gap+l.bottom}catch(t){console.log(t)}})),o.get("autoLayout"),i){let t=XDC.core.getBounds(e);i.placeInParentCoordinates({x:0,y:0},{x:t.left-s.padding.left,y:t.top-s.padding.top-s.firstElementMarginTop}),i.width=t.width+s.padding.left+s.padding.right,i.height=t.height+s.padding.top+s.padding.bottom+s.firstElementMarginTop+s.lastElementMarginBottom}}e&&t.children.forEach(async t=>{await this.applyLevel(t,e)}),n()}catch(t){console.log("Error:",t),i()}})},async inspector(t){this.selectedItem&&await XDC.application.editDocument({editLabel:"Smart Layout inspector",mergeId:"smartlayout_inspector"},async()=>{try{if("on"==t){let t=null,e=XDC.expressions.get(this.selectedItem,"smartlayout");if("container"==this.selectionType&&e)t=this.selectedItem;else{if(!XDC.expressions.get(this.selectedItem.parent,"smartlayout"))return;t=this.selectedItem.parent,e=XDC.expressions.get(t,"smartlayout")}let n=a.extractTopRightBottomLeft(e.get("padding")||this.defaults.padding);const i={gap:new XDC.scenegraph.Color("#3A95EB",.9),padding:new XDC.scenegraph.Color("#66B4FD",.9),element:new XDC.scenegraph.Color("#A5ADB6",.9),margin:new XDC.scenegraph.Color("#5B1FBA",.8)};if(this._inspectorAddTempElement(t,{width:t.localBounds.width,height:n.top,xy:t.localBounds,fill:i.padding}),this._inspectorAddTempElement(t,{width:n.right,height:t.localBounds.height,xy:{x:t.localBounds.x+t.boundsInParent.width-n.right,y:t.localBounds.y},fill:i.padding}),this._inspectorAddTempElement(t,{width:t.localBounds.width,height:n.bottom,xy:{x:t.localBounds.x,y:t.localBounds.y+t.boundsInParent.height-n.bottom},fill:i.padding}),this._inspectorAddTempElement(t,{width:n.left,height:t.localBounds.height,xy:{x:t.localBounds.x,y:t.localBounds.y},fill:i.padding}),"none"==e.get("autoLayout"))return;let o,s=t,l=a.findBackground(s);const r={gap:e&&Number(e.get("gap"))>=0?Number(e.get("gap")):10,padding:e&&null!=e.get("padding")?a.extractTopRightBottomLeft(e.get("padding")):a.extractTopRightBottomLeft(this.defaults.padding),x:null,y:null,firstElementMarginTop:0,lastElementMarginBottom:0};if("vertical"==e.get("autoLayout")){o=s.children.filter(t=>"#TMP#"!=t.name&&t!=l&&1!=XDC.expressions.get(t,"smartlayout","exclude")),r.x=l?l.boundsInParent.x+r.padding.left:s.children.at(0).boundsInParent.x,r.y=l?l.boundsInParent.y+r.padding.top:s.children.at(0).boundsInParent.y;let e=XDC.core.getBounds(o);o.forEach((n,s)=>{try{if(1==XDC.expressions.get(n,"smartlayout","exclude"))return;const l=XDC.expressions.get(n,"smartlayout");let c=l&&null!=l.get("margin")?l.get("margin"):this.defaults.margin,p=a.extractTopRightBottomLeft(c);0==s&&(r.firstElementMarginTop=p.top),s==o.length-1&&(r.lastElementMarginBottom=p.bottom),this._inspectorAddTempElement(t,{width:n.localBounds.width,height:n.localBounds.height,xy:{x:n.boundsInParent.x,y:n.boundsInParent.y},fill:i.element}),this._inspectorAddTempElement(t,{width:n.localBounds.width,height:p.top,xy:{x:n.boundsInParent.x,y:n.boundsInParent.y-p.top},fill:i.margin}),this._inspectorAddTempElement(t,{width:p.right,height:n.localBounds.height,xy:{x:n.boundsInParent.x+n.boundsInParent.width,y:n.boundsInParent.y},fill:i.margin}),this._inspectorAddTempElement(t,{width:n.localBounds.width,height:p.bottom,xy:{x:n.boundsInParent.x,y:n.boundsInParent.y+n.boundsInParent.height},fill:i.margin}),this._inspectorAddTempElement(t,{width:p.left,height:n.localBounds.height,xy:{x:n.boundsInParent.x-p.left,y:n.boundsInParent.y},fill:i.margin}),s<o.length-1&&this._inspectorAddTempElement(t,{width:e.width,height:r.gap,xy:{x:r.x,y:n.boundsInParent.y+n.boundsInParent.height+p.bottom},fill:i.gap}),r.y+=n.boundsInParent.height+p.top+r.gap+p.bottom}catch(t){console.log(t)}})}}"off"==t&&(this.inspectorNodes.forEach(t=>{t.removeFromParent(),t=null}),this.inspectorNodes=[])}catch(t){console.log("Error in inspector:",t)}})},_inspectorAddTempElement(t,e){let n=new XDC.scenegraph.Rectangle;n.name="#TMP#",n.width=e.width,n.height=e.height,n.fill=e.fill,n.placeInParentCoordinates({x:0,y:0},{x:e.xy.x,y:e.xy.y}),t.addChild(n),this.inspectorNodes.push(n)},async move(t){-1==["Group","SymbolInstance","BooleanGroup","RepeatGrid"].indexOf(this.selectedItem.constructor.name)?await XDC.application.editDocument({editLabel:"Smart Layout move",mergeId:"smartlayout"},async()=>{try{if("up"==t){let t=XDC.core.getChildByIndex(this.selectedItem.parent,XDC.core.getChildIndex(this.selectedItem)-1);this.selectedItem.parent.addChildBefore(this.selectedItem,t)}else{let t=XDC.core.getChildByIndex(this.selectedItem.parent,XDC.core.getChildIndex(this.selectedItem)+1);this.selectedItem.parent.addChildAfter(this.selectedItem,t)}this.readProperties(),await this.apply(!1)}catch(t){console.log("Error",t)}}):i.open(null,{width:400,height:200},{title:"Not supported yet",message:"Moving groups is not yet supported in this version due to XD API limitations. Currently only primitive elements like text, rectangles etc. are supported. We will add groups as soon as XD supports it."})}}};class a{static extractTopRightBottomLeft(t){return"string"!=typeof t&&(t=""+t),t=t.split(" "),{top:Number(t[0]),right:Number(2==t.length?t[1]:t.length>=3?t[1]:t[0]),bottom:Number(2==t.length?t[0]:t.length>=3?t[2]:t[0]),left:Number(2==t.length?t[1]:3==t.length?0:4==t.length?t[3]:t[0])}}static findBackground(t){let e;return t.children.forEach(t=>{1==XDC.expressions.get(t,"smartlayout","bg")&&(e=t)}),e}}},function(t,e,n){"use strict";n.r(e);var i=n(40),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,function(){return i[t]})}(a);e.default=o.a},function(t,e){t.exports={components:{},props:["data"],data:()=>({}),mounted(){},methods:{close(t){(function t(e){return"DIALOG"==e.tagName?e:e.parentNode?t(e.parentNode):void 0})(this.$el).close()}}}},function(t,e,n){var i=n(97);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("85ea5a0a",i,!1,{})},function(t,e,n){var i=n(99);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("10edb784",i,!1,{})},function(t,e,n){var i=n(101);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(2).default)("24c5cc03",i,!1,{})},,function(t,e,n){"use strict";n.r(e);const i=n(3).storage.localFileSystem,o=n(3).storage.formats;let a,s;e.default=class{static async getPluginFolder(){return a||(a=await i.getPluginFolder()),a}static async getDataFolder(){return s||(s=await i.getDataFolder()),s}static async readDataFile(t){let e=await(await this.getDataFolder()).getEntry(t).catch(t=>{});return!!e&&await e.read()}static async writeDataFile(t,e){const n=await(await this.getDataFolder()).createFile(t,{overwrite:!0});await n.write(e,{format:o.utf8})}static async deepCopyFilesFolder(){try{const t=await this.getPluginFolder(),e=await this.getDataFolder(),n=async(t,e)=>{if(t.isFile&&await t.copyTo(e,{overwrite:!0}),t.isFolder){let i=await e.getEntry(t.name).catch(t=>{});i||(i=await e.createFolder(t.name));const o=await t.getEntries();for(let t=0;t<o.length;t++){let e=o[t];n(e,i)}}};await n(await t.getEntry("files"),e)}catch(t){console.error("[ FileService ] Error in deepCopyFolder()",t)}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dialog"},[n("h1",[t._v(t._s(t.data.title))]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"content"},[n("p",{domProps:{innerHTML:t._s(t.data.message)}})]),t._v(" "),n("footer",[n("button",{attrs:{"uxp-variant":"primary"},on:{click:t.close}},[t._v("OK")])])])},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("default-panel")],1)},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"xp-template-selector",class:{legacy:t.legacy},style:{height:t.height?t.height:"auto"}},[i("div",{staticStyle:{display:"flex",flex:"0 0 40px",height:"40px","margin-top":"10px"}},[i("div",{staticStyle:{position:"relative",flex:"1 1 auto",display:"flex","align-items":"flex-start"}},[i("input",{staticStyle:{width:"100%",margin:"0"},attrs:{type:"search"},on:{input:function(e){t.search(e.currentTarget.value)}}})]),t._v(" "),i("div",{staticStyle:{flex:"0 0 10px"}}),t._v(" "),i("div",{staticStyle:{position:"relative",flex:"0 0 80px",display:"flex","justify-content":"flex-end","align-items":"flex-start"},on:{click:function(e){t.ui.showFolders=!t.ui.showFolders}}},[i("div",{staticStyle:{flex:"0 0 20px",width:"15px",height:"15px",margin:"4px 0px 4px 4px","background-image":"url(assets/general/ui/folder_icon.svg)","background-size":"contain"}}),t._v(" "),i("div",{staticStyle:{"margin-top":"5px"}},[t._v("Folders")])])]),t._v(" "),i("div",{staticClass:"items-and-folder-wrapper"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.currentFolder,expression:"currentFolder"}],staticClass:"current-folder"},[i("div",{staticClass:"folder-icon",staticStyle:{"background-image":"url(assets/general/ui/folder_icon.svg)"}}),t._v(" "),i("div",{staticClass:"folder-title"},[t._v(t._s(t.currentFolder))]),t._v(" "),i("div",{staticClass:"close-folder-icon",staticStyle:{"background-image":"url(assets/general/ui/close_icon.png)"},on:{click:t.resetFolder}})]),t._v(" "),i("div",{staticClass:"xp-template-selector-content",on:{mouseover:t.on_item_over,mouseout:t.on_item_out,scroll:t.scroll}},[t._l(t.limited,function(e){return i("div",{staticClass:"item",class:{xsmall:"xsmall"==t.size,small:"small"==t.size,medium:"medium"==t.size,large:"large"==t.size,xlarge:"xlarge"==t.size}},[e.icon?i("div",{staticClass:"preview"},[i("div",{staticClass:"icon",staticStyle:{"background-size":"contain"},style:{backgroundImage:"url("+e.icon+")"}})]):t._e(),t._v(" "),i("div",{staticClass:"hover-overlay"},[i("div",{staticClass:"secondary-icons"},[i("div",{staticClass:"info-icon",on:{click:function(n){t.$set(e,"_isInfoActive",!0)}}})]),t._v(" "),i("div",{staticClass:"icons"},[i("div",{staticClass:"add-icon",on:{click:function(n){t.on_add_click(n,e)},pointerleave:function(t){t.currentTarget.classList.remove("show-success")}}},[i("div",{staticClass:"normal add-icon-normal"}),t._v(" "),i("div",{staticClass:"over add-icon-hover"}),t._v(" "),i("div",{staticClass:"success add-icon-success"})])]),t._v(" "),i("div",{staticClass:"label"},[i("div",{staticClass:"express-font title"},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"express-font description2"},[t._v(t._s(e.description))])])]),t._v(" "),e._isInfoActive?i("div",{staticClass:"info-overlay",on:{mouseleave:function(n){t.$set(e,"_isInfoActive",!1)}}},[i("div",{staticClass:"label"},[i("div",{staticClass:"express-font author"},[i("div",{staticClass:"label-title"},[t._v("AUTHOR")]),t._v(t._s(e.author))]),t._v(" "),i("div",{staticClass:"express-font license"},[i("div",{staticClass:"label-title"},[t._v("LICENSE")]),t._v(t._s(e.license))]),t._v(" "),i("div",{staticClass:"express-font source",on:{click:function(t){n(3).shell.openExternal(e.source)}}},[i("div",{staticClass:"label-title"},[t._v("SOURCE")]),t._v(t._s(e.source.length<80?e.source:e.source.substr(0,80)+"…")),i("br"),t._v("🔗")])]),t._v(" "),i("div",{staticClass:"close-btn",on:{click:function(n){t.$set(e,"_isInfoActive",!1)}}},[t._v("×")])]):t._e()])}),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.limited.length<t.filtered.length,expression:"limited.length < filtered.length"}],staticClass:"item",staticStyle:{flex:"1 0 100%",width:"100%",height:"80px",display:"flex","flex-direction":"column","justify-content":"center"},on:{click:function(e){t.limit+=t.limitDefault,t.applyLimit()}}},[i("div",{staticStyle:{"font-size":"12px","font-weight":"bold",color:"#666666","line-height":"20px"}},[t._v("SHOW MORE")]),t._v(" "),i("div",{staticStyle:{"font-size":"9px","font-weight":"light",color:"#999"}},[t._v(t._s(t.limit)+" of "+t._s(t.filtered.length))])])],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.ui.showFolders,expression:"ui.showFolders"}],staticClass:"folder-list",staticStyle:{"background-color":"white","border-bottom":"15px solid rgba(240,240,240,.3)"}},[i("div",{staticClass:"available-folders-title"},[t._v("Available folders:")]),t._v(" "),t._l(t.subFolders,function(e){return i("div",{on:{click:function(n){t.selectFolder(e)}}},[i("div",{staticClass:"folder-item"},[t._v(t._s(e))])])})],2)])])},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"xp-view-title"},[e("div",{staticClass:"logo"}),this._v(" "),e("div",{staticClass:"title"},[this._t("default")],2)])},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"xp-section-title"},[this._t("default")],2)},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"xp-list",style:{height:t.height?t.height:"auto"}},[n("div",{staticClass:"xp-list-content"},t._l(t.value,function(e){return n("div",{staticClass:"item",class:{xsmall:"xsmall"==t.size,small:"small"==t.size,medium:"medium"==t.size,large:"large"==t.size,xlarge:"xlarge"==t.size}},[e.icon?n("div",{staticClass:"preview"},[n("div",{staticClass:"icon",staticStyle:{"background-size":"contain"},style:{backgroundImage:"url("+e.icon+")"}})]):t._e(),t._v(" "),n("div",{staticClass:"label"},[n("div",{staticClass:"express-font title"},[t._v(t._s(e.title))]),t._v(" "),n("div",{staticClass:"express-font description"},[t._v(t._s(e.description))])]),t._v(" "),n("div",{staticClass:"dreamcatcher",attrs:{id:"random-"+Math.round(1e9*Math.random()),editLabel:e.title||"action"},on:{click:function(n){t.$emit("select",n,e)}}})])}),0)])},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{display:"flex","flex-direction":"column"},attrs:{id:"panel"}},[e("default-view",{staticStyle:{flex:"1 1 0"}})],1)},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"xp-panel-title"},[n("div",{staticClass:"title-wrapper"},[t.img?n("div",{staticClass:"img",style:{backgroundImage:"url("+t.img+")"}}):t._e(),t._v(" "),t.img?t._e():n("div",{staticClass:"title"},[t._t("default")],2)]),t._v(" "),n("div",{staticClass:"help-icon",on:{click:function(e){t.$emit("help")}}})])},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"xp-template-list",class:{legacy:t.legacy},style:{height:t.height?t.height:"auto"}},[i("div",{staticClass:"xp-template-list-content"},t._l(t.value,function(e){return i("div",{staticClass:"item",class:{xsmall:"xsmall"==t.size,small:"small"==t.size,medium:"medium"==t.size,large:"large"==t.size,xlarge:"xlarge"==t.size}},[e.icon?i("div",{staticClass:"preview"},[i("div",{staticClass:"icon",staticStyle:{"background-size":"contain"},style:{backgroundImage:"url("+e.icon+")"}})]):t._e(),t._v(" "),i("div",{staticClass:"hover-overlay"},[i("div",{staticClass:"secondary-icons"},[i("div",{staticClass:"info-icon",on:{click:function(n){t.$set(e,"_isInfoActive",!0)}}})]),t._v(" "),i("div",{staticClass:"icons"},[i("div",{staticClass:"add-icon",on:{click:function(n){t.on_add_click(n,e)},pointerleave:function(t){t.currentTarget.classList.remove("show-success")}}},[i("div",{staticClass:"normal add-icon-normal"}),t._v(" "),i("div",{staticClass:"over add-icon-hover"}),t._v(" "),i("div",{staticClass:"success add-icon-success"})])]),t._v(" "),i("div",{staticClass:"label"},[i("div",{staticClass:"express-font title"},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"express-font description2"},[t._v(t._s(e.description))])])]),t._v(" "),e._isInfoActive?i("div",{staticClass:"info-overlay",on:{pointerleave:function(n){t.$set(e,"_isInfoActive",!1)}}},[i("div",{staticClass:"label"},[i("div",{staticClass:"express-font author"},[i("label",[t._v("AUTHOR")]),t._v(t._s(e.author))]),t._v(" "),i("div",{staticClass:"express-font license"},[i("label",[t._v("LICENSE")]),t._v(t._s(e.license))]),t._v(" "),i("div",{staticClass:"express-font source",on:{click:function(t){n(3).shell.openExternal(e.source)}}},[i("label",[t._v("SOURCE")]),t._v(t._s(e.source.length<80?e.source:e.source.substr(0,80)+"…"))])]),t._v(" "),i("div",{staticClass:"close-btn",on:{click:function(n){t.$set(e,"_isInfoActive",!1)}}},[t._v("×")])]):t._e()])}),0)])},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"smartlayout--default-view"}},[n("div",[n("xp-panel-title",{attrs:{img:"./assets/title.png"},on:{help:function(e){t.isHello=!0}}},[t._v(t._s(t.PluginManifest.id))])],1),t._v(" "),"main"==t.mode?n("main-view"):t._e(),t._v(" "),t.isHello?n("hello-view",{on:{close:t.helloClose}}):t._e()],1)},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"smartlayout--default-view--main-view"}},[n("xp-section-title",[t._v("ACTIONS")]),t._v(" "),n("div",{staticClass:"actions"},[n("div",{staticClass:"action",on:{click:t.updateLayouts}},[n("div",{staticClass:"icon",style:{backgroundImage:"url(assets/SmartLayout/ui/icon_refresh.png)"}}),t._v(" "),n("div",{ref:"updateLayoutButton_label",staticClass:"label"},[t._v("Update Layouts")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.ui.showConvertToSmartLayout,expression:"ui.showConvertToSmartLayout"}],staticClass:"action",on:{click:t.makeLayoutContainer}},[n("div",{staticClass:"icon",style:{backgroundImage:"url(assets/SmartLayout/ui/icon_create_smart_layout.png)"}}),t._v(" "),n("div",{staticClass:"label"},[t._v("Convert to Smart Layout")])])]),t._v(" "),t.ui.showContainerSection?n("div",{staticStyle:{"flex-direction":"column"}},[n("xp-section-title",{staticClass:"section-title"},[t._v("CONTAINER")]),t._v(" "),n("div",{staticClass:"input"},[n("div",{staticClass:"label"},[t._v("Layout")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.attributes.autoLayout,expression:"attributes.autoLayout"}],on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.attributes,"autoLayout",e.target.multiple?n:n[0])},function(e){t.attributes.autoLayout=e.currentTarget.value,t.updateProperties()}]}},[n("option",{attrs:{value:"none"}},[t._v("None")]),t._v(" "),n("option",{attrs:{value:"vertical"}},[t._v("Vertical stacking")])])]),t._v(" "),"none"!=t.attributes.autoLayout?n("div",{staticClass:"input"},[n("div",{staticClass:"label"},[t._v("Gap between elements (px)")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.attributes.gap,expression:"attributes.gap"}],domProps:{value:t.attributes.gap},on:{input:[function(e){e.target.composing||t.$set(t.attributes,"gap",e.target.value)},function(e){"win10"!=t.platform&&t.updateProperties()}],change:function(e){"win10"==t.platform&&t.updateProperties()}}})]):t._e(),t._v(" "),"none"!=t.attributes.autoLayout?n("div",{staticClass:"input"},[n("div",{staticClass:"label"},[t._v("Inner padding (px) (Only with background)")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.attributes.paddingInput,expression:"attributes.paddingInput"}],domProps:{value:t.attributes.paddingInput},on:{input:[function(e){e.target.composing||t.$set(t.attributes,"paddingInput",e.target.value)},function(e){"win10"!=t.platform&&t.setPaddingInput(!1)}],change:function(e){t.setPaddingInput(!0)}}})]):t._e()],1):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.ui.showElementSection,expression:"ui.showElementSection"}],staticStyle:{"flex-direction":"column"}},[n("xp-section-title",{staticClass:"section-title"},[t._v("ELEMENT")]),t._v(" "),n("div",{staticClass:"row wrap"},[n("button",{staticStyle:{flex:"1 1 0"},attrs:{"uxp-variant":"primary",disabled:t.ui.isMoveElementUpDisabled},on:{click:function(e){t.move("up")}}},[t._v("▲ Move")]),t._v(" "),n("button",{staticStyle:{flex:"1 1 0"},attrs:{"uxp-variant":"primary",disabled:t.ui.isMoveElementDownDisabled},on:{click:function(e){t.move("down")}}},[t._v("▼ Move")])]),t._v(" "),n("label",{staticClass:"row",staticStyle:{"margin-top":"10px","margin-bottom":"0"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.attributes.bg,expression:"attributes.bg"}],staticStyle:{margin:"0"},attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.attributes.bg)?t._i(t.attributes.bg,null)>-1:t.attributes.bg},on:{change:[function(e){var n=t.attributes.bg,i=e.target,o=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&t.$set(t.attributes,"bg",n.concat([null])):a>-1&&t.$set(t.attributes,"bg",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.attributes,"bg",o)},t.updateProperties]}}),t._v(" "),n("span",[t._v("Is background")])]),t._v(" "),n("label",{staticClass:"row",staticStyle:{"margin-top":"10px","margin-bottom":"0"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.attributes.exclude,expression:"attributes.exclude"}],staticStyle:{margin:"0"},attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.attributes.exclude)?t._i(t.attributes.exclude,null)>-1:t.attributes.exclude},on:{change:[function(e){var n=t.attributes.exclude,i=e.target,o=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&t.$set(t.attributes,"exclude",n.concat([null])):a>-1&&t.$set(t.attributes,"exclude",n.slice(0,a).concat(n.slice(a+1)))}else t.$set(t.attributes,"exclude",o)},t.updateProperties]}}),t._v(" "),n("span",[t._v("Exclude from auto layout")])]),t._v(" "),n("div",{staticClass:"input"},[n("div",{staticClass:"label"},[t._v("Outer margin (px)")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.attributes.marginInput,expression:"attributes.marginInput"}],domProps:{value:t.attributes.marginInput},on:{input:[function(e){e.target.composing||t.$set(t.attributes,"marginInput",e.target.value)},function(e){"win10"!=t.platform&&t.setMarginInput(!1)}],change:function(e){t.setMarginInput(!0)}}})])],1),t._v(" "),n("xp-section-title",[t._v("QUICK INTRO")]),t._v(" "),n("div",{staticStyle:{display:"flex"}},[n("img",{staticStyle:{"min-width":"150px","max-width":"450px",margin:"auto","border-radius":"8px"},attrs:{src:"./assets/SmartLayout/firststep.gif",width:"100%",height:"auto"}})])],1)},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"hello"}},[n("div",{staticClass:"card",staticStyle:{display:"flex","flex-direction":"column"}},[n("div",{staticClass:"header"},[n("label",{staticClass:"row",staticStyle:{width:"130px",margin:"5px 0 0 8px",opacity:"0.5"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.neverAgain,expression:"neverAgain"}],staticStyle:{width:"20px",margin:"0","margin-right":"0"},attrs:{type:"checkbox",value:"true"},domProps:{checked:Array.isArray(t.neverAgain)?t._i(t.neverAgain,"true")>-1:t.neverAgain},on:{change:function(e){var n=t.neverAgain,i=e.target,o=!!i.checked;if(Array.isArray(n)){var a=t._i(n,"true");i.checked?a<0&&(t.neverAgain=n.concat(["true"])):a>-1&&(t.neverAgain=n.slice(0,a).concat(n.slice(a+1)))}else t.neverAgain=o}}}),t._v(" "),n("span",{staticStyle:{color:"#666","margin-left":"0","text-align":"left"}},[t._v("Do not show again")])]),t._v(" "),n("div",{staticClass:"close-btn",style:{backgroundImage:"url(assets/SmartLayout/hello/close.png)"},on:{click:t.close}})]),t._v(" "),n("div",{staticClass:"entry"},[n("div",{staticClass:"title"},[t._v("Smart Layout")]),t._v(" "),n("div",[t._v("Automatic content flow with vertical stacking, paddings, margins and more.")]),t._v(" "),n("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[n("button",{attrs:{"uxp-variant":"cta"},on:{click:t.close}},[t._v("Start")])])]),t._v(" "),n("div",{staticClass:"entry-separator"}),t._v(" "),n("div",{staticClass:"entry"},[n("div",{staticClass:"title"},[t._v("Get started")]),t._v(" "),n("div",[t._v("How to use "+t._s(t.PluginManifest.id))]),t._v(" "),n("div",{staticStyle:{height:"20px"}}),t._v(" "),n("div",{staticClass:"link-preview"},[n("div",{staticClass:"image",style:{backgroundImage:"url(assets/SmartLayout/hello/dummy.jpg)"}}),t._v(" "),n("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[n("button",{attrs:{"uxp-variant":"cta"},on:{click:t.openGuide}},[t._v("Open Guide in Browser")])])])])])])},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"xp-color-picker"},[n("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[n("select",{staticStyle:{width:"100%",margin:"0"},on:{change:function(e){t.setSelectedColors(e.currentTarget.value)}}},[n("option",{attrs:{value:"global"}},[t._v("Saved colors (assets)")]),t._v(" "),n("option",{attrs:{value:"document"}},[t._v("Document colors")]),t._v(" "),n("option",{attrs:{value:"selection",selected:""}},[t._v("Selection colors")]),t._v(" "),n("option",{attrs:{value:"custom"}},[t._v("Custom color")])])]),t._v(" "),"custom"!=t.type?n("div",{staticClass:"existing-colors"},["selection"!=t.type&&0==t.existingColors.length?n("div",{staticStyle:{width:"100%",height:"auto","text-align":"center"}},[t._v("No colors found")]):t._e(),t._v(" "),"selection"==t.type&&0==t.existingColors.length?n("div",{staticStyle:{width:"100%",height:"auto","text-align":"center"}},[t._v("No selection"),n("br"),t._v("(Select element(s) to pick a color)")]):t._e(),t._v(" "),t._l(t.existingColors,function(e){return n("div",{staticClass:"color",on:{click:function(n){t.select(e)}}},[n("div",{staticClass:"preview",style:{backgroundColor:e.color.toHex()}}),t._v(" "),n("div",{staticClass:"label"},[t._v(t._s(e.name||e.color.toHex()))])])})],2):t._e(),t._v(" "),"custom"==t.type?n("input",{staticStyle:{width:"100%",margin:"10px 0 0 0"},attrs:{type:"text",placeholder:"HEX (e.g. #FF00FF)"},on:{change:function(e){t.setHex(e.currentTarget.value)}}}):t._e()])},o=[];i._withStripped=!0,n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o})},function(t,e,n){"use strict";var i=n(47),o=n(6),a=(n(69),n(0)),s=Object(a.a)(o.default,i.a,i.b,!1,null,null,null);s.options.__file="shell/src/ui/panels/DefaultPanelShell.vue",e.default=s.exports},function(t,e,n){"use strict";var i=n(53),o=n(9),a=(n(71),n(0)),s=Object(a.a)(o.default,i.a,i.b,!1,null,null,null);s.options.__file="shell/src/ui/components/XpPanelTitle.vue",e.default=s.exports},function(t,e,n){"use strict";var i=n(51),o=n(12),a=(n(73),n(0)),s=Object(a.a)(o.default,i.a,i.b,!1,null,null,null);s.options.__file="shell/src/ui/components/XpList.vue",e.default=s.exports},function(t,e,n){"use strict";var i=n(54),o=n(15),a=(n(75),n(0)),s=Object(a.a)(o.default,i.a,i.b,!1,null,null,null);s.options.__file="shell/src/ui/components/XpTemplateList.vue",e.default=s.exports},function(t,e,n){"use strict";var i=n(48),o=n(18),a=(n(77),n(0)),s=Object(a.a)(o.default,i.a,i.b,!1,null,null,null);s.options.__file="shell/src/ui/components/XpTemplateSelector.vue",e.default=s.exports},function(t,e,n){"use strict";var i=n(49),o=n(21),a=(n(79),n(0)),s=Object(a.a)(o.default,i.a,i.b,!1,null,null,null);s.options.__file="shell/src/ui/components/XpViewTitle.vue",e.default=s.exports},function(t,e,n){"use strict";var i=n(50),o=n(24),a=(n(81),n(0)),s=Object(a.a)(o.default,i.a,i.b,!1,null,null,null);s.options.__file="shell/src/ui/components/XpSectionTitle.vue",e.default=s.exports},function(t,e,n){"use strict";var i=n(58),o=n(27),a=(n(83),n(0)),s=Object(a.a)(o.default,i.a,i.b,!1,null,null,null);s.options.__file="shell/src/ui/components/XpColorPicker.vue",e.default=s.exports},function(t,e,n){"use strict";var i=n(52),o=n(30),a=(n(100),n(0)),s=Object(a.a)(o.default,i.a,i.b,!1,null,null,null);s.options.__file="src/modules/SmartLayout/ui/panels/DefaultPanel.vue",e.default=s.exports},function(t,e,n){t.exports=n(103)},function(t,e,n){"use strict";var i=n(8);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"*, body {\n font-size: 11px;\n color: #9F9F9F;\n}\n#app {\n height: 86vh;\n overflow: auto;\n}\n.dreamcatcher {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n}\n.express-font {\n font-size: 10px;\n color: #9F9F9F;\n}\n.express-font.title {\n font-weight: bold;\n}\n.express-font.description {\n font-weight: normal;\n font-size: 10px;\n opacity: 0.7;\n}\n",""])},function(t,e,n){"use strict";var i=n(11);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,'.xp-panel-title {\n margin-bottom: 0px;\n width: 100%;\n display: flex;\n}\n.xp-panel-title .title-wrapper {\n flex: 1 1 auto;\n}\n.xp-panel-title .title-wrapper .img {\n height: 22px;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: left;\n}\n.xp-panel-title .title-wrapper .title {\n margin-top: 3px;\n font-size: 12px;\n font-weight: bold;\n color: #505050;\n}\n.xp-panel-title .help-icon {\n flex: 0 0 16px;\n margin-top: 3px;\n width: 16px;\n height: 16px;\n background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RqKnd1vdVJVFpiOgsI8BQykyRy2e0zXtbI1m3adMvxEfo5Eam60YAjEjidHIdkpRYvt4PdG9U/2FUTbiohiRMK2g/ijFIjfQgU8cf1eu6erK8VXYLNkfm8spmZ+eji4AAAAASUVORK5CYII=");\n background-size: contain;\n opacity: 0.5;\n}\n.xp-panel-title .help-icon:hover {\n opacity: 1;\n}\n',""])},function(t,e,n){"use strict";var i=n(14);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".xp-list {\n overflow: auto;\n min-height: 30px;\n height: auto;\n}\n.xp-list .xp-list-content {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n}\n.xp-list .xp-list-content .item {\n position: relative;\n display: flex;\n align-items: center;\n padding: 4px 2px;\n background-color: white;\n border-radius: 3px;\n border: 1px solid #EDEFF0;\n width: 50%;\n flex: 1 0 auto;\n}\n.xp-list .xp-list-content .item:hover {\n border: 1px solid #ACCEEF;\n}\n.xp-list .xp-list-content .item.xsmall {\n padding: 0px 0px;\n}\n.xp-list .xp-list-content .item.xsmall .preview {\n flex: 0 0 20px;\n}\n.xp-list .xp-list-content .item.xsmall .preview .icon {\n width: 20px;\n height: 20px;\n}\n@media (max-width: 320px) {\n.xp-list .xp-list-content .item.xsmall {\n width: 100%;\n}\n}\n.xp-list .xp-list-content .item.small {\n min-height: 36px;\n}\n.xp-list .xp-list-content .item.small .preview {\n flex: 0 0 20px;\n}\n.xp-list .xp-list-content .item.small .preview .icon {\n width: 16px;\n height: 16px;\n}\n@media (max-width: 320px) {\n.xp-list .xp-list-content .item.small {\n width: 100%;\n}\n}\n.xp-list .xp-list-content .item.medium .preview {\n flex: 0 0 60px;\n}\n.xp-list .xp-list-content .item.medium .preview .icon {\n width: 60px;\n height: 60px;\n}\n.xp-list .xp-list-content .item.large .preview {\n flex: 0 0 100px;\n}\n.xp-list .xp-list-content .item.large .preview .icon {\n width: 100px;\n height: 100px;\n}\n.xp-list .xp-list-content .item.xlarge .preview {\n flex: 0 0 140px;\n}\n.xp-list .xp-list-content .item.xlarge .preview .icon {\n width: 140px;\n height: 140px;\n}\n.xp-list .xp-list-content .item .preview {\n flex: 0 0 30px;\n margin-left: 4px;\n flex: 0 0 30px;\n}\n.xp-list .xp-list-content .item .preview .icon {\n width: 30px;\n height: 30px;\n background-position: 50% 50%;\n}\n.xp-list .xp-list-content .item .label {\n padding: 6px;\n}\n",""])},function(t,e,n){"use strict";var i=n(17);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,'.xp-template-list {\n overflow: auto;\n}\n.xp-template-list.legacy .xp-template-list-content .item {\n flex: 1 1 160px !important;\n}\n.xp-template-list.legacy .xp-template-list-content .item .hover-overlay .icons .add-icon {\n left: 70px;\n}\n.xp-template-list .xp-template-list-content {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n}\n.xp-template-list .xp-template-list-content .item {\n position: relative;\n display: flex;\n align-items: center;\n padding: 4px 2px;\n background-color: white;\n border-radius: 3px;\n border: 1px solid #EDEFF0;\n flex: 1 1 160px;\n}\n.xp-template-list .xp-template-list-content .item:hover {\n border-color: #ACCEEF;\n}\n.xp-template-list .xp-template-list-content .item:hover .hover-overlay {\n opacity: 1;\n}\n.xp-template-list .xp-template-list-content .item.xsmall {\n padding: 0px 0px;\n}\n.xp-template-list .xp-template-list-content .item.xsmall .preview {\n flex: 0 0 20px;\n}\n.xp-template-list .xp-template-list-content .item.xsmall .preview .icon {\n width: 20px;\n height: 20px;\n}\n.xp-template-list .xp-template-list-content .item.small .preview {\n flex: 0 0 30px;\n}\n.xp-template-list .xp-template-list-content .item.small .preview .icon {\n width: 30px;\n height: 30px;\n}\n.xp-template-list .xp-template-list-content .item.medium .preview {\n flex: 0 0 60px;\n}\n.xp-template-list .xp-template-list-content .item.medium .preview .icon {\n width: 60px;\n height: 60px;\n}\n@media (max-width: 320px) {\n.xp-template-list .xp-template-list-content .item.large {\n width: 100%;\n}\n}\n.xp-template-list .xp-template-list-content .item.large .preview .icon {\n height: 140px;\n}\n@media (max-width: 320px) {\n.xp-template-list .xp-template-list-content .item.xlarge {\n width: 100%;\n}\n}\n.xp-template-list .xp-template-list-content .item.xlarge .preview .icon {\n height: 200px;\n}\n.xp-template-list .xp-template-list-content .item .preview {\n margin-left: 4px;\n width: 100%;\n}\n.xp-template-list .xp-template-list-content .item .preview .icon {\n width: 100%;\n height: 30px;\n background-position: 50% 50%;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay {\n opacity: 0;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgba(236, 237, 239, 0.95);\n padding: 8px;\n overflow: hidden;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .secondary-icons .info-icon {\n position: absolute;\n top: 10px;\n right: 10px;\n width: 20px;\n height: 20px;\n background-size: contain;\n background-position: 50% 50%;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAT9JREFUWAntVkEOgjAQLMYH+AVeouEF3jhSw7uIXvkE6A/4AQ/gAJ454CwK1sRQ66ahh26y6bbb7kxmW1EIxYZhSOAlvIXbNsIo4YlC4RlicfdKYljFSqDuZmKY0MLaVhKhACwkxjNNHLDTBiSkA0QmCpIUajF7929KrTN2RGhYB/s7KrXMKXOO0JYrT13XIsuysUyapiIMQ1ZJNqG+70XTNCMJirnmXMucI+Sfve6OOdcy5wixn31RFCLP87ETcRyLKIp0XVnMsxVSP4VqvIi6kGQTWqj9V8oT0snmFfIK6RTQ5dl3KAiCGUON50XDwH/tdYKxW6YDMM0TobvpIYv770SosghgWroiQhfTUxb3X8Y3i78NV4DsLQL9UvqGn43DdKmPOHH75ZSlPYRNHD4NSklSC97BbRthEJZUWTwAGoE0S6n9FN8AAAAASUVORK5CYII=");\n opacity: 0.6;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .secondary-icons .info-icon:hover {\n opacity: 1;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .icons {\n position: relative;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .icons .add-icon {\n position: absolute;\n top: 24px;\n left: calc(50% - 20px);\n width: 40px;\n height: 40px;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .icons .add-icon:hover .normal {\n opacity: 0;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .icons .add-icon:hover .over {\n opacity: 1;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .icons .add-icon.show-success .normal {\n opacity: 0;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .icons .add-icon.show-success .over {\n opacity: 0;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .icons .add-icon.show-success .success {\n opacity: 1;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .icons .add-icon .add-icon-normal {\n position: absolute;\n top: 0;\n left: 0;\n width: 40px;\n height: 40px;\n background-size: contain;\n background-position: 50% 50%;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAADJNJREFUeAHtnQuQllUZxxeWO7nECgKFo41dgMnSEWOoEVgjAcVtpKAay6GZCC8TKkjD/Q67iANKMYZZNDXOEEWQ3NrJDE03NbRGC8qhGSe5hq25IMt1t9//23Penvfb777ft+zlPTPPnufcn+f/nvd5z+07W1QUuQiBCIEIgawR6JR1iRYssGTJks5du3btf/78+QGdOnUaQNMDGxoaPox/gfBx+OPwx8hznDwnyF/fguJl1VSrAXrlypUDAOs2pJ8IXQMNhPpDmcookN+BjkEHeRC7eQBPz5s37wThS+4yVaIggi5btux6euVE6HYaGA7lW54G6vwToO+kjR30+L8URJEMKs23YimbXLt2bc/a2trPk0m9thwalLJAY+J7eEfjSCkqa6mPItO4w6TvBPgdffv2fWbGjBln0+TPW3KLAE1v6kTvnYr/CJKXJpFer/4reuXJ91xxcfHh3r17H5k5c2ZdkvyhaPcQBfxgaBQkM/QZqDOUyMm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PE66tshahdMwFfdVhJEt/goksyGndQtdMG7f0FhCc/7ktUd7QRByCLyGRVf7OOfvY8z9AGPuF+PiWzTIzsjnGJJqjUJjZOveIqCP3kEbmQ++IEBLMITVotMD0GzIL8LAxpwmPLPJ86YLt4jnrv2UaYu/6uG/9O5H6OXrkOl0IYQpGNBeWASX3RPYAt0Pl5SsPbbXoCp6edWQIUOq830BC213oe6R9F6N+W+BhkNW51OENZV+mLwyGQVzttGCNaKKUaQf3lxIN4/5mRZs4E7CPUvPqqJnaRn2X0FKFozWylnK9MCOpWjvBMXriNsAVdCOPtgFdy0GtNcExdTDtU6iQycTIH0wEzmBobGrgLCkSYNGNaVxpEPgiktW3/ukaS15my4ycRsaBFvGtTjQVi0dDuTc2i30YIEuuymg8un0oHbwlmynjSoe8iWbQF1SoC2i2vA8cODAKAe6gB9s07PgZXK2C1xu8Ho+33Y/CzlCWVsN0CGpCKxZs6Y3V3aW8iHTlQyBmYCXiagHyHfxYyYFvoaPXg3/L6XGnYaNry4KRwhECEQItEUE/gcX4P560b1oMAAAAABJRU5ErkJggg==");\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .icons .add-icon .add-icon-hover {\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n width: 40px;\n height: 40px;\n background-size: contain;\n background-position: 50% 50%;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAMAAAAPdrEwAAAAk1BMVEUAAAA6les5lOo5les5lOs5lew5l/85les5les1l+8ylPAYnf85les5lOs5les4lO05lOo5les5les2mPI5leo5les5les5lu44lOw5les5les4lew5les5les4le05l+8smf85lew4les5lOs5les4lu05lOo5lO05lew5leo5lOo5lew5les5lOs5lOw6les6letryFnaAAAAMHRSTlMAf/bx5DQIo/sXDQNz12ob7IdhEtLNeStJ579CtIw6HwVdV6qcL8ZSJt25gruSTbB/k/m3AAAD0ElEQVRYw7WZ2YKqMAyGO0hBdllEBncFd8e+/9OdZHpUBkVAYm7GwfrZpn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kJ9bFJJ8g8MHdi1cswc4Mm0TxIkjryu3L+jmVl5zRklLOQXyylK5BOFTDwcXRaCpgdW+Mn/Jz4p+6nrl69MUI0TuyJsXu+uekKaoUbrOfD9bp5GqiP/cdZfr3UWSqeKpqeeke8HjvlPmOj5nRKYZO56s3Dh2VwnfGc38+w/X6qmp5w3KpQAAAABJRU5ErkJggg==");\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .icons .add-icon .add-icon-success {\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n width: 40px;\n height: 40px;\n background-size: contain;\n background-position: 50% 50%;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAAArtJREFUeAHt2z1oFFEUhuGgiH/BQtBCENKYJp2d3XZ2doIQUWOXyi5NovY2IZVRwdLKyki0kaAQQwSxsbIxTYQUKVIkhRj1O2EOHCazZGe5p8jmvXDYu7M73+w+XO7uyc/QEAMBBBBAAAEEEEAAgYETOJ/9jo5nX+AQ5F/Ua1xTXVatqnZUjASBl8r8V9XHhHwiJTCm2lU5dEdzRoLAkjId+X1CPpESuB6QbVXb6mYUFjimvO8qX80vCucTVwncD8jbmts3D0ZhgVPK21D5an5cOJ+4SuBhQDbwM8iUF7AtwrYKX822hTASBOaV6cj2YWgfiozCAleU90fl0J3C+cRVAgu6deR3qOQIXAvINCc5xnupXwP088TrHOno8YBMc5K0FE4odz1AP0q6zpGPnQrI1pxYV8goLGC/ntpS+TeNicL5xFUCcwGZ5iRpWYwol+YkCTfGvtYd3zIW4wPMywnUmxNrvRkJArE5eZaQT6QEbqp8y6A5SVoS1pz8DNAzSdc51LGnC7z6BwH5l+Y0JwH1rOafVEuqk+F42+k5nbCp8m3jXtuAQX/+asD5oHm/K/tJyPk26Gj9vL9bOulvQOpnZV/S+b9DRkdzRoNAE3ablf1Kmb5lvG3I51AQqGMv67FesK/qeY5sLTfNSUDtNu0H+3OAnu8WzPH9Am2wbwRkmpP9lgceacIerp1l/6nwQ+XbxnTtce72KFDH/qLzIvak7jvyuuY0Jz3CNj2tG7b9rVxsTu40ncyxdgKG6CvXbldUs+GY/aSOUUigvrIjfKfQNYipBO7qNgLb/A06OQK3a9ijOZch1QR8G3kKR76ArewL+ZfhCggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCAy8wH9WrLu5IrWOHQAAAABJRU5ErkJggg==");\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .label {\n position: absolute;\n right: 10px;\n bottom: 10px;\n left: 10px;\n text-align: center;\n max-height: 60px;\n overflow: hidden;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .label .title {\n color: #505050;\n margin-bottom: 4px;\n}\n.xp-template-list .xp-template-list-content .item .hover-overlay .label .description2 {\n color: #9d9d9d;\n}\n.xp-template-list .xp-template-list-content .item .info-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: white;\n padding: 8px;\n overflow: hidden;\n}\n.xp-template-list .xp-template-list-content .item .info-overlay .close-btn {\n position: absolute;\n top: 2px;\n right: 6px;\n font-size: 24px;\n font-weight: 100;\n background-color: white;\n}\n.xp-template-list .xp-template-list-content .item .info-overlay .close-btn:hover {\n color: #3A95EB;\n}\n.xp-template-list .xp-template-list-content .item .info-overlay .label {\n position: absolute;\n right: 10px;\n bottom: 10px;\n left: 10px;\n}\n.xp-template-list .xp-template-list-content .item .info-overlay .label > div {\n margin-bottom: 6px;\n}\n.xp-template-list .xp-template-list-content .item .info-overlay .label label {\n font-size: 8px;\n color: black;\n margin: 0;\n padding: 0;\n}\n',""])},function(t,e,n){"use strict";var i=n(20);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,'.xp-template-selector {\n overflow: auto;\n display: flex;\n flex-direction: column;\n}\n.xp-template-selector.legacy .xp-template-selector-content .item {\n flex: 1 1 160px !important;\n}\n.xp-template-selector.legacy .xp-template-selector-content .item .hover-overlay .icons .add-icon {\n left: 70px;\n}\n.xp-template-selector .items-and-folder-wrapper {\n position: relative;\n overflow: auto;\n display: flex;\n flex-direction: column;\n}\n.xp-template-selector .items-and-folder-wrapper .current-folder {\n display: flex;\n flex: 0 0 28px;\n margin-bottom: 4px;\n background-color: #EBEBEB;\n border-radius: 3px;\n padding: 4px;\n}\n.xp-template-selector .items-and-folder-wrapper .current-folder .folder-icon {\n width: 15px;\n height: 15px;\n margin: 4px 0px 4px 4px;\n background-size: contain;\n}\n.xp-template-selector .items-and-folder-wrapper .current-folder .folder-title {\n flex: 1 1 auto;\n margin: 4px 5px;\n font-weight: bold;\n}\n.xp-template-selector .items-and-folder-wrapper .current-folder .close-folder-icon {\n width: 11px;\n height: 11px;\n margin: 5px 10px 4px 4px;\n background-size: contain;\n}\n.xp-template-selector .items-and-folder-wrapper .folder-list {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n z-index: 99;\n padding-bottom: 20px;\n}\n.xp-template-selector .items-and-folder-wrapper .folder-list .available-folders-title {\n padding: 14px 4px 10px 10px;\n font-size: 13px;\n color: #505050;\n}\n.xp-template-selector .items-and-folder-wrapper .folder-list .folder-item {\n background-color: white;\n margin-bottom: 2px;\n min-height: 24px;\n padding: 6px 4px 2px 10px;\n}\n.xp-template-selector .items-and-folder-wrapper .folder-list .folder-item:hover {\n color: black;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content {\n position: relative;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n overflow: auto;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item {\n position: relative;\n display: flex;\n align-items: center;\n padding: 4px 2px;\n background-color: white;\n border-radius: 3px;\n border: 1px solid #EDEFF0;\n flex: 1 1 160px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item:hover {\n border-color: #ACCEEF;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item:hover .hover-overlay {\n opacity: 1;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.xsmall {\n padding: 0px 0px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.xsmall .preview {\n flex: 0 0 20px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.xsmall .preview .icon {\n width: 20px;\n height: 20px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.small .preview {\n flex: 0 0 30px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.small .preview .icon {\n width: 30px;\n height: 30px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.medium .preview {\n flex: 0 0 60px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.medium .preview .icon {\n width: 60px;\n height: 60px;\n}\n@media (max-width: 320px) {\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.large {\n width: 100%;\n}\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.large .preview .icon {\n height: 140px;\n}\n@media (max-width: 320px) {\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.xlarge {\n width: 100%;\n}\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item.xlarge .preview .icon {\n height: 200px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .preview {\n margin-left: 4px;\n width: 100%;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .preview .icon {\n width: 100%;\n height: 30px;\n background-position: 50% 50%;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay {\n opacity: 0;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgba(236, 237, 239, 0.95);\n padding: 8px;\n overflow: hidden;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .secondary-icons .info-icon {\n position: absolute;\n top: 10px;\n right: 10px;\n width: 20px;\n height: 20px;\n background-size: contain;\n background-position: 50% 50%;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAT9JREFUWAntVkEOgjAQLMYH+AVeouEF3jhSw7uIXvkE6A/4AQ/gAJ454CwK1sRQ66ahh26y6bbb7kxmW1EIxYZhSOAlvIXbNsIo4YlC4RlicfdKYljFSqDuZmKY0MLaVhKhACwkxjNNHLDTBiSkA0QmCpIUajF7929KrTN2RGhYB/s7KrXMKXOO0JYrT13XIsuysUyapiIMQ1ZJNqG+70XTNCMJirnmXMucI+Sfve6OOdcy5wixn31RFCLP87ETcRyLKIp0XVnMsxVSP4VqvIi6kGQTWqj9V8oT0snmFfIK6RTQ5dl3KAiCGUON50XDwH/tdYKxW6YDMM0TobvpIYv770SosghgWroiQhfTUxb3X8Y3i78NV4DsLQL9UvqGn43DdKmPOHH75ZSlPYRNHD4NSklSC97BbRthEJZUWTwAGoE0S6n9FN8AAAAASUVORK5CYII=");\n opacity: 0.6;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .secondary-icons .info-icon:hover {\n opacity: 1;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .icons {\n position: relative;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .icons .add-icon {\n position: absolute;\n top: 24px;\n left: calc(50% - 20px);\n width: 40px;\n height: 40px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .icons .add-icon:hover .normal {\n opacity: 0;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .icons .add-icon:hover .over {\n opacity: 1;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .icons .add-icon.show-success .normal {\n opacity: 0;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .icons .add-icon.show-success .over {\n opacity: 0;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .icons .add-icon.show-success .success {\n opacity: 1;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .icons .add-icon .add-icon-normal {\n position: absolute;\n top: 0;\n left: 0;\n width: 40px;\n height: 40px;\n background-size: contain;\n background-position: 50% 50%;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAADJNJREFUeAHtnQuQllUZxxeWO7nECgKFo41dgMnSEWOoEVgjAcVtpKAay6GZCC8TKkjD/Q67iANKMYZZNDXOEEWQ3NrJDE03NbRGC8qhGSe5hq25IMt1t9//23Penvfb777ft+zlPTPPnufcn+f/nvd5z+07W1QUuQiBCIEIgawR6JR1iRYssGTJks5du3btf/78+QGdOnUaQNMDGxoaPox/gfBx+OPwx8hznDwnyF/fguJl1VSrAXrlypUDAOs2pJ8IXQMNhPpDmcookN+BjkEHeRC7eQBPz5s37wThS+4yVaIggi5btux6euVE6HYaGA7lW54G6vwToO+kjR30+L8URJEMKs23YimbXLt2bc/a2trPk0m9thwalLJAY+J7eEfjSCkqa6mPItO4w6TvBPgdffv2fWbGjBln0+TPW3KLAE1v6kTvnYr/CJKXJpFer/4reuXJ91xxcfHh3r17H5k5c2ZdkvyhaPcQBfxgaBQkM/QZqDOUyMmkfJde/pNEifmOKzjQKDIMoTdBUjre1RBRBe0WkVfhvLlVq1Zdjt0fz4MT6OOhvgkqryZuGm3vT5CWt6iCAb169erL6urqliLpDKg4TuJDhCugJ1HwXFxaQYK0042KvwXNgzRyse4CgfXQQvKdtgn54gsCNMJ+FAH3QPKtO4RpqKSH/bClALaNi1+/fn33mpqaabDzIY1srDtIYAKyyc+ryzvQCDkWCbdCJUZSfYQqoScuFcBGlhjrAJ9OYC5kAa/t3Llz+aJFi56LL9OccF6BBkSZiXWQ/wAdcT14Y2sB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9MCOpWjvBMXriNsAVdCOPtgFdy0GtNcExdTDtU6iQycTIH0wEzmBobGrgLCkSYNGNaVxpEPgiktW3/ukaS15my4ycRsaBFvGtTjQVi0dDuTc2i30YIEuuymg8un0oHbwlmynjSoe8iWbQF1SoC2i2vA8cODAKAe6gB9s07PgZXK2C1xu8Ho+33Y/CzlCWVsN0CGpCKxZs6Y3V3aW8iHTlQyBmYCXiagHyHfxYyYFvoaPXg3/L6XGnYaNry4KRwhECEQItEUE/gcX4P560b1oMAAAAABJRU5ErkJggg==");\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .icons .add-icon .add-icon-hover {\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n width: 40px;\n height: 40px;\n background-size: contain;\n background-position: 50% 50%;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAMAAAAPdrEwAAAAk1BMVEUAAAA6les5lOo5les5lOs5lew5l/85les5les1l+8ylPAYnf85les5lOs5les4lO05lOo5les5les2mPI5leo5les5les5lu44lOw5les5les4lew5les5les4le05l+8smf85lew4les5lOs5les4lu05lOo5lO05lew5leo5lOo5lew5les5lOs5lOw6les6letryFnaAAAAMHRSTlMAf/bx5DQIo/sXDQNz12ob7IdhEtLNeStJ579CtIw6HwVdV6qcL8ZSJt25gruSTbB/k/m3AAAD0ElEQVRYw7WZ2YKqMAyGO0hBdllEBncFd8e+/9OdZHpUBkVAYm7GwfrZpn8Sm7KGps15soztIOHzBaMyazzd7HuiYL395jy2unLNlV6kFvn6ynyfO3dP/RvqOzro/lQ/RN+3R/2T670F9vQrNNvmRtFDRr7NBkKa3h5uHhWBNjzy5wP4cSjQlKPWjrzEZSsT13i5LneC368uW4BnkQDLwvqRRva7tFlT8hcOd3jDaTg4+qtZcFxQWrbVWPc2euWiNVgi7s5+x1rYbo9OMeqGjXD/TmZLOaWo0dHrQT+4uHPrILbOKKjk1RAXYyxgb1iAceu+mDO8PZixt2yG8ZlU+lkBzc3fzjgOCKvC36EKc/Y6ZDOYtxo+1TOoTuGsg3Hw9+ZZoViDr7asky0xFT4+juGxzzqaDxD7IaJgMRPW2Q4g3nIkT0AcWne06TzMcAwrGTECGwFozIrmoP9JDMpe9CdMQXceDdqDTVsWJK2iOohsCoGjFYU3MKnQZk+I+Jb9FVRjvRmcG6zebMgl4f31ftGkZjargQv1PtMUV0CHRv+m/53TB00TolHbfbl1K/AHo0Qz8MjqKvIzLfp8DUAQy5gWPQYx/xY10IpFi7ZAzVzm2DWjRWNZOcp0uqJGL2VqhZK4I0aj/IZSKSE1OoQUBX9A34wajVD5BeRo6Qp0CzkaN3CE8p7Qow8QhqiTrKoWff21FDJa6ZFRXSFXzK6uXVzUGq+uYjaip59Bo0P0jzhkidt4oN/GE2wjii+iR0coPgPOTvTowW/2gM2gR0soHBQNarQH2UO6JadG55A9ZEwG1OgAssfnCpgvy67ygbI7k0L51I8FDEqfFj29ZtMtxCMt2rmeQLW+EB4hGlXd124lwaVEuyC9+8vIokNbEU71fvoIyA4cGC89s3D6UMlaxxqeN0r/EVmM8yyvgcTCknctB4sv1YnUsUoNrb5HdY5OHn5JbQh2crEBTrmXJkh6Czpg+LPeTtwJW91lwgbwTzfyFhCTqmZc3oXMFcgY2tM4htr+bXQQx6D683nnxqeSf6xd+1PTZF7SN5nREmyNT9u3xqd4v5DUHCbVdxr6J7ye2dVmrqFou5lzvIbYhA3SgI6LOzaeeHhEJ+rNnGgLhMdaI1/EkJ9bFJJ8g8MHdi1cswc4Mm0TxIkjryu3L+jmVl5zRklLOQXyylK5BOFTDwcXRaCpgdW+Mn/Jz4p+6nrl69MUI0TuyJsXu+uekKaoUbrOfD9bp5GqiP/cdZfr3UWSqeKpqeeke8HjvlPmOj5nRKYZO56s3Dh2VwnfGc38+w/X6qmp5w3KpQAAAABJRU5ErkJggg==");\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .icons .add-icon .add-icon-success {\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n width: 40px;\n height: 40px;\n background-size: contain;\n background-position: 50% 50%;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAAArtJREFUeAHt2z1oFFEUhuGgiH/BQtBCENKYJp2d3XZ2doIQUWOXyi5NovY2IZVRwdLKyki0kaAQQwSxsbIxTYQUKVIkhRj1O2EOHCazZGe5p8jmvXDYu7M73+w+XO7uyc/QEAMBBBBAAAEEEEAAgYETOJ/9jo5nX+AQ5F/Ua1xTXVatqnZUjASBl8r8V9XHhHwiJTCm2lU5dEdzRoLAkjId+X1CPpESuB6QbVXb6mYUFjimvO8qX80vCucTVwncD8jbmts3D0ZhgVPK21D5an5cOJ+4SuBhQDbwM8iUF7AtwrYKX822hTASBOaV6cj2YWgfiozCAleU90fl0J3C+cRVAgu6deR3qOQIXAvINCc5xnupXwP088TrHOno8YBMc5K0FE4odz1AP0q6zpGPnQrI1pxYV8goLGC/ntpS+TeNicL5xFUCcwGZ5iRpWYwol+YkCTfGvtYd3zIW4wPMywnUmxNrvRkJArE5eZaQT6QEbqp8y6A5SVoS1pz8DNAzSdc51LGnC7z6BwH5l+Y0JwH1rOafVEuqk+F42+k5nbCp8m3jXtuAQX/+asD5oHm/K/tJyPk26Gj9vL9bOulvQOpnZV/S+b9DRkdzRoNAE3ablf1Kmb5lvG3I51AQqGMv67FesK/qeY5sLTfNSUDtNu0H+3OAnu8WzPH9Am2wbwRkmpP9lgceacIerp1l/6nwQ+XbxnTtce72KFDH/qLzIvak7jvyuuY0Jz3CNj2tG7b9rVxsTu40ncyxdgKG6CvXbldUs+GY/aSOUUigvrIjfKfQNYipBO7qNgLb/A06OQK3a9ijOZch1QR8G3kKR76ArewL+ZfhCggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCAy8wH9WrLu5IrWOHQAAAABJRU5ErkJggg==");\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .label {\n position: absolute;\n right: 10px;\n bottom: 20px;\n left: 10px;\n text-align: center;\n max-height: 60px;\n overflow: hidden;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .label .title {\n color: #505050;\n margin-bottom: 4px;\n font-size: 13px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .hover-overlay .label .description2 {\n color: #9d9d9d;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .info-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: white;\n padding: 8px;\n overflow: hidden;\n z-index: 99;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .info-overlay .close-btn {\n position: absolute;\n top: 2px;\n right: 6px;\n font-size: 24px;\n font-weight: 100;\n background-color: white;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .info-overlay .close-btn:hover {\n color: #3A95EB;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .info-overlay .label {\n position: absolute;\n right: 10px;\n bottom: 10px;\n left: 10px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .info-overlay .label > div {\n margin-bottom: 6px;\n}\n.xp-template-selector .items-and-folder-wrapper .xp-template-selector-content .item .info-overlay .label .label-title {\n font-size: 9px;\n font-weight: bold;\n margin: 0;\n padding: 0;\n}\n',""])},function(t,e,n){"use strict";var i=n(23);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,'.xp-view-title {\n display: flex;\n}\n.xp-view-title .logo {\n width: 23px;\n height: 23px;\n flex: 0;\n background-size: contain;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAACKCAYAAAB1h9JkAAAAAXNSR0IArs4c6QAABuZJREFUeAHtnU2ME2UYx59ndrdbyO7y1Qp+XEx0/eCAiXGFrAfDw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Zw/uyfTKqLxNTBvcznpq7QRj8XTAfYJcYZFPeA5vP7w2fbWRiluCUl28fFdmtTtXrXHXMA+7wpSwpJh4bvUcrPvpgLv2GHVnhqyDI+uyO1Uq0ddHN6YPNtvtv9SaMTLopkFVAAAAAElFTkSuQmCC");\n}\n.xp-view-title .title {\n color: #505050;\n flex: 1;\n font-weight: bold;\n font-size: 12px;\n margin-bottom: 2px;\n}\n',""])},function(t,e,n){"use strict";var i=n(26);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".xp-section-title {\n font-size: 9px;\n color: #9F9F9F;\n letter-spacing: 1px;\n margin-bottom: 10px;\n margin-top: 16px;\n padding-top: 10px;\n border-top: 2px solid #E4E4E4;\n}\n",""])},function(t,e,n){"use strict";var i=n(29);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".xp-color-picker .existing-colors {\n min-height: 30px;\n max-height: 120px;\n overflow: auto;\n margin-top: 8px;\n margin-bottom: 12px;\n display: flex;\n flex-wrap: wrap;\n}\n.xp-color-picker .existing-colors .color {\n flex: 1 1 100px;\n overflow: hidden;\n display: flex;\n align-items: center;\n background-color: white;\n border-radius: 3px;\n border: 1px solid white;\n padding: 3px;\n margin: 1px;\n}\n.xp-color-picker .existing-colors .color:hover {\n border: 1px solid #BFC2C6;\n}\n.xp-color-picker .existing-colors .color .preview {\n flex: 0 0 20px;\n width: 20px;\n height: 20px;\n margin-right: 5px;\n border: 1px solid #EEE;\n}\n",""])},function(t,e,n){"use strict";n.r(e);var i=n(55),o=n(32);for(var a in o)"default"!==a&&function(t){n.d(e,t,function(){return o[t]})}(a);n(98);var s=n(0),l=Object(s.a)(o.default,i.a,i.b,!1,null,null,null);l.options.__file="src/modules/SmartLayout/ui/views/DefaultView.vue",e.default=l.exports},function(t,e,n){"use strict";n.r(e);var i=n(57),o=n(34);for(var a in o)"default"!==a&&function(t){n.d(e,t,function(){return o[t]})}(a);n(87);var s=n(0),l=Object(s.a)(o.default,i.a,i.b,!1,null,null,null);l.options.__file="src/modules/SmartLayout/ui/views/HelloView.vue",e.default=l.exports},function(t,e,n){"use strict";var i=n(36);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"#hello {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 8;\n background-color: rgba(247, 247, 247, 0.8);\n}\n#hello .card {\n position: relative;\n text-align: center;\n background-color: white;\n padding: 30px 0 30px 0;\n border-radius: 7px;\n}\n#hello .card .header {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n height: 32px;\n border-bottom: 2px solid #F7F7F7;\n}\n#hello .card .header .close-btn {\n position: absolute;\n top: 8px;\n right: 10px;\n width: 14px;\n height: 14px;\n background-size: contain;\n opacity: 0.7;\n}\n#hello .card .header .close-btn:hover {\n opacity: 1;\n}\n#hello .card .entry-separator {\n border-top: 2px solid #F7F7F7;\n}\n#hello .card .entry {\n padding: 14px;\n}\n#hello .card .entry .title {\n font-size: 18px;\n margin-bottom: 4px;\n}\n#hello .card .entry .link-preview {\n width: 100%;\n margin: 6px auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n#hello .card .entry .link-preview .image {\n width: 100%;\n height: 80px;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n margin-bottom: 5px;\n}\n",""])},function(t,e,n){"use strict";n.r(e);var i=n(56),o=n(37);for(var a in o)"default"!==a&&function(t){n.d(e,t,function(){return o[t]})}(a);n(96);var s=n(0),l=Object(s.a)(o.default,i.a,i.b,!1,null,null,null);l.options.__file="src/modules/SmartLayout/ui/views/DefaultView/MainView.vue",e.default=l.exports},function(t,e,n){"use strict";n.r(e);const i=n(5).default,o=n(94).default;e.default=class{static async open(t,e,n){return new Promise((a,s)=>{try{e.width=e.width||400,e.height=e.height||200,"string"==typeof(t=t||o)&&("DefaultMessageDialog"==t?t=o:console.log("[ DialogFactory ]","Unknown dialogComponent: ",t));const s={};s.node=document.createElement("dialog"),s.node.innerHTML=`\n <div id="dialog-wrapper" style="width: ${e.width}px; height: ${e.height}px; overflow: auto;">\n <div id="dialog-app"></div>\n </div>\n `,document.appendChild(s.node),s.vue=new i({el:"#dialog-app",render:e=>e(t,{props:{data:n}})}),s.vue.$el.style.width="100%",s.vue.$el.style.height="100%",s.node.showModal().catch(t=>{}),s.vue.$emit("activate"),s.node.addEventListener("close",function t(){s.node.removeEventListener("close",t),s.vue.$destroy(),a()})}catch(t){console.log("[ openDialog() ] Error: ",t)}})}}},,,,function(t,e,n){"use strict";n.r(e);var i=n(46),o=n(39);for(var a in o)"default"!==a&&function(t){n.d(e,t,function(){return o[t]})}(a);var s=n(0),l=Object(s.a)(o.default,i.a,i.b,!1,null,null,null);l.options.__file="shell/src/ui/dialogs/DefaultMessageDialog.vue",e.default=l.exports},function(t,e){t.exports=require("os")},function(t,e,n){"use strict";var i=n(41);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,'#smartlayout--default-view--main-view .input > * {\n width: 100%;\n margin: 4px 0;\n}\n#smartlayout--default-view--main-view .input .label {\n margin: 14px 0 2px 0;\n}\n#smartlayout--default-view--main-view .actions {\n display: flex;\n flex-direction: column;\n}\n#smartlayout--default-view--main-view .actions .action {\n display: flex;\n align-items: center;\n background-color: white;\n border-radius: 4px;\n padding: 6px;\n margin: 0 4px 4px 0;\n}\n#smartlayout--default-view--main-view .actions .action .icon {\n flex: 0 0 17px;\n width: 17px;\n height: 17px;\n background-color: white;\n background-size: contain;\n background-position: center;\n background-repeat: no-repeat;\n margin-right: 10px;\n}\n#smartlayout--default-view--main-view .actions .action .activated {\n flex: 0 0 20px;\n text-align: center;\n color: #3A95EB;\n}\n#smartlayout--default-view--main-view .actions .action:hover .label {\n color: black;\n}\n#smartlayout--default-view--main-view .inspector .icon {\n width: 24px;\n height: 24px;\n background-size: contain;\n background-repeat: no-repeat;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABOCAYAAACOqiAdAAAAAXNSR0IArs4c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8hrhX4NcKtZiBsY2PjGurYy+ZWIEPwMY2+VtiAngUFthlBE2N9J37dyBPSV4GHqUFdl2APegr2ND4SK0MPBkLdHIDSjBUlKY83ZQCLMECnMQuTlLlyyIJU2o0BfJl8p8fvPY/b6ulPdctWFfXavp0l/sS7msdBgJegPdAAkmoB2X/AwI8nTXrqRXfAAAAAElFTkSuQmCC");\n}\n',""])},function(t,e,n){"use strict";var i=n(42);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".dialog {\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n.dialog .content {\n position: absolute;\n top: 70px;\n left: 34px;\n right: 34px;\n bottom: 80px;\n overflow: auto;\n font-size: 12px;\n color: #5C5C5C;\n}\n.dialog .content * {\n color: #5C5C5C;\n}\n.dialog .content .shy {\n color: #9F9F9F;\n}\n.dialog footer {\n position: absolute;\n left: 30px;\n right: 30px;\n bottom: 20px;\n}\n#smartlayout--default-view {\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n#smartlayout--default-view .section-title {\n flex: 0 0 20px;\n}\n",""])},function(t,e,n){"use strict";var i=n(43);n.n(i).a},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"#panel {\n height: 100%;\n overflow: auto;\n}\n",""])},function(t,e){t.exports=require("application")},function(t,e,n){"use strict";n.r(e);var i=n(5),o=n(59),a=n(60),s=n(61),l=n(62),r=n(63),c=n(64),p=n(65),d=n(66),u=n(67),m=n(45);const g=n(3).storage.localFileSystem;n(3).storage.localFileSystem;const h=n(3).storage.localFileSystem,f=n(102);var x=n(4);(class{static async install(t,e,n){e&&console.log("(DEBUG) InstallService::forceInstall is activated. Disable this in production mode...");const i=await g.getDataFolder(),o="installed_"+t.version;await i.getEntry(o).catch(()=>{})&&!e||await this._install(t,n)}static async _install(t,e){const n=await g.getDataFolder(),i=(await g.getPluginFolder(),"installed_"+t.version),o=await n.createEntry(i,{overwrite:!0}),a=(new Date).getTime()+"$"+Math.round(1e4*Math.random());await o.write(a),await m.default.deepCopyFilesFolder(),e&&await e.install(t)}}).install(x.default,!1,class{static async install(t){try{console.log(`[ ${t.id} ] Custom Install`)}catch(e){console.error(`[ ${t.id} ]`,e)}}});const v={default:{}};e.default=class{static panels(){return{default:{show:function(t){const e=v.default;e.node||(e.node=document.createElement("panel"),e.node.innerHTML='<div id="app"></div>',class{static async launch(t){const e=await h.getDataFolder();await e.getEntry("nolog").catch(()=>{})||this._log(t)}static async _log(t){try{const e=await h.getDataFolder(),n=await e.getEntry(`installed_${t.version}`).catch(()=>{}),i=await n.read().catch(()=>{}),o="https://tourdexd.com/api_check_updates/?"+`plugin_name=${t.id}`+`&v=${t.version}`+`&lang=${f.appLanguage}`+`&id=${i}`;await fetch(o).then(function(t){return t.json()})}catch(t){}}}.launch(x.default)),t.node.appendChild(e.node),e.vue||(class{static register(t){t.component("xp-panel-title",a.default),t.component("xp-view-title",c.default),t.component("xp-template-list",l.default),t.component("xp-template-selector",r.default),t.component("xp-section-title",p.default),t.component("xp-list",s.default),t.component("xp-color-picker",d.default)}}.register(i.default),i.default.component("default-panel",u.default),e.vue=new i.default({el:"#app",render:t=>t(o.default,{props:{}})})),e.vue.$emit("activate")},hide:function(t){const e=v.default;t.node.removeChild(e.node)},update:function(){v.default.vue.$emit("update")}}}}}}]).default;