1 |
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("classnames"),require("prop-types")):"function"==typeof define&&define.amd?define("tracim_lib",["react","classnames","prop-types"],t):"object"==typeof exports?exports.tracim_lib=t(require("react"),require("classnames"),require("prop-types")):e.tracim_lib=t(e._,e._,e._)}("undefined"!=typeof self?self:this,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=r(i),a=n(1),s=r(a),l=n(2),c=r(l),u=function(e){return o.default.createElement("div",{className:(0,s.default)("wsFileGeneric__header",e.customClass+"__header")},o.default.createElement("div",{className:(0,s.default)("wsFileGeneric__header__icon",e.customClass+"__header__icon")},o.default.createElement("i",{className:e.icon})),o.default.createElement("div",{className:(0,s.default)("wsFileGeneric__header__title mr-auto",e.customClass+"__header__title")},e.name),o.default.createElement("div",{className:(0,s.default)("wsFileGeneric__header__edittitle",e.customClass+"__header__changetitle")},o.default.createElement("i",{className:"fa fa-pencil"})),o.default.createElement("div",{className:(0,s.default)("wsFileGeneric__header__close",e.customClass+"__header__close"),onClick:e.onClickCloseBtn},o.default.createElement("i",{className:"fa fa-times"})))};t.default=u,u.propTypes={icon:c.default.string.isRequired,onClickCloseBtn:c.default.func.isRequired,customClass:c.default.string,name:c.default.string},u.defaultProps={customClass:"",name:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=function(e){return i.default.createElement("div",{className:"wsFileGeneric__option"},i.default.createElement("div",{className:"wsFileGeneric__option__menu"},i.default.createElement("div",{className:"wsFileFile__option__menu__addversion btn mr-auto"},"Nouvelle version",i.default.createElement("i",{className:"fa fa-plus-circle"})),i.default.createElement("div",{className:"wsFileGeneric__option__menu__status dropdown"},i.default.createElement("button",{className:"wsFileGeneric__option__menu__status__dropdownbtn check btn dropdown-toggle",type:"button",id:"dropdownMenu2","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Validé",i.default.createElement("div",{className:"wsFileGeneric__option__menu__status__dropdownbtn__icon"},i.default.createElement("i",{className:"fa fa-check"}))),i.default.createElement("div",{className:"wsFileGeneric__option__menu__status__submenu dropdown-menu","aria-labelledby":"dropdownMenu2"},i.default.createElement("h6",{className:"dropdown-header"},"Statut du fichier"),i.default.createElement("div",{className:"dropdown-divider"}),i.default.createElement("button",{className:"wsFileGeneric__option__menu__status__submenu__item current dropdown-item",type:"button"},"En cours",i.default.createElement("div",{className:"wsFileGeneric__option__menu__status__submenu__item__icon"},i.default.createElement("i",{className:"fa fa-gears"}))),i.default.createElement("button",{className:"wsFileGeneric__option__menu__status__submenu__item check dropdown-item",type:"button"},"Validé",i.default.createElement("div",{className:"wsFileGeneric__option__menu__status__submenu__item__icon"},i.default.createElement("i",{className:"fa fa-check"}))),i.default.createElement("button",{className:"wsFileGeneric__option__menu__status__submenu__item invalid dropdown-item",type:"button"},"Invalidé",i.default.createElement("div",{className:"wsFileGeneric__option__menu__status__submenu__item__icon"},i.default.createElement("i",{className:"fa fa-times"}))),i.default.createElement("button",{className:"wsFileGeneric__option__menu__status__submenu__item ban dropdown-item",type:"button"},"Obsolète",i.default.createElement("div",{className:"wsFileGeneric__option__menu__status__submenu__item__icon"},i.default.createElement("i",{className:"fa fa-ban"}))))),i.default.createElement("div",{className:"wsFileGeneric__option__menu__action"},i.default.createElement("i",{className:"fa fa-archive"})),i.default.createElement("div",{className:"wsFileGeneric__option__menu__action"},i.default.createElement("i",{className:"fa fa-trash"}))))};t.default=o,o.propTypes={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=r(i),a=n(1),s=r(a),l=n(2),c=r(l),u=function(e){return 2===e.children.length?o.default.createElement("div",{className:(0,s.default)("wsFileGeneric__content",e.customClass+"__content")},o.default.createElement("div",{className:(0,s.default)("wsFileGeneric__content__left",e.customClass+"__content__left")},e.children[0]),o.default.createElement("div",{className:(0,s.default)("wsFileGeneric__content__right",e.customClass+"__content__right")},e.children[1])):o.default.createElement("div",{className:(0,s.default)("wsFileGeneric__content",e.customClass+"__content")},e.children)};t.default=u,u.propTypes={customClass:c.default.string,children:c.default.arrayOf(function(e,t,n){return 2!==e.length&&new Error("PropType Error: "+n+" must have 2 children.")}).isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PopinFixedContent=t.PopinFixedOption=t.PopinFixedHeader=t.PopinFixed=void 0;var i=n(7),o=r(i),a=n(3),s=r(a),l=n(4),c=r(l),u=n(5),_=r(u);t.PopinFixed=o.default,t.PopinFixedHeader=s.default,t.PopinFixedOption=c.default,t.PopinFixedContent=_.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=r(i),a=n(1),s=r(a),l=n(2),c=r(l),u=n(3),_=r(u),d=n(4),f=r(d),p=n(5),m=r(p);n(8);var b=function(e){return o.default.createElement("div",{className:(0,s.default)("wsFileGeneric",e.customClass,{visible:e.visible})},e.children)};t.default=b,b.propTypes={customClass:c.default.string,visible:c.default.bool},b.propTypes={children:c.default.arrayOf(function(e,t,n){if(e.length>3||e[0].type!==_.default||e[1].type!==f.default||e[2].type!==m.default)return new Error("PropType Error: childrens of "+n+" must be: 1 PopinFixedHeader, 1 PopinFixedOption and 1 PopinFixedContent.")}).isRequired,customClass:c.default.string,visible:c.default.bool},b.defaultProps={customClass:"",visible:!0}},function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0};i.transform=void 0,n(11)(r,i),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(10)(!1),t.push([e.i,".wsFileGeneric{position:fixed;top:85px;right:0;border:1px solid #ababab;height:100%;background-color:#f0f0f0;box-shadow:shadow-page;visibility:hidden;z-index:1}.wsFileGeneric.visible{visibility:visible}.wsFileGeneric__header{display:flex;align-items:center;padding:15px;height:64px}.wsFileGeneric__header__icon{margin-right:15px;font-size:22px;color:#fff}.wsFileGeneric__header__title{margin-right:15px;color:#fff;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.wsFileGeneric__header__edittitle{margin:0 15px;color:#fff;font-size:20px;cursor:pointer}.wsFileGeneric__header__edittitle:focus,.wsFileGeneric__header__edittitle:hover{border:1px solid #fdfdfd;padding:0 10px;border-radius:5px}.wsFileGeneric__header__close{border:1px solid #fff;border-radius:5px;padding:2px 5px;cursor:pointer}.wsFileGeneric__header__close>i{color:#fff;font-size:20px}.wsFileGeneric__option{border-bottom:1px solid #ababab;padding:10px;height:58px;background-color:#fdfdfd}.wsFileGeneric__option>i{vertical-align:middle;margin-right:15px;font-size:25px;cursor:pointer}.wsFileGeneric__option__menu{display:flex;align-items:center}.wsFileGeneric__option__menu__status{margin-right:20px}.wsFileGeneric__option__menu__status .current{color:#2571fe}.wsFileGeneric__option__menu__status .check{color:green}.wsFileGeneric__option__menu__status .invalid{color:#f63434}.wsFileGeneric__option__menu__status .ban{color:#ababab}.wsFileGeneric__option__menu__status__dropdownbtn{border:1px solid #ababab;width:150px;background-color:transparent;cursor:pointer}.wsFileGeneric__option__menu__status__dropdownbtn:after{color:#252525}.wsFileGeneric__option__menu__status__dropdownbtn:hover{background-color:transparent}.wsFileGeneric__option__menu__status__dropdownbtn__icon{display:inline-block;margin:0 15px}.wsFileGeneric__option__menu__status__submenu__item{display:flex;justify-content:space-between;margin:5px 0;cursor:pointer}.wsFileGeneric__option__menu__status__submenu__item:active{background-color:transparent}.wsFileGeneric__option__menu__action{margin:5px 10px 0 0;font-size:18px;cursor:pointer}.wsFileGeneric__option__menu__action:focus,.wsFileGeneric__option__menu__action:hover{font-size:22px;color:#2571fe}.wsFileGeneric__content{display:flex}.wsFileGeneric__content__left{width:55%}.wsFileGeneric__content__right{width:45%}",""])},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=p[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(u(r.parts[o],t))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(u(r.parts[o],t));p[r.id]={id:r.id,refs:1,parts:a}}}}function i(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s=o[1],l=o[2],c=o[3],u={css:s,media:l,sourceMap:c};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}function o(e,t){var n=b(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=w[w.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),w.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=b(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,i)}}function a(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=w.indexOf(e);t>=0&&w.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",c(t,e.attrs),o(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",c(t,e.attrs),o(e,t),t}function c(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function u(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var c=v++;n=h||(h=s(t)),r=_.bind(null,n,c,!1),i=_.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=f.bind(null,n,t),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=d.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function _(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=x(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var p={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),b=function(e){var t={};return function(n){if(void 0===t[n]){var r=e.call(this,n);if(r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[n]=r}return t[n]}}(function(e){return document.querySelector(e)}),h=null,v=0,w=[],x=n(12);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=m()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=i(e,t);return r(n,t),function(e){for(var o=[],a=0;a<n.length;a++){var s=n[a],l=p[s.id];l.refs--,o.push(l)}e&&r(i(e,t),t);for(var a=0;a<o.length;a++){var l=o[a];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete p[l.id]}}}};var g=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i))return e;var o;return o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}}])});
|