angular.module("c8y.parts.devicePropertyWidget").directive("c8yFragmentCheckboxList",["$compile",function(d){return{restrict:"E",scope:{fragment:"=?",updateFields:"&"},link:function(e,t){var i=d("<div ng-include=\"':::PLUGIN_PATH:::/views/fragmentRow.html'\"></div>"),n=d("<div ng-include=\"':::PLUGIN_PATH:::/views/fragmentList.html'\"></div>"),r=t.parents(".fragmentRow").first();_.isArray(e.fragment)?(e.options=e.fragment,n(e,function(e){r.append(e)})):(t=e.$new(),i(t,function(e){r.append(e)})),e.edit=function(e){e.editMode=!e.editMode}}}}]);