a176650b61552ea4e9cfa18f90ac7e76.json
7.77 KB
{"ast":null,"code":"/**\r\n * @param {Object} submenuInfo - submenu info for make template\r\n * @param {Locale} locale - Translate text\r\n * @param {Function} makeSvgIcon - svg icon generator\r\n * @returns {string}\r\n */\nexport default (({\n locale,\n makeSvgIcon\n}) => `\n <ul class=\"tui-image-editor-submenu-item\">\n <li class=\"tie-crop-preset-button\">\n <div class=\"tui-image-editor-button preset preset-none active\">\n <div>\n ${makeSvgIcon(['normal', 'active'], 'shape-rectangle', true)}\n </div>\n <label> ${locale.localize('Custom')} </label>\n </div>\n <div class=\"tui-image-editor-button preset preset-square\">\n <div>\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\n </div>\n <label> ${locale.localize('Square')} </label>\n </div>\n <div class=\"tui-image-editor-button preset preset-3-2\">\n <div>\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\n </div>\n <label> ${locale.localize('3:2')} </label>\n </div>\n <div class=\"tui-image-editor-button preset preset-4-3\">\n <div>\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\n </div>\n <label> ${locale.localize('4:3')} </label>\n </div>\n <div class=\"tui-image-editor-button preset preset-5-4\">\n <div>\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\n </div>\n <label> ${locale.localize('5:4')} </label>\n </div>\n <div class=\"tui-image-editor-button preset preset-7-5\">\n <div>\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\n </div>\n <label> ${locale.localize('7:5')} </label>\n </div>\n <div class=\"tui-image-editor-button preset preset-16-9\">\n <div>\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\n </div>\n <label> ${locale.localize('16:9')} </label>\n </div>\n </li>\n <li class=\"tui-image-editor-partition tui-image-editor-newline\">\n </li>\n <li class=\"tui-image-editor-partition only-left-right\">\n <div></div>\n </li>\n <li class=\"tie-crop-button action\">\n <div class=\"tui-image-editor-button apply\">\n ${makeSvgIcon(['normal', 'active'], 'apply')}\n <label>\n ${locale.localize('Apply')}\n </label>\n </div>\n <div class=\"tui-image-editor-button cancel\">\n ${makeSvgIcon(['normal', 'active'], 'cancel')}\n <label>\n ${locale.localize('Cancel')}\n </label>\n </div>\n </li>\n </ul>\n`);","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/src/js/ui/template/submenu/crop.js"],"names":["locale","makeSvgIcon","localize"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,CAAC;AAAEA,EAAAA,MAAF;AAAUC,EAAAA;AAAV,CAAD,KAA8B;AAC7C;AACA;AACA;AACA;AACA,sBAAsBA,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,iBAAvB,EAA0C,IAA1C,CAAgD;AACjF;AACA,0BAA0BD,MAAM,CAACE,QAAP,CAAgB,QAAhB,CAA0B;AACpD;AACA;AACA;AACA,sBAAsBD,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,MAAvB,EAA+B,IAA/B,CAAqC;AACtE;AACA,0BAA0BD,MAAM,CAACE,QAAP,CAAgB,QAAhB,CAA0B;AACpD;AACA;AACA;AACA,sBAAsBD,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,MAAvB,EAA+B,IAA/B,CAAqC;AACtE;AACA,0BAA0BD,MAAM,CAACE,QAAP,CAAgB,KAAhB,CAAuB;AACjD;AACA;AACA;AACA,sBAAsBD,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,MAAvB,EAA+B,IAA/B,CAAqC;AACtE;AACA,0BAA0BD,MAAM,CAACE,QAAP,CAAgB,KAAhB,CAAuB;AACjD;AACA;AACA;AACA,sBAAsBD,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,MAAvB,EAA+B,IAA/B,CAAqC;AACtE;AACA,0BAA0BD,MAAM,CAACE,QAAP,CAAgB,KAAhB,CAAuB;AACjD;AACA;AACA;AACA,sBAAsBD,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,MAAvB,EAA+B,IAA/B,CAAqC;AACtE;AACA,0BAA0BD,MAAM,CAACE,QAAP,CAAgB,KAAhB,CAAuB;AACjD;AACA;AACA;AACA,sBAAsBD,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,MAAvB,EAA+B,IAA/B,CAAqC;AACtE;AACA,0BAA0BD,MAAM,CAACE,QAAP,CAAgB,MAAhB,CAAwB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkBD,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,OAAvB,CAAgC;AAC7D;AACA,sBAAsBD,MAAM,CAACE,QAAP,CAAgB,OAAhB,CAAyB;AAC/C;AACA;AACA;AACA,kBAAkBD,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,QAAvB,CAAiC;AAC9D;AACA,sBAAsBD,MAAM,CAACE,QAAP,CAAgB,QAAhB,CAA0B;AAChD;AACA;AACA;AACA;AACA,CAlEA","sourcesContent":["/**\r\n * @param {Object} submenuInfo - submenu info for make template\r\n * @param {Locale} locale - Translate text\r\n * @param {Function} makeSvgIcon - svg icon generator\r\n * @returns {string}\r\n */\r\nexport default ({ locale, makeSvgIcon }) => `\r\n <ul class=\"tui-image-editor-submenu-item\">\r\n <li class=\"tie-crop-preset-button\">\r\n <div class=\"tui-image-editor-button preset preset-none active\">\r\n <div>\r\n ${makeSvgIcon(['normal', 'active'], 'shape-rectangle', true)}\r\n </div>\r\n <label> ${locale.localize('Custom')} </label>\r\n </div>\r\n <div class=\"tui-image-editor-button preset preset-square\">\r\n <div>\r\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\r\n </div>\r\n <label> ${locale.localize('Square')} </label>\r\n </div>\r\n <div class=\"tui-image-editor-button preset preset-3-2\">\r\n <div>\r\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\r\n </div>\r\n <label> ${locale.localize('3:2')} </label>\r\n </div>\r\n <div class=\"tui-image-editor-button preset preset-4-3\">\r\n <div>\r\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\r\n </div>\r\n <label> ${locale.localize('4:3')} </label>\r\n </div>\r\n <div class=\"tui-image-editor-button preset preset-5-4\">\r\n <div>\r\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\r\n </div>\r\n <label> ${locale.localize('5:4')} </label>\r\n </div>\r\n <div class=\"tui-image-editor-button preset preset-7-5\">\r\n <div>\r\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\r\n </div>\r\n <label> ${locale.localize('7:5')} </label>\r\n </div>\r\n <div class=\"tui-image-editor-button preset preset-16-9\">\r\n <div>\r\n ${makeSvgIcon(['normal', 'active'], 'crop', true)}\r\n </div>\r\n <label> ${locale.localize('16:9')} </label>\r\n </div>\r\n </li>\r\n <li class=\"tui-image-editor-partition tui-image-editor-newline\">\r\n </li>\r\n <li class=\"tui-image-editor-partition only-left-right\">\r\n <div></div>\r\n </li>\r\n <li class=\"tie-crop-button action\">\r\n <div class=\"tui-image-editor-button apply\">\r\n ${makeSvgIcon(['normal', 'active'], 'apply')}\r\n <label>\r\n ${locale.localize('Apply')}\r\n </label>\r\n </div>\r\n <div class=\"tui-image-editor-button cancel\">\r\n ${makeSvgIcon(['normal', 'active'], 'cancel')}\r\n <label>\r\n ${locale.localize('Cancel')}\r\n </label>\r\n </div>\r\n </li>\r\n </ul>\r\n`;\r\n"]},"metadata":{},"sourceType":"module"}