cozy-bar 8.13.0 → 8.13.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.
@@ -61,5 +61,5 @@ object-assign
61
61
  * @website https://github.com/cssinjs/jss
62
62
  * @license MIT
63
63
  */
64
- Ua();function Wa(){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=Vr({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var qa={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)}},Ha="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Qa=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var $a=Date.now(),Va="fnValues"+$a,Ja="fnStyle"+ ++$a,Ga=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Ni(e,{},n);return r[Ja]=t,r},onProcessStyle:function(e,t){if(Va in t||Ja 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[Va]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Ja];i&&(o.style=i(e)||{});var a=o[Va];if(a)for(var u in a)o.prop(u,a[u](e),r)}}},Ya="@global",Xa=function(){function e(e,t,n){for(var r in this.type="global",this.at=Ya,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new ba(Vr({},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}(),Ka=function(){function e(e,t,n){this.type="global",this.at=Ya,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,Vr({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Za=/\s*,\s*/g;function eu(e,t){for(var n=e.split(Za),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var tu=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ya)return new Xa(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new Ka(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[Ya]:null;if(o){for(var i in o)t.addRule(i,o[i],Vr({},n,{selector:eu(i,e.selector)}));delete r[Ya]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Ya.length)===Ya){var i=eu(o.substr(Ya.length),e.selector);t.addRule(i,r[o],Vr({},n,{selector:i})),delete r[o]}}(e,t))}}},nu=/\s*,\s*/g,ru=/&/g,ou=/\$([\w-]+)/g;var iu=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(nu),r=e.split(nu),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(ru,a):a+" "+c}return o}function n(e,t,n){if(n)return Vr({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Vr({},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(ou,u);var h=c.key+"-"+l;"replaceRule"in s?s.replaceRule(h,r[l],Vr({},a,{selector:d})):s.addRule(h,r[l],Vr({},a,{selector:d}))}else p&&s.addRule(l,{},a).addRule(c.key,r[l],{selector:c.selector});delete r[l]}}return r}}},au=/[A-Z]/g,uu=/^ms-/,cu={};function su(e){return"-"+e.toLowerCase()}var lu=function(e){if(cu.hasOwnProperty(e))return cu[e];var t=e.replace(au,su);return cu[e]=uu.test(t)?"-"+t:t};function fu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:lu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(fu):t.fallbacks=fu(e.fallbacks)),t}var pu=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=fu(e[t]);return e}return fu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=lu(t);return t===r?e:(n.prop(r,e),null)}}},du=Ba&&CSS?CSS.px:"px",hu=Ba&&CSS?CSS.ms:"ms",vu=Ba&&CSS?CSS.percent:"%";function yu(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 mu=yu({"animation-delay":hu,"animation-duration":hu,"background-position":du,"background-position-x":du,"background-position-y":du,"background-size":du,border:du,"border-bottom":du,"border-bottom-left-radius":du,"border-bottom-right-radius":du,"border-bottom-width":du,"border-left":du,"border-left-width":du,"border-radius":du,"border-right":du,"border-right-width":du,"border-top":du,"border-top-left-radius":du,"border-top-right-radius":du,"border-top-width":du,"border-width":du,"border-block":du,"border-block-end":du,"border-block-end-width":du,"border-block-start":du,"border-block-start-width":du,"border-block-width":du,"border-inline":du,"border-inline-end":du,"border-inline-end-width":du,"border-inline-start":du,"border-inline-start-width":du,"border-inline-width":du,"border-start-start-radius":du,"border-start-end-radius":du,"border-end-start-radius":du,"border-end-end-radius":du,margin:du,"margin-bottom":du,"margin-left":du,"margin-right":du,"margin-top":du,"margin-block":du,"margin-block-end":du,"margin-block-start":du,"margin-inline":du,"margin-inline-end":du,"margin-inline-start":du,padding:du,"padding-bottom":du,"padding-left":du,"padding-right":du,"padding-top":du,"padding-block":du,"padding-block-end":du,"padding-block-start":du,"padding-inline":du,"padding-inline-end":du,"padding-inline-start":du,"mask-position-x":du,"mask-position-y":du,"mask-size":du,height:du,width:du,"min-height":du,"max-height":du,"min-width":du,"max-width":du,bottom:du,left:du,top:du,right:du,inset:du,"inset-block":du,"inset-block-end":du,"inset-block-start":du,"inset-inline":du,"inset-inline-end":du,"inset-inline-start":du,"box-shadow":du,"text-shadow":du,"column-gap":du,"column-rule":du,"column-rule-width":du,"column-width":du,"font-size":du,"font-size-delta":du,"letter-spacing":du,"text-decoration-thickness":du,"text-indent":du,"text-stroke":du,"text-stroke-width":du,"word-spacing":du,motion:du,"motion-offset":du,outline:du,"outline-offset":du,"outline-width":du,perspective:du,"perspective-origin-x":vu,"perspective-origin-y":vu,"transform-origin":vu,"transform-origin-x":vu,"transform-origin-y":vu,"transform-origin-z":vu,"transition-delay":hu,"transition-duration":hu,"vertical-align":du,"flex-basis":du,"shape-margin":du,size:du,gap:du,grid:du,"grid-gap":du,"row-gap":du,"grid-row-gap":du,"grid-column-gap":du,"grid-template-rows":du,"grid-template-columns":du,"grid-auto-rows":du,"grid-auto-columns":du,"box-shadow-x":du,"box-shadow-y":du,"box-shadow-blur":du,"box-shadow-spread":du,"font-line-height":du,"text-shadow-x":du,"text-shadow-y":du,"text-shadow-blur":du});function gu(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=gu(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=gu(o,t[o],n);else for(var i in t)t[i]=gu(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||mu[e];return!a||0===t&&a===du?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var bu=function(e){void 0===e&&(e={});var t=yu(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=gu(r,e[r],t);return e},onChangeValue:function(e,n){return gu(n,e,t)}}},wu="",_u="",xu="",ku="",Ou=ji&&"ontouchstart"in document.documentElement;if(ji){var Su={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Eu=document.createElement("p").style;for(var ju in Su)if(ju+"Transform"in Eu){wu=ju,_u=Su[ju];break}"Webkit"===wu&&"msHyphens"in Eu&&(wu="ms",_u=Su.ms,ku="edge"),"Webkit"===wu&&"-apple-trailing-word"in Eu&&(xu="apple")}var Pu=wu,Cu=_u,Tu=xu,Au=ku,Ru=Ou;var Du={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Pu?"-webkit-"+e:Cu+e)}},Mu={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Pu?Cu+"print-"+e:e)}},Iu=/[-\s]+(.)?/g;function Nu(e,t){return t?t.toUpperCase():""}function Fu(e){return e.replace(Iu,Nu)}function zu(e){return Fu("-"+e)}var Lu,Uu={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Pu){if(Fu("mask-image")in t)return e;if(Pu+zu("mask-image")in t)return Cu+e}return e}},Bu={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Tu||Ru?e:Cu+e)}},Wu={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Cu+e)}},qu={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Cu+e)}},Hu={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Pu||"ms"===Pu&&"edge"!==Au?Cu+e:e)}},Qu={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Pu||"ms"===Pu||"apple"===Tu?Cu+e:e)}},$u={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Pu?"WebkitColumn"+zu(e)in t&&Cu+"column-"+e:"Moz"===Pu&&("page"+zu(e)in t&&"page-"+e))}},Vu={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Pu)return e;var n=e.replace("-inline","");return Pu+zu(n)in t&&Cu+n}},Ju={supportedProperty:function(e,t){return Fu(e)in t&&e}},Gu={supportedProperty:function(e,t){var n=zu(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Pu+n in t?Cu+e:"Webkit"!==Pu&&"Webkit"+n in t&&"-webkit-"+e}},Yu={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Pu?""+Cu+e:e)}},Xu={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Pu?Cu+"scroll-chaining":e)}},Ku={"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"},Zu={supportedProperty:function(e,t){var n=Ku[e];return!!n&&(Pu+zu(n)in t&&Cu+n)}},ec={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"},tc=Object.keys(ec),nc=function(e){return Cu+e},rc=[Du,Mu,Uu,Bu,Wu,qu,Hu,Qu,$u,Vu,Ju,Gu,Yu,Xu,Zu,{supportedProperty:function(e,t,n){var r=n.multiple;if(tc.indexOf(e)>-1){var o=ec[e];if(!Array.isArray(o))return Pu+zu(o)in t&&Cu+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Pu+zu(o[0])in t))return!1;return o.map(nc)}return!1}}],oc=rc.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),ic=rc.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Ao(t.noPrefill)),e}),[]),ac={};if(ji){Lu=document.createElement("p");var uc=window.getComputedStyle(document.documentElement,"");for(var cc in uc)isNaN(cc)||(ac[uc[cc]]=uc[cc]);ic.forEach((function(e){return delete ac[e]}))}function sc(e,t){if(void 0===t&&(t={}),!Lu)return e;if(null!=ac[e])return ac[e];"transition"!==e&&"transform"!==e||(t[e]=e in Lu.style);for(var n=0;n<oc.length&&(ac[e]=oc[n](e,Lu.style,t),!ac[e]);n++);try{Lu.style[e]=""}catch(e){return!1}return ac[e]}var lc,fc={},pc={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},dc=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function hc(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?sc(t):", "+sc(n);return r||(t||n)}function vc(e,t){var n=t;if(!lc||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=fc[r])return fc[r];try{lc.style[e]=n}catch(e){return fc[r]=!1,!1}if(pc[e])n=n.replace(dc,hc);else if(""===lc.style[e]&&("-ms-flex"===(n=Cu+n)&&(lc.style[e]="-ms-flexbox"),lc.style[e]=n,""===lc.style[e]))return fc[r]=!1,!1;return lc.style[e]="",fc[r]=n,fc[r]}ji&&(lc=document.createElement("p"));var yc=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=sc(n);i&&i!==n&&(o=!0);var a=!1,u=vc(i,zi(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"===Pu?n:"@"+Cu+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return vc(t,zi(e))||e}}};var mc=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 gc(){return{plugins:[Ga(),tu(),iu(),pu(),bu(),"undefined"==typeof window?null:yc(),mc()]}}var bc=Ua(gc()),wc={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!==Qa.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(u).concat(r,"-").concat(e.key);return t.options.theme[Ha]&&""===a?"".concat(i,"-").concat(s()):i}return"".concat(u).concat(o).concat(s())}}(),jss:bc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},_c=x.a.createContext(wc);var xc=-1e9;function kc(){return xc+=1}function Oc(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=Vr({},o);return Object.keys(i).forEach((function(e){a[e]=Yr(a[e],i[e])})),a},options:{}}}var Sc={};function Ec(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=Wa({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function jc(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var u=qa.get(o.sheetsManager,i,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},qa.set(o.sheetsManager,i,r,u));var c=Vr({},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=qa.get(o.sheetsCache,i,r));var f=i.create(r,a);l||((l=o.jss.createStyleSheet(f,Vr({link:!1},c))).attach(),o.sheetsCache&&qa.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,Vr({link:!0},c));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Wa({baseClasses:u.staticSheet.classes,newClasses:p.classes}),s&&s.add(p)}else n.classes=u.staticSheet.classes;u.refs+=1}}function Pc(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function Cc(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=qa.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(qa.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 Tc(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 Ac(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?Sc:i,u=ki(t,["name","classNamePrefix","Component","defaultTheme"]),c=Oc(e),s=n||r||"makeStyles";c.options={index:kc(),name:n,meta:s,classNamePrefix:s};var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=qr()||a,r=Vr({},x.a.useContext(_c),u),i=x.a.useRef(),s=x.a.useRef();Tc((function(){var o={name:n,state:{},stylesCreator:c,stylesOptions:r,theme:t};return jc(o,e),s.current=!1,i.current=o,function(){Cc(o)}}),[t,c]),x.a.useEffect((function(){s.current&&Pc(i.current,e),s.current=!0}));var l=Ec(i.current,e.classes,o);return l};return l}function Rc(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 Dc=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=ki(t,["defaultTheme","withTheme","name"]);var c=a,s=Ac(e,Vr({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=ki(e,["classes","innerRef"]),l=s(Vr({},n.defaultProps,e)),f=c;return("string"==typeof a||i)&&(o=qr()||r,a&&(f=Rc({theme:o,name:a,props:c})),i&&!f.theme&&(f.theme=o)),x.a.createElement(n,Vr({ref:u||t,classes:l},f))}));return Si()(l,n),l}};var Mc=function(e,t){return Dc(e,Xr({defaultTheme:Yo},t))};function Ic(e){if("string"!=typeof e)throw new Error(to(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Nc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Fc=_.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?Nc:b,x=$r(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=c||(y?"p":w[g]||Nc[g])||"span";return _.createElement(k,Xr({className:_i(o.root,i,"inherit"!==g&&o[g],"initial"!==u&&o["color".concat(Ic(u))],h&&o.noWrap,p&&o.gutterBottom,y&&o.paragraph,"inherit"!==r&&o["align".concat(Ic(r))],"initial"!==l&&o["display".concat(Ic(l))]),ref:t},x))})),zc=Mc((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"})(Fc),Lc=["color","variant","children"],Uc=Object(_.forwardRef)((function(e,t){var n=e.color,r=e.variant,o=e.children,i=T()(e,Lc),a=n||("caption"===r?"textSecondary":"textPrimary");return x.a.createElement(zc,E()({ref:t,variant:r,color:a},i),o)})),Bc="styles__c-spinner___1snK7",Wc="styles__c-spinner--middle___RwyII",qc="styles__c-spinner--nomargin___13JyW",Hc=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()(Bc,(t={},P()(t,Wc,o),P()(t,qc,i),t),c)},x.a.createElement(U,{icon:ke,color:a,spin:!0,size:s}),r&&x.a.createElement(Uc,{variant:"body1",color:"textSecondary",component:"p"},n("loading.".concat(r))))};Hc.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},Hc.defaultProps={loadingType:"",middle:!1,noMargin:!1,color:"var(--spinnerColor)",size:"medium",className:""};var Qc=Object(O.translate)()(Hc);function $c(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 Vc=function(e){p()(n,e);var t=$c(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(bi,{secondaryAction:this.props.onClose,className:"coz-support-modal",into:"#cozy-bar-modal-dom-place",closeBtnClassName:"coz-support-modal-close"},x.a.createElement(vr,{className:"coz-support-modal-wrapper u-mt-1"},x.a.createElement("div",{className:"coz-support-modal-content"},t&&x.a.createElement(Qc,{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 Jc(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 Gc(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 Yc})),n.d(t,"mapStateToProps",(function(){return Xc})),n.d(t,"mapDispatchToProps",(function(){return Kc}));var Yc=function(e){p()(n,e);var t=Jc(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:Gc,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(tn,{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(sn,{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(Ut,{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(pn,{claudyFired:n,onToggle:function(){return e.toggleClaudy(!1)},opened:r}),a&&x.a.createElement(Vc,{onClose:this.toggleSupport})),g&&x.a.createElement(Fe,g))}}]),n}(_.Component),Xc=function(e){return{theme:Object(Ye.j)(e).name,themeOverrides:Object(Ye.j)(e).overrides,barLeft:Object(Ye.e)(e,"left"),barRight:Object(Ye.e)(e,"right"),barCenter:Object(Ye.e)(e,"center"),barSearch:Object(Ye.e)(e,"search"),isDrive:Object(Ye.m)(e,{slug:"drive"}),claudyEnabled:Object(Ye.z)(e),hasFetchedApps:Object(Ye.l)(e),webviewContext:Object(Ye.k)(e)}},Kc=function(e){return{fetchApps:function(){return e(Object(Ye.a)())},fetchContext:function(){return e(Object(Ye.b)())},fetchSettingsData:function(t){return e(Object(Ye.c)(t))}}};t.default=Object(O.translate)()(Object(k.connect)(Xc,Kc)(Yc))},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(81),h=n.n(d),v=n(124),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(122);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(123),s=n(99),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(227),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(366),M=n(367),I=n.n(M),N=n(368),F=n(37),z=n.n(F),L=n(121),U=n.n(L),B=n(369);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(9),a=n.n(i),u=n(19),c=n(98),s=n(30),l=n(10),f=n(2),p=n.n(f),d=n(7),h=n.n(d),v=n(11),y=n.n(v),m=n(13),g=n.n(m),b=n(6),w=n.n(b),_=n(0),x=n.n(_),k=["left","center","right","search"],O=function(e){return e[0].toUpperCase()+e.slice(1)},S=function(e){return"setBar".concat(O(e))},E=function(e){return"Bar".concat(O(e))};function j(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=w()(e);if(t){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var P=0,C=function(e){var t={};return k.forEach((function(n){t[S(n)]=function(t){return e.dispatch(Object(l.u)(n,"string"==typeof(r=t)?x.a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}):r,"js"));var r},t[E(n)]=function(e,t){return function(n){y()(o,n);var r=j(o);function o(){return p()(this,o),r.apply(this,arguments)}return h()(o,[{key:"componentDidMount",value:function(){this.componentId=P++,this.setContent(this.props.children)}},{key:"setContent",value:function(n){try{n=x.a.Children.only(n)}catch(e){}e.dispatch(Object(l.u)(t,n,this.componentId))}},{key:"unsetContent",value:function(){e.dispatch(Object(l.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}(_.Component)}(e,n)})),t.setLocale=function(){e.dispatch(l.w.apply(void 0,arguments))},t.setTheme=function(){e.dispatch(l.x.apply(void 0,arguments))},t.setWebviewContext=function(){e.dispatch(l.y.apply(void 0,arguments))},t},T=function(e){console.error("You tried to use the CozyBar API (".concat(e,") but the CozyBar is not initialised yet via cozy.bar.init(...)."))},A=function(e,t){return function(){if(e[t])return e[t].apply(e,arguments);T(t)}},R=function(){var e=document.querySelector("[role=application]");return e&&e.dataset?e.dataset:{}},D=function(){var e=document.querySelector('link[rel="icon"][sizes^="32"]');return null!==e?e.getAttribute("href"):"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},M=function(){return R().cozyAppNamePrefix||null},I=function(){return R().cozyAppSlug||null},N=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}}},F=n(360),z=n(361),L=n(362);n.d(t,"init",(function(){return Q})),n.d(t,"version",(function(){return oe})),n.d(t,"setBarCenter",(function(){return J})),n.d(t,"setBarLeft",(function(){return G})),n.d(t,"setBarRight",(function(){return Y})),n.d(t,"setBarSearch",(function(){return X})),n.d(t,"BarLeft",(function(){return ee})),n.d(t,"BarRight",(function(){return Z})),n.d(t,"BarCenter",(function(){return K})),n.d(t,"BarSearch",(function(){return te})),n.d(t,"setTheme",(function(){return ne})),n.d(t,"setWebviewContext",(function(){return re})),n.d(t,"updateAccessToken",(function(){return $})),n.d(t,"setLocale",(function(){return l.w}));var U={en:F,fr:z,es:L},B=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)}},W=function(e,t){var r=n(0),o=n(122).render,i=n(51),a=i.connect,u=i.Provider,s=n(29).default,f=n(747).default,p=n(34).CozyProvider,d=t.cozyClient,h=a((function(e){return{lang:Object(l.g)(e)}}))(s),v=r.createElement(u,{store:t.reduxStore},r.createElement(h,{dictRequire:function(e){return U[e]}},r.createElement(c.a,null,d?r.createElement(p,{client:d},r.createElement(f,t)):r.createElement(f,t))));return o(v,e),v},q=function(e){var t=e.cozyURL,r=e.token,o=e.isPublic,i={uri:t||function(e){var t=R();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=R();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)},H={},Q=function(){var e=a()(o.a.mark((function e(){var t,r,i,a,u,c,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?M():i,u=t.appSlug,c=void 0===u?I():u,f=t.lang,p=t.iconPath,d=void 0===p?D():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=q({cozyURL:v,token:y,isPublic:w})),x=n(749).default,(k=x()).dispatch(Object(l.v)(r,a,c)),s.a.init({cozyClient:h,onCreate:function(e){return k.dispatch(Object(l.r)(e))},onDelete:function(e){return k.dispatch(Object(l.s)(e))}}),f&&k.dispatch(Object(l.w)(f)),O=C(k),Object.assign(H,O),S={appName:r,appNamePrefix:a,appSlug:c,cozyClient:h,iconPath:d,replaceTitleOnMobile:g,isPublic:w,onLogOut:_,userActionRequired:N(),reduxStore:k},E=B(S),W(E,S);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(e){s.a.updateAccessToken(e)},V=function(e){var t={};k.forEach((function(n){var r=S(n),o=E(n);t[r]=A(e,r),t[o]=function(t){if(e[o])return x.a.createElement(e[o],t);T(o)}}));for(var n=0,r=["setLocale","setTheme","setWebviewContext"];n<r.length;n++){var o=r[n];t[o]=A(e,o)}return t}(H),J=V.setBarCenter,G=V.setBarLeft,Y=V.setBarRight,X=V.setBarSearch,K=V.BarCenter,Z=V.BarRight,ee=V.BarLeft,te=V.BarSearch,ne=V.setTheme,re=V.setWebviewContext,oe="8.13.0"}])}));
64
+ Ua();function Wa(){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=Vr({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var qa={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)}},Ha="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Qa=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var $a=Date.now(),Va="fnValues"+$a,Ja="fnStyle"+ ++$a,Ga=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Ni(e,{},n);return r[Ja]=t,r},onProcessStyle:function(e,t){if(Va in t||Ja 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[Va]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Ja];i&&(o.style=i(e)||{});var a=o[Va];if(a)for(var u in a)o.prop(u,a[u](e),r)}}},Ya="@global",Xa=function(){function e(e,t,n){for(var r in this.type="global",this.at=Ya,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new ba(Vr({},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}(),Ka=function(){function e(e,t,n){this.type="global",this.at=Ya,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,Vr({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Za=/\s*,\s*/g;function eu(e,t){for(var n=e.split(Za),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var tu=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ya)return new Xa(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new Ka(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[Ya]:null;if(o){for(var i in o)t.addRule(i,o[i],Vr({},n,{selector:eu(i,e.selector)}));delete r[Ya]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Ya.length)===Ya){var i=eu(o.substr(Ya.length),e.selector);t.addRule(i,r[o],Vr({},n,{selector:i})),delete r[o]}}(e,t))}}},nu=/\s*,\s*/g,ru=/&/g,ou=/\$([\w-]+)/g;var iu=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(nu),r=e.split(nu),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(ru,a):a+" "+c}return o}function n(e,t,n){if(n)return Vr({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Vr({},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(ou,u);var h=c.key+"-"+l;"replaceRule"in s?s.replaceRule(h,r[l],Vr({},a,{selector:d})):s.addRule(h,r[l],Vr({},a,{selector:d}))}else p&&s.addRule(l,{},a).addRule(c.key,r[l],{selector:c.selector});delete r[l]}}return r}}},au=/[A-Z]/g,uu=/^ms-/,cu={};function su(e){return"-"+e.toLowerCase()}var lu=function(e){if(cu.hasOwnProperty(e))return cu[e];var t=e.replace(au,su);return cu[e]=uu.test(t)?"-"+t:t};function fu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:lu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(fu):t.fallbacks=fu(e.fallbacks)),t}var pu=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=fu(e[t]);return e}return fu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=lu(t);return t===r?e:(n.prop(r,e),null)}}},du=Ba&&CSS?CSS.px:"px",hu=Ba&&CSS?CSS.ms:"ms",vu=Ba&&CSS?CSS.percent:"%";function yu(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 mu=yu({"animation-delay":hu,"animation-duration":hu,"background-position":du,"background-position-x":du,"background-position-y":du,"background-size":du,border:du,"border-bottom":du,"border-bottom-left-radius":du,"border-bottom-right-radius":du,"border-bottom-width":du,"border-left":du,"border-left-width":du,"border-radius":du,"border-right":du,"border-right-width":du,"border-top":du,"border-top-left-radius":du,"border-top-right-radius":du,"border-top-width":du,"border-width":du,"border-block":du,"border-block-end":du,"border-block-end-width":du,"border-block-start":du,"border-block-start-width":du,"border-block-width":du,"border-inline":du,"border-inline-end":du,"border-inline-end-width":du,"border-inline-start":du,"border-inline-start-width":du,"border-inline-width":du,"border-start-start-radius":du,"border-start-end-radius":du,"border-end-start-radius":du,"border-end-end-radius":du,margin:du,"margin-bottom":du,"margin-left":du,"margin-right":du,"margin-top":du,"margin-block":du,"margin-block-end":du,"margin-block-start":du,"margin-inline":du,"margin-inline-end":du,"margin-inline-start":du,padding:du,"padding-bottom":du,"padding-left":du,"padding-right":du,"padding-top":du,"padding-block":du,"padding-block-end":du,"padding-block-start":du,"padding-inline":du,"padding-inline-end":du,"padding-inline-start":du,"mask-position-x":du,"mask-position-y":du,"mask-size":du,height:du,width:du,"min-height":du,"max-height":du,"min-width":du,"max-width":du,bottom:du,left:du,top:du,right:du,inset:du,"inset-block":du,"inset-block-end":du,"inset-block-start":du,"inset-inline":du,"inset-inline-end":du,"inset-inline-start":du,"box-shadow":du,"text-shadow":du,"column-gap":du,"column-rule":du,"column-rule-width":du,"column-width":du,"font-size":du,"font-size-delta":du,"letter-spacing":du,"text-decoration-thickness":du,"text-indent":du,"text-stroke":du,"text-stroke-width":du,"word-spacing":du,motion:du,"motion-offset":du,outline:du,"outline-offset":du,"outline-width":du,perspective:du,"perspective-origin-x":vu,"perspective-origin-y":vu,"transform-origin":vu,"transform-origin-x":vu,"transform-origin-y":vu,"transform-origin-z":vu,"transition-delay":hu,"transition-duration":hu,"vertical-align":du,"flex-basis":du,"shape-margin":du,size:du,gap:du,grid:du,"grid-gap":du,"row-gap":du,"grid-row-gap":du,"grid-column-gap":du,"grid-template-rows":du,"grid-template-columns":du,"grid-auto-rows":du,"grid-auto-columns":du,"box-shadow-x":du,"box-shadow-y":du,"box-shadow-blur":du,"box-shadow-spread":du,"font-line-height":du,"text-shadow-x":du,"text-shadow-y":du,"text-shadow-blur":du});function gu(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=gu(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=gu(o,t[o],n);else for(var i in t)t[i]=gu(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||mu[e];return!a||0===t&&a===du?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var bu=function(e){void 0===e&&(e={});var t=yu(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=gu(r,e[r],t);return e},onChangeValue:function(e,n){return gu(n,e,t)}}},wu="",_u="",xu="",ku="",Ou=ji&&"ontouchstart"in document.documentElement;if(ji){var Su={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Eu=document.createElement("p").style;for(var ju in Su)if(ju+"Transform"in Eu){wu=ju,_u=Su[ju];break}"Webkit"===wu&&"msHyphens"in Eu&&(wu="ms",_u=Su.ms,ku="edge"),"Webkit"===wu&&"-apple-trailing-word"in Eu&&(xu="apple")}var Pu=wu,Cu=_u,Tu=xu,Au=ku,Ru=Ou;var Du={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Pu?"-webkit-"+e:Cu+e)}},Mu={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Pu?Cu+"print-"+e:e)}},Iu=/[-\s]+(.)?/g;function Nu(e,t){return t?t.toUpperCase():""}function Fu(e){return e.replace(Iu,Nu)}function zu(e){return Fu("-"+e)}var Lu,Uu={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Pu){if(Fu("mask-image")in t)return e;if(Pu+zu("mask-image")in t)return Cu+e}return e}},Bu={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Tu||Ru?e:Cu+e)}},Wu={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Cu+e)}},qu={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Cu+e)}},Hu={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Pu||"ms"===Pu&&"edge"!==Au?Cu+e:e)}},Qu={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Pu||"ms"===Pu||"apple"===Tu?Cu+e:e)}},$u={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Pu?"WebkitColumn"+zu(e)in t&&Cu+"column-"+e:"Moz"===Pu&&("page"+zu(e)in t&&"page-"+e))}},Vu={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Pu)return e;var n=e.replace("-inline","");return Pu+zu(n)in t&&Cu+n}},Ju={supportedProperty:function(e,t){return Fu(e)in t&&e}},Gu={supportedProperty:function(e,t){var n=zu(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Pu+n in t?Cu+e:"Webkit"!==Pu&&"Webkit"+n in t&&"-webkit-"+e}},Yu={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Pu?""+Cu+e:e)}},Xu={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Pu?Cu+"scroll-chaining":e)}},Ku={"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"},Zu={supportedProperty:function(e,t){var n=Ku[e];return!!n&&(Pu+zu(n)in t&&Cu+n)}},ec={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"},tc=Object.keys(ec),nc=function(e){return Cu+e},rc=[Du,Mu,Uu,Bu,Wu,qu,Hu,Qu,$u,Vu,Ju,Gu,Yu,Xu,Zu,{supportedProperty:function(e,t,n){var r=n.multiple;if(tc.indexOf(e)>-1){var o=ec[e];if(!Array.isArray(o))return Pu+zu(o)in t&&Cu+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Pu+zu(o[0])in t))return!1;return o.map(nc)}return!1}}],oc=rc.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),ic=rc.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Ao(t.noPrefill)),e}),[]),ac={};if(ji){Lu=document.createElement("p");var uc=window.getComputedStyle(document.documentElement,"");for(var cc in uc)isNaN(cc)||(ac[uc[cc]]=uc[cc]);ic.forEach((function(e){return delete ac[e]}))}function sc(e,t){if(void 0===t&&(t={}),!Lu)return e;if(null!=ac[e])return ac[e];"transition"!==e&&"transform"!==e||(t[e]=e in Lu.style);for(var n=0;n<oc.length&&(ac[e]=oc[n](e,Lu.style,t),!ac[e]);n++);try{Lu.style[e]=""}catch(e){return!1}return ac[e]}var lc,fc={},pc={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},dc=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function hc(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?sc(t):", "+sc(n);return r||(t||n)}function vc(e,t){var n=t;if(!lc||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=fc[r])return fc[r];try{lc.style[e]=n}catch(e){return fc[r]=!1,!1}if(pc[e])n=n.replace(dc,hc);else if(""===lc.style[e]&&("-ms-flex"===(n=Cu+n)&&(lc.style[e]="-ms-flexbox"),lc.style[e]=n,""===lc.style[e]))return fc[r]=!1,!1;return lc.style[e]="",fc[r]=n,fc[r]}ji&&(lc=document.createElement("p"));var yc=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=sc(n);i&&i!==n&&(o=!0);var a=!1,u=vc(i,zi(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"===Pu?n:"@"+Cu+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return vc(t,zi(e))||e}}};var mc=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 gc(){return{plugins:[Ga(),tu(),iu(),pu(),bu(),"undefined"==typeof window?null:yc(),mc()]}}var bc=Ua(gc()),wc={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!==Qa.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(u).concat(r,"-").concat(e.key);return t.options.theme[Ha]&&""===a?"".concat(i,"-").concat(s()):i}return"".concat(u).concat(o).concat(s())}}(),jss:bc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},_c=x.a.createContext(wc);var xc=-1e9;function kc(){return xc+=1}function Oc(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=Vr({},o);return Object.keys(i).forEach((function(e){a[e]=Yr(a[e],i[e])})),a},options:{}}}var Sc={};function Ec(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=Wa({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function jc(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var u=qa.get(o.sheetsManager,i,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},qa.set(o.sheetsManager,i,r,u));var c=Vr({},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=qa.get(o.sheetsCache,i,r));var f=i.create(r,a);l||((l=o.jss.createStyleSheet(f,Vr({link:!1},c))).attach(),o.sheetsCache&&qa.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,Vr({link:!0},c));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Wa({baseClasses:u.staticSheet.classes,newClasses:p.classes}),s&&s.add(p)}else n.classes=u.staticSheet.classes;u.refs+=1}}function Pc(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function Cc(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=qa.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(qa.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 Tc(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 Ac(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?Sc:i,u=ki(t,["name","classNamePrefix","Component","defaultTheme"]),c=Oc(e),s=n||r||"makeStyles";c.options={index:kc(),name:n,meta:s,classNamePrefix:s};var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=qr()||a,r=Vr({},x.a.useContext(_c),u),i=x.a.useRef(),s=x.a.useRef();Tc((function(){var o={name:n,state:{},stylesCreator:c,stylesOptions:r,theme:t};return jc(o,e),s.current=!1,i.current=o,function(){Cc(o)}}),[t,c]),x.a.useEffect((function(){s.current&&Pc(i.current,e),s.current=!0}));var l=Ec(i.current,e.classes,o);return l};return l}function Rc(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 Dc=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=ki(t,["defaultTheme","withTheme","name"]);var c=a,s=Ac(e,Vr({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=ki(e,["classes","innerRef"]),l=s(Vr({},n.defaultProps,e)),f=c;return("string"==typeof a||i)&&(o=qr()||r,a&&(f=Rc({theme:o,name:a,props:c})),i&&!f.theme&&(f.theme=o)),x.a.createElement(n,Vr({ref:u||t,classes:l},f))}));return Si()(l,n),l}};var Mc=function(e,t){return Dc(e,Xr({defaultTheme:Yo},t))};function Ic(e){if("string"!=typeof e)throw new Error(to(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Nc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Fc=_.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?Nc:b,x=$r(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=c||(y?"p":w[g]||Nc[g])||"span";return _.createElement(k,Xr({className:_i(o.root,i,"inherit"!==g&&o[g],"initial"!==u&&o["color".concat(Ic(u))],h&&o.noWrap,p&&o.gutterBottom,y&&o.paragraph,"inherit"!==r&&o["align".concat(Ic(r))],"initial"!==l&&o["display".concat(Ic(l))]),ref:t},x))})),zc=Mc((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"})(Fc),Lc=["color","variant","children"],Uc=Object(_.forwardRef)((function(e,t){var n=e.color,r=e.variant,o=e.children,i=T()(e,Lc),a=n||("caption"===r?"textSecondary":"textPrimary");return x.a.createElement(zc,E()({ref:t,variant:r,color:a},i),o)})),Bc="styles__c-spinner___1snK7",Wc="styles__c-spinner--middle___RwyII",qc="styles__c-spinner--nomargin___13JyW",Hc=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()(Bc,(t={},P()(t,Wc,o),P()(t,qc,i),t),c)},x.a.createElement(U,{icon:ke,color:a,spin:!0,size:s}),r&&x.a.createElement(Uc,{variant:"body1",color:"textSecondary",component:"p"},n("loading.".concat(r))))};Hc.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},Hc.defaultProps={loadingType:"",middle:!1,noMargin:!1,color:"var(--spinnerColor)",size:"medium",className:""};var Qc=Object(O.translate)()(Hc);function $c(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 Vc=function(e){p()(n,e);var t=$c(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(bi,{secondaryAction:this.props.onClose,className:"coz-support-modal",into:"#cozy-bar-modal-dom-place",closeBtnClassName:"coz-support-modal-close"},x.a.createElement(vr,{className:"coz-support-modal-wrapper u-mt-1"},x.a.createElement("div",{className:"coz-support-modal-content"},t&&x.a.createElement(Qc,{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 Jc(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 Gc(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 Yc})),n.d(t,"mapStateToProps",(function(){return Xc})),n.d(t,"mapDispatchToProps",(function(){return Kc}));var Yc=function(e){p()(n,e);var t=Jc(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:Gc,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(tn,{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(sn,{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(Ut,{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(pn,{claudyFired:n,onToggle:function(){return e.toggleClaudy(!1)},opened:r}),a&&x.a.createElement(Vc,{onClose:this.toggleSupport})),g&&x.a.createElement(Fe,g))}}]),n}(_.Component),Xc=function(e){return{theme:Object(Ye.j)(e).name,themeOverrides:Object(Ye.j)(e).overrides,barLeft:Object(Ye.e)(e,"left"),barRight:Object(Ye.e)(e,"right"),barCenter:Object(Ye.e)(e,"center"),barSearch:Object(Ye.e)(e,"search"),isDrive:Object(Ye.m)(e,{slug:"drive"}),claudyEnabled:Object(Ye.z)(e),hasFetchedApps:Object(Ye.l)(e),webviewContext:Object(Ye.k)(e)}},Kc=function(e){return{fetchApps:function(){return e(Object(Ye.a)())},fetchContext:function(){return e(Object(Ye.b)())},fetchSettingsData:function(t){return e(Object(Ye.c)(t))}}};t.default=Object(O.translate)()(Object(k.connect)(Xc,Kc)(Yc))},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(81),h=n.n(d),v=n(124),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(122);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(123),s=n(99),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(227),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(366),M=n(367),I=n.n(M),N=n(368),F=n(37),z=n.n(F),L=n(121),U=n.n(L),B=n(369);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(9),a=n.n(i),u=n(19),c=n(98),s=n(30),l=n(10),f=n(2),p=n.n(f),d=n(7),h=n.n(d),v=n(11),y=n.n(v),m=n(13),g=n.n(m),b=n(6),w=n.n(b),_=n(0),x=n.n(_),k=["left","center","right","search"],O=function(e){return e[0].toUpperCase()+e.slice(1)},S=function(e){return"setBar".concat(O(e))},E=function(e){return"Bar".concat(O(e))};function j(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=w()(e);if(t){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var P=0,C=function(e){var t={};return k.forEach((function(n){t[S(n)]=function(t){return e.dispatch(Object(l.u)(n,"string"==typeof(r=t)?x.a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}):r,"js"));var r},t[E(n)]=function(e,t){return function(n){y()(o,n);var r=j(o);function o(){return p()(this,o),r.apply(this,arguments)}return h()(o,[{key:"componentDidMount",value:function(){this.componentId=P++,this.setContent(this.props.children)}},{key:"setContent",value:function(n){try{n=x.a.Children.only(n)}catch(e){}e.dispatch(Object(l.u)(t,n,this.componentId))}},{key:"unsetContent",value:function(){e.dispatch(Object(l.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}(_.Component)}(e,n)})),t.setLocale=function(){e.dispatch(l.w.apply(void 0,arguments))},t.setTheme=function(){e.dispatch(l.x.apply(void 0,arguments))},t.setWebviewContext=function(){e.dispatch(l.y.apply(void 0,arguments))},t},T=function(e){console.error("You tried to use the CozyBar API (".concat(e,") but the CozyBar is not initialised yet via cozy.bar.init(...)."))},A=function(e,t){return function(){if(e[t])return e[t].apply(e,arguments);T(t)}},R=function(){var e=document.querySelector("[role=application]");return e&&e.dataset?e.dataset:{}},D=function(){var e=document.querySelector('link[rel="icon"][sizes^="32"]');return null!==e?e.getAttribute("href"):"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},M=function(){return R().cozyAppNamePrefix||null},I=function(){return R().cozyAppSlug||null},N=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}}},F=n(360),z=n(361),L=n(362);n.d(t,"init",(function(){return Q})),n.d(t,"version",(function(){return oe})),n.d(t,"setBarCenter",(function(){return J})),n.d(t,"setBarLeft",(function(){return G})),n.d(t,"setBarRight",(function(){return Y})),n.d(t,"setBarSearch",(function(){return X})),n.d(t,"BarLeft",(function(){return ee})),n.d(t,"BarRight",(function(){return Z})),n.d(t,"BarCenter",(function(){return K})),n.d(t,"BarSearch",(function(){return te})),n.d(t,"setTheme",(function(){return ne})),n.d(t,"setWebviewContext",(function(){return re})),n.d(t,"updateAccessToken",(function(){return $})),n.d(t,"setLocale",(function(){return l.w}));var U={en:F,fr:z,es:L},B=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)}},W=function(e,t){var r=n(0),o=n(122).render,i=n(51),a=i.connect,u=i.Provider,s=n(29).default,f=n(747).default,p=n(34).CozyProvider,d=t.cozyClient,h=a((function(e){return{lang:Object(l.g)(e)}}))(s),v=r.createElement(u,{store:t.reduxStore},r.createElement(h,{dictRequire:function(e){return U[e]}},r.createElement(c.a,null,d?r.createElement(p,{client:d},r.createElement(f,t)):r.createElement(f,t))));return o(v,e),v},q=function(e){var t=e.cozyURL,r=e.token,o=e.isPublic,i={uri:t||function(e){var t=R();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=R();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)},H={},Q=function(){var e=a()(o.a.mark((function e(){var t,r,i,a,u,c,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?M():i,u=t.appSlug,c=void 0===u?I():u,f=t.lang,p=t.iconPath,d=void 0===p?D():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=q({cozyURL:v,token:y,isPublic:w})),x=n(749).default,(k=x()).dispatch(Object(l.v)(r,a,c)),s.a.init({cozyClient:h,onCreate:function(e){return k.dispatch(Object(l.r)(e))},onDelete:function(e){return k.dispatch(Object(l.s)(e))}}),f&&k.dispatch(Object(l.w)(f)),O=C(k),Object.assign(H,O),S={appName:r,appNamePrefix:a,appSlug:c,cozyClient:h,iconPath:d,replaceTitleOnMobile:g,isPublic:w,onLogOut:_,userActionRequired:N(),reduxStore:k},E=B(S),W(E,S);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(e){s.a.updateAccessToken(e)},V=function(e){var t={};k.forEach((function(n){var r=S(n),o=E(n);t[r]=A(e,r),t[o]=function(t){if(e[o])return x.a.createElement(e[o],t);T(o)}}));for(var n=0,r=["setLocale","setTheme","setWebviewContext"];n<r.length;n++){var o=r[n];t[o]=A(e,o)}return t}(H),J=V.setBarCenter,G=V.setBarLeft,Y=V.setBarRight,X=V.setBarSearch,K=V.BarCenter,Z=V.BarRight,ee=V.BarLeft,te=V.BarSearch,ne=V.setTheme,re=V.setWebviewContext,oe="8.13.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.13.0",
3
+ "version": "8.13.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/)",
@@ -4,7 +4,7 @@
4
4
 
5
5
  [role=banner] .coz-support-modal .coz-support-intent-wrapper .coz-intent {
6
6
  width: 100%;
7
- height: 24em;
7
+ height: 26em;
8
8
  border: none;
9
9
  }
10
10
 
@@ -15,6 +15,6 @@
15
15
 
16
16
  @media (max-width: 48em) {
17
17
  [role=banner] .coz-support-modal .coz-support-intent-wrapper .coz-intent {
18
- height: 27em;
18
+ height: 28em;
19
19
  }
20
20
  }
@@ -930,7 +930,7 @@
930
930
 
931
931
  [role=banner] .coz-support-modal .coz-support-intent-wrapper .coz-intent {
932
932
  width: 100%;
933
- height: 24em;
933
+ height: 26em;
934
934
  border: none;
935
935
  }
936
936
 
@@ -941,7 +941,7 @@
941
941
 
942
942
  @media (max-width: 48em) {
943
943
  [role=banner] .coz-support-modal .coz-support-intent-wrapper .coz-intent {
944
- height: 27em;
944
+ height: 28em;
945
945
  }
946
946
  }
947
947
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  [role=banner] .coz-support-modal .coz-support-intent-wrapper .coz-intent {
6
6
  width: 100%;
7
- height: 24em;
7
+ height: 26em;
8
8
  border: none;
9
9
  }
10
10
 
@@ -15,6 +15,6 @@
15
15
 
16
16
  @media (max-width: 48em) {
17
17
  [role=banner] .coz-support-modal .coz-support-intent-wrapper .coz-intent {
18
- height: 27em;
18
+ height: 28em;
19
19
  }
20
20
  }