-
-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathmain.js
1 lines (1 loc) · 29.5 KB
/
main.js
1
const _0x18cf=['row\x20licensed-show','.row.error','application/json','localFileSystem','locked','Grids+\x20|\x20','onfocus','storage','Proportions','Num.\x20of\x20Col.','remove','\x0a\x20\x20#noSel\x20form{\x0a\x20\x20\x20\x20width:\x20375px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#noSel\x20form\x20>\x20*\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#noSel\x20h1{\x0a\x20\x20\x20\x20margin-bottom:\x2015px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#noSel\x20footer{\x0a\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#noSel\x20form\x20>\x20*\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20}\x0a','setRequestHeader','https://sugarsweetapps.com/keycheck/?secret_key=5c795d51a88a07.89151796&slm_action=slm_activate&license_key=','class','dialog','\x0a\x20\x20#firstTime\x20form{\x0a\x20\x20\x20\x20width:\x20375px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#firstTime\x20h1{\x0a\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20color:\x20rgba(22,\x20171,\x2022,\x200.85);\x0a\x20\x20\x20\x20margin-bottom:\x2015px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#firstTime\x20.info,\x0a\x20\x20#firstTime\x20.info\x20+\x20div{\x0a\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20font-size:\x2013px;\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20margin-bottom:\x2020px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#firstTime\x20.tip{\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20color:\x20rgba(0,\x200,\x200,\x200.65);\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#firstTime\x20form\x20footer{\x0a\x20\x20\x20\x20margin-bottom:\x20-15px;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20}\x0a','push','\x0a\x20\x20#trial-final-popup\x20{\x0a\x20\x20\x20\x20width:\x20430px;\x0a\x20\x20\x20\x20padding:\x2015px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#trial-final-popup\x20form{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-flow:\x20row\x20nowrap;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20text-align:center;\x0a\x20\x20\x20\x20width:\x20400px;\x0a\x20\x20\x20\x20padding:\x2015px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20\x20#trial-final-popup\x20h2{\x0a\x20\x20\x20\x20font-size:\x2016px;\x0a\x20\x20\x20\x20font-weight:\x20normal;\x0a\x20\x20\x20\x20opacity:\x20.65;\x0a\x20\x20\x20\x20margin-top:\x2015px;\x0a\x20\x20\x20}\x0a\x20\x20\x0a\x20\x20#trial-final-popup\x20.heading\x20>\x20*\x20{\x0a\x20\x20\x20\x20display:\x20block;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#trial-final-popup\x20.buttons-holder{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20}\x0a\x20\x20\x0a\x0a\x20\x20#trial-final-popup\x20.buttons-holder\x20button{\x0a\x20\x20\x20\x20width:\x20110px;\x0a\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#trial-final-popup\x20footer{\x0a\x20\x20\x20\x20width:\x20100px;\x0a\x20\x20\x20\x20margin:\x200px\x20auto\x200;\x0a\x20\x20}\x0a','row','marg','send','img','src','querySelector','row\x20info','.row.license-alert','input','focusedArtboard','div','onerror','forEach','row\x20input-holder','ontimeout','usesInfo','primary','columns','Align_l_2','head','trial-info-holder','heading','write','Licensed\x20|\x20v3.41','click','read','px\x20|\x20','Selected\x20Object','https://sugarsweetapps.com/grids-plus/?utm_source=Plugin&utm_medium=Direct&utm_campaign=Get%20License%20Button%20Enter%20License%20Page','\x0a\x20\x20#license-popup\x20form\x20{\x0a\x20\x20\x20\x20width:\x20375px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#license-popup\x20.heading{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-flow:\x20row\x20nowrap;\x0a\x20\x20\x20\x20justify-content:\x20space-between;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#license-popup\x20.input-holder,\x0a\x20\x20#license-popup\x20.input-holder\x20input{\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#license-popup\x20.input-holder\x20input{\x0a\x20\x20\x20\x20margin:\x200;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#license-popup\x20.license-label{\x0a\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#license-popup\x20.license-alert{\x0a\x20\x20\x20\x20display:\x20none;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#license-popup\x20.license-alert.open{\x0a\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20color:\x20red;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#license-popup\x20.license-alert.open.success{\x0a\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20color:\x20rgba(22,\x20171,\x2022,\x200.85);\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#license-popup\x20footer{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20margin:\x2020px\x200\x20-10px;\x0a\x20\x20}\x0a','Grids\x20Plus+\x20Trial\x20Expired','cta','Accept','uses','selWidth','error','row\x20unlicensed-show','GET','disabled','secondary','Grids\x20Plus+','type','Ungroup\x20the\x20grid\x20layer,\x20to\x20be\x20able\x20to\x20snap\x20to\x20grid\x20objects.','footer','Get\x20Your\x20Key','uxp','items','row\x20license-alert','classList','body','group','licensed','row\x20heading','success','uses-info','form','localBounds','col','title_l\x20marg_2','onclick','marg_4','getElementById','addChild','row\x20error','Select\x20a\x20Grid','margins','question-mark','select','fill','style','createElement','center','floor','Select\x20&\x20Generate...','rgba(242,82,82,.38)','Validated','px\x20Gutter\x20(','children','scenegraph','data.json','onchange','*\x20This\x20explanation\x20is\x20shown\x20only\x20once','uxp-variant','stringify','marg_3','result','width','license-button','uses-info\x20expiring','href','Activation','add','setAttribute','appendChild','Add\x20a\x20grid(s)\x20on\x20any\x20Object,\x20or\x20Artboard','true','\x20uses','®istered_domain=%22','px\x20\x20\x20(\x20','name','Cancel','showModal','px\x20Column)','oninput','title_l','translation','innerHTML','Trial\x20version\x20\x20|','https://sugarsweetapps.com/grids-plus/?utm_source=Plugin&utm_medium=Direct&utm_campaign=Help%20Button','message','license-popup','placeholder','getDataFolder','dialogForm','Activation\x20key...','getEntry','assets/grid.png','GENERATE\x20LIST','insertionParent','License','previousSibling','commands','onload','buttons-holder','open','./h','onblur','uxp-quiet','row\x20ml','Side\x20Margins','\x20uses\x20left','createTextNode','At\x20least\x20one\x20object\x20needs\x20to\x20be\x20selected','button','https://sugarsweetapps.com/grids-plus/?utm_source=Plugin&utm_medium=Direct&utm_campaign=Mine%20Get%20License%20Button','value','split','globalBounds','TIP','Enter\x20Key','text/css','divider\x20row','but_generate','close','Generated','firstTime','span','parse','noSel','\x20|\x20v3.41','Close','removeAttribute','exports','createEntry','height','Cancelled','Grids\x20(Gutters\x20|\x20Column\x20width)','trial-final-popup','getElementsByTagName','license-label'];(function(_0xd89ae5,_0xcb7c3f){const _0x17bc0c=function(_0x55a00a){while(--_0x55a00a){_0xd89ae5['push'](_0xd89ae5['shift']());}};_0x17bc0c(++_0xcb7c3f);}(_0x18cf,0xe2));const _0xe424=function(_0xd89ae5,_0xcb7c3f){_0xd89ae5=_0xd89ae5-0x0;let _0x17bc0c=_0x18cf[_0xd89ae5];return _0x17bc0c;};const {Rectangle,Color}=require(_0xe424('0x32'));const commands=require(_0xe424('0x5d'));const fs=require(_0xe424('0x11'))[_0xe424('0x8b')][_0xe424('0x87')];const h=require(_0xe424('0x61'));const css='\x0a\x20\x20form\x20{\x0a\x20\x20\x20\x20width:\x20440px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.but_generate\x20{\x0a\x20\x20\x20\x20width:\x20200px;\x0a\x20\x20}\x0a\x0a\x20\x20.center\x20{\x0a\x20\x20\x20\x20margin:\x2015px\x20auto\x200px\x20auto;\x0a\x20\x20}\x0a\x0a\x20\x20h1\x20{\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20font-size:\x2018px;\x0a\x20\x20\x20\x20line-height:\x2018px;\x0a\x20\x20\x20\x20letter-spacing:\x200;\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20left:\x20-8px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20input\x20{\x0a\x20\x20\x20\x20width:\x2062px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20select\x20{\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20left:\x202px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.disabled{\x0a\x20\x20\x20\x20opacity:\x20.4;\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20select.disabled{\x0a\x20\x20\x20\x20opacity:\x20.4;\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20\x0a\x20\x20label\x20>\x20div\x20{\x0a\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20margin-top:\x2010px;\x0a\x20\x20\x20\x20margin-left:\x2010px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.ml,\x0a\x20\x20#selWidth\x20{\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20left:\x20-8px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20#selWidth{\x0a\x20\x20\x20\x20left:\x20-4px;\x0a\x20\x20\x20\x20top:\x20-5px;\x0a\x20\x20}\x0a\x0a\x20\x20.marg\x20{\x0a\x20\x20\x20\x20margin-right:\x2010px;\x0a\x20\x20}\x0a\x20\x0a\x20\x20.marg_2\x20{\x0a\x20\x20\x20\x20margin:\x200px\x200px\x2010px\x2010px;\x0a\x20\x20\x20\x20\x0a\x20\x20}\x0a\x0a\x20\x20.marg_3\x20{\x0a\x20\x20\x20\x20margin:\x200px\x200px\x200px\x2014px;\x0a\x20\x20}\x0a\x0a\x20\x20.marg_4\x20\x20{\x0a\x20\x20\x20\x20margin:\x200px\x200px\x200px\x2014px;\x0a\x20\x20\x20\x20width:\x20440px;\x0a\x20\x20}\x0a\x0a\x0a\x20\x20.Align_l\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.Align_l_2\x20{\x0a\x20\x20\x20\x20margin-right:\x20auto;\x0a\x20\x20\x20\x20\x0a\x20\x20}\x0a\x0a\x20\x20.title_l{\x0a\x20\x20\x20\x20font-size:\x2013px;\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20color:\x20rgba(0,0,0,.85);\x0a}\x0a\x0a\x20\x20.title-label{\x0a\x20\x20\x20\x20font-size:\x2013px;\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20color:\x20rgba(0,0,0,.85);\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.row\x20{\x0a\x20\x20\x20\x20margin-top:\x2010px;\x0a\x20\x20}\x0a\x0a\x20\x20/*\x0a\x20\x20.row.calculate-button{\x0a\x20\x20\x20\x20margin:\x200\x20auto;\x0a\x20\x20\x20\x20background:\x20#1492E6;\x0a\x20\x20\x20\x20color:\x20#fff;\x0a\x20\x20\x20\x20width:\x20110px;\x0a\x20\x20\x20\x20height:\x2032px;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20border-radius:\x202%;\x0a\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20}\x0a\x20\x20*/\x0a\x0a\x20\x20.trial-info-holder,\x0a\x20\x20.licensed-info-holder{\x0a\x20\x20\x20\x20background:\x20#E5E5E5;\x0a\x20\x20\x20\x20padding:\x203px\x2012px\x205px\x2016px;\x0a\x20\x20\x20\x20border-radius:\x205px;\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20height:\x2050px;\x0a\x20\x20\x20\x20margin-right:\x20-8px;\x0a\x20\x20\x20\x20margin-bottom:\x2020px;\x0a\x20\x20\x20\x20flex-direction:\x20row\x20nowrap;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20justify-content:\x20space-between;\x0a\x20\x20}\x0a\x0a\x20\x20.trial-info-holder\x20span,\x0a\x20\x20.trial-info-holder\x20.license-button{\x0a\x0a\x20\x20}\x0a\x20\x20\x20\x0a\x20\x20.trial-info-holder\x20.license-button{\x0a\x20\x20\x20\x20/*\x0a\x0a\x20\x20\x20\x20line-height:\x2050px;\x0a\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20*/\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20\x20\x20padding-top:\x204px;\x0a\x20\x20\x20\x20font-weight:\x20400;\x0a\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20width:\x20100px;\x0a\x20\x20\x20\x20height:\x2033px;\x0a\x20\x20\x20\x20color:\x20#2680EB;\x0a\x20\x20\x20\x20border:\x202px\x20solid\x20#2680EB;\x0a\x20\x20\x20\x20border-radius:\x2016px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.trial-info-holder\x20.license-button:hover{\x0a\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.trial-info-holder\x20div{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-flow:\x20row\x20nowrap;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.row.error\x20{\x0a\x20\x20\x20opacity:\x200;\x0a\x20\x20\x20margin-left:\x2010px;\x0a\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20color:\x20red;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.row.error.open\x20{\x0a\x20\x20\x20\x20opacity:\x201;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20a.question-mark{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20width:\x2020px;\x0a\x20\x20\x20\x20height:\x2020px;\x0a\x20\x20\x20\x20right:\x2076px;\x0a\x20\x20\x20\x20top:\x201px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.question-mark\x20img{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20height:\x20100%;\x0a\x20\x20\x20\x20top:\x20-1px;\x0a\x20\x20\x20\x20left:\x20-85px;\x0a\x20\x20\x20\x20\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.inputs-holder{\x0a\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.inputs-holder\x20>\x20div{\x0a\x20\x20\x20\x20margin-left:\x20-6px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.inputs-holder\x20>\x20.margs-div{\x0a\x20\x20\x20\x20margin-left:\x2025px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.inputs-holder\x20>\x20div\x20span{\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20left:\x205px;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.title-label\x20+\x20span{\x0a\x20\x20\x20\x20font-style:\x20italic;\x20\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.trial-info-holder\x20.expiring{\x0a\x20\x20\x20\x20color:\x20red;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20form\x20>\x20p{\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20line-height:\x2020px;\x0a\x20\x20\x20\x20font-size:\x2013px;\x0a\x20\x20\x20\x20left:\x20-8px;\x0a\x20\x20\x20\x20top:\x20-8px;\x0a\x20\x20\x20\x20/*\x20font-style:\x20italic;\x20*/\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20letter-spacing:\x200;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20footer{\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.divider{\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20height:\x202px;\x0a\x20\x20\x20\x20background:\x20#eee;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.licensed\x20footer.row.licensed-show,\x0a\x20\x20.licensed\x20.licensed-info-holder{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20footer.row.licensed-show,\x0a\x20\x20.licensed\x20footer.unlicensed-show,\x0a\x20\x20.licensed\x20.trial-info-holder,\x0a\x20\x20.licensed-info-holder{\x0a\x20\x20\x20\x20display:\x20none;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.licensed-info-holder{\x0a\x20\x20\x20\x20padding:\x200;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.licensed-info-holder\x20img{\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20height:\x20100%;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20.licensed-show\x20img{\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20top:\x203px;\x0a\x20\x20\x20\x20width:\x2016px;\x0a\x20\x20\x20\x20height:\x2016px;\x0a\x20\x20\x20\x20object-fit:\x20contain;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20footer\x20>\x20a{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20left:\x20-2px;\x0a\x20\x20\x20\x20color:\x20rgba(0,0,0,.65);\x0a\x20\x20\x20\x20font-size:\x2013px;\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20}\x0a\x20\x20\x0a\x20\x20footer\x20div{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-flow:\x20row\x20nowrap;\x0a\x20\x20\x20\x20font-weight:\x20400;\x0a\x20\x20\x20\x20color:\x20rgba(0,0,0,.65);\x0a\x20\x20}\x0a';const noSelCss=_0xe424('0x8f');const firstTimeCss=_0xe424('0x94');const licenseCss=_0xe424('0x1');const trialFinCss=_0xe424('0x96');let profileUses=0x0,licensed,firstTime,licensePopup,trialFinPopup,dialog,margins,columns,select,calculate;async function loadProfileData(){const _0x2e8b4b=await fs['getDataFolder']();try{let _0x331daa=await _0x2e8b4b[_0xe424('0x57')]('data.json'),_0x1cd393=await _0x331daa[_0xe424('0xb0')](),_0x45ce60=JSON[_0xe424('0x77')](_0x1cd393);profileUses=_0x45ce60[_0xe424('0x5')];firstTime=_0x45ce60[_0xe424('0x75')];licensed=_0x45ce60[_0xe424('0x17')];}catch(_0x287d49){try{let _0x413c85=await _0x2e8b4b[_0xe424('0x7d')]('data.json',{'overwrite':!![]});await _0x413c85[_0xe424('0xad')](JSON[_0xe424('0x37')]({'uses':0x7,'firstTime':!![],'licensed':![]}));profileUses=0x7;firstTime=!![];licensed=![];}catch(_0x257fe3){}}}async function getDialog(_0xfc57f3){if(!_0xfc57f3[_0xe424('0x12')][0x0]){await noSelectionAlert();return;}let _0x1cbe11=await getSelectedItemWidth(_0xfc57f3);await loadProfileData();if(!licensed&&parseInt(profileUses)===0x0){await openTrialFinish();return;}async function _0x201859(_0x5a4179,_0x29b765,_0xfc57f3){if(document[_0xe424('0x21')](_0xe424('0x6'))){_0x1cbe11=parseInt(document['getElementById'](_0xe424('0x6'))[_0xe424('0x4e')]);}let _0x468fe0={'width':_0x1cbe11,'margins':_0x5a4179['value'],'columns':_0x29b765[_0xe424('0x6b')]};let _0x2d8276=await calc_widths(_0x468fe0);await setSelectOptions(_0x2d8276,_0xfc57f3);}let _0x489d8c=licensed?_0xe424('0x17'):'';if(dialog==null){let _0x5c40a6=document[_0xe424('0x2a')](_0xe424('0x29')),_0x130ef1=document['head']||document[_0xe424('0x82')](_0xe424('0xaa'))[0x0],_0x492199=profileUses<=0x6?_0xe424('0x3c'):_0xe424('0x1a');_0x5c40a6['type']=_0xe424('0x70');_0x5c40a6[_0xe424('0x41')](document['createTextNode'](css));_0x130ef1['appendChild'](_0x5c40a6);dialog=h(_0xe424('0x93'),h(_0xe424('0x1b'),{'class':_0x489d8c,'id':_0xe424('0x55')},h('div',{'class':_0xe424('0xab')},h(_0xe424('0xa1'),h(_0xe424('0x76'),_0xe424('0x4f')),h(_0xe424('0x76'),{'class':_0x492199,'id':_0xe424('0xa6')},'\x20'+profileUses+_0xe424('0x44'))),h('a',{'class':_0xe424('0x3b'),'href':_0xe424('0x6a')},_0xe424('0x10'))),h(_0xe424('0xa1'),{'class':'licensed-info-holder'},h(_0xe424('0x9a'),{'src':_0xe424('0x58')})),h('h1',_0xe424('0xc')),h('p',{'class':_0xe424('0x26')},_0xe424('0x42'),h('a',{'class':_0xe424('0x26'),'href':_0xe424('0x50')},h('img',{'src':'assets/question.png'}))),h(_0xe424('0xa1'),{'class':'row\x20ml\x20Align_l'},h('div',{'class':_0xe424('0xa9')},h('div',{'class':_0xe424('0x1e')},_0xe424('0xb2')),h('div',{'id':_0xe424('0x6'),'class':_0xe424('0x38')},_0x1cbe11+_0xe424('0x46')+_0xfc57f3[_0xe424('0x12')][0x0][_0xe424('0x47')]+'\x20)')),h(_0xe424('0xa1'),{'class':_0xe424('0x98')},h('div',{'class':_0xe424('0x4c')},_0xe424('0x8d')),columns=h(_0xe424('0x9f'),{'value':'0','onfocus'(){disableSelect();},'oninput'(){disableSelect();},'onblur'(){enableSelect(columns);}})),h(_0xe424('0xa1'),h(_0xe424('0xa1'),{'class':_0xe424('0x4c')},_0xe424('0x65')),margins=h(_0xe424('0x9f'),{'value':'0','onfocus'(){disableSelect();},'oninput'(){disableSelect();},'onblur'(){enableSelect(columns);}}))),h(_0xe424('0xa1'),{'class':_0xe424('0x71')}),h(_0xe424('0xa1'),{'class':_0xe424('0x2b')},calculate=h('button',{['uxp-variant']:'cta','class':_0xe424('0x72')},_0xe424('0x59'))),h('div',{'class':_0xe424('0x64')},h(_0xe424('0xa1'),{'class':_0xe424('0xa9')},h(_0xe424('0xa1'),{'class':_0xe424('0x38')},_0xe424('0x80')),select=h(_0xe424('0x27'),{'class':_0xe424('0x20'),'name':_0xe424('0x8c'),'onchange'(){return createRect(select[_0xe424('0x6b')],_0xfc57f3,columns['value'],margins[_0xe424('0x6b')]);}}))),h(_0xe424('0xa1'),{'class':_0xe424('0x23')},_0xe424('0x24')),h(_0xe424('0xf'),{'class':_0xe424('0x8')},h('a',{'onclick'(){dialog[_0xe424('0x73')](_0xe424('0x7f'));}},_0xe424('0x48')),h('div',h('a',{'onclick'(){return openLicense();}},_0xe424('0x6f')),_0xe424('0x79'))),h('footer',{'class':_0xe424('0x84')},h('a',{'onclick'(){dialog[_0xe424('0x73')](_0xe424('0x7f'));}},_0xe424('0x48')),h(_0xe424('0xa1'),h(_0xe424('0x9a'),{'src':'assets/heart.png'}),h(_0xe424('0x76'),_0xe424('0xae'))))));}else{await offAlert();document[_0xe424('0x21')](_0xe424('0x6'))[_0xe424('0x4e')]=_0x1cbe11+_0xe424('0xb1')+_0xfc57f3['items'][0x0][_0xe424('0x47')];document[_0xe424('0x21')](_0xe424('0xa6'))[_0xe424('0x4e')]='\x20'+profileUses+_0xe424('0x44');if(_0x489d8c)document[_0xe424('0x21')](_0xe424('0x55'))[_0xe424('0x14')][_0xe424('0x3f')](_0x489d8c);if(parseInt(profileUses)<=0x3){document[_0xe424('0x21')](_0xe424('0xa6'))['innerHTML']='\x20'+profileUses+_0xe424('0x66');document['getElementById'](_0xe424('0xa6'))[_0xe424('0x14')][_0xe424('0x3f')]('expiring');}}calculate['addEventListener'](_0xe424('0xaf'),async function(){await _0x201859(margins,columns,select);enableSelect(columns);});await _0x201859(margins,columns,select);return dialog;}const disableSelect=()=>{select[_0xe424('0x14')][_0xe424('0x3f')]('disabled');select['previousSibling'][_0xe424('0x14')][_0xe424('0x3f')](_0xe424('0xa'));select[_0xe424('0x40')](_0xe424('0xa'),_0xe424('0xa'));};const enableSelect=_0x11b66f=>{if(parseInt(_0x11b66f[_0xe424('0x6b')])>0x0){select['classList'][_0xe424('0x8e')](_0xe424('0xa'));select[_0xe424('0x5c')]['classList'][_0xe424('0x8e')]('disabled');select[_0xe424('0x7b')]('disabled');}};const getSelectedItemWidth=_0xb8d5e6=>_0xb8d5e6[_0xe424('0x12')][0x0][_0xe424('0x3a')]||_0xb8d5e6[_0xe424('0x12')][0x0][_0xe424('0x1c')]['width'];const openLicense=async()=>{let _0x29e011=await document['createElement']('style'),_0x3be7f2=document[_0xe424('0xaa')]||document[_0xe424('0x82')]('head')[0x0];_0x29e011[_0xe424('0xd')]=_0xe424('0x70');await _0x29e011[_0xe424('0x41')](document['createTextNode'](licenseCss));await _0x3be7f2['appendChild'](_0x29e011);let _0x3399b0;licensePopup=h(_0xe424('0x93'),{'id':_0xe424('0x52')},h(_0xe424('0x1b'),h(_0xe424('0xa1'),{'class':_0xe424('0x18')},h('h1',_0xe424('0x3e')),h('a',{'href':_0xe424('0x0')},'Get\x20key')),h(_0xe424('0xa1'),{'class':_0xe424('0x83')},'Enter\x20the\x20activation\x20key\x20you\x20received\x20by\x20email'),h(_0xe424('0xa1'),{'class':_0xe424('0xa4')},_0x3399b0=h(_0xe424('0x9f'),{'class':'license-input','value':'','placeholder':_0xe424('0x56'),'oninput'(){return clearLicenseAlert();}})),h(_0xe424('0xa1'),{'class':_0xe424('0x13')}),h('footer',{'class':_0xe424('0x97')},h(_0xe424('0x69'),{'uxp-variant':_0xe424('0xb'),'uxp-quiet':_0xe424('0x43'),'onclick'(){licensePopup['close']('Cancelled');return clearLicenseAlert();}},_0xe424('0x7a')),h('button',{'uxp-variant':'primary','onclick'(){return validateLicense(_0x3399b0[_0xe424('0x6b')]);}},'Activate'))));if(dialog)await dialog[_0xe424('0x73')](_0xe424('0x5b'));await document[_0xe424('0x15')][_0xe424('0x41')](licensePopup);licensePopup[_0xe424('0x49')]();};const openTrialFinish=async()=>{let _0x2a8589=await document[_0xe424('0x2a')](_0xe424('0x29')),_0x56d2c5=document[_0xe424('0xaa')]||document['getElementsByTagName'](_0xe424('0xaa'))[0x0];_0x2a8589[_0xe424('0xd')]=_0xe424('0x70');await _0x2a8589[_0xe424('0x41')](document[_0xe424('0x67')](trialFinCss));await _0x56d2c5[_0xe424('0x41')](_0x2a8589);trialFinPopup=h(_0xe424('0x93'),{'id':_0xe424('0x81')},h(_0xe424('0x1b'),h(_0xe424('0xa1'),{'class':_0xe424('0xac')},h('h1',_0xe424('0x2')),h('h2','I\x27m\x20glad\x20you\x20found\x20the\x20plugin\x20useful\x20in\x20your\x20work,\x20Use\x20the\x20button\x20below\x20to\x20get\x20a\x20Free\x20Activation\x20key,\x20or\x20set\x20own\x20price'),h(_0xe424('0xa1'),{'class':_0xe424('0x5f')},h('button',{'uxp-variant':_0xe424('0xb'),'onclick'(){trialFinPopup['close'](_0xe424('0x7f'));return openLicense();}},'Enter\x20Activation\x20Key'),h('a',{'href':'https://sugarsweetapps.com/grids-plus/?utm_source=Plugin&utm_medium=Direct&utm_campaign=Get%20License%20Button%20TExpired%20Page'},h(_0xe424('0x69'),{'uxp-variant':_0xe424('0x3')},_0xe424('0x10')))),h(_0xe424('0xf'),{'class':_0xe424('0x97')},h(_0xe424('0x69'),{'uxp-variant':_0xe424('0xb'),'uxp-quiet':_0xe424('0x43'),'onclick'(){trialFinPopup[_0xe424('0x73')](_0xe424('0x7f'));}},'Close')))));if(dialog)await dialog[_0xe424('0x73')](_0xe424('0x5b'));await document[_0xe424('0x15')][_0xe424('0x41')](trialFinPopup);trialFinPopup[_0xe424('0x49')]();};const validateLicense=async _0x3b7f35=>{await clearLicenseAlert();let _0x10017c=await validateRequest(_0x3b7f35),_0x943db4;if(_0x10017c!==_0xe424('0x7'))_0x943db4=JSON['parse'](_0x10017c);if(_0x943db4[_0xe424('0x39')]===_0xe424('0x19'))licensed=!![];await updateProfileData(!![]);if(_0x943db4)await addLicenseAlert(_0x943db4[_0xe424('0x51')],_0x943db4[_0xe424('0x39')]);};const noSelectionAlert=async()=>{let _0x104251=document['createElement'](_0xe424('0x29')),_0x358166=document[_0xe424('0xaa')]||document[_0xe424('0x82')](_0xe424('0xaa'))[0x0];_0x104251[_0xe424('0xd')]=_0xe424('0x70');_0x104251[_0xe424('0x41')](document[_0xe424('0x67')](noSelCss));_0x358166[_0xe424('0x41')](_0x104251);let _0x8d7cc0=h(_0xe424('0x93'),{'id':_0xe424('0x78')},h(_0xe424('0x1b'),h(_0xe424('0xa1'),{'class':_0xe424('0x97')},h('h1','Grids\x20Plus+\x20Plugin')),h('div',{'class':_0xe424('0x97')},_0xe424('0x68')),h(_0xe424('0xf'),{'class':_0xe424('0x97')},h(_0xe424('0x69'),{'uxp-variant':_0xe424('0xa7'),'onclick'(){_0x8d7cc0[_0xe424('0x73')]('Cancelled');}},_0xe424('0x7a')))));await document['body'][_0xe424('0x41')](_0x8d7cc0);await _0x8d7cc0[_0xe424('0x49')]();};const firstTimeAlert=async()=>{let _0x129335=document[_0xe424('0x2a')](_0xe424('0x29')),_0x2f3f9e=document['head']||document[_0xe424('0x82')](_0xe424('0xaa'))[0x0];_0x129335[_0xe424('0xd')]='text/css';_0x129335[_0xe424('0x41')](document[_0xe424('0x67')](firstTimeCss));_0x2f3f9e[_0xe424('0x41')](_0x129335);let _0x38615e=h(_0xe424('0x93'),{'id':_0xe424('0x75')},h(_0xe424('0x1b'),h(_0xe424('0xa1'),{'class':_0xe424('0x97')},h('h1',_0xe424('0x6e'))),h('div',{'class':_0xe424('0x9d')},_0xe424('0xe')),h(_0xe424('0xa1'),{'class':'row'},'XD\x20can\x20snap\x20to\x20locked\x20layers,\x20and\x20layers\x20that\x20are\x20placed\x20underneath\x20content'),h(_0xe424('0xa1'),{'class':'row\x20tip'},_0xe424('0x35')),h(_0xe424('0xf'),{'class':'row'},h(_0xe424('0x69'),{'uxp-variant':_0xe424('0xa7'),'onclick'(){_0x38615e[_0xe424('0x73')](_0xe424('0x7f'));}},_0xe424('0x7a')))));await document[_0xe424('0x15')][_0xe424('0x41')](_0x38615e);await _0x38615e[_0xe424('0x49')]();firstTime=![];};const calc_widths=_0x161000=>{let _0x48f05f=parseInt(_0x161000[_0xe424('0x3a')]),_0x42668a=parseInt(_0x161000[_0xe424('0x25')]),_0x4224aa=parseInt(_0x161000[_0xe424('0xa8')]),_0x3f5475=[];if(_0x4224aa>0x18){_0x4224aa=0x18;}for(let _0x398328=0x0;_0x398328<=0x50;_0x398328++){let _0x57bcbd=(_0x48f05f-_0x42668a*0x2-_0x398328*(_0x4224aa-0x1))/_0x4224aa;if(_0x57bcbd%0x1===0x0&&_0x57bcbd>=0x0){_0x3f5475[_0xe424('0x95')]({'mg':_0x398328,'col':_0x57bcbd});}if(_0x4224aa===0x1)break;}return _0x3f5475;};function setSelectOptions(_0x345791,_0x10e197){let _0x3df5a5=h('option',{'value':''},_0xe424('0x2d'));_0x10e197[_0xe424('0x4e')]='';_0x10e197['appendChild'](_0x3df5a5);_0x10e197[_0xe424('0x6b')]='';_0x345791[_0xe424('0xa3')](_0x591495=>{let _0x36efaf=h('option',{'value':_0x591495['mg']+'/'+_0x591495[_0xe424('0x1d')]},_0x591495['mg']+_0xe424('0x30')+_0x591495['col']+_0xe424('0x4a'));_0x10e197['appendChild'](_0x36efaf);});}async function updateProfileData(_0x4da91a){const _0x10af59=await fs[_0xe424('0x54')]();const _0x30a49f=await _0x10af59[_0xe424('0x57')](_0xe424('0x33'));if(!_0x4da91a)profileUses--;if(profileUses===0x0)profileUses='\x200';let _0x4e7168=JSON[_0xe424('0x37')]({'uses':profileUses,'firstTime':firstTime,'licensed':licensed});_0x30a49f[_0xe424('0xad')](_0x4e7168);}async function onAlert(){await document['querySelector'](_0xe424('0x85'))[_0xe424('0x14')][_0xe424('0x3f')](_0xe424('0x60'));}async function offAlert(){await document[_0xe424('0x9c')](_0xe424('0x85'))[_0xe424('0x14')][_0xe424('0x8e')](_0xe424('0x60'));}async function clearLicenseAlert(){await document[_0xe424('0x9c')](_0xe424('0x9e'))[_0xe424('0x14')]['remove']('open');}async function addLicenseAlert(_0x1987d2,_0x5e916b){let _0x2822fc='open',_0x12e6f8=document['querySelector'](_0xe424('0x9e'));if(_0x5e916b===_0xe424('0x19')){licensePopup[_0xe424('0x73')](_0xe424('0x2f'));return;}if(_0x1987d2[_0xe424('0x6c')]('.\x20')[0x0])_0x1987d2=_0x1987d2['split']('.\x20')[0x0];_0x12e6f8[_0xe424('0x4e')]=_0x1987d2;await _0x12e6f8[_0xe424('0x14')][_0xe424('0x3f')](_0x2822fc);}async function createRect(_0x47e90f,_0x320c06,_0x14d1d0,_0x13d30a){if(!_0x47e90f){await onAlert();return;}let _0x44e8a8=0x0,_0x384664=[],_0x4541e5=_0x320c06['focusedArtboard']?_0x320c06[_0xe424('0xa0')][_0xe424('0x7e')]:0x1388,_0x1fb603=_0x320c06[_0xe424('0x12')][0x0]['boundsInParent']['x']||_0x320c06[_0xe424('0x12')][0x0][_0xe424('0x6d')]['x'];while(_0x44e8a8<parseInt(_0x14d1d0)){let _0x5112dd=await new Rectangle();_0x5112dd[_0xe424('0x3a')]=parseInt(_0x47e90f['split']('/')[0x1]);_0x5112dd[_0xe424('0x7e')]=_0x4541e5;_0x5112dd[_0xe424('0x28')]=new Color(_0xe424('0x2e'));_0x5112dd[_0xe424('0x47')]=_0xe424('0x89')+_0x44e8a8;if(!_0x320c06['hasArtwork'])_0x1fb603=0x0;let _0x332a65=_0x1fb603+parseInt(_0x13d30a)+parseInt(_0x47e90f[_0xe424('0x6c')]('/')[0x0])*_0x44e8a8+parseInt(_0x47e90f[_0xe424('0x6c')]('/')[0x1])*_0x44e8a8;_0x5112dd[_0xe424('0x4d')]={'x':_0x332a65,'y':0x0};await _0x320c06[_0xe424('0x5a')][_0xe424('0x22')](_0x5112dd);_0x384664[_0xe424('0x95')](_0x5112dd);_0x44e8a8++;}let _0x30d059=_0x320c06['items'][0x0][_0xe424('0x47')];_0x320c06[_0xe424('0x12')]=_0x384664;await commands[_0xe424('0x16')]();let _0x103b61=_0x320c06[_0xe424('0x12')][0x0];_0x103b61['name']=_0xe424('0x89')+_0x30d059;_0x103b61[_0xe424('0x31')][_0xe424('0xa3')](_0x89ce9e=>{_0x89ce9e[_0xe424('0x88')]=!![];});_0x103b61[_0xe424('0x88')]=!![];dialog[_0xe424('0x73')](_0xe424('0x74'));await updateProfileData();}var rn=Math[_0xe424('0x2c')](0x3e8+Math['random']()*0x2328);function validateRequest(_0x47bfdc){return new Promise(_0x3a9178=>{let _0x186a8c=_0xe424('0x91')+_0x47bfdc+_0xe424('0x45')+rn+'%22';const _0x515a73=new XMLHttpRequest();_0x515a73['timeout']=0x1770;_0x515a73[_0xe424('0x5e')]=()=>{try{if(_0x515a73['response'])_0x3a9178(_0x515a73['response']);else _0x3a9178(_0xe424('0x7'));}catch(_0x14fbeb){_0x3a9178(_0xe424('0x7'));}};_0x515a73[_0xe424('0xa5')]=()=>{_0x3a9178(validateRequest(_0x47bfdc));};_0x515a73[_0xe424('0xa2')]=()=>{_0x3a9178('error');};_0x515a73[_0xe424('0x60')](_0xe424('0x9'),_0x186a8c,!![]);_0x515a73[_0xe424('0x90')](_0xe424('0x4'),_0xe424('0x86'));_0x515a73[_0xe424('0x99')]();});}module[_0xe424('0x7c')]={'commands':{'menuCommand':async function(_0x510e72){let _0x1d492b=await getDialog(_0x510e72);await document[_0xe424('0x15')][_0xe424('0x41')](_0x1d492b);return _0x1d492b[_0xe424('0x49')]();}}};