cozy-bar 8.12.0 → 8.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cozy-bar.min.js
CHANGED
|
@@ -61,5 +61,5 @@ object-assign
|
|
|
61
61
|
* @website https://github.com/cssinjs/jss
|
|
62
62
|
* @license MIT
|
|
63
63
|
*/
|
|
64
|
-
qa();function Qa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=Yr({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var $a={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Va="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Ja=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ga=Date.now(),Ya="fnValues"+Ga,Xa="fnStyle"+ ++Ga,Ka=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Li(e,{},n);return r[Xa]=t,r},onProcessStyle:function(e,t){if(Ya in t||Xa in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Ya]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Xa];i&&(o.style=i(e)||{});var a=o[Ya];if(a)for(var u in a)o.prop(u,a[u](e),r)}}},Za="@global",eu=function(){function e(e,t,n){for(var r in this.type="global",this.at=Za,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new xa(Yr({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),tu=function(){function e(e,t,n){this.type="global",this.at=Za,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,Yr({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),nu=/\s*,\s*/g;function ru(e,t){for(var n=e.split(nu),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var ou=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Za)return new eu(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new tu(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Za]:null;if(o){for(var i in o)t.addRule(i,o[i],Yr({},n,{selector:ru(i,e.selector)}));delete r[Za]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Za.length)===Za){var i=ru(o.substr(Za.length),e.selector);t.addRule(i,r[o],Yr({},n,{selector:i})),delete r[o]}}(e,t))}}},iu=/\s*,\s*/g,au=/&/g,uu=/\$([\w-]+)/g;var cu=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(iu),r=e.split(iu),o="",i=0;i<n.length;i++)for(var a=n[i],u=0;u<r.length;u++){var c=r[u];o&&(o+=", "),o+=-1!==c.indexOf("&")?c.replace(au,a):a+" "+c}return o}function n(e,t,n){if(n)return Yr({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Yr({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,u,c=o,s=c.options.parent;for(var l in r){var f=-1!==l.indexOf("&"),p="@"===l[0];if(f||p){if(a=n(c,s,a),f){var d=t(l,c.selector);u||(u=e(s,i)),d=d.replace(uu,u);var h=c.key+"-"+l;"replaceRule"in s?s.replaceRule(h,r[l],Yr({},a,{selector:d})):s.addRule(h,r[l],Yr({},a,{selector:d}))}else p&&s.addRule(l,{},a).addRule(c.key,r[l],{selector:c.selector});delete r[l]}}return r}}},su=/[A-Z]/g,lu=/^ms-/,fu={};function pu(e){return"-"+e.toLowerCase()}var du=function(e){if(fu.hasOwnProperty(e))return fu[e];var t=e.replace(su,pu);return fu[e]=lu.test(t)?"-"+t:t};function hu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:du(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(hu):t.fallbacks=hu(e.fallbacks)),t}var vu=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=hu(e[t]);return e}return hu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=du(t);return t===r?e:(n.prop(r,e),null)}}},yu=Ha&&CSS?CSS.px:"px",mu=Ha&&CSS?CSS.ms:"ms",gu=Ha&&CSS?CSS.percent:"%";function bu(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var wu=bu({"animation-delay":mu,"animation-duration":mu,"background-position":yu,"background-position-x":yu,"background-position-y":yu,"background-size":yu,border:yu,"border-bottom":yu,"border-bottom-left-radius":yu,"border-bottom-right-radius":yu,"border-bottom-width":yu,"border-left":yu,"border-left-width":yu,"border-radius":yu,"border-right":yu,"border-right-width":yu,"border-top":yu,"border-top-left-radius":yu,"border-top-right-radius":yu,"border-top-width":yu,"border-width":yu,"border-block":yu,"border-block-end":yu,"border-block-end-width":yu,"border-block-start":yu,"border-block-start-width":yu,"border-block-width":yu,"border-inline":yu,"border-inline-end":yu,"border-inline-end-width":yu,"border-inline-start":yu,"border-inline-start-width":yu,"border-inline-width":yu,"border-start-start-radius":yu,"border-start-end-radius":yu,"border-end-start-radius":yu,"border-end-end-radius":yu,margin:yu,"margin-bottom":yu,"margin-left":yu,"margin-right":yu,"margin-top":yu,"margin-block":yu,"margin-block-end":yu,"margin-block-start":yu,"margin-inline":yu,"margin-inline-end":yu,"margin-inline-start":yu,padding:yu,"padding-bottom":yu,"padding-left":yu,"padding-right":yu,"padding-top":yu,"padding-block":yu,"padding-block-end":yu,"padding-block-start":yu,"padding-inline":yu,"padding-inline-end":yu,"padding-inline-start":yu,"mask-position-x":yu,"mask-position-y":yu,"mask-size":yu,height:yu,width:yu,"min-height":yu,"max-height":yu,"min-width":yu,"max-width":yu,bottom:yu,left:yu,top:yu,right:yu,inset:yu,"inset-block":yu,"inset-block-end":yu,"inset-block-start":yu,"inset-inline":yu,"inset-inline-end":yu,"inset-inline-start":yu,"box-shadow":yu,"text-shadow":yu,"column-gap":yu,"column-rule":yu,"column-rule-width":yu,"column-width":yu,"font-size":yu,"font-size-delta":yu,"letter-spacing":yu,"text-decoration-thickness":yu,"text-indent":yu,"text-stroke":yu,"text-stroke-width":yu,"word-spacing":yu,motion:yu,"motion-offset":yu,outline:yu,"outline-offset":yu,"outline-width":yu,perspective:yu,"perspective-origin-x":gu,"perspective-origin-y":gu,"transform-origin":gu,"transform-origin-x":gu,"transform-origin-y":gu,"transform-origin-z":gu,"transition-delay":mu,"transition-duration":mu,"vertical-align":yu,"flex-basis":yu,"shape-margin":yu,size:yu,gap:yu,grid:yu,"grid-gap":yu,"row-gap":yu,"grid-row-gap":yu,"grid-column-gap":yu,"grid-template-rows":yu,"grid-template-columns":yu,"grid-auto-rows":yu,"grid-auto-columns":yu,"box-shadow-x":yu,"box-shadow-y":yu,"box-shadow-blur":yu,"box-shadow-spread":yu,"font-line-height":yu,"text-shadow-x":yu,"text-shadow-y":yu,"text-shadow-blur":yu});function _u(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=_u(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=_u(o,t[o],n);else for(var i in t)t[i]=_u(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||wu[e];return!a||0===t&&a===yu?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var xu=function(e){void 0===e&&(e={});var t=bu(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=_u(r,e[r],t);return e},onChangeValue:function(e,n){return _u(n,e,t)}}},ku="",Ou="",Su="",Eu="",ju=Ti&&"ontouchstart"in document.documentElement;if(Ti){var Pu={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Cu=document.createElement("p").style;for(var Tu in Pu)if(Tu+"Transform"in Cu){ku=Tu,Ou=Pu[Tu];break}"Webkit"===ku&&"msHyphens"in Cu&&(ku="ms",Ou=Pu.ms,Eu="edge"),"Webkit"===ku&&"-apple-trailing-word"in Cu&&(Su="apple")}var Au=ku,Ru=Ou,Du=Su,Mu=Eu,Iu=ju;var Nu={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Au?"-webkit-"+e:Ru+e)}},Fu={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Au?Ru+"print-"+e:e)}},zu=/[-\s]+(.)?/g;function Lu(e,t){return t?t.toUpperCase():""}function Uu(e){return e.replace(zu,Lu)}function Bu(e){return Uu("-"+e)}var Wu,qu={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Au){if(Uu("mask-image")in t)return e;if(Au+Bu("mask-image")in t)return Ru+e}return e}},Hu={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Du||Iu?e:Ru+e)}},Qu={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Ru+e)}},$u={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Ru+e)}},Vu={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Au||"ms"===Au&&"edge"!==Mu?Ru+e:e)}},Ju={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Au||"ms"===Au||"apple"===Du?Ru+e:e)}},Gu={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Au?"WebkitColumn"+Bu(e)in t&&Ru+"column-"+e:"Moz"===Au&&("page"+Bu(e)in t&&"page-"+e))}},Yu={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Au)return e;var n=e.replace("-inline","");return Au+Bu(n)in t&&Ru+n}},Xu={supportedProperty:function(e,t){return Uu(e)in t&&e}},Ku={supportedProperty:function(e,t){var n=Bu(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Au+n in t?Ru+e:"Webkit"!==Au&&"Webkit"+n in t&&"-webkit-"+e}},Zu={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Au?""+Ru+e:e)}},ec={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Au?Ru+"scroll-chaining":e)}},tc={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},nc={supportedProperty:function(e,t){var n=tc[e];return!!n&&(Au+Bu(n)in t&&Ru+n)}},rc={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},oc=Object.keys(rc),ic=function(e){return Ru+e},ac=[Nu,Fu,qu,Hu,Qu,$u,Vu,Ju,Gu,Yu,Xu,Ku,Zu,ec,nc,{supportedProperty:function(e,t,n){var r=n.multiple;if(oc.indexOf(e)>-1){var o=rc[e];if(!Array.isArray(o))return Au+Bu(o)in t&&Ru+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Au+Bu(o[0])in t))return!1;return o.map(ic)}return!1}}],uc=ac.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),cc=ac.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Mo(t.noPrefill)),e}),[]),sc={};if(Ti){Wu=document.createElement("p");var lc=window.getComputedStyle(document.documentElement,"");for(var fc in lc)isNaN(fc)||(sc[lc[fc]]=lc[fc]);cc.forEach((function(e){return delete sc[e]}))}function pc(e,t){if(void 0===t&&(t={}),!Wu)return e;if(null!=sc[e])return sc[e];"transition"!==e&&"transform"!==e||(t[e]=e in Wu.style);for(var n=0;n<uc.length&&(sc[e]=uc[n](e,Wu.style,t),!sc[e]);n++);try{Wu.style[e]=""}catch(e){return!1}return sc[e]}var dc,hc={},vc={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},yc=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function mc(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?pc(t):", "+pc(n);return r||(t||n)}function gc(e,t){var n=t;if(!dc||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=hc[r])return hc[r];try{dc.style[e]=n}catch(e){return hc[r]=!1,!1}if(vc[e])n=n.replace(yc,mc);else if(""===dc.style[e]&&("-ms-flex"===(n=Ru+n)&&(dc.style[e]="-ms-flexbox"),dc.style[e]=n,""===dc.style[e]))return hc[r]=!1,!1;return dc.style[e]="",hc[r]=n,hc[r]}Ti&&(dc=document.createElement("p"));var bc=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=pc(n);i&&i!==n&&(o=!0);var a=!1,u=gc(i,Bi(r));u&&u!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=u||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===Au?n:"@"+Ru+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return gc(t,Bi(e))||e}}};var wc=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function _c(){return{plugins:[Ka(),ou(),cu(),vu(),xu(),"undefined"==typeof window?null:bc(),wc()]}}var xc=qa(_c()),kc={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,u=""===a?"":"".concat(a,"-"),c=0,s=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ja.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(u).concat(r,"-").concat(e.key);return t.options.theme[Va]&&""===a?"".concat(i,"-").concat(s()):i}return"".concat(u).concat(o).concat(s())}}(),jss:xc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Oc=x.a.createContext(kc);var Sc=-1e9;function Ec(){return Sc+=1}function jc(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Yr({},o);return Object.keys(i).forEach((function(e){a[e]=Zr(a[e],i[e])})),a},options:{}}}var Pc={};function Cc(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Qa({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function Tc(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var u=$a.get(o.sheetsManager,i,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},$a.set(o.sheetsManager,i,r,u));var c=Yr({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var s=o.sheetsRegistry;if(0===u.refs){var l;o.sheetsCache&&(l=$a.get(o.sheetsCache,i,r));var f=i.create(r,a);l||((l=o.jss.createStyleSheet(f,Yr({link:!1},c))).attach(),o.sheetsCache&&$a.set(o.sheetsCache,i,r,l)),s&&s.add(l),u.staticSheet=l,u.dynamicStyles=function e(t){var n=null;for(var r in t){var o=t[r],i=typeof o;if("function"===i)n||(n={}),n[r]=o;else if("object"===i&&null!==o&&!Array.isArray(o)){var a=e(o);a&&(n||(n={}),n[r]=a)}}return n}(f)}if(u.dynamicStyles){var p=o.jss.createStyleSheet(u.dynamicStyles,Yr({link:!0},c));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Qa({baseClasses:u.staticSheet.classes,newClasses:p.classes}),s&&s.add(p)}else n.classes=u.staticSheet.classes;u.refs+=1}}function Ac(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function Rc(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=$a.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&($a.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function Dc(e,t){var n,r=x.a.useRef([]),o=x.a.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),x.a.useEffect((function(){return function(){n&&n()}}),[o])}function Mc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Pc:i,u=Ei(t,["name","classNamePrefix","Component","defaultTheme"]),c=jc(e),s=n||r||"makeStyles";c.options={index:Ec(),name:n,meta:s,classNamePrefix:s};var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$r()||a,r=Yr({},x.a.useContext(Oc),u),i=x.a.useRef(),s=x.a.useRef();Dc((function(){var o={name:n,state:{},stylesCreator:c,stylesOptions:r,theme:t};return Tc(o,e),s.current=!1,i.current=o,function(){Rc(o)}}),[t,c]),x.a.useEffect((function(){s.current&&Ac(i.current,e),s.current=!0}));var l=Cc(i.current,e.classes,o);return l};return l}function Ic(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Nc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,u=Ei(t,["defaultTheme","withTheme","name"]);var c=a,s=Mc(e,Yr({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:c},u)),l=x.a.forwardRef((function(e,t){e.classes;var o,u=e.innerRef,c=Ei(e,["classes","innerRef"]),l=s(Yr({},n.defaultProps,e)),f=c;return("string"==typeof a||i)&&(o=$r()||r,a&&(f=Ic({theme:o,name:a,props:c})),i&&!f.theme&&(f.theme=o)),x.a.createElement(n,Yr({ref:u||t,classes:l},f))}));return Pi()(l,n),l}};var Fc=function(e,t){return Nc(e,eo({defaultTheme:Zo},t))};function zc(e){if("string"!=typeof e)throw new Error(oo(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Lc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Uc=_.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,u=void 0===a?"initial":a,c=e.component,s=e.display,l=void 0===s?"initial":s,f=e.gutterBottom,p=void 0!==f&&f,d=e.noWrap,h=void 0!==d&&d,v=e.paragraph,y=void 0!==v&&v,m=e.variant,g=void 0===m?"body1":m,b=e.variantMapping,w=void 0===b?Lc:b,x=Gr(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=c||(y?"p":w[g]||Lc[g])||"span";return _.createElement(k,eo({className:Oi(o.root,i,"inherit"!==g&&o[g],"initial"!==u&&o["color".concat(zc(u))],h&&o.noWrap,p&&o.gutterBottom,y&&o.paragraph,"inherit"!==r&&o["align".concat(zc(r))],"initial"!==l&&o["display".concat(zc(l))]),ref:t},x))})),Bc=Fc((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Uc),Wc=["color","variant","children"],qc=Object(_.forwardRef)((function(e,t){var n=e.color,r=e.variant,o=e.children,i=T()(e,Wc),a=n||("caption"===r?"textSecondary":"textPrimary");return x.a.createElement(Bc,E()({ref:t,variant:r,color:a},i),o)})),Hc="styles__c-spinner___1snK7",Qc="styles__c-spinner--middle___RwyII",$c="styles__c-spinner--nomargin___13JyW",Vc=function(e){var t,n=e.t,r=e.loadingType,o=e.middle,i=e.noMargin,a=e.color,u=e.size,c=e.className,s={tiny:8,small:12,medium:16,large:24,xlarge:36,xxlarge:80}[u];return x.a.createElement("div",{className:M()(Hc,(t={},P()(t,Qc,o),P()(t,$c,i),t),c)},x.a.createElement(U,{icon:ke,color:a,spin:!0,size:s}),r&&x.a.createElement(qc,{variant:"body1",color:"textSecondary",component:"p"},n("loading.".concat(r))))};Vc.propTypes={loadingType:R.a.string,middle:R.a.bool,noMargin:R.a.bool,color:R.a.string,size:R.a.oneOf(["tiny","small","medium","large","xlarge","xxlarge"]),className:R.a.string},Vc.defaultProps={loadingType:"",middle:!1,noMargin:!1,color:"var(--spinnerColor)",size:"medium",className:""};var Jc=Object(O.translate)()(Vc);function Gc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Yc=function(e){p()(n,e);var t=Gc(n);function n(e,r){var o;return a()(this,n),o=t.call(this,e),g()(l()(o),"toggle",(function(){o.setState({isLoading:!0}),o.intents.create("SUPPORT","io.cozy.settings").start(o.intentWrapperRef,(function(){o.setState({isLoading:!1})}))})),o.store=r.barStore,o.state={isLoading:!1},o.intents=Object(ge.b)(),o}return c()(n,[{key:"componentDidMount",value:function(){this.toggle()}},{key:"render",value:function(){var e=this,t=this.state.isLoading;return x.a.createElement("div",null,x.a.createElement(xi,{secondaryAction:this.props.onClose,className:"coz-support-modal",into:"#cozy-bar-modal-dom-place",closeBtnClassName:"coz-support-modal-close"},x.a.createElement(mr,{className:"coz-support-modal-wrapper u-mt-1"},x.a.createElement("div",{className:"coz-support-modal-content"},t&&x.a.createElement(Jc,{size:"xxlarge",middle:!0}),x.a.createElement("div",{className:"coz-support-intent-wrapper".concat(t?" coz-hidden":""),ref:function(t){e.intentWrapperRef=t}})))))}}]),n}(_.Component);function Xc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}function Kc(e){return x.a.createElement("svg",w()({width:16,height:16},e),x.a.createElement("path",{d:"M0 0h4v4H0V0zm0 6h4v4H0V6zm0 6h4v4H0v-4zM6 0h4v4H6V0zm0 6h4v4H6V6zm0 6h4v4H6v-4zm6-12h4v4h-4V0zm0 6h4v4h-4V6zm0 6h4v4h-4v-4z",fillRule:"evenodd"}))}n.d(t,"Bar",(function(){return Zc})),n.d(t,"mapStateToProps",(function(){return es})),n.d(t,"mapDispatchToProps",(function(){return ts}));var Zc=function(e){p()(n,e);var t=Xc(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"toggleDrawer",(function(){if(!r.state.claudyOpened&&!r.state.claudyFired){var e=!r.state.drawerVisible;e&&r.props.onDrawer(e),r.setState({drawerVisible:e})}})),g()(l()(r),"toggleClaudy",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.claudyEnabled){var t=r.state.claudyOpened;if(e&&!t)return r.setState({claudyFired:!0});r.state.claudyFired&&r.setState({claudyFired:!1}),r.setState({claudyOpened:!t})}})),g()(l()(r),"toggleSupport",(function(){var e=r.state.supportDisplayed;r.setState({supportDisplayed:!e})})),g()(l()(r),"renderLeft",(function(){var e=r.props,t=e.t,n=e.isPublic,o=e.webviewContext;return Object(B.isFlagshipApp)()||q()("flagship.debug")?x.a.createElement(xe,{webviewContext:o}):n?null:x.a.createElement("button",{type:"button",className:"coz-bar-btn coz-bar-burger",onClick:r.toggleDrawer,"data-tutorial":"apps-mobile"},x.a.createElement(U,{icon:Kc,width:16,height:16,color:"currentColor"}),x.a.createElement("span",{className:"coz-bar-hidden"},t("drawer")))})),g()(l()(r),"renderRight",(function(){return r.props.isPublic?null:x.a.createElement(an,{toggleSupport:r.toggleSupport,onLogOut:r.props.onLogOut})})),r.state={claudyFired:!1,claudyOpened:!1,drawerVisible:!1,supportDisplayed:!1},r.fetchApps=r.fetchApps.bind(l()(r)),r.fetchInitialData=r.fetchInitialData.bind(l()(r)),r.handleTokenRefreshed=r.handleTokenRefreshed.bind(l()(r)),r}return c()(n,[{key:"componentDidMount",value:function(){this.fetchInitialData(),this.props.cozyClient.on("tokenRefreshed",this.handleTokenRefreshed)}},{key:"componentWillUnmount",value:function(){this.props.cozyClient.removeListener("tokenRefreshed",this.handleTokenRefreshed)}},{key:"componentDidUpdate",value:function(e,t){!this.props.hasFetchedApps&&this.state.drawerVisible&&t.drawerVisible!==this.state.drawerVisible&&this.fetchApps()}},{key:"handleTokenRefreshed",value:function(){this.fetchInitialData()}},{key:"fetchApps",value:function(){this.props.fetchApps()}},{key:"fetchInitialData",value:function(){this.props.isPublic||(this.props.fetchContext(),this.props.fetchSettingsData(!1),this.fetchApps())}},{key:"renderCenter",value:function(){var e=this.props,t=e.appName,n=e.appNamePrefix,r=e.appSlug,o=e.iconPath,i=e.isPublic;return x.a.createElement(dn,{appName:t,appNamePrefix:n,appSlug:r,iconPath:o,isPublic:i})}},{key:"render",value:function(){var e=this,t=this.state,n=t.claudyFired,r=t.claudyOpened,i=t.drawerVisible,a=t.supportDisplayed,u=this.props,c=u.theme,s=u.themeOverrides,l=u.barLeft,f=u.barRight,p=u.barCenter,d=u.barSearch,h=u.claudyEnabled,v=u.onDrawer,y=u.isPublic,m=u.onLogOut,g=u.userActionRequired,b=s.primaryColor,w=s.primaryContrastTextColor,_=b?{"--cozBarThemePrimaryColor":b}:{},k=w?{"--cozBarThemePrimaryContrastTextColor":w}:{},O=o()({},_,k);return x.a.createElement("div",{className:"coz-bar-wrapper coz-theme-".concat(c),style:O},x.a.createElement("div",{id:"cozy-bar-modal-dom-place"}),x.a.createElement("div",{className:"coz-bar-container"},l||this.renderLeft(),p||this.renderCenter(),x.a.createElement("div",{className:"u-flex-grow"},d),f||this.renderRight(),y?null:x.a.createElement(Ht,{visible:i,onClose:this.toggleDrawer,onClaudy:h&&function(){return e.toggleClaudy(!0)}||!1,isClaudyLoading:n,drawerListener:function(){return v(i)},toggleSupport:this.toggleSupport,onLogOut:m}),h&&x.a.createElement(yn,{claudyFired:n,onToggle:function(){return e.toggleClaudy(!1)},opened:r}),a&&x.a.createElement(Yc,{onClose:this.toggleSupport})),g&&x.a.createElement(Fe,g))}}]),n}(_.Component),es=function(e){return{theme:Object(tt.j)(e).name,themeOverrides:Object(tt.j)(e).overrides,barLeft:Object(tt.e)(e,"left"),barRight:Object(tt.e)(e,"right"),barCenter:Object(tt.e)(e,"center"),barSearch:Object(tt.e)(e,"search"),isDrive:Object(tt.m)(e,{slug:"drive"}),claudyEnabled:Object(tt.z)(e),hasFetchedApps:Object(tt.l)(e),webviewContext:Object(tt.k)(e)}},ts=function(e){return{fetchApps:function(){return e(Object(tt.a)())},fetchContext:function(){return e(Object(tt.b)())},fetchSettingsData:function(t){return e(Object(tt.c)(t))}}};t.default=Object(O.translate)()(Object(k.connect)(es,ts)(Zc))},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=(n(1),o.a.createContext(null));var a=function(e){e()},u={notify:function(){}};function c(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var s=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=u,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=c())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=u)},e}();var l=function(e){var t=e.store,n=e.context,a=e.children,u=Object(r.useMemo)((function(){var e=new s(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=u.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[u,c]);var l=n||i;return o.a.createElement(l.Provider,{value:u},a)};function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var d=n(80),h=n.n(d),v=n(122),y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,m=[],g=[null,null];function b(e,t){var n=e[1];return[t.payload,n+1]}function w(e,t,n){y((function(){return e.apply(void 0,t)}),n)}function _(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function x(e,t,n,r,o,i,a,u,c,s){if(e){var l=!1,f=null,p=function(){if(!l){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||c():(i.current=e,u.current=e,a.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var k=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,u=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,c=n.methodName,l=void 0===c?"connectAdvanced":c,d=n.renderCountProp,y=void 0===d?void 0:d,O=n.shouldHandleStateChanges,S=void 0===O||O,E=n.storeKey,j=void 0===E?"store":E,P=(n.withRef,n.forwardRef),C=void 0!==P&&P,T=n.context,A=void 0===T?i:T,R=p(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),D=A;return function(t){var n=t.displayName||t.name||"Component",i=u(n),a=f({},R,{getDisplayName:u,methodName:l,renderCountProp:y,shouldHandleStateChanges:S,storeKey:j,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=R.pure;var d=c?r.useMemo:function(e){return e()};function O(n){var i=Object(r.useMemo)((function(){var e=n.forwardedRef,t=p(n,["forwardedRef"]);return[n.context,e,t]}),[n]),u=i[0],c=i[1],l=i[2],h=Object(r.useMemo)((function(){return u&&u.Consumer&&Object(v.isContextConsumer)(o.a.createElement(u.Consumer,null))?u:D}),[u,D]),y=Object(r.useContext)(h),O=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(y)&&Boolean(y.store);var E=O?n.store:y.store,j=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(E)}),[E]),P=Object(r.useMemo)((function(){if(!S)return g;var e=new s(E,O?null:y.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[E,O,y]),C=P[0],T=P[1],A=Object(r.useMemo)((function(){return O?y:f({},y,{subscription:C})}),[O,y,C]),R=Object(r.useReducer)(b,m,k),M=R[0][0],I=R[1];if(M&&M.error)throw M.error;var N=Object(r.useRef)(),F=Object(r.useRef)(l),z=Object(r.useRef)(),L=Object(r.useRef)(!1),U=d((function(){return z.current&&l===F.current?z.current:j(E.getState(),l)}),[E,M,l]);w(_,[F,N,L,l,U,z,T]),w(x,[S,E,C,j,F,N,L,z,T,I],[E,C,j]);var B=Object(r.useMemo)((function(){return o.a.createElement(t,f({},U,{ref:c}))}),[c,t,U]);return Object(r.useMemo)((function(){return S?o.a.createElement(h.Provider,{value:A},B):B}),[h,B,A])}var E=c?o.a.memo(O):O;if(E.WrappedComponent=t,E.displayName=i,C){var P=o.a.forwardRef((function(e,t){return o.a.createElement(E,f({},e,{forwardedRef:t}))}));return P.displayName=i,P.WrappedComponent=t,h()(P,t)}return h()(E,t)}}function S(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function E(e,t){if(S(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!S(e[n[o]],t[n[o]]))return!1;return!0}var j=n(35);function P(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function C(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function T(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=C(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=C(o),o=r(t,n)),o},r}}var A=[function(e){return"function"==typeof e?T(e):void 0},function(e){return e?void 0:P((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?P((function(t){return Object(j.bindActionCreators)(e,t)})):void 0}];var R=[function(e){return"function"==typeof e?T(e):void 0},function(e){return e?void 0:P((function(){return{}}))}];function D(e,t,n){return f({},n,{},e,{},t)}var M=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,u){var c=e(t,n,u);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return D}}];function I(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function N(e,t,n,r,o){var i,a,u,c,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,v,y=!f(d,a),m=!l(o,i);return i=o,a=d,y&&m?(u=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):y?(e.dependsOnOwnProps&&(u=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):m?(h=e(i,a),v=!p(h,u),u=h,v&&(s=n(u,c,a)),s):s}return function(o,l){return d?h(o,l):(u=e(i=o,a=l),c=t(r,a),s=n(u,c,a),d=!0,s)}}function F(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=p(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),c=o(e,i);return(i.pure?N:I)(a,u,c,e,i)}function z(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function L(e,t){return e===t}function U(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,o=t.mapStateToPropsFactories,i=void 0===o?R:o,a=t.mapDispatchToPropsFactories,u=void 0===a?A:a,c=t.mergePropsFactories,s=void 0===c?M:c,l=t.selectorFactory,d=void 0===l?F:l;return function(e,t,n,o){void 0===o&&(o={});var a=o,c=a.pure,l=void 0===c||c,h=a.areStatesEqual,v=void 0===h?L:h,y=a.areOwnPropsEqual,m=void 0===y?E:y,g=a.areStatePropsEqual,b=void 0===g?E:g,w=a.areMergedPropsEqual,_=void 0===w?E:w,x=p(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),k=z(e,i,"mapStateToProps"),O=z(t,u,"mapDispatchToProps"),S=z(n,s,"mergeProps");return r(d,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:O,initMergeProps:S,pure:l,areStatesEqual:v,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:_},x))}}var B=U();function W(){return Object(r.useContext)(i)}function q(e){void 0===e&&(e=i);var t=e===i?W:function(){return Object(r.useContext)(e)};return function(){return t().store}}var H=q();function Q(e){void 0===e&&(e=i);var t=e===i?H:q(e);return function(){return t().dispatch}}var $=Q(),V=function(e,t){return e===t};function J(e){void 0===e&&(e=i);var t=e===i?W:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=V);var o=t();return function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],u=Object(r.useMemo)((function(){return new s(n,o)}),[n,o]),c=Object(r.useRef)(),l=Object(r.useRef)(),f=Object(r.useRef)();try{i=e!==l.current||c.current?e(n.getState()):f.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return y((function(){l.current=e,f.current=i,c.current=void 0})),y((function(){function e(){try{var e=l.current(n.getState());if(t(e,f.current))return;f.current=e}catch(e){c.current=e}a({})}return u.onStateChange=e,u.trySubscribe(),e(),function(){return u.tryUnsubscribe()}}),[n,u]),i}(e,n,o.store,o.subscription)}}var G,Y=J(),X=n(120);n.d(t,"Provider",(function(){return l})),n.d(t,"connectAdvanced",(function(){return O})),n.d(t,"ReactReduxContext",(function(){return i})),n.d(t,"connect",(function(){return B})),n.d(t,"batch",(function(){return X.unstable_batchedUpdates})),n.d(t,"useDispatch",(function(){return $})),n.d(t,"createDispatchHook",(function(){return Q})),n.d(t,"useSelector",(function(){return Y})),n.d(t,"createSelectorHook",(function(){return J})),n.d(t,"useStore",(function(){return H})),n.d(t,"createStoreHook",(function(){return q})),n.d(t,"shallowEqual",(function(){return E})),G=X.unstable_batchedUpdates,a=G},function(e,t,n){"use strict";n.r(t);var r=n(15),o=n.n(r),i=n(35),a=n(12),u=n.n(a),c=n(121),s=n(97),l=function(e){return function(t){var n=t.langs,r=t.locales,o=n&&n.length;if(!o)return t;var i=o&&n.includes(e)?e:n[0],a=r&&Object.keys(r);return a&&a.length&&a.includes(i)?(Object(c.a)(u()({},t.slug,r[i])),t):t}},f=function(e){var t=e.getState;return function(e){return function(n){var r=t();switch(n.type){case s.a:!function(e,t){e&&e.forEach(l(t))}(r.apps&&r.apps.apps,n.lang);break;case"RECEIVE_APP_LIST":n.apps&&n.apps.length&&n.apps.forEach(l(r.locale));break;case"RECEIVE_APP":n.app&&l(r.locale&&r.locale.lang)(n.app)}return e(n)}}},p=n(225),d="persist/REHYDRATE",h="persist/REGISTER",v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function m(e,t,n,r){r.debug;var o=y({},n);return e&&"object"===(void 0===e?"undefined":v(e))&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(o[r]=e[r])})),o}function g(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],o=e.throttle||0,i=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,a=e.storage,u=!1===e.serialize?function(e){return e}:b,c={},s={},l=[],f=null,p=null;function d(){if(0===l.length)return f&&clearInterval(f),void(f=null);var e=l.shift(),t=r.reduce((function(t,n){return n.in(t,e,c)}),c[e]);if(void 0!==t)try{s[e]=u(t)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete s[e];0===l.length&&(Object.keys(s).forEach((function(e){void 0===c[e]&&delete s[e]})),p=a.setItem(i,u(s)).catch(h))}function h(e){0}return{update:function(e){Object.keys(e).forEach((function(r){(function(e){return(!n||-1!==n.indexOf(e)||"_persist"===e)&&(!t||-1===t.indexOf(e))})(r)&&c[r]!==e[r]&&-1===l.indexOf(r)&&l.push(r)})),Object.keys(c).forEach((function(t){void 0===e[t]&&l.push(t)})),null===f&&(f=setInterval(d,o)),c=e},flush:function(){for(;0!==l.length;)d();return p||Promise.resolve()}}}function b(e){return JSON.stringify(e)}function w(e){var t=e.transforms||[],n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,r=e.storage,o=(e.debug,!1===e.serialize?function(e){return e}:_);return r.getItem(n).then((function(e){if(e)try{var n={},r=o(e);return Object.keys(r).forEach((function(e){n[e]=t.reduceRight((function(t,n){return n.out(t,e,r)}),o(r[e]))})),n}catch(e){throw e}}))}function _(e){return JSON.parse(e)}function x(e){0}var k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function O(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?m:e.stateReconciler),o=e.getStoredState||w,i=void 0!==e.timeout?e.timeout:5e3,a=null,u=!1,c=!0,s=function(e){return e._persist.rehydrated&&a&&!c&&a.update(e),e};return function(l,f){var p=l||{},h=p._persist,v=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(p,["_persist"]);if("persist/PERSIST"===f.type){var y=!1,m=function(t,n){y||(f.rehydrate(e.key,t,n),y=!0)};if(i&&setTimeout((function(){!y&&m(void 0,new Error('redux-persist: persist timed out for persist key "'+e.key+'"'))}),i),c=!1,a||(a=g(e)),h)return l;if("function"!=typeof f.rehydrate||"function"!=typeof f.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),o(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){m(e)}),(function(e){m(void 0,e)}))}),(function(e){m(void 0,e)})),k({},t(v,f),{_persist:{version:n,rehydrated:!1}})}if("persist/PURGE"===f.type)return u=!0,f.result(function(e){var t=e.storage,n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key;return t.removeItem(n,x)}(e)),k({},t(v,f),{_persist:h});if("persist/FLUSH"===f.type)return f.result(a&&a.flush()),k({},t(v,f),{_persist:h});if("persist/PAUSE"===f.type)c=!0;else if(f.type===d){if(u)return k({},v,{_persist:k({},h,{rehydrated:!0})});if(f.key===e.key){var b=t(v,f),w=f.payload,_=!1!==r&&void 0!==w?r(w,l,b,e):b,O=k({},_,{_persist:k({},h,{rehydrated:!0})});return s(O)}}if(!h)return t(l,f);var S=t(v,f);return S===v?l:(S._persist=h,s(S))}}var S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function j(e,t,n,r){r.debug;var o=E({},n);return e&&"object"===(void 0===e?"undefined":S(e))&&Object.keys(e).forEach((function(r){var i;"_persist"!==r&&(t[r]===n[r]&&(null===(i=n[r])||Array.isArray(i)||"object"!==(void 0===i?"undefined":S(i))?o[r]=e[r]:o[r]=E({},o[r],e[r])))})),o}var P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function C(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var T={registry:[],bootstrapped:!1},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments[1];switch(t.type){case h:return P({},e,{registry:[].concat(C(e.registry),[t.key])});case d:var n=e.registry.indexOf(t.key),r=[].concat(C(e.registry));return r.splice(n,1),P({},e,{registry:r,bootstrapped:0===r.length});default:return e}};var R=n(10),D=n(364),M=n(365),I=n.n(M),N=n(366),F=n(37),z=n.n(F),L=n(119),U=n.n(L),B=n(367);n.n(B)()(window,"cozy.debug.flagship",(function(){return z()("flagship.debug",!0)}));var W=window.minilog||U.a,q=W("cozy-bar");z()("bar.debug")||W.suggest.deny("cozy-bar","info");var H=q;n.d(t,"createStore",(function(){return K}));var Q,$,V={storage:I.a,key:"cozy-bar",whitelist:N},J=Object(D.createLogger)({logger:H}),G=(Q=V,$=o()({},R.t),Q.stateReconciler=void 0===Q.stateReconciler?j:Q.stateReconciler,O(Q,Object(i.combineReducers)($))),Y=[f,p.default];z()("bar.debug")&&Y.push(J);var X,K=function(){var e,t,n,r,o,a,u,c;return X=Object(i.createStore)(G,i.applyMiddleware.apply(null,Y)),e=X,r=n||!1,o=Object(i.createStore)(A,T,t?t.enhancer:void 0),a=function(e){o.dispatch({type:h,key:e})},u=function(t,n,i){var a={type:d,payload:n,err:i,key:t};e.dispatch(a),o.dispatch(a),r&&c.getState().bootstrapped&&(r(),r=!1)},(c=P({},o,{purge:function(){var t=[];return e.dispatch({type:"persist/PURGE",result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:"persist/FLUSH",result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:"persist/PAUSE"})},persist:function(){e.dispatch({type:"persist/PERSIST",register:a,rehydrate:u})}})).persist(),X};t.default=function(){return X||(X=K()),X}},function(e,t,n){"use strict";n.r(t);var r=n(4),o=n.n(r),i=n(8),a=n.n(i),u=n(19),c=n(30),s=n(10),l=n(2),f=n.n(l),p=n(7),d=n.n(p),h=n(11),v=n.n(h),y=n(13),m=n.n(y),g=n(6),b=n.n(g),w=n(0),_=n.n(w),x=["left","center","right","search"],k=function(e){return e[0].toUpperCase()+e.slice(1)},O=function(e){return"setBar".concat(k(e))},S=function(e){return"Bar".concat(k(e))};function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var o=b()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var j=0,P=function(e){var t={};return x.forEach((function(n){t[O(n)]=function(t){return e.dispatch(Object(s.u)(n,"string"==typeof(r=t)?_.a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}):r,"js"));var r},t[S(n)]=function(e,t){return function(n){v()(o,n);var r=E(o);function o(){return f()(this,o),r.apply(this,arguments)}return d()(o,[{key:"componentDidMount",value:function(){this.componentId=j++,this.setContent(this.props.children)}},{key:"setContent",value:function(n){try{n=_.a.Children.only(n)}catch(e){}e.dispatch(Object(s.u)(t,n,this.componentId))}},{key:"unsetContent",value:function(){e.dispatch(Object(s.A)(t,this.componentId))}},{key:"componentWillUnmount",value:function(){this.unsetContent()}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&this.setContent(this.props.children)}},{key:"render",value:function(){return null}}]),o}(w.Component)}(e,n)})),t.setLocale=function(){e.dispatch(s.w.apply(void 0,arguments))},t.setTheme=function(){e.dispatch(s.x.apply(void 0,arguments))},t.setWebviewContext=function(){e.dispatch(s.y.apply(void 0,arguments))},t},C=function(e){console.error("You tried to use the CozyBar API (".concat(e,") but the CozyBar is not initialised yet via cozy.bar.init(...)."))},T=function(e,t){return function(){if(e[t])return e[t].apply(e,arguments);C(t)}},A=function(){var e=document.querySelector("[role=application]");return e&&e.dataset?e.dataset:{}},R=function(){var e=document.querySelector('link[rel="icon"][sizes^="32"]');return null!==e?e.getAttribute("href"):"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},D=function(){return A().cozyAppNamePrefix||null},M=function(){return A().cozyAppSlug||null},I=function(){var e=document.querySelector("meta[name=user-action-required]"),t=e&&e.dataset;if(t){var n=t.title,r=t.code,o=t.detail,i=t.links;if(r)return{title:n,code:r,detail:o,links:i}}},N=n(358),F=n(359),z=n(360);n.d(t,"init",(function(){return H})),n.d(t,"version",(function(){return re})),n.d(t,"setBarCenter",(function(){return V})),n.d(t,"setBarLeft",(function(){return J})),n.d(t,"setBarRight",(function(){return G})),n.d(t,"setBarSearch",(function(){return Y})),n.d(t,"BarLeft",(function(){return Z})),n.d(t,"BarRight",(function(){return K})),n.d(t,"BarCenter",(function(){return X})),n.d(t,"BarSearch",(function(){return ee})),n.d(t,"setTheme",(function(){return te})),n.d(t,"setWebviewContext",(function(){return ne})),n.d(t,"updateAccessToken",(function(){return Q})),n.d(t,"setLocale",(function(){return s.w}));var L={en:N,fr:F,es:z},U=function(e){if(null===document.getElementById("coz-bar")){var t=function(){var e=Object(u.isMobileApp)()?"mobile":"browser",t=document.createElement("div");return t.setAttribute("id","coz-bar"),t.setAttribute("role","banner"),t.classList.add("coz-target--".concat(e)),t}(),n=document.querySelector("[role=application]");return n?(document.body.insertBefore(t,n),e.onDrawer=function(e){t.dataset.drawerVisible=e},e.userActionRequired&&document.body.classList.add("has-banner"),t):(console.warn('Cozy-bar is looking for a "'.concat("[role=application]","\" tag that contains your application and can't find it :'(… The BAR is now disabled")),null)}},B=function(e,t){var r=n(0),o=n(120).render,i=n(51),a=i.connect,u=i.Provider,c=n(29).default,l=n(745).default,f=n(34).CozyProvider,p=t.cozyClient,d=a((function(e){return{lang:Object(s.g)(e)}}))(c),h=r.createElement(u,{store:t.reduxStore},r.createElement(d,{dictRequire:function(e){return L[e]}},p?r.createElement(f,{client:p},r.createElement(l,t)):r.createElement(l,t)));return o(h,e),h},W=function(e){var t=e.cozyURL,r=e.token,o=e.isPublic,i={uri:t||function(e){var t=A();if(!t.cozyDomain)return e||console.warn("Cozy-bar can't discover the cozy's URL, and will probably fail to initialize the connection with the stack."),"";var n=window.location.protocol;return"".concat(n,"//").concat(t.cozyDomain)}(o),token:r||function(e){var t=A();return t.cozyToken?t.cozyToken:(e||console.warn("Cozy-bar can't discover the app's token, and will probably fail to initialize the connection with the stack."),"")}(o)},a=n(34).default;return console.warn("Automatically made cozyClient. Options: ",i),new a(i)},q={},H=function(){var e=a()(o.a.mark((function e(){var t,r,i,a,u,l,f,p,d,h,v,y,m,g,b,w,_,x,k,O,S,E,j=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=j.length>0&&void 0!==j[0]?j[0]:{},r=t.appName,i=t.appNamePrefix,a=void 0===i?D():i,u=t.appSlug,l=void 0===u?M():u,f=t.lang,p=t.iconPath,d=void 0===p?R():p,h=t.cozyClient,v=t.cozyURL,y=t.token,m=t.replaceTitleOnMobile,g=void 0!==m&&m,b=t.isPublic,w=void 0!==b&&b,_=t.onLogOut,!w&&/^\/public/.test(window.location.pathname)&&(w=!0),h||(h=W({cozyURL:v,token:y,isPublic:w})),x=n(747).default,(k=x()).dispatch(Object(s.v)(r,a,l)),c.a.init({cozyClient:h,onCreate:function(e){return k.dispatch(Object(s.r)(e))},onDelete:function(e){return k.dispatch(Object(s.s)(e))}}),f&&k.dispatch(Object(s.w)(f)),O=P(k),Object.assign(q,O),S={appName:r,appNamePrefix:a,appSlug:l,cozyClient:h,iconPath:d,replaceTitleOnMobile:g,isPublic:w,onLogOut:_,userActionRequired:I(),reduxStore:k},E=U(S),B(E,S);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(e){c.a.updateAccessToken(e)},$=function(e){var t={};x.forEach((function(n){var r=O(n),o=S(n);t[r]=T(e,r),t[o]=function(t){if(e[o])return _.a.createElement(e[o],t);C(o)}}));for(var n=0,r=["setLocale","setTheme","setWebviewContext"];n<r.length;n++){var o=r[n];t[o]=T(e,o)}return t}(q),V=$.setBarCenter,J=$.setBarLeft,G=$.setBarRight,Y=$.setBarSearch,X=$.BarCenter,K=$.BarRight,Z=$.BarLeft,ee=$.BarSearch,te=$.setTheme,ne=$.setWebviewContext,re="8.12.0"}])}));
|
|
64
|
+
qa();function Qa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=Yr({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var $a={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Va="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Ja=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ga=Date.now(),Ya="fnValues"+Ga,Xa="fnStyle"+ ++Ga,Ka=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Li(e,{},n);return r[Xa]=t,r},onProcessStyle:function(e,t){if(Ya in t||Xa in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Ya]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Xa];i&&(o.style=i(e)||{});var a=o[Ya];if(a)for(var u in a)o.prop(u,a[u](e),r)}}},Za="@global",eu=function(){function e(e,t,n){for(var r in this.type="global",this.at=Za,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new xa(Yr({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),tu=function(){function e(e,t,n){this.type="global",this.at=Za,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,Yr({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),nu=/\s*,\s*/g;function ru(e,t){for(var n=e.split(nu),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var ou=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Za)return new eu(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new tu(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Za]:null;if(o){for(var i in o)t.addRule(i,o[i],Yr({},n,{selector:ru(i,e.selector)}));delete r[Za]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Za.length)===Za){var i=ru(o.substr(Za.length),e.selector);t.addRule(i,r[o],Yr({},n,{selector:i})),delete r[o]}}(e,t))}}},iu=/\s*,\s*/g,au=/&/g,uu=/\$([\w-]+)/g;var cu=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(iu),r=e.split(iu),o="",i=0;i<n.length;i++)for(var a=n[i],u=0;u<r.length;u++){var c=r[u];o&&(o+=", "),o+=-1!==c.indexOf("&")?c.replace(au,a):a+" "+c}return o}function n(e,t,n){if(n)return Yr({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Yr({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,u,c=o,s=c.options.parent;for(var l in r){var f=-1!==l.indexOf("&"),p="@"===l[0];if(f||p){if(a=n(c,s,a),f){var d=t(l,c.selector);u||(u=e(s,i)),d=d.replace(uu,u);var h=c.key+"-"+l;"replaceRule"in s?s.replaceRule(h,r[l],Yr({},a,{selector:d})):s.addRule(h,r[l],Yr({},a,{selector:d}))}else p&&s.addRule(l,{},a).addRule(c.key,r[l],{selector:c.selector});delete r[l]}}return r}}},su=/[A-Z]/g,lu=/^ms-/,fu={};function pu(e){return"-"+e.toLowerCase()}var du=function(e){if(fu.hasOwnProperty(e))return fu[e];var t=e.replace(su,pu);return fu[e]=lu.test(t)?"-"+t:t};function hu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:du(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(hu):t.fallbacks=hu(e.fallbacks)),t}var vu=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=hu(e[t]);return e}return hu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=du(t);return t===r?e:(n.prop(r,e),null)}}},yu=Ha&&CSS?CSS.px:"px",mu=Ha&&CSS?CSS.ms:"ms",gu=Ha&&CSS?CSS.percent:"%";function bu(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var wu=bu({"animation-delay":mu,"animation-duration":mu,"background-position":yu,"background-position-x":yu,"background-position-y":yu,"background-size":yu,border:yu,"border-bottom":yu,"border-bottom-left-radius":yu,"border-bottom-right-radius":yu,"border-bottom-width":yu,"border-left":yu,"border-left-width":yu,"border-radius":yu,"border-right":yu,"border-right-width":yu,"border-top":yu,"border-top-left-radius":yu,"border-top-right-radius":yu,"border-top-width":yu,"border-width":yu,"border-block":yu,"border-block-end":yu,"border-block-end-width":yu,"border-block-start":yu,"border-block-start-width":yu,"border-block-width":yu,"border-inline":yu,"border-inline-end":yu,"border-inline-end-width":yu,"border-inline-start":yu,"border-inline-start-width":yu,"border-inline-width":yu,"border-start-start-radius":yu,"border-start-end-radius":yu,"border-end-start-radius":yu,"border-end-end-radius":yu,margin:yu,"margin-bottom":yu,"margin-left":yu,"margin-right":yu,"margin-top":yu,"margin-block":yu,"margin-block-end":yu,"margin-block-start":yu,"margin-inline":yu,"margin-inline-end":yu,"margin-inline-start":yu,padding:yu,"padding-bottom":yu,"padding-left":yu,"padding-right":yu,"padding-top":yu,"padding-block":yu,"padding-block-end":yu,"padding-block-start":yu,"padding-inline":yu,"padding-inline-end":yu,"padding-inline-start":yu,"mask-position-x":yu,"mask-position-y":yu,"mask-size":yu,height:yu,width:yu,"min-height":yu,"max-height":yu,"min-width":yu,"max-width":yu,bottom:yu,left:yu,top:yu,right:yu,inset:yu,"inset-block":yu,"inset-block-end":yu,"inset-block-start":yu,"inset-inline":yu,"inset-inline-end":yu,"inset-inline-start":yu,"box-shadow":yu,"text-shadow":yu,"column-gap":yu,"column-rule":yu,"column-rule-width":yu,"column-width":yu,"font-size":yu,"font-size-delta":yu,"letter-spacing":yu,"text-decoration-thickness":yu,"text-indent":yu,"text-stroke":yu,"text-stroke-width":yu,"word-spacing":yu,motion:yu,"motion-offset":yu,outline:yu,"outline-offset":yu,"outline-width":yu,perspective:yu,"perspective-origin-x":gu,"perspective-origin-y":gu,"transform-origin":gu,"transform-origin-x":gu,"transform-origin-y":gu,"transform-origin-z":gu,"transition-delay":mu,"transition-duration":mu,"vertical-align":yu,"flex-basis":yu,"shape-margin":yu,size:yu,gap:yu,grid:yu,"grid-gap":yu,"row-gap":yu,"grid-row-gap":yu,"grid-column-gap":yu,"grid-template-rows":yu,"grid-template-columns":yu,"grid-auto-rows":yu,"grid-auto-columns":yu,"box-shadow-x":yu,"box-shadow-y":yu,"box-shadow-blur":yu,"box-shadow-spread":yu,"font-line-height":yu,"text-shadow-x":yu,"text-shadow-y":yu,"text-shadow-blur":yu});function _u(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=_u(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=_u(o,t[o],n);else for(var i in t)t[i]=_u(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||wu[e];return!a||0===t&&a===yu?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var xu=function(e){void 0===e&&(e={});var t=bu(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=_u(r,e[r],t);return e},onChangeValue:function(e,n){return _u(n,e,t)}}},ku="",Ou="",Su="",Eu="",ju=Ti&&"ontouchstart"in document.documentElement;if(Ti){var Pu={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Cu=document.createElement("p").style;for(var Tu in Pu)if(Tu+"Transform"in Cu){ku=Tu,Ou=Pu[Tu];break}"Webkit"===ku&&"msHyphens"in Cu&&(ku="ms",Ou=Pu.ms,Eu="edge"),"Webkit"===ku&&"-apple-trailing-word"in Cu&&(Su="apple")}var Au=ku,Ru=Ou,Du=Su,Mu=Eu,Iu=ju;var Nu={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Au?"-webkit-"+e:Ru+e)}},Fu={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Au?Ru+"print-"+e:e)}},zu=/[-\s]+(.)?/g;function Lu(e,t){return t?t.toUpperCase():""}function Uu(e){return e.replace(zu,Lu)}function Bu(e){return Uu("-"+e)}var Wu,qu={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Au){if(Uu("mask-image")in t)return e;if(Au+Bu("mask-image")in t)return Ru+e}return e}},Hu={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Du||Iu?e:Ru+e)}},Qu={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Ru+e)}},$u={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Ru+e)}},Vu={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Au||"ms"===Au&&"edge"!==Mu?Ru+e:e)}},Ju={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Au||"ms"===Au||"apple"===Du?Ru+e:e)}},Gu={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Au?"WebkitColumn"+Bu(e)in t&&Ru+"column-"+e:"Moz"===Au&&("page"+Bu(e)in t&&"page-"+e))}},Yu={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Au)return e;var n=e.replace("-inline","");return Au+Bu(n)in t&&Ru+n}},Xu={supportedProperty:function(e,t){return Uu(e)in t&&e}},Ku={supportedProperty:function(e,t){var n=Bu(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Au+n in t?Ru+e:"Webkit"!==Au&&"Webkit"+n in t&&"-webkit-"+e}},Zu={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Au?""+Ru+e:e)}},ec={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Au?Ru+"scroll-chaining":e)}},tc={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},nc={supportedProperty:function(e,t){var n=tc[e];return!!n&&(Au+Bu(n)in t&&Ru+n)}},rc={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},oc=Object.keys(rc),ic=function(e){return Ru+e},ac=[Nu,Fu,qu,Hu,Qu,$u,Vu,Ju,Gu,Yu,Xu,Ku,Zu,ec,nc,{supportedProperty:function(e,t,n){var r=n.multiple;if(oc.indexOf(e)>-1){var o=rc[e];if(!Array.isArray(o))return Au+Bu(o)in t&&Ru+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Au+Bu(o[0])in t))return!1;return o.map(ic)}return!1}}],uc=ac.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),cc=ac.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Mo(t.noPrefill)),e}),[]),sc={};if(Ti){Wu=document.createElement("p");var lc=window.getComputedStyle(document.documentElement,"");for(var fc in lc)isNaN(fc)||(sc[lc[fc]]=lc[fc]);cc.forEach((function(e){return delete sc[e]}))}function pc(e,t){if(void 0===t&&(t={}),!Wu)return e;if(null!=sc[e])return sc[e];"transition"!==e&&"transform"!==e||(t[e]=e in Wu.style);for(var n=0;n<uc.length&&(sc[e]=uc[n](e,Wu.style,t),!sc[e]);n++);try{Wu.style[e]=""}catch(e){return!1}return sc[e]}var dc,hc={},vc={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},yc=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function mc(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?pc(t):", "+pc(n);return r||(t||n)}function gc(e,t){var n=t;if(!dc||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=hc[r])return hc[r];try{dc.style[e]=n}catch(e){return hc[r]=!1,!1}if(vc[e])n=n.replace(yc,mc);else if(""===dc.style[e]&&("-ms-flex"===(n=Ru+n)&&(dc.style[e]="-ms-flexbox"),dc.style[e]=n,""===dc.style[e]))return hc[r]=!1,!1;return dc.style[e]="",hc[r]=n,hc[r]}Ti&&(dc=document.createElement("p"));var bc=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=pc(n);i&&i!==n&&(o=!0);var a=!1,u=gc(i,Bi(r));u&&u!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=u||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===Au?n:"@"+Ru+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return gc(t,Bi(e))||e}}};var wc=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function _c(){return{plugins:[Ka(),ou(),cu(),vu(),xu(),"undefined"==typeof window?null:bc(),wc()]}}var xc=qa(_c()),kc={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,u=""===a?"":"".concat(a,"-"),c=0,s=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ja.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(u).concat(r,"-").concat(e.key);return t.options.theme[Va]&&""===a?"".concat(i,"-").concat(s()):i}return"".concat(u).concat(o).concat(s())}}(),jss:xc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Oc=x.a.createContext(kc);var Sc=-1e9;function Ec(){return Sc+=1}function jc(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Yr({},o);return Object.keys(i).forEach((function(e){a[e]=Zr(a[e],i[e])})),a},options:{}}}var Pc={};function Cc(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Qa({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function Tc(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var u=$a.get(o.sheetsManager,i,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},$a.set(o.sheetsManager,i,r,u));var c=Yr({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var s=o.sheetsRegistry;if(0===u.refs){var l;o.sheetsCache&&(l=$a.get(o.sheetsCache,i,r));var f=i.create(r,a);l||((l=o.jss.createStyleSheet(f,Yr({link:!1},c))).attach(),o.sheetsCache&&$a.set(o.sheetsCache,i,r,l)),s&&s.add(l),u.staticSheet=l,u.dynamicStyles=function e(t){var n=null;for(var r in t){var o=t[r],i=typeof o;if("function"===i)n||(n={}),n[r]=o;else if("object"===i&&null!==o&&!Array.isArray(o)){var a=e(o);a&&(n||(n={}),n[r]=a)}}return n}(f)}if(u.dynamicStyles){var p=o.jss.createStyleSheet(u.dynamicStyles,Yr({link:!0},c));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Qa({baseClasses:u.staticSheet.classes,newClasses:p.classes}),s&&s.add(p)}else n.classes=u.staticSheet.classes;u.refs+=1}}function Ac(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function Rc(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=$a.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&($a.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function Dc(e,t){var n,r=x.a.useRef([]),o=x.a.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),x.a.useEffect((function(){return function(){n&&n()}}),[o])}function Mc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Pc:i,u=Ei(t,["name","classNamePrefix","Component","defaultTheme"]),c=jc(e),s=n||r||"makeStyles";c.options={index:Ec(),name:n,meta:s,classNamePrefix:s};var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$r()||a,r=Yr({},x.a.useContext(Oc),u),i=x.a.useRef(),s=x.a.useRef();Dc((function(){var o={name:n,state:{},stylesCreator:c,stylesOptions:r,theme:t};return Tc(o,e),s.current=!1,i.current=o,function(){Rc(o)}}),[t,c]),x.a.useEffect((function(){s.current&&Ac(i.current,e),s.current=!0}));var l=Cc(i.current,e.classes,o);return l};return l}function Ic(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Nc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,u=Ei(t,["defaultTheme","withTheme","name"]);var c=a,s=Mc(e,Yr({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:c},u)),l=x.a.forwardRef((function(e,t){e.classes;var o,u=e.innerRef,c=Ei(e,["classes","innerRef"]),l=s(Yr({},n.defaultProps,e)),f=c;return("string"==typeof a||i)&&(o=$r()||r,a&&(f=Ic({theme:o,name:a,props:c})),i&&!f.theme&&(f.theme=o)),x.a.createElement(n,Yr({ref:u||t,classes:l},f))}));return Pi()(l,n),l}};var Fc=function(e,t){return Nc(e,eo({defaultTheme:Zo},t))};function zc(e){if("string"!=typeof e)throw new Error(oo(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Lc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Uc=_.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,u=void 0===a?"initial":a,c=e.component,s=e.display,l=void 0===s?"initial":s,f=e.gutterBottom,p=void 0!==f&&f,d=e.noWrap,h=void 0!==d&&d,v=e.paragraph,y=void 0!==v&&v,m=e.variant,g=void 0===m?"body1":m,b=e.variantMapping,w=void 0===b?Lc:b,x=Gr(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=c||(y?"p":w[g]||Lc[g])||"span";return _.createElement(k,eo({className:Oi(o.root,i,"inherit"!==g&&o[g],"initial"!==u&&o["color".concat(zc(u))],h&&o.noWrap,p&&o.gutterBottom,y&&o.paragraph,"inherit"!==r&&o["align".concat(zc(r))],"initial"!==l&&o["display".concat(zc(l))]),ref:t},x))})),Bc=Fc((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Uc),Wc=["color","variant","children"],qc=Object(_.forwardRef)((function(e,t){var n=e.color,r=e.variant,o=e.children,i=T()(e,Wc),a=n||("caption"===r?"textSecondary":"textPrimary");return x.a.createElement(Bc,E()({ref:t,variant:r,color:a},i),o)})),Hc="styles__c-spinner___1snK7",Qc="styles__c-spinner--middle___RwyII",$c="styles__c-spinner--nomargin___13JyW",Vc=function(e){var t,n=e.t,r=e.loadingType,o=e.middle,i=e.noMargin,a=e.color,u=e.size,c=e.className,s={tiny:8,small:12,medium:16,large:24,xlarge:36,xxlarge:80}[u];return x.a.createElement("div",{className:M()(Hc,(t={},P()(t,Qc,o),P()(t,$c,i),t),c)},x.a.createElement(U,{icon:ke,color:a,spin:!0,size:s}),r&&x.a.createElement(qc,{variant:"body1",color:"textSecondary",component:"p"},n("loading.".concat(r))))};Vc.propTypes={loadingType:R.a.string,middle:R.a.bool,noMargin:R.a.bool,color:R.a.string,size:R.a.oneOf(["tiny","small","medium","large","xlarge","xxlarge"]),className:R.a.string},Vc.defaultProps={loadingType:"",middle:!1,noMargin:!1,color:"var(--spinnerColor)",size:"medium",className:""};var Jc=Object(O.translate)()(Vc);function Gc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Yc=function(e){p()(n,e);var t=Gc(n);function n(e,r){var o;return a()(this,n),o=t.call(this,e),g()(l()(o),"toggle",(function(){o.setState({isLoading:!0}),o.intents.create("SUPPORT","io.cozy.settings").start(o.intentWrapperRef,(function(){o.setState({isLoading:!1})}))})),o.store=r.barStore,o.state={isLoading:!1},o.intents=Object(ge.b)(),o}return c()(n,[{key:"componentDidMount",value:function(){this.toggle()}},{key:"render",value:function(){var e=this,t=this.state.isLoading;return x.a.createElement("div",null,x.a.createElement(xi,{secondaryAction:this.props.onClose,className:"coz-support-modal",into:"#cozy-bar-modal-dom-place",closeBtnClassName:"coz-support-modal-close"},x.a.createElement(mr,{className:"coz-support-modal-wrapper u-mt-1"},x.a.createElement("div",{className:"coz-support-modal-content"},t&&x.a.createElement(Jc,{size:"xxlarge",middle:!0}),x.a.createElement("div",{className:"coz-support-intent-wrapper".concat(t?" coz-hidden":""),ref:function(t){e.intentWrapperRef=t}})))))}}]),n}(_.Component);function Xc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}function Kc(e){return x.a.createElement("svg",w()({width:16,height:16},e),x.a.createElement("path",{d:"M0 0h4v4H0V0zm0 6h4v4H0V6zm0 6h4v4H0v-4zM6 0h4v4H6V0zm0 6h4v4H6V6zm0 6h4v4H6v-4zm6-12h4v4h-4V0zm0 6h4v4h-4V6zm0 6h4v4h-4v-4z",fillRule:"evenodd"}))}n.d(t,"Bar",(function(){return Zc})),n.d(t,"mapStateToProps",(function(){return es})),n.d(t,"mapDispatchToProps",(function(){return ts}));var Zc=function(e){p()(n,e);var t=Xc(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"toggleDrawer",(function(){if(!r.state.claudyOpened&&!r.state.claudyFired){var e=!r.state.drawerVisible;e&&r.props.onDrawer(e),r.setState({drawerVisible:e})}})),g()(l()(r),"toggleClaudy",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.claudyEnabled){var t=r.state.claudyOpened;if(e&&!t)return r.setState({claudyFired:!0});r.state.claudyFired&&r.setState({claudyFired:!1}),r.setState({claudyOpened:!t})}})),g()(l()(r),"toggleSupport",(function(){var e=r.state.supportDisplayed;r.setState({supportDisplayed:!e})})),g()(l()(r),"renderLeft",(function(){var e=r.props,t=e.t,n=e.isPublic,o=e.webviewContext;return Object(B.isFlagshipApp)()||q()("flagship.debug")?x.a.createElement(xe,{webviewContext:o}):n?null:x.a.createElement("button",{type:"button",className:"coz-bar-btn coz-bar-burger",onClick:r.toggleDrawer,"data-tutorial":"apps-mobile"},x.a.createElement(U,{icon:Kc,width:16,height:16,color:"currentColor"}),x.a.createElement("span",{className:"coz-bar-hidden"},t("drawer")))})),g()(l()(r),"renderRight",(function(){return r.props.isPublic?null:x.a.createElement(an,{toggleSupport:r.toggleSupport,onLogOut:r.props.onLogOut})})),r.state={claudyFired:!1,claudyOpened:!1,drawerVisible:!1,supportDisplayed:!1},r.fetchApps=r.fetchApps.bind(l()(r)),r.fetchInitialData=r.fetchInitialData.bind(l()(r)),r.handleTokenRefreshed=r.handleTokenRefreshed.bind(l()(r)),r}return c()(n,[{key:"componentDidMount",value:function(){this.fetchInitialData(),this.props.cozyClient.on("tokenRefreshed",this.handleTokenRefreshed)}},{key:"componentWillUnmount",value:function(){this.props.cozyClient.removeListener("tokenRefreshed",this.handleTokenRefreshed)}},{key:"componentDidUpdate",value:function(e,t){!this.props.hasFetchedApps&&this.state.drawerVisible&&t.drawerVisible!==this.state.drawerVisible&&this.fetchApps()}},{key:"handleTokenRefreshed",value:function(){this.fetchInitialData()}},{key:"fetchApps",value:function(){this.props.fetchApps()}},{key:"fetchInitialData",value:function(){this.props.isPublic||(this.props.fetchContext(),this.props.fetchSettingsData(!1),this.fetchApps())}},{key:"renderCenter",value:function(){var e=this.props,t=e.appName,n=e.appNamePrefix,r=e.appSlug,o=e.iconPath,i=e.isPublic;return x.a.createElement(dn,{appName:t,appNamePrefix:n,appSlug:r,iconPath:o,isPublic:i})}},{key:"render",value:function(){var e=this,t=this.state,n=t.claudyFired,r=t.claudyOpened,i=t.drawerVisible,a=t.supportDisplayed,u=this.props,c=u.theme,s=u.themeOverrides,l=u.barLeft,f=u.barRight,p=u.barCenter,d=u.barSearch,h=u.claudyEnabled,v=u.onDrawer,y=u.isPublic,m=u.onLogOut,g=u.userActionRequired,b=s.primaryColor,w=s.primaryContrastTextColor,_=b?{"--cozBarThemePrimaryColor":b}:{},k=w?{"--cozBarThemePrimaryContrastTextColor":w}:{},O=o()({},_,k);return x.a.createElement("div",{className:"coz-bar-wrapper coz-theme-".concat(c),style:O},x.a.createElement("div",{id:"cozy-bar-modal-dom-place"}),x.a.createElement("div",{className:"coz-bar-container"},l||this.renderLeft(),p||this.renderCenter(),x.a.createElement("div",{className:"u-flex-grow"},d),f||this.renderRight(),y?null:x.a.createElement(Ht,{visible:i,onClose:this.toggleDrawer,onClaudy:h&&function(){return e.toggleClaudy(!0)}||!1,isClaudyLoading:n,drawerListener:function(){return v(i)},toggleSupport:this.toggleSupport,onLogOut:m}),h&&x.a.createElement(yn,{claudyFired:n,onToggle:function(){return e.toggleClaudy(!1)},opened:r}),a&&x.a.createElement(Yc,{onClose:this.toggleSupport})),g&&x.a.createElement(Fe,g))}}]),n}(_.Component),es=function(e){return{theme:Object(tt.j)(e).name,themeOverrides:Object(tt.j)(e).overrides,barLeft:Object(tt.e)(e,"left"),barRight:Object(tt.e)(e,"right"),barCenter:Object(tt.e)(e,"center"),barSearch:Object(tt.e)(e,"search"),isDrive:Object(tt.m)(e,{slug:"drive"}),claudyEnabled:Object(tt.z)(e),hasFetchedApps:Object(tt.l)(e),webviewContext:Object(tt.k)(e)}},ts=function(e){return{fetchApps:function(){return e(Object(tt.a)())},fetchContext:function(){return e(Object(tt.b)())},fetchSettingsData:function(t){return e(Object(tt.c)(t))}}};t.default=Object(O.translate)()(Object(k.connect)(es,ts)(Zc))},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=(n(1),o.a.createContext(null));var a=function(e){e()},u={notify:function(){}};function c(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var s=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=u,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=c())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=u)},e}();var l=function(e){var t=e.store,n=e.context,a=e.children,u=Object(r.useMemo)((function(){var e=new s(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=u.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[u,c]);var l=n||i;return o.a.createElement(l.Provider,{value:u},a)};function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var d=n(80),h=n.n(d),v=n(122),y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,m=[],g=[null,null];function b(e,t){var n=e[1];return[t.payload,n+1]}function w(e,t,n){y((function(){return e.apply(void 0,t)}),n)}function _(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function x(e,t,n,r,o,i,a,u,c,s){if(e){var l=!1,f=null,p=function(){if(!l){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||c():(i.current=e,u.current=e,a.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var k=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,u=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,c=n.methodName,l=void 0===c?"connectAdvanced":c,d=n.renderCountProp,y=void 0===d?void 0:d,O=n.shouldHandleStateChanges,S=void 0===O||O,E=n.storeKey,j=void 0===E?"store":E,P=(n.withRef,n.forwardRef),C=void 0!==P&&P,T=n.context,A=void 0===T?i:T,R=p(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),D=A;return function(t){var n=t.displayName||t.name||"Component",i=u(n),a=f({},R,{getDisplayName:u,methodName:l,renderCountProp:y,shouldHandleStateChanges:S,storeKey:j,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=R.pure;var d=c?r.useMemo:function(e){return e()};function O(n){var i=Object(r.useMemo)((function(){var e=n.forwardedRef,t=p(n,["forwardedRef"]);return[n.context,e,t]}),[n]),u=i[0],c=i[1],l=i[2],h=Object(r.useMemo)((function(){return u&&u.Consumer&&Object(v.isContextConsumer)(o.a.createElement(u.Consumer,null))?u:D}),[u,D]),y=Object(r.useContext)(h),O=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(y)&&Boolean(y.store);var E=O?n.store:y.store,j=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(E)}),[E]),P=Object(r.useMemo)((function(){if(!S)return g;var e=new s(E,O?null:y.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[E,O,y]),C=P[0],T=P[1],A=Object(r.useMemo)((function(){return O?y:f({},y,{subscription:C})}),[O,y,C]),R=Object(r.useReducer)(b,m,k),M=R[0][0],I=R[1];if(M&&M.error)throw M.error;var N=Object(r.useRef)(),F=Object(r.useRef)(l),z=Object(r.useRef)(),L=Object(r.useRef)(!1),U=d((function(){return z.current&&l===F.current?z.current:j(E.getState(),l)}),[E,M,l]);w(_,[F,N,L,l,U,z,T]),w(x,[S,E,C,j,F,N,L,z,T,I],[E,C,j]);var B=Object(r.useMemo)((function(){return o.a.createElement(t,f({},U,{ref:c}))}),[c,t,U]);return Object(r.useMemo)((function(){return S?o.a.createElement(h.Provider,{value:A},B):B}),[h,B,A])}var E=c?o.a.memo(O):O;if(E.WrappedComponent=t,E.displayName=i,C){var P=o.a.forwardRef((function(e,t){return o.a.createElement(E,f({},e,{forwardedRef:t}))}));return P.displayName=i,P.WrappedComponent=t,h()(P,t)}return h()(E,t)}}function S(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function E(e,t){if(S(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!S(e[n[o]],t[n[o]]))return!1;return!0}var j=n(35);function P(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function C(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function T(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=C(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=C(o),o=r(t,n)),o},r}}var A=[function(e){return"function"==typeof e?T(e):void 0},function(e){return e?void 0:P((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?P((function(t){return Object(j.bindActionCreators)(e,t)})):void 0}];var R=[function(e){return"function"==typeof e?T(e):void 0},function(e){return e?void 0:P((function(){return{}}))}];function D(e,t,n){return f({},n,{},e,{},t)}var M=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,u){var c=e(t,n,u);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return D}}];function I(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function N(e,t,n,r,o){var i,a,u,c,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,v,y=!f(d,a),m=!l(o,i);return i=o,a=d,y&&m?(u=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):y?(e.dependsOnOwnProps&&(u=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):m?(h=e(i,a),v=!p(h,u),u=h,v&&(s=n(u,c,a)),s):s}return function(o,l){return d?h(o,l):(u=e(i=o,a=l),c=t(r,a),s=n(u,c,a),d=!0,s)}}function F(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=p(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),c=o(e,i);return(i.pure?N:I)(a,u,c,e,i)}function z(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function L(e,t){return e===t}function U(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,o=t.mapStateToPropsFactories,i=void 0===o?R:o,a=t.mapDispatchToPropsFactories,u=void 0===a?A:a,c=t.mergePropsFactories,s=void 0===c?M:c,l=t.selectorFactory,d=void 0===l?F:l;return function(e,t,n,o){void 0===o&&(o={});var a=o,c=a.pure,l=void 0===c||c,h=a.areStatesEqual,v=void 0===h?L:h,y=a.areOwnPropsEqual,m=void 0===y?E:y,g=a.areStatePropsEqual,b=void 0===g?E:g,w=a.areMergedPropsEqual,_=void 0===w?E:w,x=p(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),k=z(e,i,"mapStateToProps"),O=z(t,u,"mapDispatchToProps"),S=z(n,s,"mergeProps");return r(d,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:O,initMergeProps:S,pure:l,areStatesEqual:v,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:_},x))}}var B=U();function W(){return Object(r.useContext)(i)}function q(e){void 0===e&&(e=i);var t=e===i?W:function(){return Object(r.useContext)(e)};return function(){return t().store}}var H=q();function Q(e){void 0===e&&(e=i);var t=e===i?H:q(e);return function(){return t().dispatch}}var $=Q(),V=function(e,t){return e===t};function J(e){void 0===e&&(e=i);var t=e===i?W:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=V);var o=t();return function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],u=Object(r.useMemo)((function(){return new s(n,o)}),[n,o]),c=Object(r.useRef)(),l=Object(r.useRef)(),f=Object(r.useRef)();try{i=e!==l.current||c.current?e(n.getState()):f.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return y((function(){l.current=e,f.current=i,c.current=void 0})),y((function(){function e(){try{var e=l.current(n.getState());if(t(e,f.current))return;f.current=e}catch(e){c.current=e}a({})}return u.onStateChange=e,u.trySubscribe(),e(),function(){return u.tryUnsubscribe()}}),[n,u]),i}(e,n,o.store,o.subscription)}}var G,Y=J(),X=n(120);n.d(t,"Provider",(function(){return l})),n.d(t,"connectAdvanced",(function(){return O})),n.d(t,"ReactReduxContext",(function(){return i})),n.d(t,"connect",(function(){return B})),n.d(t,"batch",(function(){return X.unstable_batchedUpdates})),n.d(t,"useDispatch",(function(){return $})),n.d(t,"createDispatchHook",(function(){return Q})),n.d(t,"useSelector",(function(){return Y})),n.d(t,"createSelectorHook",(function(){return J})),n.d(t,"useStore",(function(){return H})),n.d(t,"createStoreHook",(function(){return q})),n.d(t,"shallowEqual",(function(){return E})),G=X.unstable_batchedUpdates,a=G},function(e,t,n){"use strict";n.r(t);var r=n(15),o=n.n(r),i=n(35),a=n(12),u=n.n(a),c=n(121),s=n(97),l=function(e){return function(t){var n=t.langs,r=t.locales,o=n&&n.length;if(!o)return t;var i=o&&n.includes(e)?e:n[0],a=r&&Object.keys(r);return a&&a.length&&a.includes(i)?(Object(c.a)(u()({},t.slug,r[i])),t):t}},f=function(e){var t=e.getState;return function(e){return function(n){var r=t();switch(n.type){case s.a:!function(e,t){e&&e.forEach(l(t))}(r.apps&&r.apps.apps,n.lang);break;case"RECEIVE_APP_LIST":n.apps&&n.apps.length&&n.apps.forEach(l(r.locale));break;case"RECEIVE_APP":n.app&&l(r.locale&&r.locale.lang)(n.app)}return e(n)}}},p=n(225),d="persist/REHYDRATE",h="persist/REGISTER",v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function m(e,t,n,r){r.debug;var o=y({},n);return e&&"object"===(void 0===e?"undefined":v(e))&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(o[r]=e[r])})),o}function g(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],o=e.throttle||0,i=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,a=e.storage,u=!1===e.serialize?function(e){return e}:b,c={},s={},l=[],f=null,p=null;function d(){if(0===l.length)return f&&clearInterval(f),void(f=null);var e=l.shift(),t=r.reduce((function(t,n){return n.in(t,e,c)}),c[e]);if(void 0!==t)try{s[e]=u(t)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete s[e];0===l.length&&(Object.keys(s).forEach((function(e){void 0===c[e]&&delete s[e]})),p=a.setItem(i,u(s)).catch(h))}function h(e){0}return{update:function(e){Object.keys(e).forEach((function(r){(function(e){return(!n||-1!==n.indexOf(e)||"_persist"===e)&&(!t||-1===t.indexOf(e))})(r)&&c[r]!==e[r]&&-1===l.indexOf(r)&&l.push(r)})),Object.keys(c).forEach((function(t){void 0===e[t]&&l.push(t)})),null===f&&(f=setInterval(d,o)),c=e},flush:function(){for(;0!==l.length;)d();return p||Promise.resolve()}}}function b(e){return JSON.stringify(e)}function w(e){var t=e.transforms||[],n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,r=e.storage,o=(e.debug,!1===e.serialize?function(e){return e}:_);return r.getItem(n).then((function(e){if(e)try{var n={},r=o(e);return Object.keys(r).forEach((function(e){n[e]=t.reduceRight((function(t,n){return n.out(t,e,r)}),o(r[e]))})),n}catch(e){throw e}}))}function _(e){return JSON.parse(e)}function x(e){0}var k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function O(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?m:e.stateReconciler),o=e.getStoredState||w,i=void 0!==e.timeout?e.timeout:5e3,a=null,u=!1,c=!0,s=function(e){return e._persist.rehydrated&&a&&!c&&a.update(e),e};return function(l,f){var p=l||{},h=p._persist,v=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(p,["_persist"]);if("persist/PERSIST"===f.type){var y=!1,m=function(t,n){y||(f.rehydrate(e.key,t,n),y=!0)};if(i&&setTimeout((function(){!y&&m(void 0,new Error('redux-persist: persist timed out for persist key "'+e.key+'"'))}),i),c=!1,a||(a=g(e)),h)return l;if("function"!=typeof f.rehydrate||"function"!=typeof f.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),o(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){m(e)}),(function(e){m(void 0,e)}))}),(function(e){m(void 0,e)})),k({},t(v,f),{_persist:{version:n,rehydrated:!1}})}if("persist/PURGE"===f.type)return u=!0,f.result(function(e){var t=e.storage,n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key;return t.removeItem(n,x)}(e)),k({},t(v,f),{_persist:h});if("persist/FLUSH"===f.type)return f.result(a&&a.flush()),k({},t(v,f),{_persist:h});if("persist/PAUSE"===f.type)c=!0;else if(f.type===d){if(u)return k({},v,{_persist:k({},h,{rehydrated:!0})});if(f.key===e.key){var b=t(v,f),w=f.payload,_=!1!==r&&void 0!==w?r(w,l,b,e):b,O=k({},_,{_persist:k({},h,{rehydrated:!0})});return s(O)}}if(!h)return t(l,f);var S=t(v,f);return S===v?l:(S._persist=h,s(S))}}var S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function j(e,t,n,r){r.debug;var o=E({},n);return e&&"object"===(void 0===e?"undefined":S(e))&&Object.keys(e).forEach((function(r){var i;"_persist"!==r&&(t[r]===n[r]&&(null===(i=n[r])||Array.isArray(i)||"object"!==(void 0===i?"undefined":S(i))?o[r]=e[r]:o[r]=E({},o[r],e[r])))})),o}var P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function C(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var T={registry:[],bootstrapped:!1},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments[1];switch(t.type){case h:return P({},e,{registry:[].concat(C(e.registry),[t.key])});case d:var n=e.registry.indexOf(t.key),r=[].concat(C(e.registry));return r.splice(n,1),P({},e,{registry:r,bootstrapped:0===r.length});default:return e}};var R=n(10),D=n(364),M=n(365),I=n.n(M),N=n(366),F=n(37),z=n.n(F),L=n(119),U=n.n(L),B=n(367);n.n(B)()(window,"cozy.debug.flagship",(function(){return z()("flagship.debug",!0)}));var W=window.minilog||U.a,q=W("cozy-bar");z()("bar.debug")||W.suggest.deny("cozy-bar","info");var H=q;n.d(t,"createStore",(function(){return K}));var Q,$,V={storage:I.a,key:"cozy-bar",whitelist:N},J=Object(D.createLogger)({logger:H}),G=(Q=V,$=o()({},R.t),Q.stateReconciler=void 0===Q.stateReconciler?j:Q.stateReconciler,O(Q,Object(i.combineReducers)($))),Y=[f,p.default];z()("bar.debug")&&Y.push(J);var X,K=function(){var e,t,n,r,o,a,u,c;return X=Object(i.createStore)(G,i.applyMiddleware.apply(null,Y)),e=X,r=n||!1,o=Object(i.createStore)(A,T,t?t.enhancer:void 0),a=function(e){o.dispatch({type:h,key:e})},u=function(t,n,i){var a={type:d,payload:n,err:i,key:t};e.dispatch(a),o.dispatch(a),r&&c.getState().bootstrapped&&(r(),r=!1)},(c=P({},o,{purge:function(){var t=[];return e.dispatch({type:"persist/PURGE",result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:"persist/FLUSH",result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:"persist/PAUSE"})},persist:function(){e.dispatch({type:"persist/PERSIST",register:a,rehydrate:u})}})).persist(),X};t.default=function(){return X||(X=K()),X}},function(e,t,n){"use strict";n.r(t);var r=n(4),o=n.n(r),i=n(8),a=n.n(i),u=n(19),c=n(30),s=n(10),l=n(2),f=n.n(l),p=n(7),d=n.n(p),h=n(11),v=n.n(h),y=n(13),m=n.n(y),g=n(6),b=n.n(g),w=n(0),_=n.n(w),x=["left","center","right","search"],k=function(e){return e[0].toUpperCase()+e.slice(1)},O=function(e){return"setBar".concat(k(e))},S=function(e){return"Bar".concat(k(e))};function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var o=b()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var j=0,P=function(e){var t={};return x.forEach((function(n){t[O(n)]=function(t){return e.dispatch(Object(s.u)(n,"string"==typeof(r=t)?_.a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}):r,"js"));var r},t[S(n)]=function(e,t){return function(n){v()(o,n);var r=E(o);function o(){return f()(this,o),r.apply(this,arguments)}return d()(o,[{key:"componentDidMount",value:function(){this.componentId=j++,this.setContent(this.props.children)}},{key:"setContent",value:function(n){try{n=_.a.Children.only(n)}catch(e){}e.dispatch(Object(s.u)(t,n,this.componentId))}},{key:"unsetContent",value:function(){e.dispatch(Object(s.A)(t,this.componentId))}},{key:"componentWillUnmount",value:function(){this.unsetContent()}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&this.setContent(this.props.children)}},{key:"render",value:function(){return null}}]),o}(w.Component)}(e,n)})),t.setLocale=function(){e.dispatch(s.w.apply(void 0,arguments))},t.setTheme=function(){e.dispatch(s.x.apply(void 0,arguments))},t.setWebviewContext=function(){e.dispatch(s.y.apply(void 0,arguments))},t},C=function(e){console.error("You tried to use the CozyBar API (".concat(e,") but the CozyBar is not initialised yet via cozy.bar.init(...)."))},T=function(e,t){return function(){if(e[t])return e[t].apply(e,arguments);C(t)}},A=function(){var e=document.querySelector("[role=application]");return e&&e.dataset?e.dataset:{}},R=function(){var e=document.querySelector('link[rel="icon"][sizes^="32"]');return null!==e?e.getAttribute("href"):"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},D=function(){return A().cozyAppNamePrefix||null},M=function(){return A().cozyAppSlug||null},I=function(){var e=document.querySelector("meta[name=user-action-required]"),t=e&&e.dataset;if(t){var n=t.title,r=t.code,o=t.detail,i=t.links;if(r)return{title:n,code:r,detail:o,links:i}}},N=n(358),F=n(359),z=n(360);n.d(t,"init",(function(){return H})),n.d(t,"version",(function(){return re})),n.d(t,"setBarCenter",(function(){return V})),n.d(t,"setBarLeft",(function(){return J})),n.d(t,"setBarRight",(function(){return G})),n.d(t,"setBarSearch",(function(){return Y})),n.d(t,"BarLeft",(function(){return Z})),n.d(t,"BarRight",(function(){return K})),n.d(t,"BarCenter",(function(){return X})),n.d(t,"BarSearch",(function(){return ee})),n.d(t,"setTheme",(function(){return te})),n.d(t,"setWebviewContext",(function(){return ne})),n.d(t,"updateAccessToken",(function(){return Q})),n.d(t,"setLocale",(function(){return s.w}));var L={en:N,fr:F,es:z},U=function(e){if(null===document.getElementById("coz-bar")){var t=function(){var e=Object(u.isMobileApp)()?"mobile":"browser",t=document.createElement("div");return t.setAttribute("id","coz-bar"),t.setAttribute("role","banner"),t.classList.add("coz-target--".concat(e)),t}(),n=document.querySelector("[role=application]");return n?(document.body.insertBefore(t,n),e.onDrawer=function(e){t.dataset.drawerVisible=e},e.userActionRequired&&document.body.classList.add("has-banner"),t):(console.warn('Cozy-bar is looking for a "'.concat("[role=application]","\" tag that contains your application and can't find it :'(… The BAR is now disabled")),null)}},B=function(e,t){var r=n(0),o=n(120).render,i=n(51),a=i.connect,u=i.Provider,c=n(29).default,l=n(745).default,f=n(34).CozyProvider,p=t.cozyClient,d=a((function(e){return{lang:Object(s.g)(e)}}))(c),h=r.createElement(u,{store:t.reduxStore},r.createElement(d,{dictRequire:function(e){return L[e]}},p?r.createElement(f,{client:p},r.createElement(l,t)):r.createElement(l,t)));return o(h,e),h},W=function(e){var t=e.cozyURL,r=e.token,o=e.isPublic,i={uri:t||function(e){var t=A();if(!t.cozyDomain)return e||console.warn("Cozy-bar can't discover the cozy's URL, and will probably fail to initialize the connection with the stack."),"";var n=window.location.protocol;return"".concat(n,"//").concat(t.cozyDomain)}(o),token:r||function(e){var t=A();return t.cozyToken?t.cozyToken:(e||console.warn("Cozy-bar can't discover the app's token, and will probably fail to initialize the connection with the stack."),"")}(o)},a=n(34).default;return console.warn("Automatically made cozyClient. Options: ",i),new a(i)},q={},H=function(){var e=a()(o.a.mark((function e(){var t,r,i,a,u,l,f,p,d,h,v,y,m,g,b,w,_,x,k,O,S,E,j=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=j.length>0&&void 0!==j[0]?j[0]:{},r=t.appName,i=t.appNamePrefix,a=void 0===i?D():i,u=t.appSlug,l=void 0===u?M():u,f=t.lang,p=t.iconPath,d=void 0===p?R():p,h=t.cozyClient,v=t.cozyURL,y=t.token,m=t.replaceTitleOnMobile,g=void 0!==m&&m,b=t.isPublic,w=void 0!==b&&b,_=t.onLogOut,!w&&/^\/public/.test(window.location.pathname)&&(w=!0),h||(h=W({cozyURL:v,token:y,isPublic:w})),x=n(747).default,(k=x()).dispatch(Object(s.v)(r,a,l)),c.a.init({cozyClient:h,onCreate:function(e){return k.dispatch(Object(s.r)(e))},onDelete:function(e){return k.dispatch(Object(s.s)(e))}}),f&&k.dispatch(Object(s.w)(f)),O=P(k),Object.assign(q,O),S={appName:r,appNamePrefix:a,appSlug:l,cozyClient:h,iconPath:d,replaceTitleOnMobile:g,isPublic:w,onLogOut:_,userActionRequired:I(),reduxStore:k},E=U(S),B(E,S);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(e){c.a.updateAccessToken(e)},$=function(e){var t={};x.forEach((function(n){var r=O(n),o=S(n);t[r]=T(e,r),t[o]=function(t){if(e[o])return _.a.createElement(e[o],t);C(o)}}));for(var n=0,r=["setLocale","setTheme","setWebviewContext"];n<r.length;n++){var o=r[n];t[o]=T(e,o)}return t}(q),V=$.setBarCenter,J=$.setBarLeft,G=$.setBarRight,Y=$.setBarSearch,X=$.BarCenter,K=$.BarRight,Z=$.BarLeft,ee=$.BarSearch,te=$.setTheme,ne=$.setWebviewContext,re="8.12.1"}])}));
|
|
65
65
|
//# sourceMappingURL=cozy-bar.min.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-bar",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.1",
|
|
4
4
|
"description": "cozy-bar.js library, a small lib provided by cozy-stack to inject the Cozy-bar component into each app",
|
|
5
5
|
"main": "dist/cozy-bar.js",
|
|
6
6
|
"author": "Cozy Cloud <contact@cozycloud.cc> (https://cozy.io/)",
|
package/src/styles/claudy.css
CHANGED
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
border-radius: 100%;
|
|
17
17
|
border: none;
|
|
18
18
|
background-color: var(--dodgerBlue);
|
|
19
|
-
background-repeat: no-repeat;
|
|
20
|
-
background-size: 2em;
|
|
21
|
-
background-position: 0.75rem 0.6rem;
|
|
22
19
|
box-shadow: 0 1px 3px 0 rgba(50, 54, 63, 0.19), 0 6px 18px 0 rgba(50, 54, 63, 0.39);
|
|
23
20
|
animation: none;
|
|
24
21
|
cursor: pointer;
|
|
25
22
|
opacity: .5;
|
|
26
23
|
transition: all .2s ease-out;
|
|
27
24
|
outline: 0;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
[role=banner] .coz-claudy-icon:hover,
|
package/transpiled/cozy-bar.css
CHANGED
|
@@ -843,15 +843,15 @@
|
|
|
843
843
|
border-radius: 100%;
|
|
844
844
|
border: none;
|
|
845
845
|
background-color: var(--dodgerBlue);
|
|
846
|
-
background-repeat: no-repeat;
|
|
847
|
-
background-size: 2em;
|
|
848
|
-
background-position: 0.75rem 0.6rem;
|
|
849
846
|
box-shadow: 0 1px 3px 0 rgba(50, 54, 63, 0.19), 0 6px 18px 0 rgba(50, 54, 63, 0.39);
|
|
850
847
|
animation: none;
|
|
851
848
|
cursor: pointer;
|
|
852
849
|
opacity: .5;
|
|
853
850
|
transition: all .2s ease-out;
|
|
854
851
|
outline: 0;
|
|
852
|
+
display: flex;
|
|
853
|
+
justify-content: center;
|
|
854
|
+
align-items: center;
|
|
855
855
|
}
|
|
856
856
|
|
|
857
857
|
[role=banner] .coz-claudy-icon:hover,
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
border-radius: 100%;
|
|
17
17
|
border: none;
|
|
18
18
|
background-color: var(--dodgerBlue);
|
|
19
|
-
background-repeat: no-repeat;
|
|
20
|
-
background-size: 2em;
|
|
21
|
-
background-position: 0.75rem 0.6rem;
|
|
22
19
|
box-shadow: 0 1px 3px 0 rgba(50, 54, 63, 0.19), 0 6px 18px 0 rgba(50, 54, 63, 0.39);
|
|
23
20
|
animation: none;
|
|
24
21
|
cursor: pointer;
|
|
25
22
|
opacity: .5;
|
|
26
23
|
transition: all .2s ease-out;
|
|
27
24
|
outline: 0;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
[role=banner] .coz-claudy-icon:hover,
|