7f6a85348e5e4c95a9e92a9a4506cc9c.json 10.3 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-icon-add-button\">\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-arrow\">\n                <div>\n                    ${makeSvgIcon(['normal', 'active'], 'icon-arrow', true)}\n                </div>\n                <label>\n                    ${locale.localize('Arrow')}\n                </label>\n            </div>\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-arrow-2\">\n                <div>\n                    ${makeSvgIcon(['normal', 'active'], 'icon-arrow-2', true)}\n                </div>\n                <label>\n                    ${locale.localize('Arrow-2')}\n                </label>\n            </div>\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-arrow-3\">\n                <div>\n                    ${makeSvgIcon(['normal', 'active'], 'icon-arrow-3', true)}\n                </div>\n                <label>\n                    ${locale.localize('Arrow-3')}\n                </label>\n            </div>\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-star\">\n                <div>\n                    ${makeSvgIcon(['normal', 'active'], 'icon-star', true)}\n                </div>\n                <label>\n                    ${locale.localize('Star-1')}\n                </label>\n            </div>\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-star-2\">\n                <div>\n                    ${makeSvgIcon(['normal', 'active'], 'icon-star-2', true)}\n                </div>\n                <label>\n                    ${locale.localize('Star-2')}\n                </label>\n            </div>\n\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-polygon\">\n                <div>\n                    ${makeSvgIcon(['normal', 'active'], 'icon-polygon', true)}\n                </div>\n                <label>\n                    ${locale.localize('Polygon')}\n                </label>\n            </div>\n\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-location\">\n                <div>\n                    ${makeSvgIcon(['normal', 'active'], 'icon-location', true)}\n                </div>\n                <label>\n                    ${locale.localize('Location')}\n                </label>\n            </div>\n\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-heart\">\n                <div>\n                    ${makeSvgIcon(['normal', 'active'], 'icon-heart', true)}\n                </div>\n                <label>\n                    ${locale.localize('Heart')}\n                </label>\n            </div>\n\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-bubble\">\n                <div>\n                    ${makeSvgIcon(['normal', 'active'], 'icon-bubble', true)}\n                </div>\n                <label>\n                    ${locale.localize('Bubble')}\n                </label>\n            </div>\n        </li>\n        <li class=\"tui-image-editor-partition\">\n            <div></div>\n        </li>\n        <li class=\"tie-icon-add-button\">\n            <div class=\"tui-image-editor-button\" style=\"margin:0\">\n                <div>\n                    <input type=\"file\" accept=\"image/*\" class=\"tie-icon-image-file\">\n                    ${makeSvgIcon(['normal', 'active'], 'icon-load', true)}\n                </div>\n                <label>\n                    ${locale.localize('Custom icon')}\n                </label>\n            </div>\n        </li>\n        <li class=\"tui-image-editor-partition\">\n            <div></div>\n        </li>\n        <li>\n            <div class=\"tie-icon-color\" title=\"${locale.localize('Color')}\"></div>\n        </li>\n    </ul>\n`);","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/src/js/ui/template/submenu/icon.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,YAAvB,EAAqC,IAArC,CAA2C;AAC5E;AACA;AACA,sBAAsBD,MAAM,CAACE,QAAP,CAAgB,OAAhB,CAAyB;AAC/C;AACA;AACA;AACA;AACA,sBAAsBD,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,cAAvB,EAAuC,IAAvC,CAA6C;AAC9E;AACA;AACA,sBAAs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sC,IAAtC,CAA4C;AAC7E;AACA;AACA,sBAAsBD,MAAM,CAACE,QAAP,CAAgB,QAAhB,CAA0B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsBD,WAAW,CAAC,CAAC,QAAD,EAAW,QAAX,CAAD,EAAuB,WAAvB,EAAoC,IAApC,CAA0C;AAC3E;AACA;AACA,sBAAsBD,MAAM,CAACE,QAAP,CAAgB,aAAhB,CAA+B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiDF,MAAM,CAACE,QAAP,CAAgB,OAAhB,CAAyB;AAC1E;AACA;AACA,CArGA","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-icon-add-button\">\r\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-arrow\">\r\n                <div>\r\n                    ${makeSvgIcon(['normal', 'active'], 'icon-arrow', true)}\r\n                </div>\r\n                <label>\r\n                    ${locale.localize('Arrow')}\r\n                </label>\r\n            </div>\r\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-arrow-2\">\r\n                <div>\r\n                    ${makeSvgIcon(['normal', 'active'], 'icon-arrow-2', true)}\r\n                </div>\r\n                <label>\r\n                    ${locale.localize('Arrow-2')}\r\n                </label>\r\n            </div>\r\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-arrow-3\">\r\n                <div>\r\n                    ${makeSvgIcon(['normal', 'active'], 'icon-arrow-3', true)}\r\n                </div>\r\n                <label>\r\n                    ${locale.localize('Arrow-3')}\r\n                </label>\r\n            </div>\r\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-star\">\r\n                <div>\r\n                    ${makeSvgIcon(['normal', 'active'], 'icon-star', true)}\r\n                </div>\r\n                <label>\r\n                    ${locale.localize('Star-1')}\r\n                </label>\r\n            </div>\r\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-star-2\">\r\n                <div>\r\n                    ${makeSvgIcon(['normal', 'active'], 'icon-star-2', true)}\r\n                </div>\r\n                <label>\r\n                    ${locale.localize('Star-2')}\r\n                </label>\r\n            </div>\r\n\r\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-polygon\">\r\n                <div>\r\n                    ${makeSvgIcon(['normal', 'active'], 'icon-polygon', true)}\r\n                </div>\r\n                <label>\r\n                    ${locale.localize('Polygon')}\r\n                </label>\r\n            </div>\r\n\r\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-location\">\r\n                <div>\r\n                    ${makeSvgIcon(['normal', 'active'], 'icon-location', true)}\r\n                </div>\r\n                <label>\r\n                    ${locale.localize('Location')}\r\n                </label>\r\n            </div>\r\n\r\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-heart\">\r\n                <div>\r\n                    ${makeSvgIcon(['normal', 'active'], 'icon-heart', true)}\r\n                </div>\r\n                <label>\r\n                    ${locale.localize('Heart')}\r\n                </label>\r\n            </div>\r\n\r\n            <div class=\"tui-image-editor-button\" data-icontype=\"icon-bubble\">\r\n                <div>\r\n                    ${makeSvgIcon(['normal', 'active'], 'icon-bubble', true)}\r\n                </div>\r\n                <label>\r\n                    ${locale.localize('Bubble')}\r\n                </label>\r\n            </div>\r\n        </li>\r\n        <li class=\"tui-image-editor-partition\">\r\n            <div></div>\r\n        </li>\r\n        <li class=\"tie-icon-add-button\">\r\n            <div class=\"tui-image-editor-button\" style=\"margin:0\">\r\n                <div>\r\n                    <input type=\"file\" accept=\"image/*\" class=\"tie-icon-image-file\">\r\n                    ${makeSvgIcon(['normal', 'active'], 'icon-load', true)}\r\n                </div>\r\n                <label>\r\n                    ${locale.localize('Custom icon')}\r\n                </label>\r\n            </div>\r\n        </li>\r\n        <li class=\"tui-image-editor-partition\">\r\n            <div></div>\r\n        </li>\r\n        <li>\r\n            <div class=\"tie-icon-color\" title=\"${locale.localize('Color')}\"></div>\r\n        </li>\r\n    </ul>\r\n`;\r\n"]},"metadata":{},"sourceType":"module"}