text: define(["template"],function(a){function b(b){"use strict";b=b||{};var c=a.utils,d=(c.$helpers,c.$each),e=b.dim,f=(b.$cube,b.i,c.$escape),g=b.cubes,h=(b.$field,b.$index,b.j,"");return h+='<div class="dim-container-custom hide">\r\n    <ul class="custom-column-names c-f">\r\n        <li class="custom-column-main-table"><span>主数据表</span></li>\r\n        <li class="custom-column-main-table-fields"><span>主表字段</span></li>\r\n        <li class="custom-column-create-dim"><span>关联数据表</span></li>\r\n    </ul>\r\n    <div class="custom-main j-custom-main">\r\n        ',d(e.custom,function(a,b){h+='\r\n        <div class="custom-main-box c-f j-custom-main-box">\r\n            <span class="cube-name" cubeId=',h+=f(a.cubeId),h+=" title=",h+=f(g[a.cubeId].name),h+=">",h+=f(g[a.cubeId].name),h+='</span>\r\n            <span class="straight-line"></span>\r\n            <div class="custom-main-table-fields-box" bodyIndex=',h+=f(b),h+=">\r\n                    <ul>\r\n                        ",d(g[a.cubeId].allFields,function(a){h+='\r\n                        <li class="j-custom-field" bodyIndex=',h+=f(b),h+=">",h+=f(a.name),h+="</li>\r\n                        "}),h+='\r\n                    </ul>\r\n            </div>\r\n            <div class="custom-create-new-dim-container">\r\n                ',d(a.children,function(c,d){h+='\r\n                <div class="custom-create-new-dim-box j-custom-relation-box">\r\n                    <div class="custom-create-new-dim-texts">\r\n                        <input type="text" placeholder="请输入新维度的名称" value="',h+=f(c.dimName),h+='" />\r\n                        <textarea placeholder="请输入创建维度的逻辑语句" class="j-custom-sql" bodyIndex=',h+=f(b),h+=">",h+=f(c.sql),h+='</textarea>\r\n                        <span class="',h+=""===c.sql?"custom-create-new-dim-texts-wrong":"custom-create-new-dim-texts-right",h+='"></span>\r\n                    </div>\r\n                    <span class="delete j-custom-delete"></span>\r\n                    ',d===a.children.length-1&&(h+='\r\n                    <span class="add j-custom-add"></span>\r\n                    '),h+="\r\n                </div>\r\n                "}),h+='\r\n            </div>\r\n            <span class="custom-error-msg j-custom-error-msg hide"></span>\r\n        </div>\r\n        '}),h+='\r\n    </div>\r\n    <span class="prompt mt-30">注：右下角的图标用于校验当前语句是否正确</span>\r\n</div>'}return{render:b}});