angular.module('mediaModalTemplates', []).run(['$templateCache', function($templateCache) {
  'use strict';

  $templateCache.put('camera.html',
    "<div ng-controller=\"cameraController\" class=\"media-resource1\">\n" +
    "    <h3>Upload Media</h3>\n" +
    "    <div>\n" +
    "        <form id=\"fileupload\" action=\"{{upload_url}}\" method=\"POST\" enctype=\"multipart/form-data\" data-file-upload=\"options\" data-ng-class=\"{'fileupload-processing': processing() || loadingFiles}\">\n" +
    "            <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->\n" +
    "            <div class=\"row fileupload-buttonbar\">\n" +
    "                <div class=\"col-lg-7\">\n" +
    "                    <!-- The fileinput-button span is used to style the file input field as button -->\n" +
    "                            <span class=\"btn btn-success fileinput-button\" ng-class=\"{disabled: disabled}\">\n" +
    "                                <i class=\"glyphicon glyphicon-plus\"></i>\n" +
    "                                <span>Add files...</span>\n" +
    "                                <input type=\"file\" name=\"files[]\" multiple ng-disabled=\"disabled\" accept=\"image/*\" capture=\"camera\">\n" +
    "                            </span>\n" +
    "                    <button type=\"button\" class=\"btn btn-primary start\" data-ng-click=\"submit()\">\n" +
    "                        <i class=\"glyphicon glyphicon-upload\"></i>\n" +
    "                        <span>Start upload</span>\n" +
    "                    </button>\n" +
    "                    <button type=\"button\" class=\"btn btn-warning cancel\" data-ng-click=\"cancel()\">\n" +
    "                        <i class=\"glyphicon glyphicon-ban-circle\"></i>\n" +
    "                        <span>Cancel upload</span>\n" +
    "                    </button>\n" +
    "                    <!-- The global file processing state -->\n" +
    "                    <span class=\"fileupload-process\"></span>\n" +
    "                </div>\n" +
    "                <!-- The global progress state -->\n" +
    "                <div class=\"col-lg-5 fade\" data-ng-class=\"{in: active()}\">\n" +
    "                    <!-- The global progress bar -->\n" +
    "                    <div class=\"progress progress-striped active\" data-file-upload-progress=\"progress()\"><div class=\"progress-bar progress-bar-success\" data-ng-style=\"{width: num + '%'}\"></div></div>\n" +
    "                    <!-- The extended global progress state -->\n" +
    "                    <div class=\"progress-extended\">&nbsp;</div>\n" +
    "                </div>\n" +
    "            </div>\n" +
    "            <div>\n" +
    "                <div class=\"row media-resource files ng-cloak\">\n" +
    "                    <div ng-repeat=\"file in queue\" class=\"image-container\" ng-click=\"selectImage(file)\" data-ng-class=\"{'processing': file.$processing()}\">\n" +
    "                        <div class=\"col-xs-6 col-sm-3 col-md-2 col-lg-2\">\n" +
    "                            <div class=\"media-wrapper\" ng-class=\"{selected: file.selected}\">\n" +
    "                                <div class=\"image-wrapper\">\n" +
    "                                    <div class=\"centered\">\n" +
    "                                        <img ng-src=\"{{file.url}}\" class=\"img-responsive\"/>\n" +
    "                                    </div>\n" +
    "                                </div>\n" +
    "                                <div class=\"image-title\">{{file.name}}</div>\n" +
    "                            </div>\n" +
    "                            <div class=\"progress progress-striped active fade\" data-ng-class=\"{pending: 'in'}[file.$state()]\" data-file-upload-progress=\"file.$progress()\">\n" +
    "                                <div class=\"progress-bar progress-bar-success\" data-ng-style=\"{width: num + '%'}\"></div>\n" +
    "                            </div>\n" +
    "                            <div class=\"text-center\">\n" +
    "                                <button class=\"btn btn-primary\" data-ng-controller=\"FileDestroyController\" data-ng-click=\"file.$destroy()\" data-ng-hide=\"!file.$destroy\">\n" +
    "                                    <i class=\"fa fa-trash\"></i> Delete\n" +
    "                                </button>\n" +
    "                            </div>\n" +
    "                        </div>\n" +
    "\n" +
    "                    </div>\n" +
    "                    <div ng-repeat=\"file in filequeue\" class=\"image-container\" ng-click=\"selectImage(file)\" data-ng-class=\"{'processing': file.$processing()}\">\n" +
    "                        <div class=\"col-xs-6 col-sm-3 col-md-2 col-lg-2\">\n" +
    "                            <div class=\"media-wrapper\" ng-class=\"{selected: file.selected}\">\n" +
    "                                <div class=\"image-wrapper\">\n" +
    "                                    <div class=\"centered\">\n" +
    "                                        <img ng-src=\"{{file.url}}\" class=\"img-responsive\"/>\n" +
    "                                    </div>\n" +
    "                                </div>\n" +
    "                                <div class=\"image-title\">{{file.name}}</div>\n" +
    "                            </div>\n" +
    "                            <div class=\"progress progress-striped active fade\" data-ng-class=\"{pending: 'in'}[file.$state()]\" data-file-upload-progress=\"file.$progress()\">\n" +
    "                                <div class=\"progress-bar progress-bar-success\" data-ng-style=\"{width: num + '%'}\"></div>\n" +
    "                            </div>\n" +
    "                            <div class=\"text-center\">\n" +
    "                                <button class=\"btn btn-primary\" data-ng-controller=\"FileDestroyController\" data-ng-click=\"file.$destroy()\" data-ng-hide=\"!file.$destroy\">\n" +
    "                                    <i class=\"fa fa-trash\"></i> Delete\n" +
    "                                </button>\n" +
    "                            </div>\n" +
    "                        </div>\n" +
    "\n" +
    "                    </div>\n" +
    "\n" +
    "                </div>\n" +
    "            </div>\n" +
    "        </form>\n" +
    "    </div>\n" +
    "</div>"
  );


  $templateCache.put('gallery.html',
    "<div class=\"container-fluid\" id=\"otonomic-media-modal\">\n" +
    "    <uib-tabset>\n" +
    "        <uib-tab ng-repeat=\"resource in availableResources\" select=\"tabSelected(resource)\">\n" +
    "            <uib-tab-heading>\n" +
    "                <i ng-class=\"resource.icon\"></i>\n" +
    "                <span>{{resource.title}}</span>\n" +
    "            </uib-tab-heading>\n" +
    "            <div ng-include=\"resource.viewPath\"></div>\n" +
    "        </uib-tab>\n" +
    "    </uib-tabset>\n" +
    "</div>\n" +
    "<span us-spinner spinner-on=\"appState.loading\"></span>"
  );


  $templateCache.put('galleryWindow.html',
    "<div class=\"modal-header\">\n" +
    "    <h2 class=\"modal-title\">Add Image</h2>\n" +
    "</div>\n" +
    "<div class=\"modal-body\">\n" +
    "    <div ng-include=\"'gallery.html'\"></div>\n" +
    "</div>\n" +
    "<div class=\"modal-footer\">\n" +
    "    <button class=\"btn btn-default\" type=\"button\" ng-click=\"cancel()\"><i class=\"fa fa-remove\"></i>Cancel</button>\n" +
    "    <button class=\"btn btn-primary\" type=\"button\" ng-click=\"selectImages()\" data-ng-disabled=\"!selectedImages.length\"><i class=\"fa fa-ok\"></i>Add Images</button>\n" +
    "</div>"
  );


  $templateCache.put('upload.html',
    "<div ng-controller=\"uploadController\" class=\"media-resource1\">\n" +
    "    <h3>Upload Media</h3>\n" +
    "    <div>\n" +
    "        <form id=\"fileupload\" action=\"{{upload_url}}\" method=\"POST\" enctype=\"multipart/form-data\" data-file-upload=\"options\" data-ng-class=\"{'fileupload-processing': processing() || loadingFiles}\">\n" +
    "            <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->\n" +
    "            <div class=\"row fileupload-buttonbar\">\n" +
    "                <div class=\"col-lg-7\">\n" +
    "                    <!-- The fileinput-button span is used to style the file input field as button -->\n" +
    "                            <span class=\"btn btn-success fileinput-button\" ng-class=\"{disabled: disabled}\">\n" +
    "                                <i class=\"glyphicon glyphicon-plus\"></i>\n" +
    "                                <span>Add files...</span>\n" +
    "                                <input type=\"file\" name=\"files[]\" multiple ng-disabled=\"disabled\">\n" +
    "                            </span>\n" +
    "                    <button type=\"button\" class=\"btn btn-primary start\" data-ng-click=\"submit()\">\n" +
    "                        <i class=\"glyphicon glyphicon-upload\"></i>\n" +
    "                        <span>Start upload</span>\n" +
    "                    </button>\n" +
    "                    <button type=\"button\" class=\"btn btn-warning cancel\" data-ng-click=\"cancel()\">\n" +
    "                        <i class=\"glyphicon glyphicon-ban-circle\"></i>\n" +
    "                        <span>Cancel upload</span>\n" +
    "                    </button>\n" +
    "                    <!-- The global file processing state -->\n" +
    "                    <span class=\"fileupload-process\"></span>\n" +
    "                </div>\n" +
    "                <!-- The global progress state -->\n" +
    "                <div class=\"col-lg-5 fade\" data-ng-class=\"{in: active()}\">\n" +
    "                    <!-- The global progress bar -->\n" +
    "                    <div class=\"progress progress-striped active\" data-file-upload-progress=\"progress()\"><div class=\"progress-bar progress-bar-success\" data-ng-style=\"{width: num + '%'}\"></div></div>\n" +
    "                    <!-- The extended global progress state -->\n" +
    "                    <div class=\"progress-extended\">&nbsp;</div>\n" +
    "                </div>\n" +
    "            </div>\n" +
    "            <div>\n" +
    "                <div class=\"row media-resource files ng-cloak\">\n" +
    "                    <div ng-repeat=\"file in queue\" class=\"image-container\" ng-click=\"selectImage(file)\" data-ng-class=\"{'processing': file.$processing()}\">\n" +
    "                        <div class=\"col-xs-6 col-sm-3 col-md-2 col-lg-2\">\n" +
    "                            <div class=\"media-wrapper\" ng-class=\"{selected: file.selected}\">\n" +
    "                                <div class=\"image-wrapper\">\n" +
    "                                    <div class=\"centered\">\n" +
    "                                        <img ng-src=\"{{file.url}}\" class=\"img-responsive\"/>\n" +
    "                                    </div>\n" +
    "                                </div>\n" +
    "                                <div class=\"image-title\">{{file.name}}</div>\n" +
    "                            </div>\n" +
    "                            <div class=\"progress progress-striped active fade\" data-ng-class=\"{pending: 'in'}[file.$state()]\" data-file-upload-progress=\"file.$progress()\">\n" +
    "                                <div class=\"progress-bar progress-bar-success\" data-ng-style=\"{width: num + '%'}\"></div>\n" +
    "                            </div>\n" +
    "                            <div class=\"text-center\">\n" +
    "                                <button class=\"btn btn-primary\" data-ng-controller=\"FileDestroyController\" data-ng-click=\"file.$destroy()\" data-ng-hide=\"!file.$destroy\">\n" +
    "                                    <i class=\"fa fa-trash\"></i> Delete\n" +
    "                                </button>\n" +
    "                            </div>\n" +
    "                        </div>\n" +
    "\n" +
    "                    </div>\n" +
    "                    <div ng-repeat=\"file in filequeue\" class=\"image-container\" ng-click=\"selectImage(file)\" data-ng-class=\"{'processing': file.$processing()}\">\n" +
    "                        <div class=\"col-xs-6 col-sm-3 col-md-2 col-lg-2\">\n" +
    "                            <div class=\"media-wrapper\" ng-class=\"{selected: file.selected}\">\n" +
    "                                <div class=\"image-wrapper\">\n" +
    "                                    <div class=\"centered\">\n" +
    "                                        <img ng-src=\"{{file.url}}\" class=\"img-responsive\"/>\n" +
    "                                    </div>\n" +
    "                                </div>\n" +
    "                                <div class=\"image-title\">{{file.name}}</div>\n" +
    "                            </div>\n" +
    "                            <div class=\"progress progress-striped active fade\" data-ng-class=\"{pending: 'in'}[file.$state()]\" data-file-upload-progress=\"file.$progress()\">\n" +
    "                                <div class=\"progress-bar progress-bar-success\" data-ng-style=\"{width: num + '%'}\"></div>\n" +
    "                            </div>\n" +
    "                            <div class=\"text-center\">\n" +
    "                                <button class=\"btn btn-primary\" data-ng-controller=\"FileDestroyController\" data-ng-click=\"file.$destroy()\" data-ng-hide=\"!file.$destroy\">\n" +
    "                                    <i class=\"fa fa-trash\"></i> Delete\n" +
    "                                </button>\n" +
    "                            </div>\n" +
    "                        </div>\n" +
    "\n" +
    "                    </div>\n" +
    "\n" +
    "                </div>\n" +
    "            </div>\n" +
    "        </form>\n" +
    "    </div>\n" +
    "</div>"
  );


  $templateCache.put('webService.html',
    "<div ng-controller=\"webServicesController\" ng-init=\"setWebServiceType(resource.webServiceType)\">\n" +
    "    <h3><i ng-class=\"resource.icon\"></i>{{resource.title}}</h3>\n" +
    "    <form ng-submit='search()'>\n" +
    "        <div class=\"input-group search-container\" ng-show=\"showSearcher()\">\n" +
    "            <input type=\"text\" class=\"form-control\" ng-model=\"imageFilter\" placeholder=\"search\"/>\n" +
    "            <span class=\"input-group-btn\">\n" +
    "               <button type=\"submit\" class=\"btn btn-primary\" ng-click='search()'>\n" +
    "                   <i class=\"fa fa-search\"></i>\n" +
    "               </button>\n" +
    "            </span>\n" +
    "        </div>\n" +
    "    </form>\n" +
    "\n" +
    "    <div class=\"row media-resource\">\n" +
    "        <div ng-repeat=\"image in images\" class=\"image-container\" ng-click=\"selectImage(image)\">\n" +
    "            <div class=\"col-xs-6 col-sm-3 col-md-2 col-lg-2\">\n" +
    "                <div class=\"media-wrapper\" ng-class=\"{selected: image.selected}\">\n" +
    "                    <div class=\"image-wrapper\">\n" +
    "                        <div class=\"centered\">\n" +
    "                            <img ng-src=\"{{image.thumbnail}}\" class=\"img-responsive\"/>\n" +
    "                        </div>\n" +
    "                    </div>\n" +
    "                    <div class=\"image-title\">{{image.title}}</div>\n" +
    "                </div>\n" +
    "            </div>\n" +
    "        </div>\n" +
    "    </div>\n" +
    "\n" +
    "    <div class=\"row text-center\">\n" +
    "        <button class=\"btn btn-primary\" ng-click=\"loadMore()\">Load More</button>\n" +
    "    </div>\n" +
    "\n" +
    "</div>"
  );

}]);
