!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.PydioCoreActions=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o-1){var displayParam=parameters[displayParamIndex];parameters.splice(displayParamIndex,1),parameters.unshift(displayParam)}this.setState({templateId:templateId,formParameters:parameters},function(){_this3._updater(_this3.getButtons())})},resetTemplate:function(){var _this4=this;this.setState({templateId:null,formParameters:null,formValues:{},formValid:!1},function(){_this4._updater(_this4.getButtons())})},onFormValidStatusChange:function(newValidValue,failedFields){var _this5=this;this.setState({formValid:newValidValue},function(){_this5._updater(_this5.getButtons())})},render:function(){var _this6=this,_state3=this.state,xmlDefinitions=_state3.xmlDefinitions,templateId=_state3.templateId,formParameters=_state3.formParameters,formValues=_state3.formValues,formLoaded=_state3.formLoaded,MessageHash=this.props.pydio.MessageHash;if(!xmlDefinitions||!formLoaded)return React.createElement(Loader,null);if(!templateId){for(var templates=XMLUtils.XPathSelectNodes(xmlDefinitions,"//template"),items=[],_loop=function(i){var label=templates[i].getAttribute("repository_label"),tplId=templates[i].getAttribute("repository_id");items.push(React.createElement(ListItem,{key:tplId,primaryText:label,onTouchTap:function(){return _this6.chooseTemplate(tplId)}})),i