!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.PydioWorkspaces=f()}}(function(){var define;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;o1)for(var i=1;i"'`]/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,reRegExpChars=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,reHasRegExpChars=RegExp(reRegExpChars.source),reComboMark=/[\u0300-\u036f\ufe20-\ufe23]/g,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reHasHexPrefix=/^0[xX]/,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsUint=/^\d+$/,reLatin1=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,reWords=function(){var upper="[A-Z\\xc0-\\xd6\\xd8-\\xde]",lower="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(upper+"+(?="+upper+lower+")|"+upper+"?"+lower+"|"+upper+"+|[0-9]+","g")}(),contextProps=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],templateCounter=-1,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},htmlEscapes={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},htmlUnescapes={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},objectTypes={function:!0,object:!0},regexpEscapes={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&"object"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this;function baseCompareAscending(value,other){if(value!==other){var valIsNull=null===value,valIsUndef=value===undefined,valIsReflexive=value===value,othIsNull=null===other,othIsUndef=other===undefined,othIsReflexive=other===other;if(value>other&&!othIsNull||!valIsReflexive||valIsNull&&!othIsUndef&&othIsReflexive||valIsUndef&&othIsReflexive)return 1;if(value-1;);return index}function charsRightIndex(string,chars){for(var index=string.length;index--&&chars.indexOf(string.charAt(index))>-1;);return index}function compareAscending(object,other){return baseCompareAscending(object.criteria,other.criteria)||object.index-other.index}function compareMultiple(object,other,orders){for(var index=-1,objCriteria=object.criteria,othCriteria=other.criteria,length=objCriteria.length,ordersLength=orders.length;++index=ordersLength)return result;var order=orders[index];return result*("asc"===order||!0===order?1:-1)}}return object.index-other.index}function deburrLetter(letter){return deburredLetters[letter]}function escapeHtmlChar(chr){return htmlEscapes[chr]}function escapeRegExpChar(chr,leadingChar,whitespaceChar){return leadingChar?chr=regexpEscapes[chr]:whitespaceChar&&(chr=stringEscapes[chr]),"\\"+chr}function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:++index=9&&charCode<=13||32==charCode||160==charCode||5760==charCode||6158==charCode||charCode>=8192&&(charCode<=8202||8232==charCode||8233==charCode||8239==charCode||8287==charCode||12288==charCode||65279==charCode)}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=-1,result=[];++index>>1,MAX_SAFE_INTEGER=9007199254740991,metaMap=WeakMap&&new WeakMap,realNames={};function lodash(value){if(isObjectLike(value)&&!isArray(value)&&!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper)return value;if(hasOwnProperty.call(value,"__chain__")&&hasOwnProperty.call(value,"__wrapped__"))return wrapperClone(value)}return new LodashWrapper(value)}function baseLodash(){}function LodashWrapper(value,chainAll,actions){this.__wrapped__=value,this.__actions__=actions||[],this.__chain__=!!chainAll}lodash.support={};lodash.templateSettings={escape:reEscape,evaluate:reEvaluate,interpolate:reInterpolate,variable:"",imports:{_:lodash}};function LazyWrapper(value){this.__wrapped__=value,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=POSITIVE_INFINITY,this.__views__=[]}function lazyClone(){var result=new LazyWrapper(this.__wrapped__);return result.__actions__=arrayCopy(this.__actions__),result.__dir__=this.__dir__,result.__filtered__=this.__filtered__,result.__iteratees__=arrayCopy(this.__iteratees__),result.__takeCount__=this.__takeCount__,result.__views__=arrayCopy(this.__views__),result}function lazyReverse(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1,result.__filtered__=!0}else result=this.clone(),result.__dir__*=-1;return result}function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start=view.start,end=view.end,length=end-start,index=isRight?end:start-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length,this.__takeCount__);if(!isArr||arrLength=LARGE_ARRAY_SIZE?createCache(values):null,valuesLength=values.length;cache&&(indexOf=cacheIndexOf,isCommon=!1,values=cache);outer:for(;++indexlength?0:length+start),end=end===undefined||end>length?length:+end||0,end<0&&(end+=length),length=start>end?0:end>>>0,start>>>=0;startlength?0:length+start),end=end===undefined||end>length?length:+end||0,end<0&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);++index=LARGE_ARRAY_SIZE,seen=isLarge?createCache():null,result=[];seen?(indexOf=cacheIndexOf,isCommon=!1):(isLarge=!1,seen=iteratee?[]:result);outer:for(;++index>>1,computed=array[mid];(retHighest?computed<=value:computed2?sources[length-2]:undefined,guard=length>2?sources[2]:undefined,thisArg=length>1?sources[length-1]:undefined;for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:undefined,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?undefined:customizer,length=1);++index-1?collection[index]:undefined}return baseFind(collection,predicate,eachFunc)}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createFindKey(objectFunc){return function(object,predicate,thisArg){return predicate=getCallback(predicate,thisArg,3),baseFind(object,predicate,objectFunc,!0)}}function createFlow(fromRight){return function(){for(var wrapper,length=arguments.length,index=fromRight?length:-1,leftIndex=0,funcs=Array(length);fromRight?index--:++index=LARGE_ARRAY_SIZE)return wrapper.plant(value).value();for(var index=0,result=length?funcs[index].apply(this,args):value;++index=length||!nativeIsFinite(length))return"";var padLength=length-strLength;return chars=null==chars?" ":chars+"",repeat(chars,nativeCeil(padLength/chars.length)).slice(0,padLength)}function createPartialWrapper(func,bitmask,thisArg,partials){var isBind=bitmask&BIND_FLAG,Ctor=createCtorWrapper(func);function wrapper(){for(var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=Array(leftLength+argsLength);++leftIndexarrLength))return!1;for(;++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isStrictComparable(value){return value===value&&!isObject(value)}function mergeData(data,source){var bitmask=data[1],srcBitmask=source[1],newBitmask=bitmask|srcBitmask,isCommon=newBitmask0){if(++count>=HOT_COUNT)return key}else count=0;return baseSetData(key,value)}}();function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,allowIndexes=!!length&&isLength(length)&&(isArray(object)||isArguments(object)),index=-1,result=[];++index=120?createCache(othIndex&&value):null}var array=arrays[0],index=-1,length=array?array.length:0,seen=caches[0];outer:for(;++index-1;)splice.call(array,fromIndex,1);return array}var pullAt=restParam(function(array,indexes){indexes=baseFlatten(indexes);var result=baseAt(array,indexes);return basePullAt(array,indexes.sort(baseCompareAscending)),result});function remove(array,predicate,thisArg){var result=[];if(!array||!array.length)return result;var index=-1,indexes=[],length=array.length;for(predicate=getCallback(predicate,thisArg,3);++index2?arrays[length-2]:undefined,thisArg=length>1?arrays[length-1]:undefined;return length>2&&"function"==typeof iteratee?length-=2:(iteratee=length>1&&"function"==typeof thisArg?(--length,thisArg):undefined,thisArg=undefined),arrays.length=length,unzipWith(arrays,iteratee,thisArg)});function chain(value){var result=lodash(value);return result.__chain__=!0,result}function tap(value,interceptor,thisArg){return interceptor.call(thisArg,value),value}function thru(value,interceptor,thisArg){return interceptor.call(thisArg,value)}function wrapperChain(){return chain(this)}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)}var wrapperConcat=restParam(function(values){return values=baseFlatten(values),this.thru(function(array){return arrayConcat(isArray(array)?array:[toObject(array)],values)})});function wrapperPlant(value){ for(var result,parent=this;parent instanceof baseLodash;){var clone=wrapperClone(parent);result?previous.__wrapped__=clone:result=clone;var previous=clone;parent=parent.__wrapped__}return previous.__wrapped__=value,result}function wrapperReverse(){var value=this.__wrapped__,interceptor=function(value){return wrapped&&wrapped.__dir__<0?value:value.reverse()};if(value instanceof LazyWrapper){var wrapped=value;return this.__actions__.length&&(wrapped=new LazyWrapper(this)),wrapped=wrapped.reverse(),wrapped.__actions__.push({func:thru,args:[interceptor],thisArg:undefined}),new LodashWrapper(wrapped,this.__chain__)}return this.thru(interceptor)}function wrapperToString(){return this.value()+""}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)}var at=restParam(function(collection,props){return baseAt(collection,baseFlatten(props))}),countBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?++result[key]:result[key]=1});function every(collection,predicate,thisArg){var func=isArray(collection)?arrayEvery:baseEvery;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=undefined),"function"==typeof predicate&&thisArg===undefined||(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function filter(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,predicate)}var find=createFind(baseEach),findLast=createFind(baseEachRight,!0);function findWhere(collection,source){return find(collection,baseMatches(source))}var forEach=createForEach(arrayEach,baseEach),forEachRight=createForEach(arrayEachRight,baseEachRight),groupBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?result[key].push(value):result[key]=[value]});function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),fromIndex="number"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:fromIndex<0?nativeMax(length+fromIndex,0):fromIndex||0,"string"==typeof collection||!isArray(collection)&&isString(collection)?fromIndex<=length&&collection.indexOf(target,fromIndex)>-1:!!length&&getIndexOf(collection,target,fromIndex)>-1}var indexBy=createAggregator(function(result,value,key){result[key]=value}),invoke=restParam(function(collection,path,args){var index=-1,isFunc="function"==typeof path,isProp=isKey(path),result=isArrayLike(collection)?Array(collection.length):[];return baseEach(collection,function(value){var func=isFunc?path:isProp&&null!=value?value[path]:undefined;result[++index]=func?func.apply(value,args):invokePath(value,path,args)}),result});function map(collection,iteratee,thisArg){var func=isArray(collection)?arrayMap:baseMap;return iteratee=getCallback(iteratee,thisArg,3),func(collection,iteratee)}var partition=createAggregator(function(result,value,key){result[key?0:1].push(value)},function(){return[[],[]]});function pluck(collection,path){return map(collection,property(path))}var reduce=createReduce(arrayReduce,baseEach),reduceRight=createReduce(arrayReduceRight,baseEachRight);function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function sample(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):null==n){collection=toIterable(collection);var length=collection.length;return length>0?collection[baseRandom(0,length-1)]:undefined}var index=-1,result=toArray(collection),length=result.length,lastIndex=length-1;for(n=nativeMin(n<0?0:+n||0,length);++index0&&(result=func.apply(this,arguments)),n<=1&&(func=undefined),result}}var bind=restParam(function(func,thisArg,partials){var bitmask=BIND_FLAG;if(partials.length){var holders=replaceHolders(partials,bind.placeholder);bitmask|=PARTIAL_FLAG}return createWrapper(func,bitmask,thisArg,partials,holders)}),bindAll=restParam(function(object,methodNames){methodNames=methodNames.length?baseFlatten(methodNames):functions(object);for(var index=-1,length=methodNames.length;++indexwait?complete(trailingCall,maxTimeoutId):timeoutId=setTimeout(delayed,remaining)}function maxDelayed(){complete(trailing,timeoutId)}function debounced(){if(args=arguments,stamp=now(),thisArg=this,trailingCall=trailing&&(timeoutId||!leading),!1===maxWait)var leadingCall=leading&&!timeoutId;else{maxTimeoutId||leading||(lastCalled=stamp);var remaining=maxWait-(stamp-lastCalled),isCalled=remaining<=0||remaining>maxWait;isCalled?(maxTimeoutId&&(maxTimeoutId=clearTimeout(maxTimeoutId)),lastCalled=stamp,result=func.apply(thisArg,args)):maxTimeoutId||(maxTimeoutId=setTimeout(maxDelayed,remaining))}return isCalled&&timeoutId?timeoutId=clearTimeout(timeoutId):timeoutId||wait===maxWait||(timeoutId=setTimeout(delayed,wait)),leadingCall&&(isCalled=!0,result=func.apply(thisArg,args)),!isCalled||timeoutId||maxTimeoutId||(args=thisArg=undefined),result}return debounced.cancel=cancel,debounced}var defer=restParam(function(func,args){return baseDelay(func,1,args)}),delay=restParam(function(func,wait,args){return baseDelay(func,wait,args)}),flow=createFlow(),flowRight=createFlow(!0);function memoize(func,resolver){if("function"!=typeof func||resolver&&"function"!=typeof resolver)throw new TypeError(FUNC_ERROR_TEXT);var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result),result};return memoized.cache=new memoize.Cache,memoized}var modArgs=restParam(function(func,transforms){if(transforms=baseFlatten(transforms),"function"!=typeof func||!arrayEvery(transforms,baseIsFunction))throw new TypeError(FUNC_ERROR_TEXT);var length=transforms.length;return restParam(function(args){for(var index=nativeMin(args.length,length);index--;)args[index]=transforms[index](args[index]);return func.apply(this,args)})});function negate(predicate){if("function"!=typeof predicate)throw new TypeError(FUNC_ERROR_TEXT);return function(){return!predicate.apply(this,arguments)}}function once(func){return before(2,func)}var partial=createPartial(PARTIAL_FLAG),partialRight=createPartial(PARTIAL_RIGHT_FLAG),rearg=restParam(function(func,indexes){return createWrapper(func,REARG_FLAG,undefined,undefined,undefined,baseFlatten(indexes))});function restParam(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);++indexother}function gte(value,other){return value>=other}function isArguments(value){return isObjectLike(value)&&isArrayLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")}var isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag};function isBoolean(value){return!0===value||!1===value||isObjectLike(value)&&objToString.call(value)==boolTag}function isDate(value){return isObjectLike(value)&&objToString.call(value)==dateTag}function isElement(value){return!!value&&1===value.nodeType&&isObjectLike(value)&&!isPlainObject(value)}function isEmpty(value){return null==value||(isArrayLike(value)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!value.length:!keys(value).length)}function isEqual(value,other,customizer,thisArg){customizer="function"==typeof customizer?bindCallback(customizer,thisArg,3):undefined;var result=customizer?customizer(value,other):undefined;return result===undefined?baseIsEqual(value,other,customizer):!!result}function isError(value){return isObjectLike(value)&&"string"==typeof value.message&&objToString.call(value)==errorTag}function isFinite(value){return"number"==typeof value&&nativeIsFinite(value)}function isFunction(value){return isObject(value)&&objToString.call(value)==funcTag}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isMatch(object,source,customizer,thisArg){return customizer="function"==typeof customizer?bindCallback(customizer,thisArg,3):undefined,baseIsMatch(object,getMatchData(source),customizer)}function isNaN(value){return isNumber(value)&&value!=+value}function isNative(value){return null!=value&&(isFunction(value)?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value))}function isNull(value){return null===value}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isPlainObject(value){var Ctor;if(!isObjectLike(value)||objToString.call(value)!=objectTag||isArguments(value)||!hasOwnProperty.call(value,"constructor")&&"function"==typeof(Ctor=value.constructor)&&!(Ctor instanceof Ctor))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function isRegExp(value){return isObject(value)&&objToString.call(value)==regexpTag}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function isUndefined(value){return value===undefined}function lt(value,other){return value0;++index=nativeMin(start,end)&&value=0&&string.indexOf(target,position)==position}function escape(string){return string=baseToString(string),string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,escapeRegExpChar):string||"(?:)"}var kebabCase=createCompounder(function(result,word,index){return result+(index?"-":"")+word.toLowerCase()});function pad(string,length,chars){string=baseToString(string),length=+length;var strLength=string.length;if(strLength>=length||!nativeIsFinite(length))return string;var mid=(length-strLength)/2,leftLength=nativeFloor(mid);return chars=createPadding("",nativeCeil(mid),chars),chars.slice(0,leftLength)+string+chars}var padLeft=createPadDir(),padRight=createPadDir(!0);function parseInt(string,radix,guard){return(guard?isIterateeCall(string,radix,guard):null==radix)?radix=0:radix&&(radix=+radix),string=trim(string),nativeParseInt(string,radix||(reHasHexPrefix.test(string)?16:10))}function repeat(string,n){var result="";if(string=baseToString(string),(n=+n)<1||!string||!nativeIsFinite(n))return result;do{n%2&&(result+=string),n=nativeFloor(n/2),string+=string}while(n);return result}var snakeCase=createCompounder(function(result,word,index){return result+(index?"_":"")+word.toLowerCase()}),startCase=createCompounder(function(result,word,index){return result+(index?" ":"")+(word.charAt(0).toUpperCase()+word.slice(1))});function startsWith(string,target,position){return string=baseToString(string),position=null==position?0:nativeMin(position<0?0:+position||0,string.length),string.lastIndexOf(target,position)==position}function template(string,options,otherOptions){var settings=lodash.templateSettings;otherOptions&&isIterateeCall(string,options,otherOptions)&&(options=otherOptions=undefined),string=baseToString(string),options=assignWith(baseAssign({},otherOptions||options),settings,assignOwnDefaults);var isEscaping,isEvaluating,imports=assignWith(baseAssign({},options.imports),settings.imports,assignOwnDefaults),importsKeys=keys(imports),importsValues=baseValues(imports,importsKeys),index=0,interpolate=options.interpolate||reNoMatch,source="__p += '",reDelimiters=RegExp((options.escape||reNoMatch).source+"|"+interpolate.source+"|"+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g"),sourceURL="//# sourceURL="+("sourceURL"in options?options.sourceURL:"lodash.templateSources["+ ++templateCounter+"]")+"\n";string.replace(reDelimiters,function(match,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset){return interpolateValue||(interpolateValue=esTemplateValue),source+=string.slice(index,offset).replace(reUnescapedString,escapeStringChar),escapeValue&&(isEscaping=!0,source+="' +\n__e("+escapeValue+") +\n'"),evaluateValue&&(isEvaluating=!0,source+="';\n"+evaluateValue+";\n__p += '"),interpolateValue&&(source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'"),index=offset+match.length,match}),source+="';\n";var variable=options.variable;variable||(source="with (obj) {\n"+source+"\n}\n"),source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;"),source="function("+(variable||"obj")+") {\n"+(variable?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(isEscaping?", __e = _.escape":"")+(isEvaluating?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var result=attempt(function(){return Function(importsKeys,sourceURL+"return "+source).apply(undefined,importsValues)});if(result.source=source,isError(result))throw result;return result}function trim(string,chars,guard){var value=string;return(string=baseToString(string))?(guard?isIterateeCall(value,chars,guard):null==chars)?string.slice(trimmedLeftIndex(string),trimmedRightIndex(string)+1):(chars+="",string.slice(charsLeftIndex(string,chars),charsRightIndex(string,chars)+1)):string}function trimLeft(string,chars,guard){var value=string;return string=baseToString(string),string?(guard?isIterateeCall(value,chars,guard):null==chars)?string.slice(trimmedLeftIndex(string)):string.slice(charsLeftIndex(string,chars+"")):string}function trimRight(string,chars,guard){var value=string;return string=baseToString(string),string?(guard?isIterateeCall(value,chars,guard):null==chars)?string.slice(0,trimmedRightIndex(string)+1):string.slice(0,charsRightIndex(string,chars+"")+1):string}function trunc(string,options,guard){guard&&isIterateeCall(string,options,guard)&&(options=undefined);var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(null!=options)if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?+options.length||0:length,omission="omission"in options?baseToString(options.omission):omission}else length=+options||0;if(string=baseToString(string),length>=string.length)return string;var end=length-omission.length;if(end<1)return omission;var result=string.slice(0,end);if(null==separator)return result+omission;if(isRegExp(separator)){if(string.slice(end).search(separator)){var match,newEnd,substring=string.slice(0,end);for(separator.global||(separator=RegExp(separator.source,(reFlags.exec(separator)||"")+"g")),separator.lastIndex=0;match=separator.exec(substring);)newEnd=match.index;result=result.slice(0,null==newEnd?end:newEnd)}}else if(string.indexOf(separator,end)!=end){var index=result.lastIndexOf(separator);index>-1&&(result=result.slice(0,index))}return result+omission}function unescape(string){return string=baseToString(string),string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string}function words(string,pattern,guard){return guard&&isIterateeCall(string,pattern,guard)&&(pattern=undefined),string=baseToString(string),string.match(pattern||reWords)||[]}var attempt=restParam(function(func,args){try{return func.apply(undefined,args)}catch(e){return isError(e)?e:new Error(e)}});function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=undefined),isObjectLike(func)?matches(func):baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function matches(source){return baseMatches(baseClone(source,!0))}function matchesProperty(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,!0))}var method=restParam(function(path,args){return function(object){return invokePath(object,path,args)}}),methodOf=restParam(function(object,args){return function(path){return invokePath(object,path,args)}});function mixin(object,source,options){if(null==options){var isObj=isObject(source),props=isObj?keys(source):undefined,methodNames=props&&props.length?baseFunctions(source,props):undefined;(methodNames?methodNames.length:isObj)||(methodNames=!1,options=source,source=object,object=this)}methodNames||(methodNames=baseFunctions(source,keys(source)));var chain=!0,index=-1,isFunc=isFunction(object),length=methodNames.length;!1===options?chain=!1:isObject(options)&&"chain"in options&&(chain=options.chain);for(;++index0||end<0)?new LazyWrapper(result):(start<0?result=result.takeRight(-start):start&&(result=result.drop(start)),end!==undefined&&(end=+end||0,result=end<0?result.dropRight(-end):result.take(end-start)),result)},LazyWrapper.prototype.takeRightWhile=function(predicate,thisArg){return this.reverse().takeWhile(predicate,thisArg).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(POSITIVE_INFINITY)},baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|map|reject)|While$/.test(methodName),retUnwrapped=/^(?:first|last)$/.test(methodName),lodashFunc=lodash[retUnwrapped?"take"+("last"==methodName?"Right":""):methodName];lodashFunc&&(lodash.prototype[methodName]=function(){var args=retUnwrapped?[1]:arguments,chainAll=this.__chain__,value=this.__wrapped__,isHybrid=!!this.__actions__.length,isLazy=value instanceof LazyWrapper,iteratee=args[0],useLazy=isLazy||isArray(value);useLazy&&checkIteratee&&"function"==typeof iteratee&&1!=iteratee.length&&(isLazy=useLazy=!1);var interceptor=function(value){return retUnwrapped&&chainAll?lodashFunc(value,1)[0]:lodashFunc.apply(undefined,arrayPush([value],args))},action={func:thru,args:[interceptor],thisArg:undefined},onlyLazy=isLazy&&!isHybrid;if(retUnwrapped&&!chainAll)return onlyLazy?(value=value.clone(),value.__actions__.push(action),func.call(value)):lodashFunc.call(undefined,this.value())[0];if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result=func.apply(value,args);return result.__actions__.push(action),new LodashWrapper(result,chainAll)}return this.thru(interceptor)})}),arrayEach(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(methodName){var func=(/^(?:replace|split)$/.test(methodName)?stringProto:arrayProto)[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:join|pop|replace|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;return retUnwrapped&&!this.__chain__?func.apply(this.value(),args):this[chainName](function(value){return func.apply(value,args)})}}),baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name;(realNames[key]||(realNames[key]=[])).push({name:methodName,func:lodashFunc})}}),realNames[createHybridWrapper(undefined,BIND_KEY_FLAG).name]=[{name:"wrapper",func:undefined}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash.prototype.chain=wrapperChain,lodash.prototype.commit=wrapperCommit,lodash.prototype.concat=wrapperConcat,lodash.prototype.plant=wrapperPlant,lodash.prototype.reverse=wrapperReverse,lodash.prototype.toString=wrapperToString,lodash.prototype.run=lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue,lodash.prototype.collect=lodash.prototype.map,lodash.prototype.head=lodash.prototype.first,lodash.prototype.select=lodash.prototype.filter,lodash.prototype.tail=lodash.prototype.rest,lodash}var _=runInContext();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(root._=_,define(function(){return _})):freeExports&&freeModule?moduleExports?(freeModule.exports=_)._=_:freeExports._=_:root._=_}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(require,module,exports){"use strict";module.exports={set:setNestedProperty,get:getNestedProperty,has:hasNestedProperty,hasOwn:function(object,property,options){return this.has(object,property,options||{own:!0})},isIn:isInNestedProperty};function getNestedProperty(object,property){if(object&&"object"==typeof object){if("string"==typeof property&&""!==property){return property.split(".").reduce(function(obj,prop){return obj&&obj[prop]},object)}return"number"==typeof property?object[property]:object}return object}function hasNestedProperty(object,property,options){if(options=options||{},object&&"object"==typeof object){if("string"==typeof property&&""!==property){return property.split(".").reduce(function(obj,prop,idx,array){return idx==array.length-1?options.own?!(!obj||!obj.hasOwnProperty(prop)):!!(null!==obj&&"object"==typeof obj&&prop in obj):obj&&obj[prop]},object)}return"number"==typeof property&&property in object}return!1}function setNestedProperty(object,property,value){if(object&&"object"==typeof object){if("string"==typeof property&&""!==property){var split=property.split(".");return split.reduce(function(obj,prop,idx){return obj[prop]=obj[prop]||{},split.length==idx+1&&(obj[prop]=value),obj[prop]},object)}return"number"==typeof property?(object[property]=value,object[property]):object}return object}function isInNestedProperty(object,property,objectInPath,options){if(options=options||{},object&&"object"==typeof object){if("string"==typeof property&&""!==property){var pathExists,split=property.split("."),isIn=!1;return pathExists=!!split.reduce(function(obj,prop){return isIn=isIn||obj===objectInPath||!!obj&&obj[prop]===objectInPath,obj&&obj[prop]},object),options.validPath?isIn&&pathExists:isIn}return!1}return!1}},{}],5:[function(require,module,exports){"use strict";var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(val){if(null===val||void 0===val)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(val)}function shouldUseNative(){try{if(!Object.assign)return!1;var test1=new String("abc");if(test1[5]="de","5"===Object.getOwnPropertyNames(test1)[0])return!1;for(var test2={},i=0;i<10;i++)test2["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(test2).map(function(n){return test2[n]}).join(""))return!1;var test3={};return"abcdefghijklmnopqrst".split("").forEach(function(letter){test3[letter]=letter}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},test3)).join("")}catch(err){return!1}}module.exports=shouldUseNative()?Object.assign:function(target,source){for(var from,symbols,to=toObject(target),s=1;s1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var argIndex=0,message="Warning: "+format.replace(/%s/g,function(){return args[argIndex++]});"undefined"!=typeof console&&console.warn(message);try{throw new Error(message)}catch(x){}};lowPriorityWarningWithoutStack=function(condition,format){if(void 0===format)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!condition){for(var _len2=arguments.length,args=new Array(_len2>2?_len2-2:0),_key2=2;_key2<_len2;_key2++)args[_key2-2]=arguments[_key2];printWarning.apply(void 0,[format].concat(args))}};var lowPriorityWarningWithoutStack$1=lowPriorityWarningWithoutStack;function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_ASYNC_MODE_TYPE:case REACT_CONCURRENT_MODE_TYPE:case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}} var AsyncMode=REACT_ASYNC_MODE_TYPE,ConcurrentMode=REACT_CONCURRENT_MODE_TYPE,ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1;function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,lowPriorityWarningWithoutStack$1(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE}function isConcurrentMode(object){return typeOf(object)===REACT_CONCURRENT_MODE_TYPE}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}exports.typeOf=typeOf,exports.AsyncMode=AsyncMode,exports.ConcurrentMode=ConcurrentMode,exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isValidElementType=isValidElementType,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement,exports.isForwardRef=isForwardRef,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense}()}).call(this,require("_process"))},{_process:1}],16:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var b="function"==typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.fundamental"):60117,w=b?Symbol.for("react.responder"):60118,x=b?Symbol.for("react.scope"):60119;function y(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function z(a){return y(a)===m}exports.typeOf=y,exports.AsyncMode=l,exports.ConcurrentMode=m,exports.ContextConsumer=k,exports.ContextProvider=h,exports.Element=c,exports.ForwardRef=n,exports.Fragment=e,exports.Lazy=t,exports.Memo=r,exports.Portal=d,exports.Profiler=g,exports.StrictMode=f,exports.Suspense=p,exports.isValidElementType=function(a){return"string"==typeof a||"function"==typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"==typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===v||a.$$typeof===w||a.$$typeof===x)},exports.isAsyncMode=function(a){return z(a)||y(a)===l},exports.isConcurrentMode=z,exports.isContextConsumer=function(a){return y(a)===k},exports.isContextProvider=function(a){return y(a)===h},exports.isElement=function(a){return"object"==typeof a&&null!==a&&a.$$typeof===c},exports.isForwardRef=function(a){return y(a)===n},exports.isFragment=function(a){return y(a)===e},exports.isLazy=function(a){return y(a)===t},exports.isMemo=function(a){return y(a)===r},exports.isPortal=function(a){return y(a)===d},exports.isProfiler=function(a){return y(a)===g},exports.isStrictMode=function(a){return y(a)===f},exports.isSuspense=function(a){return y(a)===p}},{}],17:[function(require,module,exports){(function(process){"use strict";"production"===process.env.NODE_ENV?module.exports=require("./cjs/react-is.production.min.js"):module.exports=require("./cjs/react-is.development.js")}).call(this,require("_process"))},{"./cjs/react-is.development.js":15,"./cjs/react-is.production.min.js":16,_process:1}],18:[function(require,module,exports){"use strict";exports.__esModule=!0;var _createClass=function(){function defineProperties(target,props){for(var i=0;i=hole.top&&offsetY<=hole.top+hole.height,inHoleWidth=offsetX>=hole.left&&offsetX<=hole.left+hole.width,inHole=inHoleWidth&&inHoleHeight;inHole&&!_this.state.mouseOverHole&&_this.setState({mouseOverHole:!0}),!inHole&&_this.state.mouseOverHole&&_this.setState({mouseOverHole:!1})},_this.state={},_this}return _createClass(JoyrideTooltip,[{key:"componentWillMount",value:function(){var opts=this.setOpts(),styles=this.setStyles(this.props.step.style,opts,this.props);this.setState({styles:styles,opts:opts})}},{key:"componentDidMount",value:function(){var _props=this.props,allowClicksThruHole=_props.allowClicksThruHole,onRender=_props.onRender,showOverlay=_props.showOverlay;this.forceUpdate(),onRender(),showOverlay&&allowClicksThruHole&&document.addEventListener("mousemove",this.handleMouseMove,!1)}},{key:"componentWillReceiveProps",value:function(nextProps){var nextAllowClicksThruHole=nextProps.allowClicksThruHole,nextAnimate=nextProps.animate,nextStandalone=nextProps.standalone,nextStep=nextProps.step,nextHolePadding=nextProps.holePadding,nextPosition=nextProps.position,nextXPos=nextProps.xPos,nextYPos=nextProps.yPos,nextShowOverlay=nextProps.showOverlay,_props2=this.props,allowClicksThruHole=_props2.allowClicksThruHole,animate=_props2.animate,standalone=_props2.standalone,step=_props2.step,holePadding=_props2.holePadding,position=_props2.position,xPos=_props2.xPos,yPos=_props2.yPos,showOverlay=_props2.showOverlay;if(nextAnimate!==animate||nextStandalone!==standalone||nextStep!==step||nextHolePadding!==holePadding||nextPosition!==position||nextXPos!==xPos||nextYPos!==yPos){var opts=this.setOpts(nextProps),styles=this.setStyles(nextProps.step.style,opts,nextProps);this.setState({styles:styles,opts:opts})}nextShowOverlay!==showOverlay&&(nextShowOverlay&&nextAllowClicksThruHole?document.addEventListener("mousemove",this.handleMouseMove,!1):document.removeEventListener("mousemove",this.handleMouseMove,!1)),nextAllowClicksThruHole!==allowClicksThruHole&&(nextAllowClicksThruHole?document.addEventListener("mousemove",this.handleMouseMove,!1):document.removeEventListener("mousemove",this.handleMouseMove,!1))}},{key:"componentDidUpdate",value:function(prevProps){var _props3=this.props,onRender=_props3.onRender,selector=_props3.selector;prevProps.selector!==selector&&(this.forceUpdate(),onRender())}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousemove",this.handleMouseMove,!1)}},{key:"getArrowPosition",value:function(position){var arrowPosition=position;return window.innerWidth<480?position<8?arrowPosition=8:position>92&&(arrowPosition=92):window.innerWidth<1024?position<6?arrowPosition=6:position>94&&(arrowPosition=94):position<5?arrowPosition=5:position>95&&(arrowPosition=95),arrowPosition}},{key:"generateArrow",value:function(){var opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};opts.location=opts.location||"top",opts.color=opts.color||"#f04",opts.color=opts.color.replace("#","%23"),opts.width=opts.width||36,opts.height=opts.width/2,opts.scale=opts.width/16,opts.rotate="0";var height=opts.height,rotate=opts.rotate,width=opts.width;return"bottom"===opts.location?rotate="180 8 4":"left"===opts.location?(height=opts.width,width=opts.height,rotate="270 8 8"):"right"===opts.location&&(height=opts.width,width=opts.height,rotate="90 4 4"),"data:image/svg+xml,%3Csvg%20width%3D%22"+width+"%22%20height%3D%22"+height+"%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpolygon%20points%3D%220%2C%200%208%2C%208%2016%2C0%22%20fill%3D%22"+opts.color+"%22%20transform%3D%22scale%28"+opts.scale+"%29%20rotate%28"+rotate+"%29%22%3E%3C%2Fpolygon%3E%3C%2Fsvg%3E"}},{key:"setStyles",value:function(stepStyles,opts,props){var holePadding=props.holePadding,step=props.step,xPos=props.xPos,yPos=props.yPos,isFixed=!0===step.isFixed,styles={arrow:{left:opts.arrowPosition},buttons:{},header:{},main:{},footer:{},hole:{},tooltip:{position:isFixed?"fixed":"absolute",top:Math.round(yPos),left:Math.round(xPos)}};return styles.hole={top:Math.round(opts.rect.top-(isFixed?0:document.body.getBoundingClientRect().top)-holePadding),left:Math.round(opts.rect.left-holePadding),width:Math.round(opts.rect.width+2*holePadding),height:Math.round(opts.rect.height+2*holePadding)},isFixed&&(styles.hole.position="fixed"),styles.buttons={back:{},close:{},primary:{},skip:{}},stepStyles&&(stepStyles.backgroundColor&&(styles.arrow.backgroundImage='url("'+this.generateArrow({location:opts.positonBaseClass,color:stepStyles.backgroundColor})+'")',styles.tooltip.backgroundColor=stepStyles.backgroundColor),stepStyles.borderRadius&&(styles.tooltip.borderRadius=stepStyles.borderRadius),stepStyles.color&&(styles.buttons.primary.color=stepStyles.color,styles.buttons.close.color=stepStyles.color,styles.buttons.skip.color=stepStyles.color,styles.header.color=stepStyles.color,styles.tooltip.color=stepStyles.color,stepStyles.mainColor&&stepStyles.mainColor===stepStyles.color&&(styles.buttons.primary.color=stepStyles.backgroundColor)),stepStyles.mainColor&&(styles.buttons.primary.backgroundColor=stepStyles.mainColor,styles.buttons.back.color=stepStyles.mainColor,styles.header.borderColor=stepStyles.mainColor),stepStyles.textAlign&&(styles.tooltip.textAlign=stepStyles.textAlign),stepStyles.width&&(styles.tooltip.width=stepStyles.width),stepStyles.header&&(styles.header=_extends({},styles.header,stepStyles.header)),stepStyles.main&&(styles.main=_extends({},styles.main,stepStyles.main)),stepStyles.footer&&(styles.footer=_extends({},styles.footer,stepStyles.footer)),stepStyles.back&&(styles.buttons.back=_extends({},styles.buttons.back,stepStyles.back)),stepStyles.arrow&&(styles.arrow=_extends({},styles.arrow,stepStyles.arrow)),stepStyles.button&&(styles.buttons.primary=_extends({},styles.buttons.primary,stepStyles.button)),stepStyles.close&&(styles.buttons.close=_extends({},styles.buttons.close,stepStyles.close)),stepStyles.skip&&(styles.buttons.skip=_extends({},styles.buttons.skip,stepStyles.skip)),stepStyles.hole&&(styles.hole=_extends({},stepStyles.hole,styles.hole))),styles}},{key:"setOpts",value:function(){var props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,animate=props.animate,offsetParentSelector=props.offsetParentSelector,position=props.position,standalone=props.standalone,target=props.target,xPos=props.xPos,offsetParent=document.querySelector((0,_utils.sanitizeSelector)(offsetParentSelector)),tooltip=document.querySelector(".joyride-tooltip"),opts={classes:["joyride-tooltip"],rect:(0,_utils.getOffsetBoundingClientRect)(target,offsetParent),positionClass:position};return opts.positonBaseClass=opts.positionClass.match(/-/)?opts.positionClass.split("-")[0]:opts.positionClass,(/^bottom$/.test(opts.positionClass)||/^top$/.test(opts.positionClass))&&xPos>-1&&(opts.tooltip={width:450},tooltip&&(opts.tooltip=(0,_utils.getOffsetBoundingClientRect)(tooltip,offsetParent)),opts.targetMiddle=opts.rect.left+opts.rect.width/2,opts.arrowPosition=((opts.targetMiddle-xPos)/opts.tooltip.width*100).toFixed(2),opts.arrowPosition=this.getArrowPosition(opts.arrowPosition)+"%"),standalone&&opts.classes.push("joyride-tooltip--standalone"),opts.positonBaseClass!==opts.positionClass&&opts.classes.push(opts.positonBaseClass),opts.classes.push(opts.positionClass),animate&&opts.classes.push("joyride-tooltip--animate"),opts}},{key:"render",value:function(){var _props4=this.props,buttons=_props4.buttons,disableOverlay=_props4.disableOverlay,onClick=_props4.onClick,selector=_props4.selector,showOverlay=_props4.showOverlay,step=_props4.step,target=_props4.target,type=_props4.type;if(target){var _state=this.state,opts=_state.opts,styles=_state.styles,output={};if(step.title&&(output.header=_react2.default.createElement("div",{className:"joyride-tooltip__header",style:styles.header},step.title)),buttons.skip&&(output.skip=_react2.default.createElement("button",{className:"joyride-tooltip__button joyride-tooltip__button--skip",style:styles.buttons.skip,"data-type":"skip",onClick:onClick},buttons.skip)),step.text&&"string"!=typeof step.text?output.main=_react2.default.createElement("div",{className:"joyride-tooltip__main",style:styles.main},step.text):output.main=_react2.default.createElement("div",{className:"joyride-tooltip__main",style:styles.main,dangerouslySetInnerHTML:{__html:step.text||""}}),buttons.secondary&&(output.secondary=_react2.default.createElement("button",{className:"joyride-tooltip__button joyride-tooltip__button--secondary",style:styles.buttons.back,"data-type":"back",onClick:onClick},buttons.secondary)),"hover"===step.event&&(styles.buttons.close.opacity=0),output.tooltipComponent=_react2.default.createElement("div",{className:opts.classes.join(" "),style:styles.tooltip,"data-target":selector},_react2.default.createElement("div",{className:"joyride-tooltip__triangle joyride-tooltip__triangle-"+opts.positionClass,style:styles.arrow}),_react2.default.createElement("button",{className:"joyride-tooltip__close"+(output.header?" joyride-tooltip__close--header":""),style:styles.buttons.close,"data-type":"close",onClick:onClick}),output.header,output.main,_react2.default.createElement("div",{className:"joyride-tooltip__footer",style:styles.footer},output.skip,output.secondary,_react2.default.createElement("button",{className:"joyride-tooltip__button joyride-tooltip__button--primary",style:styles.buttons.primary,"data-type":["single","casual"].includes(type)?"close":"next",onClick:onClick},buttons.primary))),showOverlay&&(output.hole=_react2.default.createElement("div",{className:"joyride-hole "+_utils.browser,style:styles.hole,onClick:function(){}})),!showOverlay)return output.tooltipComponent;var overlayStyles={cursor:disableOverlay?"default":"pointer",height:document.body.clientHeight,pointerEvents:this.state.mouseOverHole?"none":"auto"};return _react2.default.createElement("div",{className:"joyride-overlay",style:overlayStyles,"data-type":"close",onClick:disableOverlay?void 0:onClick},output.hole,output.tooltipComponent)}}}]),JoyrideTooltip}(_react2.default.Component);JoyrideTooltip.propTypes={allowClicksThruHole:_propTypes2.default.bool.isRequired,animate:_propTypes2.default.bool.isRequired,buttons:_propTypes2.default.object.isRequired,disableOverlay:_propTypes2.default.bool,holePadding:_propTypes2.default.number,offsetParentSelector:_propTypes2.default.string,onClick:_propTypes2.default.func.isRequired,onRender:_propTypes2.default.func.isRequired,position:_propTypes2.default.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","right","left"]).isRequired,selector:_propTypes2.default.string.isRequired,showOverlay:_propTypes2.default.bool.isRequired,standalone:_propTypes2.default.bool,step:_propTypes2.default.object.isRequired,target:_propTypes2.default.object.isRequired,type:_propTypes2.default.string.isRequired,xPos:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]).isRequired,yPos:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]).isRequired},JoyrideTooltip.defaultProps={buttons:{primary:"Close"},step:{},xPos:-1e3,yPos:-1e3},exports.default=JoyrideTooltip},{"./utils":21,"prop-types":10,react:"react"}],20:[function(require,module,exports){"use strict";exports.__esModule=!0;var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_extends=Object.assign||function(target){for(var i=1;i0||prevState.index>index)&&step&&!step.isFixed;shouldRedraw&&step&&this.calcPlacement(),isRunning&&scrollToSteps&&shouldScroll&&scrollTop>=0&&_scroll2.default.top((0,_utils.getRootEl)(),this.getScrollTop()),steps.length&&!isRunning&&shouldRun&&!standaloneData&&this.start()}},{key:"componentWillUnmount",value:function(){var _this3=this;window.removeEventListener("resize",this.listeners.resize),this.listeners.keyboard&&document.body.removeEventListener("keydown",this.listeners.keyboard),Object.keys(this.listeners.tooltips).length&&Object.keys(this.listeners.tooltips).map(function(key){return{el:document.querySelector(key),event:_this3.listeners.tooltips[key].event,cb:_this3.listeners.tooltips[key].cb,key:key}}).filter(function(_ref){return!!_ref.el}).forEach(function(_ref2){var el=_ref2.el,event=_ref2.event,cb=_ref2.cb,key=_ref2.key;el.removeEventListener(event,cb),delete _this3.listeners.tooltips[key]})}},{key:"start",value:function(autorun){var steps=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.steps,startIndex=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.state.index,hasMountedTarget=Boolean(this.getStepTargetElement(steps[startIndex])),shouldRenderTooltip=!0===autorun&&hasMountedTarget;(0,_utils.logger)({type:"joyride:start",msg:["autorun:",!0===autorun],debug:this.props.debug}),this.setState({action:"start",index:startIndex,isRunning:Boolean(steps.length)&&hasMountedTarget,shouldRenderTooltip:shouldRenderTooltip,shouldRun:!steps.length})}},{key:"stop",value:function(){(0,_utils.logger)({type:"joyride:stop",debug:this.props.debug}),this.setState({isRunning:!1,shouldRenderTooltip:!1})}},{key:"next",value:function(){var _state4=this.state,index=_state4.index,shouldRenderTooltip=_state4.shouldRenderTooltip,steps=this.props.steps,nextIndex=index+1,shouldDisplay=Boolean(steps[nextIndex])&&shouldRenderTooltip;(0,_utils.logger)({type:"joyride:next",msg:["new index:",nextIndex],debug:this.props.debug}),this.toggleTooltip({show:shouldDisplay,index:nextIndex,action:"next"})}},{key:"back",value:function(){var _state5=this.state,index=_state5.index,shouldRenderTooltip=_state5.shouldRenderTooltip,steps=this.props.steps,previousIndex=index-1,shouldDisplay=Boolean(steps[previousIndex])&&shouldRenderTooltip;(0,_utils.logger)({type:"joyride:back",msg:["new index:",previousIndex],debug:this.props.debug}),this.toggleTooltip({show:shouldDisplay,index:previousIndex,action:"next"})}},{key:"reset",value:function(restart){var _state6=this.state,index=_state6.index,isRunning=_state6.isRunning,shouldRestart=!0===restart,newState=_extends({},defaultState,{isRunning:shouldRestart,shouldRenderTooltip:this.props.autoStart});(0,_utils.logger)({type:"joyride:reset",msg:["restart:",shouldRestart],debug:this.props.debug}),shouldRestart&&isRunning===shouldRestart&&0===index&&this.forceUpdate(),this.setState(newState)}},{key:"getProgress",value:function(){var index=this.state.index,steps=this.props.steps;return(0,_utils.logger)({type:"joyride:getProgress",msg:["steps:",steps],debug:this.props.debug}),{index:index,percentageComplete:parseFloat((index/steps.length*100).toFixed(2).replace(".00","")),step:steps[index]}}},{key:"addTooltip",value:function(data){if(!this.checkStepValidity(data))return void(0,_utils.logger)({type:"joyride:addTooltip:FAIL",msg:["data:",data],debug:this.props.debug});(0,_utils.logger)({type:"joyride:addTooltip",msg:["data:",data],debug:this.props.debug});var key=data.trigger||(0,_utils.sanitizeSelector)(data.selector),el=document.querySelector(key);if(el){el.setAttribute("data-tooltip",JSON.stringify(data));"hover"===(data.event||"click")&&(this.listeners.tooltips[key+"mouseenter"]={event:"mouseenter",cb:this.handleClickStandaloneTrigger},this.listeners.tooltips[key+"mouseleave"]={event:"mouseleave",cb:this.handleClickStandaloneTrigger},el.addEventListener("mouseenter",this.listeners.tooltips[key+"mouseenter"].cb),el.addEventListener("mouseleave",this.listeners.tooltips[key+"mouseleave"].cb)),this.listeners.tooltips[key+"click"]={event:"click",cb:this.handleClickStandaloneTrigger},el.addEventListener("click",this.listeners.tooltips[key+"click"].cb)}}},{key:"parseSteps",value:function(steps){return console.warn("joyride.parseSteps() is deprecated. It is no longer necessary to parse steps before providing them to Joyride"),steps}},{key:"checkStepValidity",value:function(step){var _this4=this;if(!step||"object"!==(void 0===step?"undefined":_typeof(step))||Array.isArray(step))return(0,_utils.logger)({type:"joyride:checkStepValidity",msg:"Did not provide a step object.",warn:!0,debug:this.props.debug}),!1;var requiredFields=["selector"],hasRequiredField=function(requiredField){var hasField=Boolean(step[requiredField]);return hasField||(0,_utils.logger)({type:"joyride:checkStepValidity",msg:["Provided a step without the required "+requiredField+" property.","Step:",step],warn:!0,debug:_this4.props.debug}),hasField};return requiredFields.every(hasRequiredField)}},{key:"checkStepsValidity",value:function(steps){return Array.isArray(steps)||"object"!==(void 0===steps?"undefined":_typeof(steps))?steps.length>0&&steps.every(this.checkStepValidity):this.checkStepValidity(steps)}},{key:"getStepTargetElement",value:function(step){if(!this.checkStepValidity(step))return null;var el=document.querySelector((0,_utils.sanitizeSelector)(step.selector));return el||((0,_utils.logger)({type:"joyride:getStepTargetElement",msg:"Target not rendered. For best results only add steps after they are mounted.",warn:!0,debug:this.props.debug}),null)}},{key:"getElementDimensions",value:function(){var _state7=this.state,shouldRenderTooltip=_state7.shouldRenderTooltip,standaloneData=_state7.standaloneData,displayTooltip=!!standaloneData||shouldRenderTooltip,el=document.querySelector(displayTooltip?".joyride-tooltip":".joyride-beacon"),height=0,width=0;if(el){var styles=window.getComputedStyle(el);height=el.clientHeight+parseInt(styles.marginTop||0,10)+parseInt(styles.marginBottom||0,10),width=el.clientWidth+parseInt(styles.marginLeft||0,10)+parseInt(styles.marginRight||0,10)}return{height:height,width:width}}},{key:"getScrollTop",value:function(){var _state8=this.state,index=_state8.index,yPos=_state8.yPos,_props4=this.props,offsetParentSelector=_props4.offsetParentSelector,scrollOffset=_props4.scrollOffset,steps=_props4.steps,step=steps[index],target=this.getStepTargetElement(step),offsetParent=document.querySelector((0,_utils.sanitizeSelector)(offsetParentSelector));if(!target)return 0;var rect=(0,_utils.getOffsetBoundingClientRect)(target,offsetParent),targetTop=rect.top+(window.pageYOffset||document.documentElement.scrollTop),position=this.calcPosition(step),scrollTo=0;return/^top/.test(position)?scrollTo=Math.floor(yPos-scrollOffset):/^bottom|^left|^right/.test(position)&&(scrollTo=Math.floor(targetTop-scrollOffset)),scrollTo}},{key:"triggerCallback",value:function(options){var callback=this.props.callback;"function"==typeof callback&&((0,_utils.logger)({type:"joyride:triggerCallback",msg:[options],debug:this.props.debug}),callback(options))}},{key:"toggleTooltip",value:function(_ref3){var show=_ref3.show,_ref3$index=_ref3.index,index=void 0===_ref3$index?this.state.index:_ref3$index,action=_ref3.action,_ref3$steps=_ref3.steps,steps=void 0===_ref3$steps?this.props.steps:_ref3$steps,nextStep=steps[index],hasMountedTarget=Boolean(this.getStepTargetElement(nextStep));this.setState({action:action,index:index,isRunning:!(!nextStep||!hasMountedTarget)&&this.state.isRunning,shouldRedraw:!show||!hasMountedTarget,shouldRenderTooltip:show&&hasMountedTarget,xPos:-1e3,yPos:-1e3})}},{key:"calcPlacement",value:function(){var _state9=this.state,index=_state9.index,isRunning=_state9.isRunning,standaloneData=_state9.standaloneData,shouldRenderTooltip=_state9.shouldRenderTooltip,_props5=this.props,offsetParentSelector=_props5.offsetParentSelector,steps=_props5.steps,tooltipOffset=_props5.tooltipOffset,step=standaloneData||steps[index]||{},displayTooltip=!!standaloneData||shouldRenderTooltip,target=this.getStepTargetElement(step),offsetParent=document.querySelector((0,_utils.sanitizeSelector)(offsetParentSelector));if((0,_utils.logger)({type:"joyride:calcPlacement"+this.getRenderStage(),msg:["step:",step],debug:this.props.debug}),target){var placement={x:-1e3,y:-1e3};if(step&&(standaloneData||isRunning&&steps[index])){var offsetX=_nestedProperty2.default.get(step,"style.beacon.offsetX")||0,offsetY=_nestedProperty2.default.get(step,"style.beacon.offsetY")||0,position=this.calcPosition(step),scrollingElement=(0,_utils.getRootEl)().getBoundingClientRect(),scrollTop=!0===step.isFixed?0:scrollingElement.top,component=this.getElementDimensions(),rect=(0,_utils.getOffsetBoundingClientRect)(target,offsetParent);/^left/.test(position)?placement.x=rect.left-(displayTooltip?component.width+tooltipOffset:component.width/2+offsetX):/^right/.test(position)?placement.x=rect.left+rect.width-(displayTooltip?-tooltipOffset:component.width/2-offsetX):placement.x=rect.left+(rect.width/2-component.width/2),/^top/.test(position)?placement.y=rect.top-scrollTop-(displayTooltip?component.height+tooltipOffset:component.height/2+offsetY):/^bottom/.test(position)?placement.y=rect.top-scrollTop+(rect.height-(displayTooltip?-tooltipOffset:component.height/2-offsetY)):placement.y=rect.top-scrollTop,/^bottom|^top/.test(position)&&(/left/.test(position)?placement.x=rect.left-(displayTooltip?tooltipOffset:component.width/2):/right/.test(position)&&(placement.x=rect.left+(rect.width-(displayTooltip?component.width-tooltipOffset:component.width/2)))),this.setState({shouldRedraw:!1,xPos:this.preventWindowOverflow(Math.ceil(placement.x),"x",component.width,component.height),yPos:this.preventWindowOverflow(Math.ceil(placement.y),"y",component.width,component.height)})}}}},{key:"calcPosition",value:function(step){var _props6=this.props,offsetParentSelector=_props6.offsetParentSelector,tooltipOffset=_props6.tooltipOffset,scrollingElement=(0,_utils.getRootEl)(),scrollingElementRect=scrollingElement.getBoundingClientRect(),target=this.getStepTargetElement(step),offsetParent=document.querySelector((0,_utils.sanitizeSelector)(offsetParentSelector)),rect=(0,_utils.getOffsetBoundingClientRect)(target,offsetParent),_getElementDimensions=this.getElementDimensions(),height=_getElementDimensions.height,_getElementDimensions2=_getElementDimensions.width,width=void 0===_getElementDimensions2?DEFAULTS.minWidth:_getElementDimensions2,position=step.position||DEFAULTS.position;return/^left/.test(position)&&rect.left-(width+tooltipOffset)<0?position="top":/^right/.test(position)&&rect.left+rect.width+(width+tooltipOffset)>scrollingElementRect.width&&(position="bottom"),/^top/.test(position)&&(rect.top+scrollingElement.scrollTop-(height+tooltipOffset)<0||step.isFixed&&rect.top-height<0)?position="bottom":/^bottom/.test(position)&&(rect.top+scrollingElement.scrollTop+(height+tooltipOffset)>(0,_utils.getDocHeight)()||step.isFixed&&rect.top+rect.height+height>scrollingElementRect.height)&&(position="top"),position}},{key:"getRenderStage",value:function(){var _state10=this.state,shouldRedraw=_state10.shouldRedraw,xPos=_state10.xPos;return shouldRedraw?":redraw":xPos<0?":pre-render":""}},{key:"preventWindowOverflow",value:function(value,axis,elWidth,elHeight){var winWidth=window.innerWidth,docHeight=(0,_utils.getDocHeight)(),newValue=value;return"x"===axis?value+elWidth>=winWidth?newValue=winWidth-elWidth-15:value<15&&(newValue=15):"y"===axis&&(value+elHeight>=docHeight?newValue=docHeight-elHeight-15:value<15&&(newValue=15)),newValue}},{key:"createComponent",value:function(){var _state11=this.state,index=_state11.index,shouldRedraw=_state11.shouldRedraw,shouldRenderTooltip=_state11.shouldRenderTooltip,standaloneData=_state11.standaloneData,xPos=_state11.xPos,yPos=_state11.yPos,_props7=this.props,disableOverlay=_props7.disableOverlay,holePadding=_props7.holePadding,locale=_props7.locale,offsetParentSelector=_props7.offsetParentSelector,showBackButton=_props7.showBackButton,showOverlay=_props7.showOverlay,showSkipButton=_props7.showSkipButton,showStepsProgress=_props7.showStepsProgress,steps=_props7.steps,type=_props7.type,currentStep=standaloneData||steps[index],step=_extends({},currentStep),target=this.getStepTargetElement(step),component=void 0,allowClicksThruHole=step&&step.allowClicksThruHole||this.props.allowClicksThruHole,shouldShowOverlay=!standaloneData&&showOverlay,buttons={primary:locale.close};if((0,_utils.logger)({type:"joyride:createComponent"+this.getRenderStage(),msg:["component:",shouldRenderTooltip||standaloneData?"Tooltip":"Beacon","animate:",xPos>-1&&!shouldRedraw,"step:",step],debug:this.props.debug,warn:!target}),!target)return!1;if(shouldRenderTooltip||standaloneData){var position=this.calcPosition(step);if(!standaloneData){if(["continuous","guided"].includes(type)){if(buttons.primary=locale.last,steps[index+1])if(showStepsProgress){var next=locale.next;"string"==typeof locale.next&&(next=_react2.default.createElement("span",null,locale.next)),buttons.primary=_react2.default.createElement("span",null,next," ",_react2.default.createElement("span",null,index+1+"/"+steps.length))}else buttons.primary=locale.next;showBackButton&&index>0&&(buttons.secondary=locale.back)}showSkipButton&&(buttons.skip=locale.skip)}component=_react2.default.createElement(_Tooltip2.default,{allowClicksThruHole:allowClicksThruHole,animate:xPos>-1&&!shouldRedraw,buttons:buttons,disableOverlay:disableOverlay,holePadding:holePadding,offsetParentSelector:offsetParentSelector,position:position,selector:(0,_utils.sanitizeSelector)(step.selector),showOverlay:shouldShowOverlay,step:step,standalone:Boolean(standaloneData),target:target,type:type,xPos:xPos,yPos:yPos,onClick:this.handleClickTooltip,onRender:this.handleRenderTooltip})}else component=_react2.default.createElement(_Beacon2.default,{step:step,xPos:xPos,yPos:yPos,onTrigger:this.handleClickBeacon,eventType:step.type||"click"});return component}},{key:"render",value:function(){var _state12=this.state,index=_state12.index,isRunning=_state12.isRunning,standaloneData=_state12.standaloneData,steps=this.props.steps,hasStep=Boolean(steps[index]),component=void 0,standaloneComponent=void 0;return isRunning&&hasStep?(0,_utils.logger)({type:"joyride:render"+this.getRenderStage(),msg:["step:",steps[index]],debug:this.props.debug}):!isRunning&&standaloneData&&(0,_utils.logger)({type:"joyride:render",msg:["tooltip:",standaloneData],debug:this.props.debug}),standaloneData?standaloneComponent=this.createComponent():isRunning&&hasStep&&(component=this.createComponent()),_react2.default.createElement("div",{className:"joyride"},component,standaloneComponent)}}]),Joyride}(_react2.default.Component);Joyride.propTypes={allowClicksThruHole:_propTypes2.default.bool,autoStart:_propTypes2.default.bool,callback:_propTypes2.default.func,debug:_propTypes2.default.bool,disableOverlay:_propTypes2.default.bool,holePadding:_propTypes2.default.number,keyboardNavigation:_propTypes2.default.bool,locale:_propTypes2.default.object,offsetParentSelector:_propTypes2.default.string,resizeDebounce:_propTypes2.default.bool,resizeDebounceDelay:_propTypes2.default.number,run:_propTypes2.default.bool,scrollOffset:_propTypes2.default.number,scrollToFirstStep:_propTypes2.default.bool,scrollToSteps:_propTypes2.default.bool,showBackButton:_propTypes2.default.bool,showOverlay:_propTypes2.default.bool,showSkipButton:_propTypes2.default.bool,showStepsProgress:_propTypes2.default.bool,stepIndex:_propTypes2.default.number,steps:_propTypes2.default.array,tooltipOffset:_propTypes2.default.number,type:_propTypes2.default.string},Joyride.defaultProps={allowClicksThruHole:!1,autoStart:!1,debug:!1,disableOverlay:!1,holePadding:5,keyboardNavigation:!0,locale:{back:"Back",close:"Close",last:"Last",next:"Next",skip:"Skip"},offsetParentSelector:"body",resizeDebounce:!1,resizeDebounceDelay:200,run:!1,scrollOffset:20,scrollToFirstStep:!1,scrollToSteps:!0,showBackButton:!0,showOverlay:!0,showSkipButton:!1,showStepsProgress:!1,stepIndex:0,steps:[],tooltipOffset:15,type:"single"},exports.default=Joyride},{"./Beacon":18,"./Tooltip":19,"./utils":21,"nested-property":4,"prop-types":10,react:"react",scroll:34}],21:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.hexToRGB=hexToRGB,exports.getDocHeight=getDocHeight,exports.getRootEl=getRootEl,exports.logger=logger,exports.sanitizeSelector=sanitizeSelector,exports.getOffsetBoundingClientRect=getOffsetBoundingClientRect;function hexToRGB(hex){var shorthandRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,newHex=hex.replace(shorthandRegex,function(m,r,g,b){return r+r+g+g+b+b}),result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(newHex);return result?{r:parseInt(result[1],16),g:parseInt(result[2],16),b:parseInt(result[3],16)}:null}function getBrowser(){if("undefined"==typeof window)return"node";var isOpera=Boolean(window.opera)||navigator.userAgent.indexOf(" OPR/")>=0,isFirefox="undefined"!=typeof InstallTrigger,isChrome=!!window.chrome&&!!window.chrome.webstore,isSafari=(Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||!isChrome)&&!isOpera&&void 0!==window.webkitAudioContext,isIE=Boolean(document.documentMode);return isOpera?"opera":isFirefox?"firefox":isChrome?"chrome":isSafari?"safari":isIE?"ie":""}var browser=exports.browser=getBrowser();function getDocHeight(){var _document=document,body=_document.body,html=_document.documentElement;return Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight)}function getRootEl(){var _document2=document,scrollingElement=_document2.scrollingElement;return scrollingElement||(["ie","firefox"].indexOf(browser)>-1?document.documentElement:document.body)}function logger(_ref){var _ref$type=_ref.type,type=void 0===_ref$type?"joyride":_ref$type,msg=_ref.msg,_ref$warn=_ref.warn,warn=void 0!==_ref$warn&&_ref$warn,_ref$debug=_ref.debug,debug=void 0!==_ref$debug&&_ref$debug,loggingFunction=warn?console.warn||console.error:console.log;debug&&(console.log("%c"+type,"color: #760bc5; font-weight: bold; font-size: 12px;"),msg&&(Array.isArray(msg)?loggingFunction.apply(console,msg):loggingFunction.apply(console,[msg])))}function sanitizeSelector(selector){return selector.dataset&&selector.dataset.reactid?(console.warn("Deprecation warning: React 15.0 removed reactid. Update your code."),'[data-reactid="'+selector.dataset.reactid+'"]'):selector.dataset&&(console.error("Unsupported error: React 15.0+ doesn’t write reactid to the DOM anymore, please use a plain class in your step.",selector),selector.className)?"."+selector.className.replace(" ","."):selector}function getOffsetBoundingClientRect(element,offsetParent){var elementRect=element.getBoundingClientRect();if(!offsetParent)return elementRect;var offsetParentRect=offsetParent.getBoundingClientRect(),offsetTop=offsetParentRect.top>0?elementRect.top-offsetParentRect.top:elementRect.top,offsetLeft=offsetParentRect.left>0?elementRect.left-offsetParentRect.left:elementRect.left;return{top:offsetTop,left:offsetLeft,right:offsetParentRect.right>0?offsetParentRect.right-elementRect.right:elementRect.right,bottom:offsetParentRect.bottom>0?offsetParentRect.bottom-elementRect.bottom:elementRect.bottom,x:offsetLeft,y:offsetTop,width:elementRect.width,height:elementRect.height}}},{}],22:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i10*msPerFrame&&(_this.accumulatedTime=0),0===_this.accumulatedTime)return _this.animationID=null,void _this.startAnimationIfNecessary();var currentFrameCompletion=(_this.accumulatedTime-Math.floor(_this.accumulatedTime/msPerFrame)*msPerFrame)/msPerFrame,framesToCatchUp=Math.floor(_this.accumulatedTime/msPerFrame),newLastIdealStyle={},newLastIdealVelocity={},newCurrentStyle={},newCurrentVelocity={};for(var key in propsStyle)if(Object.prototype.hasOwnProperty.call(propsStyle,key)){var styleValue=propsStyle[key];if("number"==typeof styleValue)newCurrentStyle[key]=styleValue,newCurrentVelocity[key]=0,newLastIdealStyle[key]=styleValue,newLastIdealVelocity[key]=0;else{for(var newLastIdealStyleValue=_this.state.lastIdealStyle[key],newLastIdealVelocityValue=_this.state.lastIdealVelocity[key],i=0;i10*msPerFrame&&(_this.accumulatedTime=0),0===_this.accumulatedTime)return _this.animationID=null,void _this.startAnimationIfNecessary();for(var currentFrameCompletion=(_this.accumulatedTime-Math.floor(_this.accumulatedTime/msPerFrame)*msPerFrame)/msPerFrame,framesToCatchUp=Math.floor(_this.accumulatedTime/msPerFrame),newLastIdealStyles=[],newLastIdealVelocities=[],newCurrentStyles=[],newCurrentVelocities=[],i=0;i10*msPerFrame&&(_this.accumulatedTime=0),0===_this.accumulatedTime)return _this.animationID=null,void _this.startAnimationIfNecessary();for(var currentFrameCompletion=(_this.accumulatedTime-Math.floor(_this.accumulatedTime/msPerFrame)*msPerFrame)/msPerFrame,framesToCatchUp=Math.floor(_this.accumulatedTime/msPerFrame),_mergeAndSync2=mergeAndSync(_this.props.willEnter,_this.props.willLeave,_this.props.didLeave,_this.state.mergedPropsStyles,destStyles,_this.state.currentStyles,_this.state.currentVelocities,_this.state.lastIdealStyles,_this.state.lastIdealVelocities),newMergedPropsStyles=_mergeAndSync2[0],newCurrentStyles=_mergeAndSync2[1],newCurrentVelocities=_mergeAndSync2[2],newLastIdealStyles=_mergeAndSync2[3],newLastIdealVelocities=_mergeAndSync2[4],i=0;iprevKeyIndex[pivot])return-1;if(nextOrderA>nextKeyIndex[pivot]&&prevOrderBprevKeyIndex[pivot])return 1;if(nextOrderB>nextKeyIndex[pivot]&&prevOrderA10){var moreNumber=nodes.length-10;nodes=nodes.slice(0,10),more=_react2.default.createElement("div",null,"... and ",moreNumber," more.")}return _react2.default.createElement(_InfoPanelCard2.default,_extends({},this.props,{primaryToolbars:["info_panel","info_panel_share"]}),_react2.default.createElement("div",{style:{padding:"0"}},nodes.map(function(node){return _react2.default.createElement("div",{style:{display:"flex",alignItems:"center",borderBottom:"1px solid #eeeeee"}},_react2.default.createElement(_viewsFilePreview2.default,{key:node.getPath(),style:{height:50,width:50,fontSize:25,flexShrink:0},node:node,loadThumbnail:!0,richPreview:!1}),_react2.default.createElement("div",{style:{flex:1,fontSize:14,marginLeft:6,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},node.getLabel()))}),more))}return _react2.default.createElement(_InfoPanelCard2.default,_extends({},this.props,{primaryToolbars:["info_panel","info_panel_share"]}),_react2.default.createElement(_viewsFilePreview2.default,{key:this.props.node.getPath(),style:{backgroundColor:"white",height:200,padding:0},node:this.props.node,loadThumbnail:this.state.isLeaf,richPreview:this.state.isLeaf}))},GenericInfoCard}(_react2.default.Component);exports.default=GenericInfoCard,module.exports=exports.default},{"../views/FilePreview":81,"./InfoPanelCard":47,react:"react"}],46:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i1?(primaryMime="generic_multiple",data.nodes=selection):(uniqueNode=selection[0],uniqueNode.isLeaf()?primaryMime="generic_file":(primaryMime="generic_dir",this.props.dataModel.getRootNode()===uniqueNode&&(primaryMime="ajxp_root_node")),data.node=uniqueNode),refTemplates.has(primaryMime)&&(templates=templates.concat(refTemplates.get(primaryMime))),uniqueNode&&refTemplates.forEach(function(list,mimeName){mimeName!==primaryMime&&(0===mimeName.indexOf("meta:")&&uniqueNode.getMetadata().has(mimeName.substr(5))?templates=templates.concat(list):uniqueNode.getAjxpMime()===mimeName&&(templates=templates.concat(list)))}),this.props.onContentChange&&!initTemplates&&this.props.onContentChange(templates.length),templates.sort(function(a,b){return a.WEIGHT===b.WEIGHT?0:a.WEIGHT>b.WEIGHT?1:-1}),{TEMPLATES:templates,DATA:data}},InfoPanel.prototype.render=function(){var _this2=this,templates=this.state.displayData.TEMPLATES.map(function(tpl,i){var component=tpl.COMPONENT,_component$split=component.split(".",2),namespace=_component$split[0],name=_component$split[1];return _react2.default.createElement(PydioReactUI.AsyncComponent,_extends({},_this2.state.displayData.DATA,_this2.props,{key:"ip_"+component,namespace:namespace,componentName:name}))});return _react2.default.createElement(Template,{style:this.props.style},templates)},InfoPanel}(_react2.default.Component);InfoPanel.propTypes={dataModel:_react2.default.PropTypes.instanceOf(PydioDataModel).isRequired,pydio:_react2.default.PropTypes.instanceOf(Pydio).isRequired,style:_react2.default.PropTypes.object},InfoPanel.contextTypes={scrollArea:_react2.default.PropTypes.object},exports.default=InfoPanel=withVerticalScroll(InfoPanel,{id:"info_panel"});var ConfigsParser=function(){function ConfigsParser(){_classCallCheck(this,ConfigsParser)}return ConfigsParser.parseConfigs=function(){var panelsNodes=(new Map,XMLUtils.XPathSelectNodes(pydio.getXmlRegistry(),'client_configs/component_config[@component="InfoPanel"]/infoPanel')),panels=new Map;return panelsNodes.forEach(function(node){if(node.getAttribute("reactComponent")){var mimes=node.getAttribute("mime").split(","),component=node.getAttribute("reactComponent");mimes.map(function(mime){panels.has(mime)||panels.set(mime,[]),panels.get(mime).push({COMPONENT:component,THEME:node.getAttribute("theme"),ATTRIBUTES:node.getAttribute("attributes"),WEIGHT:node.getAttribute("weight")?parseInt(node.getAttribute("weight")):0})})}}),panels},ConfigsParser}();exports.default=InfoPanel,module.exports=exports.default},{pydio:"pydio",react:"react",redux:"redux"}],47:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i0}),displayPanel){this.setState({editorMinimised:!1});if(positionOrigin&&positionTarget){var x=parseInt(positionTarget.left-positionOrigin.left+(positionTarget.right-positionTarget.left)/2),y=parseInt(positionTarget.top-positionOrigin.top+(positionTarget.bottom-positionTarget.top)/2);this.setState({transformOrigin:x+"px "+y+"px"})}}},App.prototype.render=function(){var _props=this.props,display=_props.display,displayPanel=_props.displayPanel,_state=this.state,editorMinimised=_state.editorMinimised,fullBrowserScreen=_state.fullBrowserScreen,editorStyle={display:"none"},overlayStyle={display:"none"};editorMinimised||(editorStyle={position:"fixed",top:fullBrowserScreen?0:"1%",left:fullBrowserScreen?0:"1%",right:fullBrowserScreen?0:"15%",bottom:fullBrowserScreen?0:"1%",transformOrigin:this.state.transformOrigin},overlayStyle={position:"fixed",top:0,bottom:0,right:0,left:0,background:"#000000",opacity:"0.5",transition:"opacity .5s ease-in"}),displayPanel||(overlayStyle={opacity:0,transition:"opacity .5s ease-in"});var menuStyle={position:"fixed",bottom:"50px",right:"50px",cursor:"pointer",transform:"translate(50%, 50%)",zIndex:5};return React.createElement("div",null,display?React.createElement("div",{style:overlayStyle}):null,React.createElement(AnimationGroup,null,display?React.createElement(_componentsEditor.Editor,{style:editorStyle,onFullBrowserScreen:this.onFullBrowserScreen.bind(this),onMinimise:this.onEditorMinimise.bind(this)}):null,display?React.createElement(_componentsMenu.Menu,{style:menuStyle}):null))},App}(React.Component),Animation=function(props){return React.createElement("div",props)},AnimationGroup=_makeEditorOpen2.default(Animation);function mapStateToProps(state,ownProps){var editor=state.editor,tabs=state.tabs;return _extends({},ownProps,{tabs:tabs,display:editor.open,displayPanel:editor.isPanelActive,displayMenu:editor.isMenuActive,positionOrigin:editor.panel&&editor.panel.rect,positionTarget:editor.menu&&editor.menu.rect})}var ConnectedApp=_reactRedux.connect(mapStateToProps,EditorActions)(App);exports.default=ConnectedApp,module.exports=exports.default},{"./components/editor":53,"./components/menu":60,"./make-editor-open":64,pydio:"pydio","react-redux":"react-redux"}],50:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;iMAX_ITEMS&&(index=b.position?1:-1}),result},getInitialState:function(){return{statusOpen:!0,blinkingBell:!1,additionalContents:this.parseComponentConfigs(),workspaces:this.props.pydio.user.getRepositoriesList()}},componentDidMount:function(){this._timer&&global.clearTimeout(this._timer),this._timer=global.setTimeout(this.closeNavigation,3e3),this._reloadObserver=function(){try{this.isMounted()&&this.setState({workspaces:this.props.pydio.user?this.props.pydio.user.getRepositoriesList():[]})}catch(e){global.console&&console.error("Error while setting state on LeftPanel component - Probably height error on IE8",e)}}.bind(this),this.props.pydio.observe("repository_list_refreshed",this._reloadObserver)},componentWillUnmount:function(){this._reloadObserver&&this.props.pydio.stopObserving("repository_list_refreshed",this._reloadObserver)},openNavigation:function(){this.state.statusOpen||this.setState({statusOpen:!0})},closeNavigation:function(){this.setState({statusOpen:!1})},listNodeClicked:function(node){this.props.pydio.goTo(node),this.closeNavigation()},closeMouseover:function(){this._timer&&global.clearTimeout(this._timer)},closeMouseout:function(){this._timer&&global.clearTimeout(this._timer),this._timer=global.setTimeout(this.closeNavigation,300)},onAlertPanelBadgeChange:function(paneData,newValue,oldValue,memoData){if("navigation_alerts"===paneData.id&&(newValue?this.setState({blinkingBell:newValue,blinkingBellClass:paneData.options.titleClassName}):this.setState({blinkingBell:!1}),newValue&&newValue!==oldValue&&Object.isNumber(newValue)&&""!==oldValue&&newValue>oldValue)){var notifText="Something happened!";if(memoData instanceof PydioDataModel){var node=memoData.getRootNode().getFirstChildIfExists();node&&(notifText=paneData.options.tipAttribute?node.getMetadata().get(paneData.options.tipAttribute):node.getLabel())}if(PydioTasks){PydioTasks.AlertTask.setCloser(this.openNavigation.bind(this));var title=global.pydio.MessageHash[paneData.options.title]||paneData.options.title;new PydioTasks.AlertTask(title,notifText).show()}}},render:function(){var additional=this.state.additionalContents.map(function(paneData){return"ListProvider"==paneData.type?React.createElement(PydioComponents.CollapsableListProvider,{pydio:this.props.pydio,paneData:paneData,nodeClicked:this.listNodeClicked,onBadgeChange:this.onAlertPanelBadgeChange}):null}.bind(this)),badge=void 0;return this.state.blinkingBell&&(badge=React.createElement("span",{className:"badge-icon icon-bell-alt"})),React.createElement("span",null,React.createElement("div",{id:"repo_chooser",onClick:this.openNavigation,onMouseOver:this.openNavigation,className:this.state.statusOpen?"open":""},React.createElement("span",{className:"icon-reorder"}),badge),React.createElement("div",{className:"left-panel"+(this.state.statusOpen?"":" hidden"),onMouseOver:this.closeMouseover,onMouseOut:this.closeMouseout},additional,React.createElement(UserWorkspacesList,{pydio:this.props.pydio,workspaces:this.state.workspaces})))}}),module.exports=exports.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../wslist/WorkspacesList":87}],68:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i-1}),standardRendererKeys=indexed_meta_fields.filter(function(key){return metaColumns[key]&&-1===specialRendererKeys.indexOf(key)&&!additionnal_meta_columns[key]}),columns=standardRendererKeys.map(function(key){var obj={};return obj[key]=metaColumns[key],obj}).reduce(function(obj,current){return obj=_extends({},obj,current)},[]),renderers=specialRendererKeys.map(function(key){var _ref;if(-1!==indexed_meta_fields[key]){var renderer=reactColumnsRenderers[key],namespace=renderer.split(".",1).shift();return window[namespace]?(_ref={},_ref[key]={label:metaColumns[key],renderComponent:FuncUtils.getFunctionByName(renderer,global)},_ref):void ResourcesManager.detectModuleToLoadAndApply(renderer,function(){return _this3.build()},!0)}}).reduce(function(obj,current){return obj=_extends({},obj,current)},[]),fields=_extends({},generic,columns,renderers);this.setState({fields:fields})},AdvancedMetaFields.prototype.render=function(){return this.props.children(this.state.fields)},AdvancedMetaFields}(_react.Component);AdvancedMetaFields.propTypes={children:_react2.default.PropTypes.func.isRequired},exports.default=AdvancedSearch,module.exports=exports.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./DatePanel":71,"./FileFormatPanel":72,"./FileSizePanel":73,lodash:3,"material-ui":"material-ui",pydio:"pydio","pydio/util/xml":"pydio/util/xml",react:"react"}],71:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _react=require("react"),_react2=_interopRequireDefault(_react),_materialUi=require("material-ui"),_require$requireLib=require("pydio").requireLib("boot"),PydioContextConsumer=_require$requireLib.PydioContextConsumer,SearchFileFormatPanel=function(_Component){_inherits(SearchFileFormatPanel,_Component);function SearchFileFormatPanel(props){_classCallCheck(this,SearchFileFormatPanel),_Component.call(this,props),this.state={folder:!(!this.props.values.ajxp_mime||"ajxp_folder"!==this.props.values.ajxp_mime)||void 0,ext:this.props.values.ajxp_mime&&"ajxp_folder"!==this.props.values.ajxp_mime?this.props.values.ajxp_mime:void 0}}return SearchFileFormatPanel.prototype.componentDidUpdate=function(prevProps,prevState){if(prevState!==this.state){var _state=this.state,folder=_state.folder,ext=_state.ext;this.props.onChange({ajxp_mime:folder?"ajxp_folder":ext})}},SearchFileFormatPanel.prototype.render=function(){var _this=this,_props=this.props,inputStyle=_props.inputStyle,getMessage=_props.getMessage;_objectWithoutProperties(_props,["inputStyle","getMessage"]);return _react2.default.createElement("div",null,_react2.default.createElement(_materialUi.Toggle,{style:inputStyle,name:"toggleFolder",value:"ajxp_folder",label:getMessage(502),toggled:this.state.folder,onToggle:function(e,toggled){return _this.setState({folder:toggled})}}),!this.state.folder&&_react2.default.createElement(_materialUi.TextField,{style:inputStyle,className:"mui-text-field",hintText:getMessage(500),floatingLabelFixed:!0,floatingLabelText:getMessage(500),value:this.state.ext,onChange:function(e){return _this.setState({ext:e.target.value})}}))},SearchFileFormatPanel}(_react.Component);SearchFileFormatPanel=PydioContextConsumer(SearchFileFormatPanel),exports.default=SearchFileFormatPanel,module.exports=exports.default},{"material-ui":"material-ui",pydio:"pydio",react:"react"}],73:[function(require,module,exports){"use strict";exports.__esModule=!0;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _react=require("react"),_react2=_interopRequireDefault(_react),_materialUi=require("material-ui"),_require$requireLib=require("pydio").requireLib("boot"),PydioContextConsumer=_require$requireLib.PydioContextConsumer,SearchFileSizePanel=function(_React$Component){_inherits(SearchFileSizePanel,_React$Component);function SearchFileSizePanel(props){_classCallCheck(this,SearchFileSizePanel),_React$Component.call(this,props),this.state={from:!1,to:null}}return SearchFileSizePanel.prototype.onChange=function(){this.setState({from:this.refs.from.getValue()||0,to:this.refs.to.getValue()||1099511627776})},SearchFileSizePanel.prototype.componentWillUpdate=function(nextProps,nextState){if(nextState!==this.state){ var from=nextState.from,to=nextState.to;this.props.onChange({ajxp_bytesize:from&&to?"["+from+" TO "+to+"]":null})}},SearchFileSizePanel.prototype.render=function(){var _props=this.props,inputStyle=_props.inputStyle,getMessage=_props.getMessage;_objectWithoutProperties(_props,["inputStyle","getMessage"]);return _react2.default.createElement("div",null,_react2.default.createElement(_materialUi.TextField,{ref:"from",style:inputStyle,hintText:getMessage(504),floatingLabelFixed:!0,floatingLabelText:getMessage(613),onChange:this.onChange.bind(this)}),_react2.default.createElement(_materialUi.TextField,{ref:"to",style:inputStyle,hintText:getMessage(504),floatingLabelFixed:!0,floatingLabelText:getMessage(614),onChange:this.onChange.bind(this)}))},SearchFileSizePanel}(_react2.default.Component);SearchFileSizePanel=PydioContextConsumer(SearchFileSizePanel),exports.default=SearchFileSizePanel,module.exports=exports.default},{"material-ui":"material-ui",pydio:"pydio",react:"react"}],74:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _react=require("react"),_react2=_interopRequireDefault(_react),_viewsFilePreview=require("../../views/FilePreview"),_viewsFilePreview2=_interopRequireDefault(_viewsFilePreview),_AdvancedSearch=require("./AdvancedSearch"),_AdvancedSearch2=_interopRequireDefault(_AdvancedSearch),_reactTextfit=require("react-textfit"),_pydio=(_interopRequireDefault(_reactTextfit),require("pydio")),_pydio2=_interopRequireDefault(_pydio),_pydioUtilLang=require("pydio/util/lang"),_pydioUtilLang2=_interopRequireDefault(_pydioUtilLang),_SearchScopeSelector=require("./SearchScopeSelector"),_SearchScopeSelector2=_interopRequireDefault(_SearchScopeSelector),_MainSearch=require("./MainSearch"),_MainSearch2=_interopRequireDefault(_MainSearch),_materialUi=require("material-ui"),_lodash=require("lodash"),_lodash2=_interopRequireDefault(_lodash),_Pydio$requireLib=_pydio2.default.requireLib("components"),EmptyStateView=_Pydio$requireLib.EmptyStateView,_require$requireLib=require("pydio").requireLib("boot"),PydioContextConsumer=_require$requireLib.PydioContextConsumer,SearchForm=function(_Component){_inherits(SearchForm,_Component);function SearchForm(props){var _this=this;_classCallCheck(this,SearchForm),_Component.call(this,props),this._basicDataModel=new PydioDataModel(!0);var rNodeProvider=new EmptyNodeProvider;this._basicDataModel.setAjxpNodeProvider(rNodeProvider);var rootNode=new AjxpNode("/",!1,"","",rNodeProvider);this._basicDataModel.setRootNode(rootNode),this.state={values:{},display:"closed",dataModel:this._basicDataModel,empty:!0,loading:!1,searchScope:props.uniqueSearchScope||"folder"},this.setMode=_lodash2.default.debounce(this.setMode,250),this.update=_lodash2.default.debounce(this.update,500),this.submit=_lodash2.default.debounce(this.submit,500),this.props.pydio.observe("repository_list_refreshed",function(){_this.setState({values:{},display:"closed",dataModel:_this._basicDataModel,empty:!0,loading:!1})})}return SearchForm.prototype.componentDidUpdate=function(prevProps,prevState){var _this2=this;this.refs.results&&this.refs.results.refs.list&&(this.refs.results.refs.list.updateInfiniteContainerHeight(),FuncUtils.bufferCallback("search_results_resize_list",550,function(){try{_this2.refs.results.refs.list.updateInfiniteContainerHeight()}catch(e){}}))},SearchForm.prototype.setMode=function(mode){if("small"!==mode||"closed"===this.state.display){if("more"===mode&&"advanced"===this.state.display){var _state$values=this.state.values,basename=_state$values.basename,otherValues=_objectWithoutProperties(_state$values,["basename"]);basename?this.setState({values:{basename:basename}},this.submit):this.setState({values:{}},this.submit)}else if("small"===mode&&"closed"===this.state.display){var _state$values2=this.state.values,basename=_state$values2.basename,otherValues=_objectWithoutProperties(_state$values2,["basename"]);otherValues&&Object.keys(otherValues).length&&(mode="advanced")}this.setState({display:mode})}},SearchForm.prototype.update=function(newValues){var values=_extends({},this.state.values,newValues);Object.keys(values).forEach(function(key){return!values[key]&&delete values[key]}),this.setState({values:values},this.submit)},SearchForm.prototype.submit=function(){var _this3=this,_state=this.state,display=_state.display,values=_state.values,searchScope=_state.searchScope,crossWorkspace=this.props.crossWorkspace,queryString="",keys=Object.keys(values);if(""===(queryString=1===keys.length&&"basename"===keys[0]?values.basename:keys.map(function(k){return k+":"+values[k]}).join(" AND ")))return void this.setState({loading:!1,dataModel:this._basicDataModel,empty:!0});var dmParams={get_action:crossWorkspace||"all"===searchScope?"multisearch":"search",query:queryString,limit:crossWorkspace||"all"===searchScope?5:"small"===display?9:100,connexion_discrete:!0};"folder"===searchScope&&(dmParams.current_dir=this.props.pydio.getContextHolder().getContextNode().getPath());var newDM=PydioDataModel.RemoteDataModelFactory(dmParams);newDM.getRootNode().observeOnce("loaded",function(){_this3.setState({loading:!1})}),this.setState({loading:!0,dataModel:newDM,empty:!1},function(){_this3.refs.results.reload()})},SearchForm.prototype.render=function(){var _this4=this,_props=this.props,crossWorkspace=_props.crossWorkspace,pydio=_props.pydio,getMessage=_props.getMessage,_state2=this.state,searchScope=_state2.searchScope,display=_state2.display,loading=_state2.loading,dataModel=_state2.dataModel,empty=_state2.empty,values=_state2.values,renderSecondLine=null,renderIcon=null,elementHeight=49;"small"!==display&&"closed"!==display?(elementHeight=PydioComponents.SimpleList.HEIGHT_TWO_LINES+10,renderSecondLine=function(node){var path=node.getPath();if("folder"===searchScope){var crtFolder=pydio.getContextHolder().getContextNode().getPath();0===path.indexOf(crtFolder)&&(path="./"+_pydioUtilLang2.default.trimLeft(path.substr(crtFolder.length),"/"))}return _react2.default.createElement("div",null,path)},renderIcon=function(node){var entryProps=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return _react2.default.createElement(_viewsFilePreview2.default,{loadThumbnail:!entryProps.parentIsScrolling,node:node})}):renderIcon=function(node){arguments.length<=1||void 0===arguments[1]||arguments[1];return _react2.default.createElement(_viewsFilePreview2.default,{loadThumbnail:!1,richPreview:!1,node:node,style:{width:30,height:30,borderRadius:"50%",margin:"9px 6px"},mimeFontStyle:{fontSize:16,display:"block",padding:"4px 7px"}})};var nodeClicked=function(node){pydio.goTo(node),_this4.setMode("closed")},searchScopeChanged=function(value){"small"===display&&setTimeout(function(){return _this4.setMode("small")},250),_this4.setState({searchScope:value}),_this4.submit()},style=this.props.style,zDepth=2;return"closed"===display?(zDepth=0,style=_extends({},style,{backgroundColor:"transparent"})):style=_extends({},style,{backgroundColor:"#f5f5f5"}),_react2.default.createElement(_materialUi.Paper,{ref:"root",zDepth:zDepth,className:"top_search_form "+display,style:style},_react2.default.createElement(_MainSearch2.default,{mode:display,value:values.basename,title:"advanced"===display?"Advanced Search":null,onOpen:function(){return _this4.setMode("small")},showAdvanced:!this.props.crossWorkspace,onAdvanced:function(){return _this4.setMode("advanced")},onClose:function(){return _this4.setMode("closed")},onMore:function(){return _this4.setMode("more")},onChange:function(values){return _this4.update(values)},onSubmit:function(){return _this4.submit()},hintText:getMessage(this.props.crossWorkspace||"all"===searchScope?607:87)+"...",loading:loading,scopeSelectorProps:this.props.crossWorkspace||this.props.uniqueSearchScope?null:{value:searchScope,onChange:searchScopeChanged}}),"advanced"===display&&_react2.default.createElement(_AdvancedSearch2.default,_extends({},this.props,{values:values,onChange:function(values){return _this4.update(values)},onSubmit:function(){return _this4.submit()}})),_react2.default.createElement("div",{className:"search-results",style:"small"===display?{backgroundColor:"white"}:null},empty&&_react2.default.createElement(EmptyStateView,{iconClassName:"",primaryTextId:611,style:{minHeight:180,backgroundColor:"transparent",padding:"0 20px"}}),_react2.default.createElement(PydioComponents.NodeListCustomProvider,{ref:"results",className:"small"!==display?"files-list":null,elementHeight:elementHeight,entryRenderIcon:renderIcon,entryRenderActions:function(){return null},entryRenderSecondLine:renderSecondLine,presetDataModel:dataModel,heightAutoWithMax:"small"===display?500:"advanced"===display?512:412,openCollection:nodeClicked,nodeClicked:nodeClicked,defaultGroupBy:crossWorkspace||"all"===searchScope?"repository_id":null,groupByLabel:crossWorkspace||"all"===searchScope?"repository_display":null,emptyStateProps:{iconClassName:"",primaryTextId:478,style:{minHeight:"small"===display?180:"advanced"===display?512:412,backgroundColor:"transparent",padding:"0 20px"},secondaryTextId:"ws"===searchScope?620:"folder"===searchScope?619:null,actionLabelId:"ws"===searchScope?610:"folder"===searchScope?609:null,actionCallback:"all"!==searchScope?function(){searchScopeChanged("ws"===searchScope?"all":"ws")}:null,actionStyle:{marginTop:10}}}),"small"===display&&_react2.default.createElement("div",{style:{display:"flex",alignItems:"center",padding:5,paddingLeft:0,backgroundColor:"#f5f5f5"}},!this.props.crossWorkspace&&!this.props.uniqueSearchScope&&_react2.default.createElement(_SearchScopeSelector2.default,{style:{flex:1,maxWidth:162},labelStyle:{paddingLeft:8},value:searchScope,onChange:searchScopeChanged,onTouchTap:function(){return _this4.setMode("small")}}),_react2.default.createElement(_materialUi.FlatButton,{style:{marginTop:4},primary:!0,label:getMessage(456),onFocus:function(){return _this4.setMode("small")},onTouchTap:function(){return _this4.setMode("more")},onClick:function(){return _this4.setMode("more")}}))))},SearchForm}(_react.Component);SearchForm=PydioContextConsumer(SearchForm),exports.default=SearchForm,module.exports=exports.default},{"../../views/FilePreview":81,"./AdvancedSearch":70,"./MainSearch":74,"./SearchScopeSelector":76,lodash:3,"material-ui":"material-ui",pydio:"pydio","pydio/util/lang":"pydio/util/lang",react:"react","react-textfit":"react-textfit"}],76:[function(require,module,exports){"use strict";exports.__esModule=!0;var _createClass=function(){function defineProperties(target,props){for(var i=0;i=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}var _MessagesProviderMixin=require("../MessagesProviderMixin"),_MessagesProviderMixin2=_interopRequireDefault(_MessagesProviderMixin),_Breadcrumb=require("./Breadcrumb"),_Breadcrumb2=_interopRequireDefault(_Breadcrumb),_search=require("../search"),_MainFilesList=require("./MainFilesList"),_MainFilesList2=_interopRequireDefault(_MainFilesList),_EditionPanel=require("./EditionPanel"),_EditionPanel2=_interopRequireDefault(_EditionPanel),_detailpanesInfoPanel=require("../detailpanes/InfoPanel"),_detailpanesInfoPanel2=_interopRequireDefault(_detailpanesInfoPanel),_leftnavLeftPanel=require("../leftnav/LeftPanel"),_leftnavLeftPanel2=_interopRequireDefault(_leftnavLeftPanel),_WelcomeTour=require("./WelcomeTour"),_WelcomeTour2=_interopRequireDefault(_WelcomeTour),React=require("react"),_require$requireLib=(require("color"),require("pydio").requireLib("hoc")),withContextMenu=_require$requireLib.withContextMenu,dropProvider=_require$requireLib.dropProvider,Action=require("pydio/model/action"),FSTemplate=React.createClass({displayName:"FSTemplate",mixins:[_MessagesProviderMixin2.default],propTypes:{pydio:React.PropTypes.instanceOf(Pydio)},statics:{INFO_PANEL_WIDTH:270},componentDidMount:function(){this.props.pydio.getController().updateGuiActions(this.getPydioActions())},componentWillUnmount:function(){this.getPydioActions(!0).map(function(key){this.props.pydio.getController().deleteFromGuiActions(key)}.bind(this))},getPydioActions:function(){var _this=this;if(!(arguments.length<=0||void 0===arguments[0])&&arguments[0])return["toggle_info_panel"];var multiAction=new Action({name:"toggle_info_panel",icon_class:"mdi mdi-information",text_id:341,title_id:341,text:this.props.pydio.MessageHash[341],title:this.props.pydio.MessageHash[341],hasAccessKey:!1,subMenu:!1,subMenuUpdateImage:!1,callback:function(){_this.setState({infoPanelToggle:!_this.state.infoPanelToggle},function(){return _this.resizeAfterTransition()})}},{selection:!0,dir:!0,file:!0,actionBar:!0,actionBarGroup:"display_toolbar,put",contextMenu:!0,infoPanel:!1},{dir:!0,file:!0},{},{}),buttons=new Map;return buttons.set("toggle_info_panel",multiAction),buttons},getInitialState:function(){return{infoPanelOpen:!1,infoPanelToggle:!0,drawerOpen:!1}},resizeAfterTransition:function(){var _this2=this;setTimeout(function(){_this2.refs.list&&_this2.refs.list.resize()},500)},infoPanelContentChange:function(numberOfCards){var _this3=this;this.setState({infoPanelOpen:numberOfCards>0},function(){return _this3.resizeAfterTransition()})},openDrawer:function(event){event.stopPropagation(),this.setState({drawerOpen:!0})},closeDrawer:function(){this.state.drawerOpen&&this.setState({drawerOpen:!1})},render:function(){var connectDropTarget=this.props.connectDropTarget||function(c){return c},mobile=this.props.pydio.UI.MOBILE_EXTENSIONS,Color=MaterialUI.Color,appBarColor=Color(this.props.muiTheme.appBar.color),styles={appBarStyle:{zIndex:1,backgroundColor:this.props.muiTheme.appBar.color},buttonsStyle:{color:this.props.muiTheme.appBar.textColor},iconButtonsStyle:{color:appBarColor.darken(.4).toString()},raisedButtonStyle:{height:30,minWidth:0},raisedButtonLabelStyle:{height:30,lineHeight:"30px"},infoPanelStyle:{backgroundColor:appBarColor.lightness(95).rgb().toString()}},classes=["vertical_layout","vertical_fit","react-fs-template"];this.state.infoPanelOpen&&this.state.infoPanelToggle&&classes.push("info-panel-open"),this.state.drawerOpen&&classes.push("drawer-open");var mainToolbars=["info_panel","info_panel_share"],mainToolbarsOthers=["change","other"];this.state.infoPanelOpen&&this.state.infoPanelToggle&&(mainToolbars=["change_main"],mainToolbarsOthers=["get","change","other"]) ;var guiPrefs=this.props.pydio.user?this.props.pydio.user.getPreference("gui_preferences",!0):[],wTourEnabled=this.props.pydio.getPluginConfigs("gui.ajax").get("ENABLE_WELCOME_TOUR"),inboxWorkspace=this.props.pydio.user&&"inbox"===this.props.pydio.user.activeRepository,_props=this.props,style=_props.style,props=_objectWithoutProperties(_props,["style"]);return connectDropTarget(React.createElement("div",{style:style,className:classes.join(" "),onTouchTap:this.closeDrawer,onContextMenu:this.props.onContextMenu},wTourEnabled&&!guiPrefs["WelcomeComponent.Pydio8.TourGuide.FSTemplate"]&&React.createElement(_WelcomeTour2.default,{ref:"welcome",pydio:this.props.pydio}),React.createElement(_leftnavLeftPanel2.default,{className:"left-panel",pydio:props.pydio}),React.createElement("div",{className:"desktop-container vertical_layout vertical_fit"},React.createElement(MaterialUI.Paper,{zDepth:1,style:styles.appBarStyle,rounded:!1},React.createElement("div",{id:"workspace_toolbar",style:{display:"flex"}},React.createElement("span",{className:"drawer-button"},React.createElement(MaterialUI.IconButton,{style:{color:"white"},iconClassName:"mdi mdi-menu",onTouchTap:this.openDrawer})),React.createElement(_Breadcrumb2.default,_extends({},props,{startWithSeparator:!1})),React.createElement("span",{style:{flex:1}}),!inboxWorkspace&&React.createElement(_search.SearchForm,props)),React.createElement("div",{id:"main_toolbar"},!inboxWorkspace&&React.createElement(PydioComponents.ButtonMenu,_extends({},props,{buttonStyle:styles.raisedButtonStyle,buttonLabelStyle:styles.raisedButtonLabelStyle,id:"create-button-menu",toolbars:["upload","create"],buttonTitle:this.props.pydio.MessageHash[198],raised:!0,secondary:!0,controller:props.pydio.Controller,openOnEvent:"tutorial-open-create-menu"})),!mobile&&React.createElement(PydioComponents.Toolbar,_extends({},props,{id:"main-toolbar",toolbars:mainToolbars,groupOtherList:mainToolbarsOthers,renderingType:"button",buttonStyle:styles.buttonsStyle})),mobile&&React.createElement("span",{style:{flex:1}}),React.createElement(PydioComponents.ListPaginator,{id:"paginator-toolbar",dataModel:props.pydio.getContextHolder(),toolbarDisplay:!0}),React.createElement(PydioComponents.Toolbar,_extends({},props,{id:"display-toolbar",toolbars:["display_toolbar"],renderingType:"icon-font",buttonStyle:styles.iconButtonsStyle})))),React.createElement(_MainFilesList2.default,{ref:"list",pydio:this.props.pydio})),React.createElement(_detailpanesInfoPanel2.default,_extends({},props,{dataModel:props.pydio.getContextHolder(),onContentChange:this.infoPanelContentChange,style:styles.infoPanelStyle})),React.createElement(_EditionPanel2.default,props),React.createElement("span",{className:"context-menu"},React.createElement(PydioComponents.ContextMenu,{pydio:this.props.pydio}))))}});exports.default=FSTemplate=dropProvider(FSTemplate),exports.default=FSTemplate=withContextMenu(FSTemplate),exports.default=FSTemplate=MaterialUI.Style.muiThemeable()(FSTemplate),exports.default=FSTemplate,module.exports=exports.default},{"../MessagesProviderMixin":42,"../detailpanes/InfoPanel":46,"../leftnav/LeftPanel":68,"../search":77,"./Breadcrumb":78,"./EditionPanel":79,"./MainFilesList":82,"./WelcomeTour":84,color:"color",pydio:"pydio","pydio/model/action":"pydio/model/action",react:"react"}],81:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;iicons.length-1&&(next=0),this.setState({index:next,icon:icons[next]})},IconScheme.prototype.componentWillUnmount=function(){this._interval&&clearInterval(this._interval)},IconScheme.prototype.render=function(){var icon=this.state.icon;return React.createElement(Scheme,{dimension:80},React.createElement("span",{className:"mdi mdi-"+icon,style:{position:"absolute",top:14,left:14,fontSize:50}}))},IconScheme}(_react.Component),CreateMenuCard=function(_Component3){_inherits(CreateMenuCard,_Component3);function CreateMenuCard(){_classCallCheck(this,CreateMenuCard),_Component3.apply(this,arguments)}return CreateMenuCard.prototype.componentDidMount=function(){var _this2=this;setTimeout(function(){_this2.props.pydio.notify("tutorial-open-create-menu")},950)},CreateMenuCard.prototype.render=function(){return React.createElement("div",null,React.createElement("p",null,this.props.message("create-menu")),React.createElement(IconScheme,{icons:["file-plus","folder-plus"]}))},CreateMenuCard}(_react.Component),InfoPanelCard=function(_Component4){_inherits(InfoPanelCard,_Component4);function InfoPanelCard(){_classCallCheck(this,InfoPanelCard),_Component4.apply(this,arguments)}return InfoPanelCard.prototype.componentDidMount=function(){var _this3=this;this._int=setInterval(function(){_this3.setState({closed:!(_this3.state&&_this3.state.closed)})},1500)},InfoPanelCard.prototype.componentWillUnmount=function(){this._int&&clearInterval(this._int)},InfoPanelCard.prototype.render=function(){var leftStyle={width:24,transition:DOMUtils.getBeziersTransition(),transform:"scaleX(1)",transformOrigin:"right"};return this.state&&this.state.closed&&(leftStyle=_extends({},leftStyle,{width:0,transform:"scaleX(0)"})),React.createElement("div",null,React.createElement("p",null,this.props.message("infopanel.1")),React.createElement(Scheme,{style:{fontSize:10,padding:25},dimension:130},React.createElement("div",{style:{boxShadow:"2px 2px 0px #CFD8DC",display:"flex"}},React.createElement("div",{style:{backgroundColor:"white",flex:3}},React.createElement("div",null,React.createElement("span",{className:"mdi mdi-folder"})," ",this.props.message("infopanel.folder")," 1 "),React.createElement("div",{style:{backgroundColor:"#03a9f4",color:"white"}},React.createElement("span",{className:"mdi mdi-folder"})," ",this.props.message("infopanel.folder")," 2"),React.createElement("div",null,React.createElement("span",{className:"mdi mdi-file"})," ",this.props.message("infopanel.file")," 3"),React.createElement("div",null,React.createElement("span",{className:"mdi mdi-file"})," ",this.props.message("infopanel.file")," 4")),React.createElement("div",{style:leftStyle },React.createElement("div",{style:{backgroundColor:"#edf4f7",padding:4,height:"100%",fontSize:17}},React.createElement("span",{className:"mdi mdi-information-variant"}))))),React.createElement("p",null,this.props.message("infopanel.2")," (",React.createElement("span",{className:"mdi mdi-information",style:{fontSize:18,color:"#5c7784"}}),")."))},InfoPanelCard}(_react.Component),UserWidgetCard=function(_Component5){_inherits(UserWidgetCard,_Component5);function UserWidgetCard(){_classCallCheck(this,UserWidgetCard),_Component5.apply(this,arguments)}return UserWidgetCard.prototype.render=function(){var iconStyle={display:"inline-block",textAlign:"center",fontSize:17,lineHeight:"20px",backgroundColor:"#ECEFF1",color:"#607D8B",borderRadius:"50%",padding:"5px 6px",width:30,height:30,marginRight:5};return React.createElement("div",null,React.createElement("p",null,React.createElement("span",{className:"mdi mdi-book-open-variant",style:iconStyle})," ",this.props.message("uwidget.addressbook")),React.createElement(_materialUi.Divider,null),React.createElement("p",null,React.createElement("span",{className:"mdi mdi-bell-outline",style:iconStyle})," ",this.props.message("uwidget.alerts")),React.createElement(_materialUi.Divider,null),React.createElement("p",null,React.createElement("span",{className:"mdi mdi-dots-vertical",style:iconStyle})," ",this.props.message("uwidget.menu")),React.createElement(_materialUi.Divider,null),React.createElement("p",null,React.createElement("span",{className:"mdi mdi-home-variant",style:iconStyle})," ",this.props.message("uwidget.home")))},UserWidgetCard}(_react.Component),WelcomeTour=function(_Component6){_inherits(WelcomeTour,_Component6);function WelcomeTour(props,context){_classCallCheck(this,WelcomeTour),_Component6.call(this,props,context),this.state={started:!(props.pydio.user&&!props.pydio.user.getPreference("gui_preferences",!0)["UserAccount.WelcomeModal.Shown"])}}return WelcomeTour.prototype.discard=function(){var pref=arguments.length<=0||void 0===arguments[0]?"WelcomeComponent.Pydio8.TourGuide.FSTemplate":arguments[0],user=this.props.pydio.user,guiPrefs=user.getPreference("gui_preferences",!0);guiPrefs[pref]=!0,user.setPreference("gui_preferences",guiPrefs,!0),user.savePreference("gui_preferences")},WelcomeTour.prototype.componentDidMount=function(){var _this4=this;this.state.started||pydio.UI.openComponentInModal("UserAccount","WelcomeModal",{onRequestStart:function(skip){_this4.discard("UserAccount.WelcomeModal.Shown"),skip&&_this4.discard(),_this4.setState({started:!0,skip:skip})}})},WelcomeTour.prototype.render=function(){var _this5=this;if(!this.state.started||this.state.skip)return null;var getMessage=this.props.getMessage,message=function(id){return getMessage("ajax_gui.tour."+id)},tourguideSteps=[];pydio.user&&pydio.user.activeRepository&&pydio.user.write&&tourguideSteps.push({title:message("create-menu.title"),text:React.createElement(CreateMenuCard,{message:message,pydio:this.props.pydio}),selector:"#create-button-menu",position:"left",style:{width:220}}),tourguideSteps=tourguideSteps.concat([{title:message("display-bar.title"),text:React.createElement("div",null,React.createElement("p",null,message("display-bar")),React.createElement(IconScheme,{icons:["view-list","view-grid","view-carousel","sort-ascending","sort-descending"]})),selector:"#display-toolbar",position:"left"},{title:message("infopanel.title"),text:React.createElement(InfoPanelCard,{message:message}),selector:"#info_panel",position:"left"},{title:message("uwidget.title"),text:React.createElement(UserWidgetCard,{message:message}),selector:".user-widget",position:"right",style:{width:320}}]);var callback=function(data){"step:after"===data.type&&data.index===tourguideSteps.length-1&&_this5.discard()};return React.createElement(_TourGuide2.default,{ref:"joyride",steps:tourguideSteps,run:!0,autoStart:!0,debug:!1,callback:callback,type:"continuous"})},WelcomeTour}(_react.Component);exports.default=WelcomeTour=PydioContextConsumer(WelcomeTour),exports.default=WelcomeTour,module.exports=exports.default},{"./TourGuide":83,"material-ui":"material-ui",pydio:"pydio","pydio/util/dom":"pydio/util/dom",react:"react"}],85:[function(require,module,exports){(function(global){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i0&&(badgeNum=React.createElement(Badge,null,_status)),badge=React.createElement("span",{className:"workspace-badge"},React.createElement("span",{className:"access-icon"}))}else if(workspace.getOwner()){var overlay=React.createElement("span",{className:"badge-overlay mdi mdi-share-variant"});"remote"==workspace.getRepositoryType()&&(overlay=React.createElement("span",{className:"badge-overlay icon-cloud"})),badge=React.createElement("span",{className:"workspace-badge"},React.createElement("span",{className:"mdi mdi-folder"}),overlay)}else badge=React.createElement("span",{className:"workspace-badge"},React.createElement("span",null,workspace.getLettersBadge()));if(!workspace.getOwner()||workspace.getAccessStatus()||workspace.getLastConnection()?"remote"!=workspace.getRepositoryType()||current?workspace.userEditable&&!current&&(additionalAction=React.createElement("span",{className:"workspace-additional-action mdi mdi-close",onClick:this.handleRemoveTplBasedWorkspace,title:messages[423]})):additionalAction=React.createElement("span",{className:"workspace-additional-action mdi mdi-close",onClick:this.handleOpenAlert.bind(this,"reject_accepted"),title:messages[550]}):(newWorkspace=React.createElement(Badge,null,"NEW"),"remote"==workspace.getRepositoryType()&&(onClick=this.handleOpenAlert.bind(this,"new_share"))),this.state&&this.state.loading&&(additionalAction=React.createElement("span",{className:"workspace-additional-action",style:{padding:5}},React.createElement(_materialUi.CircularProgress,{size:20,thickness:3}))),showFoldersTree){var fTCName=this.state.openFoldersTree?"workspace-additional-action mdi mdi-chevron-up":"workspace-additional-action mdi mdi-chevron-down";additionalAction=React.createElement("span",{className:fTCName,onClick:this.toggleFoldersPanelOpen})}var menuNode=void 0;workspace.getId()===pydio.user.activeRepository&&(menuNode=pydio.getContextHolder().getRootNode());var wsBlock=React.createElement(ContextMenuWrapper,{node:menuNode,className:currentClass,onClick:onClick,title:workspace.getDescription(),onMouseOver:onHover,onMouseOut:onOut,style:style},badge,React.createElement("span",{className:"workspace-label-container"},React.createElement("span",{className:"workspace-label"},workspace.getLabel(),newWorkspace,badgeNum),React.createElement("span",{className:"workspace-description"},workspace.getDescription())),additionalAction);return showFoldersTree?React.createElement("div",null,wsBlock,React.createElement(FoldersTree,{pydio:pydio,dataModel:pydio.getContextHolder(),className:this.state.openFoldersTree?"open":"closed",draggable:!0,getItemStyle:this.getItemStyle})):wsBlock}}),ContextMenuWrapper=function(props){var canDrop=props.canDrop,isOver=props.isOver,connectDropTarget=props.connectDropTarget,className=props.className||"";return canDrop&&isOver&&(className+=" droppable-active"),React.createElement("div",_extends({},props,{className:className,ref:function(instance){var node=ReactDOM.findDOMNode(instance);"function"==typeof connectDropTarget&&connectDropTarget(node)}}))};ContextMenuWrapper=withContextMenu(ContextMenuWrapper),ContextMenuWrapper=_reactDnd.DropTarget(Types.NODE_PROVIDER,nodeDropTarget,collectDrop)(ContextMenuWrapper),exports.default=WorkspaceEntry=muiThemeable()(WorkspaceEntry),exports.default=WorkspaceEntry,module.exports=exports.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{color:"color","material-ui":"material-ui","material-ui/styles":"material-ui/styles",pydio:"pydio","pydio/http/api":"pydio/http/api","pydio/model/node":"pydio/model/node",react:"react","react-dnd":"react-dnd"}],86:[function(require,module,exports){"use strict";exports.__esModule=!0;function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var React=require("react"),_require=require("material-ui"),ListItem=_require.ListItem,Avatar=_require.Avatar,FontIcon=_require.FontIcon,_require2=require("material-ui/styles"),muiThemeable=_require2.muiThemeable,Pydio=(require("color"),require("pydio")),Repository=require("pydio/model/repository"),WorkspaceEntryMaterial=function(_React$Component){_inherits(WorkspaceEntryMaterial,_React$Component);function WorkspaceEntryMaterial(){_classCallCheck(this,WorkspaceEntryMaterial),_React$Component.apply(this,arguments)}return WorkspaceEntryMaterial.prototype.onClick=function(){if(this.props.onWorkspaceTouchTap)return void this.props.onWorkspaceTouchTap(this.props.workspace.getId());this.props.workspace.getId()===this.props.pydio.user.activeRepository&&this.props.showFoldersTree?this.props.pydio.goTo("/"):this.props.pydio.triggerRepositoryChange(this.props.workspace.getId())},WorkspaceEntryMaterial.prototype.render=function(){var _props=this.props,workspace=_props.workspace,muiTheme=_props.muiTheme,leftAvatar=void 0,leftIcon=void 0,color=muiTheme.palette.primary1Color,backgroundColor="#ECEFF1";if(workspace.getOwner()||"inbox"===workspace.getAccessType()){color=MaterialUI.Style.colors.teal500;var icon="inbox"===workspace.getAccessType()?"file-multiple":"folder-outline";"remote"===workspace.getRepositoryType()&&(icon="cloud-outline"),leftAvatar=React.createElement(Avatar,{backgroundColor:backgroundColor,color:color,icon:React.createElement(FontIcon,{className:"mdi mdi-"+icon})})}else leftAvatar=React.createElement(Avatar,{style:{fontSize:18},backgroundColor:backgroundColor,color:color},workspace.getLettersBadge());return React.createElement(ListItem,{leftAvatar:leftAvatar,leftIcon:leftIcon,primaryText:workspace.getLabel(),secondaryText:workspace.getDescription(),onTouchTap:this.onClick.bind(this)})},WorkspaceEntryMaterial}(React.Component);WorkspaceEntryMaterial.propTypes={pydio:React.PropTypes.instanceOf(Pydio).isRequired,workspace:React.PropTypes.instanceOf(Repository).isRequired,muiTheme:React.PropTypes.object},exports.default=WorkspaceEntryMaterial=muiThemeable()(WorkspaceEntryMaterial),exports.default=WorkspaceEntryMaterial,module.exports=exports.default},{color:"color","material-ui":"material-ui","material-ui/styles":"material-ui/styles",pydio:"pydio","pydio/model/repository":"pydio/model/repository",react:"react"}],87:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i