diff --git a/sites/all/modules/figli/edlp_admin/edlp_admin.links.action.yml b/sites/all/modules/figli/edlp_admin/edlp_admin.links.action.yml index 15efdffe0..c7954fe6f 100644 --- a/sites/all/modules/figli/edlp_admin/edlp_admin.links.action.yml +++ b/sites/all/modules/figli/edlp_admin/edlp_admin.links.action.yml @@ -19,6 +19,13 @@ edlp_admin.add_page: title: 'New Page' appears_on: - view.content.page_1 +edlp_admin.edit_prod_menu: + route_name: 'entity.menu.edit_form' + route_parameters: + menu: 'productions' + title: 'Edit Production Menu' + appears_on: + - view.content.page_1 edlp_admin.add_evenement: route_name: 'node.add' route_parameters: diff --git a/sites/all/modules/figli/edlp_productions/edlp_productions.module b/sites/all/modules/figli/edlp_productions/edlp_productions.module index 421840449..71b51e6c8 100644 --- a/sites/all/modules/figli/edlp_productions/edlp_productions.module +++ b/sites/all/modules/figli/edlp_productions/edlp_productions.module @@ -14,10 +14,9 @@ function edlp_productions_theme($existing, $type, $theme, $path) { // @see https://www.drupal.org/docs/8/theming/twig/create-custom-twig-templates-from-custom-module return array( 'edlp_productions' => array( - // 'render element' => '', 'file' => 'includes/edlp_productions.inc', 'variables' => array( - 'hello' => NULL, + 'nodes_entities' => NULL, ), ), ); diff --git a/sites/all/modules/figli/edlp_productions/includes/edlp_productions.inc b/sites/all/modules/figli/edlp_productions/includes/edlp_productions.inc index 459262d81..2f942c088 100644 --- a/sites/all/modules/figli/edlp_productions/includes/edlp_productions.inc +++ b/sites/all/modules/figli/edlp_productions/includes/edlp_productions.inc @@ -7,12 +7,25 @@ function template_preprocess_edlp_productions(&$vars){ /* @see https://www.drupal8.ovh/index.php/en/tutoriels/339/render-a-node-or-an-entity */ - // $view_builder = \Drupal::entityTypeManager()->getViewBuilder('node'); + $view_builder = \Drupal::entityTypeManager()->getViewBuilder('node'); - // $vars['next_event'] = array( - // "#markup"=>"

Prochaine Date

", - // "event"=>$view_builder->view($vars['next_event_node'], 'default') - // ); + foreach($vars['nodes_entities'] as $node){ + switch($node->get('field_view_mode')->value){ + case "1": + $vm = "image_2_columns"; + break; + case "2": + $vm = "image_1_columns"; + break; + case "3": + $vm = "text_1_column"; + break; + }; + $vars['nodes'][] = array( + 'vm'=>$vm, + 'build'=>$view_builder->view($node, $vm) + ); + } } diff --git a/sites/all/modules/figli/edlp_productions/src/Controller/ProductionsController.php b/sites/all/modules/figli/edlp_productions/src/Controller/ProductionsController.php index 7dcaa48e5..3f42c1305 100644 --- a/sites/all/modules/figli/edlp_productions/src/Controller/ProductionsController.php +++ b/sites/all/modules/figli/edlp_productions/src/Controller/ProductionsController.php @@ -25,20 +25,23 @@ class ProductionsController extends ControllerBase { $result = $query->execute(); // dpm($result); + $nids = []; foreach ($result as $id) { $menu_link = MenuLinkContent::load($id); // dpm($menu_link->getParentId()); - if($menu_link->getParentId() === ""){ - dpm($menu_link->getTitle()); - $path = $menu_link->getUrlObject()->getInternalPath(); - preg_match('/^node\/(\d+)$/', $path, $m); - dpm($m[1]); - } + if($menu_link->getParentId() !== "") continue; + + // dpm($menu_link->getTitle()); + $path = $menu_link->getUrlObject()->getInternalPath(); + preg_match('/^(node)\/(\d+)$/', $path, $m); + // dpm($m); + if($m[1] !== "node") continue; + + $nids[] = ($m[2]); } - // TODO: loop through first level - // TODO: load nodes - // TODO: create items + $this->nodes = entity_load_multiple('node', $nids); + // TODO: apply right display } @@ -52,7 +55,7 @@ class ProductionsController extends ControllerBase { return array( "#theme"=>'edlp_productions', - "#hello"=>'Hello', + "#nodes_entities"=>$this->nodes, ); } diff --git a/sites/all/modules/figli/edlp_productions/templates/edlp-productions.html.twig b/sites/all/modules/figli/edlp_productions/templates/edlp-productions.html.twig index 8fe25f99b..c8c581092 100644 --- a/sites/all/modules/figli/edlp_productions/templates/edlp-productions.html.twig +++ b/sites/all/modules/figli/edlp_productions/templates/edlp-productions.html.twig @@ -1 +1,3 @@ -{{ hello }} +{% for node in nodes %} + {{ node.build }} +{% endfor %} diff --git a/sites/all/themes/custom/edlptheme/assets/dist/bower/OverlayScrollbars.min.css b/sites/all/themes/custom/edlptheme/assets/dist/bower/OverlayScrollbars.min.css index 186b78f39..a1d6a7f67 100644 --- a/sites/all/themes/custom/edlptheme/assets/dist/bower/OverlayScrollbars.min.css +++ b/sites/all/themes/custom/edlptheme/assets/dist/bower/OverlayScrollbars.min.css @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.2.2 + * Version: 1.3.0 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 23.01.2018 + * Date: 26.02.2018 */ html.os-html,html.os-html > .os-host{display:block;overflow:hidden;box-sizing:border-box;height:100%!important;width:100%!important;min-width:100%!important;min-height:100%!important;margin:0!important;position:absolute!important}html.os-html > .os-host > .os-padding{position:absolute}body.os-dragging,body.os-dragging *{cursor:default}.os-host,.os-host-textarea{position:relative;overflow:visible!important}#hs-dummy-scrollbar-size{position:fixed;opacity:0;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);visibility:hidden;overflow:scroll;height:500px;width:500px}#hs-dummy-scrollbar-size,.os-viewport{-ms-overflow-style:scrollbar!important}.os-viewport-native-scrollbars-invisible#hs-dummy-scrollbar-size::-webkit-scrollbar,.os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar,.os-viewport-native-scrollbars-invisible#hs-dummy-scrollbar-size::-webkit-scrollbar-corner,.os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner{display:none!important;width:0!important;height:0!important;visibility:hidden!important;background:transparent!important}.os-content-glue{max-height:100%;max-width:100%;width:100%;pointer-events:none}.os-padding{direction:inherit;position:absolute;overflow:visible;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:1}.os-host-overflow > .os-padding{overflow:hidden}.os-viewport{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;overflow:hidden;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.os-content-arrange{position:absolute;z-index:-1;min-height:1px;min-width:1px;pointer-events:none}.os-content{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:100%;height:100%;width:100%;visibility:visible}.os-host-textarea > .os-padding > .os-content{overflow:hidden!important}.os-content > .os-textarea{direction:inherit!important;float:none!important;margin:0!important;max-height:none!important;max-width:none!important;border:none!important;border-radius:0!important;background:transparent!important;outline:0 none transparent!important;overflow:hidden!important;resize:none!important;position:absolute!important;top:0!important;left:0!important;z-index:1;padding:0}.os-host-rtl > .os-padding > .os-viewport > .os-content > .os-textarea{right:0!important}.os-content > .os-textarea-cover{z-index:-1;pointer-events:none}.os-content > .os-textarea[wrap='off']{white-space:pre!important;margin:0!important}.os-text-inherit{font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;text-transform:inherit;text-decoration:inherit;text-indent:inherit;text-align:inherit;text-shadow:inherit;text-overflow:inherit;letter-spacing:inherit;word-spacing:inherit;line-height:inherit;unicode-bidi:inherit;direction:inherit;color:inherit;cursor:text}.os-resize-observer,.os-resize-observer-host{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.os-resize-observer-host{padding:inherit;border:inherit;border-color:transparent;border-style:solid;box-sizing:border-box}.os-resize-observer-host:after{content:''}.os-resize-observer-host > .os-resize-observer,.os-resize-observer-host:after{height:200%;width:200%;padding:inherit;border:inherit;margin:0;display:block;box-sizing:content-box}.os-resize-observer.observed,object.os-resize-observer{box-sizing:border-box!important}.os-size-auto-observer{box-sizing:inherit!important;height:100%;width:inherit;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none}.os-size-auto-observer > .os-resize-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}.os-resize-observer-item{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;z-index:-1;opacity:0;direction:ltr!important;-webkit-box-flex:0!important;-ms-flex:none!important;flex:none!important}.os-resize-observer-item-final{position:absolute;left:0;top:0;-webkit-transition:none!important;transition:none!important;-webkit-box-flex:0!important;-ms-flex:none!important;flex:none!important}.os-resize-observer{-webkit-animation-duration:.001s;animation-duration:.001s;-webkit-animation-name:hs-resize-observer-dummy-animation;animation-name:hs-resize-observer-dummy-animation}.os-host-transition > .os-scrollbar,.os-host-transition > .os-scrollbar-corner{-webkit-transition:opacity 0.3s,visibility 0.3s,top 0.3s,right 0.3s,bottom 0.3s,left .3s;transition:opacity 0.3s,visibility 0.3s,top 0.3s,right 0.3s,bottom 0.3s,left .3s}html.os-html > .os-host > .os-scrollbar{position:absolute;z-index:999999}.os-scrollbar,.os-scrollbar-corner{position:absolute;opacity:1;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);z-index:1}.os-scrollbar-corner{bottom:0;right:0}.os-scrollbar{pointer-events:none}.os-scrollbar-track{pointer-events:auto;position:relative;height:100%;width:100%;padding:0!important;border:none!important}.os-scrollbar-handle{pointer-events:auto;position:absolute;width:100%;height:100%}.os-scrollbar-handle-off,.os-scrollbar-track-off{pointer-events:none}.os-scrollbar.os-scrollbar-unusable,.os-scrollbar.os-scrollbar-unusable *{pointer-events:none!important}.os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-host-rtl > .os-scrollbar-horizontal{right:0}.os-host-rtl > .os-scrollbar-vertical{right:auto;left:0}.os-host-rtl > .os-scrollbar-corner{right:auto;left:0}.os-scrollbar-auto-hidden,.os-padding + .os-scrollbar-corner,.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden > .os-scrollbar-corner,.os-host-scrollbar-horizontal-hidden > .os-scrollbar-horizontal,.os-host-resize-disabled.os-host-scrollbar-vertical-hidden > .os-scrollbar-corner,.os-host-scrollbar-vertical-hidden > .os-scrollbar-vertical,.os-scrollbar-horizontal.os-scrollbar-auto-hidden + .os-scrollbar-vertical + .os-scrollbar-corner,.os-scrollbar-horizontal + .os-scrollbar-vertical.os-scrollbar-auto-hidden + .os-scrollbar-corner,.os-scrollbar-horizontal.os-scrollbar-auto-hidden + .os-scrollbar-vertical.os-scrollbar-auto-hidden + .os-scrollbar-corner{opacity:0;visibility:hidden;pointer-events:none}.os-scrollbar-corner-resize-both{cursor:nwse-resize}.os-host-rtl > .os-scrollbar-corner-resize-both{cursor:nesw-resize}.os-scrollbar-corner-resize-horizontal{cursor:ew-resize}.os-scrollbar-corner-resize-vertical{cursor:ns-resize}.os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize{cursor:default}.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden > .os-scrollbar-vertical{top:0;bottom:0}.os-host-resize-disabled.os-host-scrollbar-vertical-hidden > .os-scrollbar-horizontal{right:0;left:0}.os-scrollbar:hover,.os-scrollbar-corner.os-scrollbar-corner-resize{opacity:1!important;visibility:visible!important}.os-scrollbar-corner.os-scrollbar-corner-resize{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB3aWR0aD0iMTAiICAgaGVpZ2h0PSIxMCIgICB2ZXJzaW9uPSIxLjEiPiAgPGcgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTEwNDIuMzYyMikiICAgICBzdHlsZT0iZGlzcGxheTppbmxpbmU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g0MzI2MiwwIGMgMC4xNDEyNjY3LDAuMjA5MTAyNCAwLjIxODM1OTQsMC40NjU2MjA2IDAuMjE4MzU5NCwwLjczNjk2MjkgMCwwLjcyMzU3OTMgLTAuNTg2NTc3LDEuMzEwMTU2MyAtMS4zMTAxNTYzLDEuMzEwMTU2MyAtMC4yNzEzNDIzLDAgLTAuNTI3ODYwNSwtMC4wNzcwOTMgLTAuNzM2OTYyOSwtMC4yMTgzNTk0IDAuMjM5NDEwNCwwLjMxMzA4NTkgMC42MTI2MzYyLDAuNTE4NjAzNSAxLjAzNzIwNywwLjUxODYwMzUgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjU3NyAxLjMxMDE1NjMsLTEuMzEwMTU2MyAwLC0wLjQyNDU3MDggLTAuMjA1NTE3NiwtMC43OTc3OTY2IC0wLjUxODYwMzUsLTEuMDM3MjA3IHoiIC8+ICA8L2c+PC9zdmc+);background-repeat:no-repeat;background-position:100% 100%;pointer-events:auto!important}.os-host-rtl > .os-scrollbar-corner.os-scrollbar-corner-resize{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.os-host-overflow{overflow:hidden!important}@-webkit-keyframes hs-resize-observer-dummy-animation{from{z-index:0}to{z-index:-1}}@keyframes hs-resize-observer-dummy-animation{from{z-index:0}to{z-index:-1}}.os-theme-none > .os-scrollbar-horizontal,.os-theme-none > .os-scrollbar-vertical,.os-theme-none > .os-scrollbar-corner{display:none!important}.os-theme-none > .os-scrollbar-corner-resize{display:block!important;min-width:10px;min-height:10px}.os-theme-dark > .os-scrollbar-horizontal,.os-theme-light > .os-scrollbar-horizontal{right:10px;height:10px}.os-theme-dark > .os-scrollbar-vertical,.os-theme-light > .os-scrollbar-vertical{bottom:10px;width:10px}.os-theme-dark.os-host-rtl > .os-scrollbar-horizontal,.os-theme-light.os-host-rtl > .os-scrollbar-horizontal{left:10px;right:0}.os-theme-dark > .os-scrollbar-corner,.os-theme-light > .os-scrollbar-corner{height:10px;width:10px;background-color:transparent}.os-theme-dark > .os-scrollbar,.os-theme-light > .os-scrollbar{padding:2px;box-sizing:border-box;background:transparent}.os-theme-dark > .os-scrollbar.os-scrollbar-unusable,.os-theme-light > .os-scrollbar.os-scrollbar-unusable{background:transparent}.os-theme-dark > .os-scrollbar > .os-scrollbar-track,.os-theme-light > .os-scrollbar > .os-scrollbar-track{background:transparent}.os-theme-dark > .os-scrollbar-horizontal > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar-horizontal > .os-scrollbar-track > .os-scrollbar-handle{min-width:30px}.os-theme-dark > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle{min-height:30px}.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{border-radius:11px;opacity:.4}.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{background:#000}.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{background:#fff}.os-theme-dark.os-host-transition > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light.os-host-transition > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{-webkit-transition:opacity .3s;transition:opacity .3s}.os-theme-dark > .os-scrollbar:hover > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar:hover > .os-scrollbar-track > .os-scrollbar-handle{opacity:.55}.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle.active,.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle.active{opacity:.7}.os-theme-dark > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-dark > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-vertical .os-scrollbar-handle:before{content:'';position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-theme-dark.os-host-scrollbar-horizontal-hidden > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-dark.os-host-scrollbar-vertical-hidden > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light.os-host-scrollbar-horizontal-hidden > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light.os-host-scrollbar-vertical-hidden > .os-scrollbar-vertical .os-scrollbar-handle:before{display:none}.os-theme-dark > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-horizontal .os-scrollbar-handle:before{top:-6px;bottom:-2px}.os-theme-dark > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-vertical .os-scrollbar-handle:before{left:-6px;right:-2px}.os-host-rtl.os-theme-dark > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-host-rtl.os-theme-light > .os-scrollbar-vertical .os-scrollbar-handle:before{right:-6px;left:-2px} \ No newline at end of file diff --git a/sites/all/themes/custom/edlptheme/assets/dist/bower/imagesloaded.pkgd.min.js b/sites/all/themes/custom/edlptheme/assets/dist/bower/imagesloaded.pkgd.min.js new file mode 100644 index 000000000..e443a77d6 --- /dev/null +++ b/sites/all/themes/custom/edlptheme/assets/dist/bower/imagesloaded.pkgd.min.js @@ -0,0 +1,7 @@ +/*! + * imagesLoaded PACKAGED v4.1.4 + * JavaScript is all like "You images are done yet or what?" + * MIT License + */ + +!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o
'),u=function(){c.append(f);var e=f[0],t=a(f.children("div").first());0===e.offsetHeight&&f.hide().show();var n={x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth};f.addClass("os-viewport-native-scrollbars-invisible"),f.css("overflow","hidden").hide().css("overflow","scroll").show(),l.nativeScrollbarStyling=e.offsetHeight-e.clientHeight==0&&e.offsetWidth-e.clientWidth==0,f.css({"overflow-y":"hidden",direction:"rtl"}).scrollLeft(0);var r=f.offset(),i=t.offset();f.scrollLeft(999);var o=t.offset();return l.rtlScrollBehavior={i:r.left===i.left,n:i.left-o.left==0},f.removeAttr("style").remove(),n}(),h={x:0===u.x,y:0===u.y};l.nativeScrollbarSize=u,l.nativeScrollbarIsOverlaid=h,l.overlayScrollbarDummySize={x:30,y:30},l.msie=function(){var t=e.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)}(),l.cssCalc=function(){for(var e=t.createElement("div"),n=["calc","-webkit-calc","-moz-calc","-o-calc"],r=0;r0){var e=r.wW(),h=r.wH(),d=e-i,v=h-s;if(0===d&&0===v)return;var p=Math.round(e/(i/100)),y=Math.round(h/(s/100)),m=Math.abs(d),g=Math.abs(v),b=Math.abs(p),w=Math.abs(y),x=n(),C=m>2&&g>2,S=!t(b,w),O=x!==u&&u>0;if(!!(C&&S&&O)){c.append(f);var k=f[0];l.nativeScrollbarSize={x:k.offsetHeight-k.clientHeight,y:k.offsetWidth-k.clientWidth},f.remove(),a.each(o.all(),function(){o.has(this)&&o.get(this).update("zoom")})}i=e,s=h,u=x}})}}()}function f(e){var t,i=this,o=[],s=[],l=!1,c=33,f=r.now(),u=function(){if(o.length>0&&l){t=r.rAF()(function(){u()});var e=r.now(),i=e-f;if(i>c){f=e-i%c;for(var a=33,h=0;hy&&(d.update("auto"),s[h]=new Date(m+=y)),a=Math.max(1,Math.min(a,y))}}c=a}}else c=33};i.add=function(t){-1===a.inArray(t,o)&&(o.push(t),s.push(r.now()),o.length>0&&!l&&(l=!0,e.autoUpdateLoop=l,u()))},i.remove=function(i){var c=a.inArray(i,o);c>-1&&(s.splice(c,1),o.splice(c,1),0===o.length&&l&&(l=!1,e.autoUpdateLoop=l,t!==n&&(r.cAF()(t),t=-1)))}}function u(t,l,c,f){function u(){if(!Le){var e=Je[0],t={w:e.scrollWidth,h:e.scrollHeight};if(gn){var n=b(t,jt);jt=t,n&&ue(!0,!1)}else jt=t}}function h(e,t,n){e=e[0];for(var r=t.split(Kn),i=0;i9||!ve){var l=qn+Mr+'">';l+=qn+Wr+'" dir="ltr">',l+=qn+Wr+'">',l+=qn+Er+Yn,l+="",l+=qn+Wr+'">',l+=qn+Er+'" style="width: 200%; height: 200%'+Yn,l+="",l+="",l+="",e.prepend(l);var f,u,h,d,v=(e=e[0]).childNodes[0].childNodes[0],p=a(v.childNodes[1]),y=a(v.childNodes[0]),m=a(y[0].childNodes[0]),g=v.offsetWidth,b=v.offsetHeight,w=c.nativeScrollbarSize,x=function(){y[Zn](3333333)[$n](3333333),p[Zn](3333333)[$n](3333333)},C=function(){u=0,f&&(g=h,b=d,n())},S=function(e){return h=v.offsetWidth,d=v.offsetHeight,f=h!=g||d!=b,e&&f&&!u?(r.cAF()(u),u=r.rAF()(C)):e||C(),x(),e&&(r.prvD(e),r.stpP(e)),!1},O={};O[Wn]=-2*(w.y+1),O[En]=-2*w.x,O[Fn]=-2*w.y,O[Ln]=-2*(w.x+1),a(v).css(O),y.on(Bn,S),p.on(Bn,S),a(e).on(s,function(){S(!1)});var k={};k[Rn]=3333333,k[Nn]=3333333,m.css(k),x()}else{var z=Be[0],T=e;e=e[0];var A=z.attachEvent,H="undefined"==typeof navigator||(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));if(A)T.prepend(qn+Mr+Yn),T.find(Jn+Mr).first()[0].attachEvent("onresize",n);else{var M=z.createElement("object");M.setAttribute("tabindex","-1"),M.setAttribute("class",Mr),M.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",n),e.document.documentElement.style.display="none"},M.type="text/html",H&&T.prepend(M),M.data="about:blank",H||T.prepend(M),T.on(s,n)}}}if((e=a(e))[0]===Je[0]){var W=function(){var t=qe.css("direction");if(t!==xt){var n={},r=0;return"ltr"===t?(n[Ln]=0,n[En]=Un,r=3333333):(n[Ln]=Un,n[En]=0,r=de.n?-3333333:de.i?0:3333333),Je.children().first().css(n),e.scrollLeft(r),e.scrollTop(3333333),xt=t,!0}return!1};W(),e.on(Bn,function(e){return W()&&ue(),r.prvD(e),r.stpP(e),!1})}}function m(e){if(ke){var t=e.contents()[0];t[sr].disconnect(),delete t[sr]}else e.children(Jn+Mr).first().remove()}function g(e,t,r){return!0===r?r:t===n||e!==t}function b(e,t,r,i,o){if(!0===o)return o;if(i===n&&o===n){if(!0===r)return r;r=n}return r=r===n?"w":r,i=i===n?"h":i,t===n||(e[r]!==t[r]||e[i]!==t[i])}function w(e,t){return t===n||(e.t!==t.t||e.r!==t.r||e.b!==t.b||e.l!==t.l)}function x(e,t){e.call(mn,t)}function C(e,t,r){r===n&&(r=[jn,jn,jn,jn]),e[t+Wn]=r[0],e[t+En]=r[1],e[t+Fn]=r[2],e[t+Ln]=r[3]}function S(){tn&&!en&&(Zt.observe(qe[0],{attributes:!0,attributeOldValue:!0,attributeFilter:["id","class","style"]}),$t.observe(wn?Ve[0]:$e[0],{attributes:!0,attributeOldValue:!0,subtree:!wn,childList:!wn,characterData:!wn,attributeFilter:wn?["wrap","cols","rows"]:["id","class","style"]}),en=!0)}function O(){tn&&en&&(Zt.disconnect(),$t.disconnect(),en=!1)}function k(e){if(!Le){var t=(e.originalEvent||e).touches!==n;(1===r.mBtn(e)||t)&&(en&&(hn=!0,O()),ti=r.page(e),ni.w=qe[0].offsetWidth-(ze?0:Te),ni.h=qe[0].offsetHeight-(ze?0:Ae),Be.on(or,N),Be.on(nr,z),Be.on(tr,T),_e.addClass(Jr),tt.setCapture&&tt.setCapture(),r.prvD(e),r.stpP(e))}}function z(e){e.originalEvent;var t=r.page(e),n={};(pn||vn)&&(n[Rn]=ni.w+t.x-ti.x),(yn||vn)&&(n[Nn]=ni.h+t.y-ti.y),qe.css(n),r.stpP(e)}function T(e){var t=e!==n;Be.off(or,N),Be.off(nr,z),Be.off(tr,T),_e.removeClass(Jr),tt.releaseCapture&&tt.releaseCapture(),t&&(hn&&S(),mn.update(Un)),hn=!1}function A(){if(!Le){var e=!Mt,t=zn.w-(ze||Ct||!dt?0:Ae+Me),n=zn.h-(ze||Ct||!vt?0:Ae+Me),r={},i=dt||e,o=Ve[0];r[Dn+Rn]=jn,r[Dn+Nn]=jn,r[Rn]=Un,Ve.css(r);var a=o.offsetWidth,s=i?Math.max(a,o.scrollWidth-1):1;s+=dt?We+(ze?0:e?0:Te+He):0,r[Rn]=dt?s:Xn,r[Nn]=Un,Ve.css(r);var l=o.offsetHeight,c=Math.max(l,o.scrollHeight-1);return r[Rn]=s,r[Nn]=c,et.css(r),r[Dn+Rn]=t+(!ze&&dt?Te+He:0),r[Dn+Nn]=n+(!ze&&vt?Ae+Me:0),Ve.css(r),{ow:a,oh:l,dw:s,dh:c}}}function H(){var e=Ve.prop("selectionStart");if(e!==n){for(var t=Ve.val(),r=t.length,i=t.split("\n"),o=i.length,a=t.substr(0,e).split("\n"),s=0,l=0,c=a.length,f=a[a.length-1].length,u=0;ul&&(s=u+1,l=h)}return{cursorRow:c,cursorCol:f,rows:o,cols:l,wRow:s,pos:e,max:r}}}function M(e){for(var t=0;t<$r.length;t++)if(e===$r[t])return!0;return!1}function W(){A(),mn.update(Un)}function E(e){var t=e.keyCode;if(!M(t)){if(0===ei.length){var n=function(){A(),mn.update(Un)};n(),nn=setInterval(n,1e3/60)}-1===a.inArray(t,ei)&&ei.push(t)}}function F(e){var t=e.keyCode;if(!M(t)){var n=a.inArray(t,ei);n>-1&&ei.splice(n,1),0===ei.length&&(A(),mn.update(Un),clearInterval(nn))}}function L(){setTimeout(function(){A(),mn.update(Un)},50)}function D(){rn=!0}function I(){rn=!1,clearInterval(nn),ei=[],A(),mn.update(Un)}function R(e){return Ve[Zn](de.i&&qt?9999999:0),Ve[$n](0),r.prvD(e),r.stpP(e),!1}function N(e){return r.prvD(e),!1}function P(){return Tt&&we.x&&we.y}function j(e,t,n){var r=e?ur:hr,i=e?nt:ot;t?qe.removeClass(r):qe.addClass(r),n?i.removeClass(Pr):i.addClass(Pr)}function U(e,t){if(clearTimeout(on),e)nt.removeClass(jr),ot.removeClass(jr);else{var n=function(){if(!un){var e=it.hasClass("active")||st.hasClass("active");e||!ln&&!cn||nt.addClass(jr),e||!ln&&!cn||ot.addClass(jr)}};an>0&&!0!==t?on=setTimeout(n,an):n()}}function B(e){var t={},n=Y(e),r=Math.min(1,(lt[n._wh]-(Ct?e?Te:Ae:0))/ct[n._wh]);t[n.wh]=Math.floor(100*r*1e5)/1e5+"%",P()||n.h.css(t),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function X(e,t){var n=Fe&&e,r={},i=Y(e),o=Ge[0][Bn+i.WH]-Ge[0]["client"+i.WH];de.n&&n&&(o*=-1);var a=t/o;a=isNaN(a)?0:Math.min(1,a),i.i.ms=o,i.i.cs=t,i.i.csr=a;var s=i.i.hl,l=i.t[0]["offset"+i.WH],c=(l-s)*a;if(c=isNaN(c)?0:c,n&&(de.n||!de.n&&!de.i)&&(c=l-s-c),c=Math.max(0,c),Se){n&&(c=-(l-s-c));var f;f=e?"translate("+c+"px, 0px)":"translate(0px, "+c+"px)",r["-webkit-transform"]=f,r["-moz-transform"]=f,r["-ms-transform"]=f,r["-o-transform"]=f,r.transform=f}else r[i.lt]=c;P()||i.h.css(r),i.i.ho=c,i.i.tl=l}function _(e,t){var n=t?"removeClass":"addClass",r=e?rt:it,i=e?at:st,o=e?Ir:Nr;r[n](o),i[n](o)}function V(){nt=a(qn+Lr+Kn+qr+Yn),rt=a(qn+Dr+Yn),it=a(qn+Rr+Yn),ot=a(qn+Lr+Kn+Yr+Yn),at=a(qn+Dr+Yn),st=a(qn+Rr+Yn),nt.append(rt),rt.append(it),ot.append(at),at.append(st),Qe.after(ot),Qe.after(nt),Ce&&(nt.on(ar,function(e){e.target===nt[0]&&(B(!0),X(!0,Ge[Zn]()))}),ot.on(ar,function(e){e.target===ot[0]&&(B(!1),X(!1,Ge[$n]()))})),q(!0),q(!1),tt=a(qn+Kn+Ur+Yn),qe.append(tt)}function q(e){var t,i,o,a=Y(e),s=a.xy,l=Bn+a.LT,c=1,f=function(){c=.5},u=function(){c=1},v=function(n){n.originalEvent;var o=a.i.tl,c=a.i.hl,f=a.i.ms*((c/2+r.page(n)[s]-i-c/2)/(o-c));f=isFinite(f)?f:0,Fe&&e&&(de.n||!de.n&&!de.i)&&(f*=-1),Ge[l](t+f),Oe||r.prvD(n)},p=function(e){e=e||e.originalEvent,_e.removeClass(Jr),a.h.removeClass("active"),a.t.removeClass("active"),a.s.removeClass("active"),Oe?(d(Be,nr,v),d(Be,tr,p),d(Be,rr,y),d(Be,ir,m),d(Be,or,N)):(Be.off(nr,v),Be.off(tr,p),Be.off(rr,y),Be.off(ir,m),Be.off(or,N)),u(),t=n,i=n,o!==n&&(mn.scrollStop(),clearTimeout(o),o=n);var r=qe[0].getBoundingClientRect();e.clientX>=r.left&&e.clientX<=r.right&&e.clientY>=r.top&&e.clientY<=r.bottom||K(),ln&&U(!1)},y=function(e){16==e.keyCode&&f()},m=function(e){16==e.keyCode&&u()};a.h.on(er,function(o){if(!Le){var c=(o.originalEvent||o).touches!==n;P()||!_t||c&&!fn||(1===r.mBtn(o)||c)&&(t=Ge[l](),t=t===n?0:t,(Fe&&e&&!de.n||!Fe)&&(t=t<0?0:t),i=r.page(o)[s],_e.addClass(Jr),a.h.addClass("active"),a.s.addClass("active"),Oe?(h(Be,or,N),h(Be,nr,v),h(Be,tr,p)):(Be.on(or,N),Be.on(nr,v),Be.on(tr,p)),r.prvD(o))}}),a.t.on(er,function(t){if(!Le){var l=(t.originalEvent||t).touches!==n;if(!P()&&Xt&&(!l||fn)&&(1===r.mBtn(t)||l)){var u,d=zn[a._wh],v=a.t.offset()[a.lt],g=!0;t.shiftKey&&f();var b=function(){var t=a.i.ho,r=a.i.hl,s=i-v,l=200*c,f=g?Math.max(333,l):l,h={},p=Fe&&e&&(!de.i&&!de.n||qt),y=t>s;p&&(y=t=s;p&&(m=u?t+r>=s:t<=s),m?(clearTimeout(o),mn.scrollStop(),o=n):o=setTimeout(b,f),g=!1};i=r.page(t)[s],_e.addClass(Jr),a.t.addClass("active"),a.s.addClass("active"),Oe?(h(Be,or,N),h(Be,tr,p),h(Be,rr,y),h(Be,ir,m)):(Be.on(or,N),Be.on(tr,p),Be.on(rr,y),Be.on(ir,m)),b(),r.prvD(t)}}}).hover(function(){ln&&(un=!0,U(!0))},function(){ln&&(un=!1,U(!1))}),a.s.on(er,function(e){r.stpP(e)})}function Y(e){return{wh:e?Rn:Nn,WH:e?"Width":"Height",lt:e?Ln:Wn,LT:e?"Left":"Top",xy:e?_n:Vn,XY:e?"X":"Y",_wh:e?"w":"h",_lt:e?"l":"t",t:e?rt:at,h:e?it:st,s:e?nt:ot,i:e?On:kn}}function J(){cn&&U(!0)}function K(){cn&&!_e.hasClass(Jr)&&U(!1)}function Q(e){if(!Le){var t=Ne.callbacks,r=t.onScrollStart,i=t.onScroll,o=t.onScrollStop;De!==n?clearTimeout(De):(ln&&U(!0),P()||qe.addClass(yr),a.isFunction(r)&&x(r,e)),X(!0,Ge[Zn]()),X(!1,Ge[$n]()),a.isFunction(i)&&x(i,e),De=setTimeout(function(){G(),a.isFunction(o)&&x(o,e)},Tn)}}function G(){clearTimeout(De),De=n,ln&&U(!1),P()||qe.removeClass(yr)}function Z(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function $(e,t,r,i){var o,l,c,f,u,h={n:t,s:!1,v:n,p:n},d="undefined",v=s.has(e,t),p=s.get(e,t),y=!1,m=!0!==v,g=Gn,b=!1;for("array"!==a.type(r)&&(r=[r]),u=r.length,l=0;l1){var x=0;for(f=0;f1)break}1===x&&(b=!0)}else b=!0;w===n&&(y=!0)}if(m&&!1===v&&y&&(m=!1),!m){o=p,d=a.type(o);var S=function(e){var t=a.type(e);return t===d&&(t!==g||(!!b||o===e))&&(h.s=!0,h.v=o,h.p=o,!0)};for(l=0;l-1&&o.splice(f,1);for(var u=0;u0&&gn&&o-Pe0?qe.addClass(Q):qe.addClass(Kr)),Se&&(!0===Ce?(O(),f.add(mn)):null===Ce&&ve?(O(),f.add(mn)):(f.remove(mn),S())),ce)if(se)if(Ke===n&&(Ke=a(qn+Ar+Yn),Qe.before(Ke)),Cn)Ye.show();else{Ye=a(qn+Hr+Yn),Ke.before(Ye);var Xe={w:-1,h:-1};y(Ye,function(){var e={w:Ye[0].offsetWidth,h:Ye[0].offsetHeight};b(e,Xe)&&(gn&&vt&&e.h>0||dt&&e.w>0?ue():(gn&&!vt&&0===e.h||!dt&&0===e.w)&&ue()),Xe=e}),Cn=!0,null!==me&&Ye.css(Nn,me+"(100% + 1px)")}else Cn&&Ye.hide();i&&(Je.find("*").trigger(Bn),Cn&&Ye.find("*").trigger(Bn));var _e,nt=qe.css("direction"),rt=g(nt,wt,i),it=qe.css("box-sizing"),ot=g(it,yt,i),at={c:i,t:le(qe.css(Hn+Wn)),r:le(qe.css(Hn+En)),b:le(qe.css(Hn+Fn)),l:le(qe.css(Hn+Ln))};try{_e=Cn?Ye[0].getBoundingClientRect():null}catch(e){return}ze="border-box"===it;var st=(Fe="rtl"===nt)?Ln:En,xt=Fe?En:Ln,Et=!1,Ft=!(!Cn||"none"===qe.css(Pn))&&(0===Math.round(_e.right-_e.left)&&(!!re||qe[0].clientWidth-Te>0));if(se&&!Ft){var Lt=qe[0].offsetWidth,Dt=Ke.css(Rn);Ke.css(Rn,Un);var It=qe[0].offsetWidth;Ke.css(Rn,Dt),(Et=Lt!==It)||(Ke.css(Rn,Lt+1),It=qe[0].offsetWidth,Ke.css(Rn,Dt),Et=Lt!==It)}var Rt=(Ft||Et)&&se,Nt=g(Rt,dt,i),Pt=!Rt&&dt,jt=!!Cn&&0===Math.round(_e.bottom-_e.top),Zt=g(jt,vt,i),$t=!jt&&vt,tn="-"+Rn,nn=Rt&&ze||!ze,on=jt&&ze||!ze,un={c:i,t:on?le(qe.css(Mn+Wn+tn)):0,r:nn?le(qe.css(Mn+En+tn)):0,b:on?le(qe.css(Mn+Fn+tn)):0,l:nn?le(qe.css(Mn+Ln+tn)):0},hn={c:i,t:le(qe.css(An+Wn)),r:le(qe.css(An+En)),b:le(qe.css(An+Fn)),l:le(qe.css(An+Ln))},bn={h:String(qe.css(In+Nn)),w:String(qe.css(In+Rn))},On={},kn={};if(Te=at.l+at.r,Ae=at.t+at.b,at.c=w(at,mt),He=un.l+un.r,Me=un.t+un.b,un.c=w(un,gt),We=hn.l+hn.r,Ee=hn.t+hn.b,hn.c=w(hn,bt),bn.ih=parseInt(bn.h),bn.iw=parseInt(bn.w),bn.ch=bn.h.indexOf("px")>-1,bn.cw=bn.w.indexOf("px")>-1,bn.c=b(bn,pt,i),wt=nt,yt=it,dt=Rt,vt=jt,mt=at,gt=un,bt=hn,pt=bn,rt&&Cn&&Ye.css(Pn,xt),at.c||rt||ie||Nt||Zt||ot||ce){var Tn={},Jn={};C(kn,An,[-at.t,-at.r,-at.b,-at.l]),re?(C(Tn,jn,[at.t,at.r,at.b,at.l]),wn?C(Jn,Hn):C(On,Hn)):(C(Tn,jn),wn?C(Jn,Hn,[at.t,at.r,at.b,at.l]):C(On,Hn,[at.t,at.r,at.b,at.l])),Qe.css(Tn),Ve.css(Jn)}zn={w:Qe[0].offsetWidth,h:Qe[0].offsetHeight};var Kn=!!wn&&A();if(jt&&(Zt||ie||ot||bn.c||at.c||un.c)?(bn.cw&&(On[In+Nn]=bn.ch?bn.ih-(re?Ae:0)+(ze?-Me:Ae):jn),On[Nn]=Un):(Zt||ie)&&(On[In+Nn]=jn,On[Nn]=Xn),Rt&&(Nt||ie||ot||bn.c||at.c||un.c||rt)?(bn.cw&&(On[In+Rn]=bn.cw?bn.iw-(re?Te:0)+(ze?-He:Te)+(we.y?xe.y:0):jn),On[Rn]=Un,kn[In+Rn]=Xn):(Nt||ie)&&(On[In+Rn]=jn,On[Rn]=Xn,On[Pn]=jn,kn[In+Rn]=jn),Rt&&(bn.cw||(On[In+Rn]=jn),kn[Rn]=wn&&Ie?Kn.dw:Un,On[Rn]=Un,On[Pn]=xt),jt&&(bn.ch||(On[In+Nn]=jn),kn[Nn]=wn?Ue?Kn.dh:Un:$e[0].clientHeight),se&&Ke.css(kn),$e.css(On),On={},kn={},ut=ut||{x:!1,y:!1},e||t||rt||ot||ie||Nt||Rt||Zt||jt||bn.c||pe||De||ae||$||I||Re||Be||ne||ie||Re||Be||i){var Qn={},Gn=ut.y&&ht.ys&&!he?we.y?Ge.css(st):-ge.y:0,tr=ut.x&&ht.xs&&!he?we.x?Ge.css(Fn):-ge.x:0;C(Qn,jn),Ge.css(Qn),jt&&!wn&&($e.css("overflow","hidden"),On.overflow=jn);var nr=fe(),rr={w:nr.clientWidth,h:nr.clientHeight},ir={w:nr.scrollWidth,h:nr.scrollHeight},or={w:wn&&Kn&&!Ie?Kn.ow:Rt?rr.w:ir.w,h:wn&&Kn&&!Ue?Kn.oh:jt?rr.h:ir.h};Qn[Fn]=$t?jn:tr,Qn[st]=Pt?jn:Gn,Ge.css(Qn);var ar=qe[0],sr={w:ar.clientWidth,h:ar.clientHeight},lr={w:Math.max(or.w+(re?Te:0),sr.w-Te)-(Ie&&wn&&Rt?We+(ze?0:Te+He):0),h:Math.max(or.h+(re?Ae:0),sr.h-Ae)};if(lr.c=b(lr,Ot,i),Ot=lr,se){(lr.c||jt||Rt)&&(kn[Rn]=lr.w,kn[Nn]=lr.h);var cr=kn[Rn]+(ze?He:-Te),fr=kn[Nn]+(ze?Me:-Te),ur={};(!Rt||!Rt&&un.c)&&(kn[Rn]=sr.w-(ze?0:Te+He)-1-We),(!jt||!jt&&un.c)&&(kn[Nn]=sr.h-(ze?0:Ae+Me)-1-Ee),bn.cw&&bn.iw===cr&&(kn[Rn]=cr+(ze?0:Te)+1),bn.ch&&bn.ih===fr&&(kn[Nn]=fr+(ze?0:Ae)+1),Rt&&(rr.w0&&(kn[Rn]=Math.max(1,kn[Rn]),kn[Nn]=Math.max(1,kn[Nn])),wn&&et.css(ur),Ke.css(kn)}Rt&&(On[Rn]=Xn),!Rt||ze||en||(On[Pn]="none"),$e.css(On),On={};var hr=nr.getBoundingClientRect(),dr={w:nr.scrollWidth,h:nr.scrollHeight};if(hr.width!==n){var wr=hr.width,xr=hr.height;dr.w+=le(wr+.001)-wr,dr.h+=le(xr+.001)-xr}dr.c=t=b(dr,ct,i),ct=dr,e=b(sr={w:ar.clientWidth,h:ar.clientHeight},lt),lt=sr;var Cr={x:"v-s"===ke.x,y:"v-s"===ke.y},Sr={x:"v-h"===ke.x,y:"v-h"===ke.y},Or={x:"s"===ke.x,y:"s"===ke.y},kr={x:Math.max(0,dr.w-sr.w+(re?Te:0)),y:Math.max(0,dr.h-sr.h+(re?Ae:0))},zr=wn&&(0===zn.w||0===zn.h);zr&&(kr.x=0,kr.y=0);var Mr={x:kr.x>0,y:kr.y>0},Wr={x:Mr.x,y:Mr.y};(Cr.x||Sr.x)&&(Wr.x=Mr.y&&!Cr.y&&!Sr.y),(Cr.y||Sr.y)&&(Wr.y=Mr.x&&!Cr.x&&!Sr.x),Wr.xs=!!Wr.x&&(Or.x||Cr.x),Wr.ys=!!Wr.y&&(Or.y||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,mi=pi.y>-1;(yi||mi)&&(mi&&Ge[$n](pi.y),yi&&(Fe&&qt&&de.i?Ge[Zn](0):Ge[Zn](pi.x)))}Wt=ai}else wn||(Fe&&de.i&&we.y&&Mr.x&&qt&&(l.l+=Sn.w),Ge[Zn](l.l),Ge[$n](l.t));rt&&a.isFunction(E)&&x(E,{isRTL:Fe,dir:nt}),e&&a.isFunction(L)&&x(L,{width:lt.w,height:lt.h}),t&&a.isFunction(F)&&x(F,{width:ct.w,height:ct.h}),(Mr.c||Wr.c)&&a.isFunction(M)&&x(M,{x:Mr.x,y:Mr.y,xScrollable:Wr.xs,yScrollable:Wr.ys,clipped:Wr.x||Wr.y}),kr.c&&a.isFunction(W)&&x(W,{x:kr.x,y:kr.y})}xn&&(Mr.c||Gt.c)&&(Gt.f||ee(),we.y&&Mr.x&&$e.css(Dn+Rn,Gt.w+xe.y),we.x&&Mr.y&&$e.css(Dn+Nn,Gt.h+xe.x),Gt.c=!1),p(Je),p(Ye),a.isFunction(T)&&x(T,{forced:i})}}if(Z(t)){if(o.has(t)){var he=o.get(t);return he.options(l),he}var de,ve,pe,ye,me,ge,be,we,xe,Ce,Se,Oe,ke,ze,Te,Ae,He,Me,We,Ee,Fe,Le,De,Ie,Re,Ne,Pe,je,Ue,Be,Xe,_e,Ve,qe,Ye,Je,Ke,Qe,Ge,Ze,$e,et,tt,nt,rt,it,ot,at,st,lt,ct,ft,ut,ht,dt,vt,pt,yt,mt,gt,bt,wt,xt,Ct,St,Ot,kt,zt,Tt,At,Ht,Mt,Wt,Et,Ft,Lt,Dt,It,Rt,Nt,Pt,jt,Ut,Bt,Xt,_t,Vt,qt,Yt,Jt,Kt,Qt,Gt,Zt,$t,en,tn,nn,rn,on,an,sn,ln,cn,fn,un,hn,dn,vn,pn,yn,mn=new e[i],gn=!1,bn=!1,wn=!1,xn=!1,Cn=!1,Sn={w:0,h:0},On={},kn={},zn={},Tn=175,An="margin-",Hn="padding-",Mn="border-",Wn="top",En="right",Fn="bottom",Ln="left",Dn="min-",In="max-",Rn="width",Nn="height",Pn="float",jn="",Un="auto",Bn="scroll",Xn="100%",_n="x",Vn="y",qn='
',Jn=".",Kn=" ",Qn="scrollbar",Gn="string",Zn=Bn+"Left",$n=Bn+"Top",er="mousedown touchstart",tr="mouseup touchend",nr="mousemove touchmove",rr="keydown",ir="keyup",or="selectstart",ar="transitionend webkitTransitionEnd oTransitionEnd",sr="~_overlayScrollbarsRO_~",lr="os-html",cr="os-host",fr=cr+"-textarea",ur=cr+"-"+Qn+"-horizontal-hidden",hr=cr+"-"+Qn+"-vertical-hidden",dr=cr+"-transition",vr=cr+"-rtl",pr=cr+"-resize-disabled",yr=cr+"-scrolling",mr=cr+"-overflow",gr=mr+"-x",br=mr+"-y",wr="os-textarea",xr=wr+"-cover",Cr="os-padding",Sr="os-viewport",Or=Sr+"-native-scrollbars-invisible",kr=Sr+"-native-scrollbars-overlaid",zr="os-content",Tr="os-content-arrange",Ar="os-content-glue",Hr="os-size-auto-observer",Mr="os-resize-observer",Wr="os-resize-observer-item",Er=Wr+"-final",Fr="os-text-inherit",Lr="os-"+Qn,Dr=Lr+"-track",Ir=Dr+"-off",Rr=Lr+"-handle",Nr=Rr+"-off",Pr=Lr+"-unusable",jr=Lr+"-"+Un+"-hidden",Ur=Lr+"-corner",Br=Ur+"-resize",Xr=Br+"-both",_r=Br+"-horizontal",Vr=Br+"-vertical",qr=Lr+"-horizontal",Yr=Lr+"-vertical",Jr="os-dragging",Kr="os-theme-none",Qr={},Gr=33,Zr=11,$r=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],ei=[],ti={x:0,y:0},ni={w:0,h:0};if(mn.sleep=function(){Le=!0},mn.update=function(e){if(e===Un){var t=se(),n=ae();(t||n)&&ue(!1,n)}else"zoom"===e?ue(!0,!0):(e=Le||e,Le=!1,ue(!1,!1,e))},mn.options=function(e,t){if(a.isEmptyObject(e)||!a.isPlainObject(e)){if("string"===a.type(e)){if(arguments.length>=2){var n={};return s.set(n,e,t,!0),oe(n),void ue()}return s.get(Re,e)}return Re}oe(e);var r=Le||!1;Le=!1,ue(),Le=r},mn.destroy=function(){bn=!0,f.remove(mn),O(),m(Je),Cn&&m(Ye),Je.remove(),Ke!==n&&Ke.remove(),Ze!==n&&Ze.remove(),Cn&&Ye.remove(),Oe?(d(qe,"mouseenter",J),d(qe,"mouseleave",K)):(qe.off("mouseenter",J),qe.off("mouseleave",K)),nt.remove(),ot.remove(),tt&&tt.remove(),dn||T(),$e.contents().unwrap().unwrap().unwrap(),xn&&Xe.removeClass(lr),wn?(Ve.off(Bn,R),Ve.off("drop",L),Ve.off("focus",D),Ve.off("focusout",I),pe>9||!ve?Ve.off("input",W):(Ve.off(rr,E),Ve.off(ir,F)),et.remove(),Ve.removeClass(wr).removeClass(Fr),Ve.unwrap().removeAttr("style"),qe.remove()):(Ve.removeClass(cr),qe.removeClass(cr).removeClass(pr).removeClass(vr).removeClass(ur).removeClass(hr).removeClass(dr).removeClass(yr).removeClass(mr).removeClass(gr).removeClass(br).removeClass(Kr).removeClass(Yt)),o.rem(t);var e=Ne.callbacks.onDestroyed;a.isFunction(e)&&x(e);for(var r in mn)delete mn[r];mn=n},mn.scroll=function(t,r,i,o){if(0===arguments.length||t===n){var s=On,l=kn,c=qt&&Fe&&de.i,f=qt&&Fe&&de.n,u=s.cs,h=s.csr,d=s.ms;return h=c?1-h:h,u=c?d-u:u,u*=f?-1:1,d*=f?-1:1,{x:{position:u,ratio:h,max:d,handleOffset:s.ho,handleLength:s.hl,handleLengthRatio:s.hlr,trackLength:s.tl,isRTL:Fe,isRTLNormalized:qt},y:{position:l.cs,ratio:l.csr,max:l.ms,handleOffset:l.ho,handleLength:l.hl,handleLengthRatio:l.hlr,trackLength:l.tl}}}var v,p=[_n,Ln,"l"],y=[Vn,Wn,"t"],m=["+=","-=","*=","/="],g={},b="object"===a.type(r),w={axis:"xy",block:["begin","begin"],margin:[0,0,0,0]},x=[_n,Vn,"xy","yx"],C=["begin","end"],S=t.hasOwnProperty("el"),O=S?t.el:t,k=O instanceof a,z=!k&&Z(O),T=function(e,t){for(v=0;v0)t.x=e[0],t.y=e[1];else if(a.type(e)===Gn||"number"===a.type(e))t.x=e,t.y=e;else if("object"===a.type(e)){e=a.extend({},e),v=0;for(var n in e)e.hasOwnProperty(n)&&(v>2&&delete e[n],v++);var r=function(t){var n=t?p:y;for(v=0;v2){var d=r.substr(0,2);for(v=0;v/g,(h?"-":jn)+Xn)).replace(/px/g,jn)).replace(/%/g," * "+f*(u&&de.n?-1:1)/100)).replace(/vw/g," * "+zn.w)).replace(/vh/g," * "+zn.h),o=e.parseInt(e.parseFloat(e.eval(r)).toFixed())}else"number"===a.type(r)&&(o=r);if(!isNaN(o)&&o!==n&&"number"===a.type(o)){var p=qt&&u,y=c*(p&&de.n?-1:1),g=p&&de.i,b=p&&de.n;switch(y=g?f-y:y,i){case"+=":s=y+o;break;case"-=":s=y-o;break;case"*=":s=y*o;break;case"/=":s=y/o;break;default:s=o}g&&(s=f-s),b&&(s*=-1),u&&de.n?(s=Math.max(f,s),s=Math.min(0,s)):(s=Math.min(f,s),s=Math.max(0,s)),s===c&&(s=n)}return s};if(k||z){var M=k?O:a(O);if(0===M.length)return;if(S){var W,E,F,L=t.axis,D=t.block,I=a.type(D),R=t.margin,N=a.type(R);if(I===Gn)D=[D,D];else if("array"===I)if((E=D.length)>2||E<1)D=n;else{for(W=!0,1===E&&(D[1]="begin"),v=0;v0||b){var re={};if(te&&(re[Zn]=g.x),ne&&(re[$n]=g.y),b)Ge.animate(re,r);else{var ie={duration:r,complete:o};if("array"===a.type(i)){var oe={};oe[Zn]=i[0],oe[$n]=i[1],ie.specialEasing=oe}else ie.easing=i;Ge.animate(re,ie)}}else te&&Ge[Zn](g.x),ne&&Ge[$n](g.y)},mn.scrollStop=function(e,t,n){Ge.stop(e,t,n)},mn.getElements=function(){return{target:Ve[0],host:qe[0],padding:Qe[0],viewport:Ge[0],content:$e[0],scrollbarHorizontal:{scrollbar:nt[0],track:rt[0],handle:it[0]},scrollbarVertical:{scrollbar:ot[0],track:at[0],handle:st[0]},scrollbarCorner:tt}},mn.getState=function(e){var t=function(e){if(!a.isPlainObject(e))return e;var t=a.extend(!0,{},e);s.del(t,"c");var n=function(e,n){t.hasOwnProperty(e)&&(t[n]=t[e],delete t[e])};return n("w",Rn),n("h",Nn),t},n={sleeping:t(Le)||!1,autoUpdate:t(!en),widthAuto:t(dt),heightAuto:t(vt),padding:t(mt),overflowAmount:t(zt),hideOverflow:t(ht),hasOverflow:t(ut),contentScrollSize:t(ct),viewportSize:t(zn),hostSize:t(lt)};return a.type(e)===Gn?s.get(n,e):n},function(e,t){Ie=c.defaultOptions,ye=c.nativeScrollbarStyling,ge=a.extend(!0,{},c.nativeScrollbarSize),we=a.extend(!0,{},c.nativeScrollbarIsOverlaid),xe=a.extend(!0,{},c.overlayScrollbarDummySize),de=a.extend(!0,{},c.rtlScrollBehavior),oe(a.extend(!0,{},Ie,t));var n=Ne.callbacks;if(we.x&&we.x&&!Ne.nativeScrollbarsOverlaid.initialize){var i=n.onInitializationWithdrawn;return a.isFunction(i)&&x(i),!1}me=c.cssCalc,pe=c.msie,ve=c.autoUpdateRecommended,Ce=c.supportTransition,Se=c.supportTransform,Oe=c.supportPassiveEvents,ke=c.supportResizeObserver,tn=c.supportMutationObserver,Be=a(e.ownerDocument),Ue=a(Be[0].defaultView||Be[0].parentWindow),Xe=Be.find("html").first(),_e=Xe.find("body").first(),Ve=a(e),wn=Ve.is("textarea");var o;if((xn=Ve.is("body"))&&((o={}).l=Math.max(Ve[Zn](),Xe[Zn](),Ue[Zn]()),o.t=Math.max(Ve[$n](),Xe[$n](),Ue[$n]())),wn){Ve.wrap(qn+fr+Yn),Ve.addClass(wr).addClass(Fr),qe=Ve.parent();var s={};Ne.sizeAutoCapable||(s[Rn]=Ve.css(Rn),s[Nn]=Ve.css(Nn)),qe.css(s),qe.wrapInner(qn+zr+Kn+Fr+Yn).wrapInner(qn+Sr+Kn+Fr+Yn).wrapInner(qn+Cr+Kn+Fr+Yn),$e=qe.find(Jn+zr).first(),Ge=qe.find(Jn+Sr).first(),Qe=qe.find(Jn+Cr).first(),et=a(qn+xr+Yn),$e.prepend(et),Ve.on(Bn,R),Ve.on("drop",L),Ve.on("focus",D),Ve.on("focusout",I),pe>9||!ve?Ve.on("input",W):(Ve.on(rr,E),Ve.on(ir,F))}else Ve.addClass(cr),(qe=Ve).wrapInner(qn+zr+Yn).wrapInner(qn+Sr+Yn).wrapInner(qn+Cr+Yn),$e=qe.find(Jn+zr).first(),Ge=qe.find(Jn+Sr).first(),Qe=qe.find(Jn+Cr).first(),$e.on(ar,function(e){!0!==At&&ce((e=e.originalEvent||e).propertyName)&&ue(Un)});if(V(),Oe?h(Ge,Bn,Q):Ge.on(Bn,Q),ye&&(we.x&&we.y?Ge.addClass(kr):Ge.addClass(Or)),tn){var l,f=r.mO(),d=r.now();Zt=new f(function(e){if(gn&&!Le){var t=!1;a.each(e,function(){var e=this,n=this.target,r=e.attributeName;if(t="class"===r?re(e.oldValue,n.className):"style"!==r||e.oldValue!==n.style.cssText)return!1}),t&&mn.update(Un)}}),$t=new f(function(e){if(gn&&!Le){for(var t=!1,n=0;nZr||!o?a():l=setTimeout(a,Zr)}}})}xn&&(Xe.addClass(lr),Ge[Zn](o.l),Ge[$n](o.t)),Je=a(qn+"os-resize-observer-host"+Yn),qe.prepend(Je),y(Je,u),u(),mn.update(Un),setTimeout(function(){Ce&&!bn&&qe.addClass(dr)},333),gn=!0;var v=n.onInitialized;return a.isFunction(v)&&x(v),gn}(t,l))return o.add(t,mn),mn;mn=n}}var h,d,v={className:"os-theme-dark",resize:"none",sizeAutoCapable:!0,clipAlways:!0,normalizeRTL:!0,paddingAbsolute:!1,autoUpdate:null,autoUpdateInterval:33,nativeScrollbarsOverlaid:{showNativeScrollbars:!1,initialize:!0},overflowBehavior:{x:"scroll",y:"scroll"},scrollbars:{visibility:"auto",autoHide:"never",autoHideDelay:800,dragScrolling:!0,clickScrolling:!1,touchSupport:!0},textarea:{dynWidth:!1,dynHeight:!1},callbacks:{onInitialized:null,onInitializationWithdrawn:null,onDestroyed:null,onScrollStart:null,onScroll:null,onScrollStop:null,onOverflowChanged:null,onOverflowAmountChanged:null,onDirectionChanged:null,onContentSizeChanged:null,onHostSizeChanged:null,onUpdated:null}};e[i]=function(e,t){if(0===arguments.length)return this;l();var r,i=[];return a.isPlainObject(t)?e&&e.length?e.length>1?(a.each(e,function(){(r=this)!==n&&i.push(u(r,t,h,d))}),i):u(e[0],t,h,d):u(e,t,h,d):e?e.length&&e.length>0?e.length>1?(a.each(e,function(){r=o.get(this),"!"===t?r!==n&&i.push(r):i.push(r)}),i):o.get(e[0]):o.get(e):void 0},e[i].globals=function(){l();var e=a.extend(!0,{},h);return delete e.msie,e},e[i].defaultOptions=function(e){l();var t=h.defaultOptions;if(e===n)return a.extend(!0,{},t);h.defaultOptions=a.extend(!0,{},t,e)}}(o,function(e){function t(e){for(var t=0;t-1&&(delete t[i],r.splice(n,1))},has:function(e){return t(e)!==n},get:t}}(a),a,function(e){function t(r,i,o,a,s){var l=!1;if(o=o===n?"":o,"string"!=typeof i)return l;if(0===i.length)return l;if(""===o){for(var c=i.split("."),f=r,u="",h=!1,d=0;d-1&&(delete n[r],t.splice(o,1))}function a(e){return s(e)!==n}function s(e){for(var n=0;n
'),u=function(){s.append(f);var e,t="overflow",n="hidden",r=f[0],o=c(f.children("div").first());return 0===r[a.oH]&&f.hide().show(),e={x:r[a.oH]-r[a.cH],y:r[a.oW]-r[a.cW]},i.restrictedMeasuring=function(){f.css(t,n);var e={w:r[a.sW],h:r[a.sH]};f.css(t,"visible");var o={w:r[a.sW],h:r[a.sH]};return e.w-o.w!=0||e.h-o.h!=0}(),i.nativeScrollbarStyling=(f.addClass("os-viewport-native-scrollbars-invisible"),f.css(t,n).hide().css(t,"scroll").show(),r[a.oH]-r[a.cH]==0&&r[a.oW]-r[a.cW]==0),i.rtlScrollBehavior=function(){f.css({"overflow-y":n,direction:"rtl"}).scrollLeft(0);var e=f.offset(),t=o.offset();f.scrollLeft(999);var r=o.offset();return{i:e.left===t.left,n:t.left-r.left==0}}(),f.removeAttr(a.s).remove(),e}(),v={x:0===u.x,y:0===u.y};function d(e){var r=!1,o="Webkit Moz ms O".split(" "),i=t.createElement("div"),a=null;if(e=e.toLowerCase(),i.style[e]!==n&&(r=!0),!1===r){a=e.charAt(0).toUpperCase()+e.substr(1);for(var s=0;s0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var o=t.indexOf("Edge/");return o>0&&parseInt(t.substring(o+5,t.indexOf(".",o)),10)}(),i.cssCalc=function(){for(var e=t.createElement("div"),n=["calc","-webkit-calc","-moz-calc","-o-calc"],r=0;r0){var e=r.wW(),v=r.wH(),h=e-t,p=v-n;if(0===h&&0===p)return;var y=Math.round(e/(t/100)),m=Math.round(v/(n/100)),x=Math.abs(h),w=Math.abs(p),g=Math.abs(y),b=Math.abs(m),C=d(),S=x>2&&w>2,O=!u(g,b);if(!!(S&&O&&(C!==o&&o>0))){s.append(f);var z=f[0];i.nativeScrollbarSize={x:z[a.oH]-z[a.cH],y:z[a.oW]-z[a.cW]},f.remove(),c.each(l.all(),function(){l.has(this)&&l.get(this).update("zoom")})}t=e,n=v,o=C}})}function u(e,t){var n=Math.abs(e),r=Math.abs(t);return!(n===r||n+1===r||n-1===r)}function d(){var t=e.screen.deviceXDPI||0,n=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/n}}()}function y(e){var t,o=this,i="autoUpdate",a=i+"Interval",s=[],l=[],f=!1,u=33,v=u,d=r.now(),h=function(){if(s.length>0&&f){t=r.rAF()(function(){h()});var e=r.now(),o=e-d;if(o>v){d=e-o%v;for(var c=u,p=0;pw&&(y.update("auto"),l[p]=new Date(g+=w)),c=Math.max(1,Math.min(c,w))}}v=c}}else v=u};o.add=function(t){-1===c.inArray(t,s)&&(s.push(t),l.push(r.now()),s.length>0&&!f&&(f=!0,e.autoUpdateLoop=f,h()))},o.remove=function(o){var i=c.inArray(o,s);i>-1&&(l.splice(i,1),s.splice(i,1),0===s.length&&f&&(f=!1,e.autoUpdateLoop=f,t!==n&&(r.cAF()(t),t=-1)))}}function m(t,u,v,d){if(Qr(t)){if(l.has(t)){var h=l.get(t);return h.options(u),h}var p,y,m,x,w,g,b,C,S,O,z,H,W,k,M,A,T,E,L,F,D,I,R,P,N,U,B,j,_,V,q,X,Y,J,K,Q,G,Z,$,ee,te,ne,re,oe,ie,ae,se,le,ce,fe,ue,ve,de,he,pe,ye,me,xe,we,ge,be,Ce,Se,Oe,ze,He,We,ke,Me,Ae,Te,Ee,Le,Fe,De,Ie,Re,Pe,Ne,Ue,Be,je,_e,Ve,qe,Xe,Ye,Je,Ke,Qe,Ge,Ze,$e,et,tt,nt,rt,ot,it,at,st,lt,ct,ft,ut,vt,dt,ht,pt,yt,mt,xt,wt=new e[o],gt=!1,bt=!1,Ct=!1,St=!1,Ot=!1,zt={w:0,h:0},Ht={},Wt={},kt={},Mt=175,At="-hidden",Tt="margin-",Et="padding-",Lt="border-",Ft="top",Dt="right",It="bottom",Rt="left",Pt="min-",Nt="max-",Ut="width",Bt="height",jt="float",_t="",Vt="auto",qt="scroll",Xt="100%",Yt="x",Jt="y",Kt='
',Gt=".",Zt=" ",$t="scrollbar",en="-horizontal",tn="-vertical",nn=qt+"Left",rn=qt+"Top",on="mousedown touchstart",an="mouseup touchend",sn="mousemove touchmove",ln="keydown",cn="keyup",fn="selectstart",un="transitionend webkitTransitionEnd oTransitionEnd",vn="__overlayScrollbarsRO__",dn="os-",hn=dn+"html",pn=dn+"host",yn=pn+"-textarea",mn=pn+"-"+$t+en+At,xn=pn+"-"+$t+tn+At,wn=pn+"-transition",gn=pn+"-rtl",bn=pn+"-resize-disabled",Cn=pn+"-scrolling",Sn=pn+"-overflow",On=Sn+"-x",zn=Sn+"-y",Hn=dn+"textarea",Wn=Hn+"-cover",kn=dn+"padding",Mn=dn+"viewport",An=Mn+"-native-scrollbars-invisible",Tn=Mn+"-native-scrollbars-overlaid",En=dn+"content",Ln=dn+"content-arrange",Fn=dn+"content-glue",Dn=dn+"size-auto-observer",In=dn+"resize-observer",Rn=dn+"resize-observer-item",Pn=Rn+"-final",Nn=dn+"text-inherit",Un=dn+$t,Bn=Un+"-track",jn=Bn+"-off",_n=Un+"-handle",Vn=_n+"-off",qn=Un+"-unusable",Xn=Un+"-"+Vt+At,Yn=Un+"-corner",Jn=Yn+"-resize",Kn=Jn+"-both",Qn=Jn+en,Gn=Jn+tn,Zn=Un+en,$n=Un+tn,er=dn+"dragging",tr=dn+"theme-none",nr={},rr=33,or=11,ir=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],ar=[],sr={x:0,y:0},lr={w:0,h:0};if(wt.sleep=function(){R=!0},wt.update=function(e){if(e===Vt){var t=io(),n=oo();(t||n)&&co(!1,n)}else"zoom"===e?co(!0,!0):(e=R||e,R=!1,co(!1,!1,e))},wt.options=function(e,t){if(c.isEmptyObject(e)||!c.isPlainObject(e)){if(c.type(e)===i.s){if(arguments.length>=2){var n={};return f.set(n,e,t,!0),ro(n),void co()}return f.get(U,e)}return U}ro(e);var r=R||!1;R=!1,co(),R=r},wt.destroy=function(){bt=!0,d.remove(wt),Cr(),pr(G),Ot&&pr(Q),G.remove(),Z!==n&&Z.remove(),te!==n&&te.remove(),Ot&&Q.remove(),H?(ur(K,"mouseenter",Xr),ur(K,"mouseleave",Yr)):(K.off("mouseenter",Xr),K.off("mouseleave",Yr)),ie.remove(),le.remove(),oe&&oe.remove(),pt||zr(),ne.contents().unwrap().unwrap().unwrap(),St&&X.removeClass(hn),Ct?(J.off(qt,Dr),J.off("drop",Er),J.off("focus",Lr),J.off("focusout",Fr),m>9||!y?J.off("input",Mr):(J.off(ln,Ar),J.off(cn,Tr)),re.remove(),J.removeClass(Hn).removeClass(Nn),J.unwrap().removeAttr(a.s),K.remove()):(J.removeClass(pn),K.removeClass(pn).removeClass(bn).removeClass(gn).removeClass(mn).removeClass(xn).removeClass(wn).removeClass(Cn).removeClass(Sn).removeClass(On).removeClass(zn).removeClass(tr).removeClass(Qe)),l.rem(t);var e=B.callbacks.onDestroyed;for(var r in c.isFunction(e)&&wr(e),wt)delete wt[r];wt=n},wt.scroll=function(t,r,o,s){if(0===arguments.length||t===n){var l=Ht,f=Wt,u=Ke&&I&&p.i,v=Ke&&I&&p.n,d=l.cs,h=l.csr,y=l.ms;return d=u?y-d:d,{x:{position:d*=v?-1:1,ratio:h=u?1-h:h,max:y*=v?-1:1,handleOffset:l.ho,handleLength:l.hl,handleLengthRatio:l.hlr,trackLength:l.tl,isRTL:I,isRTLNormalized:Ke},y:{position:f.cs,ratio:f.csr,max:f.ms,handleOffset:f.ho,handleLength:f.hl,handleLengthRatio:f.hlr,trackLength:f.tl}}}var m,x=[Yt,Rt,"l"],w=[Jt,Ft,"t"],g=["+=","-=","*=","/="],b={},C=c.type(r)===i.o,S="end",O="begin",H={axis:"xy",block:[O,O],margin:[0,0,0,0]},W=[Yt,Jt,"xy","yx"],k=[O,S],M=t.hasOwnProperty("el"),A=M?t.el:t,T=A instanceof c,E=!T&&Qr(A),L=function(e,t){for(m=0;m0)t.x=e[0],t.y=e[1];else if(c.type(e)===i.s||c.type(e)===i.n)t.x=e,t.y=e;else if(c.type(e)===i.o){for(var n in e=c.extend({},e),m=0,e)e.hasOwnProperty(n)&&(m>2&&delete e[n],m++);var r=function(t){var n=t?x:w;for(m=0;m2){var y=r.substr(0,2);for(m=0;m/g,(h?"-":_t)+Xt)).replace(/px/g,_t)).replace(/%/g,v+u*(d&&p.n?-1:1)/100)).replace(/vw/g,v+kt.w)).replace(/vh/g,v+kt.h),a=e.parseInt(e.parseFloat(e.eval(r)).toFixed())}else c.type(r)===i.n&&(a=r);if(!isNaN(a)&&a!==n&&c.type(a)===i.n){var x=Ke&&d,w=f*(x&&p.n?-1:1),b=x&&p.i,C=x&&p.n;switch(w=b?u-w:w,o){case"+=":s=w+a;break;case"-=":s=w-a;break;case"*=":s=w*a;break;case"/=":s=w/a;break;default:s=a}b&&(s=u-s),C&&(s*=-1),d&&p.n?(s=Math.max(u,s),s=Math.min(0,s)):(s=Math.min(u,s),s=Math.max(0,s)),s===f&&(s=n)}return s};if(T||E){var R=T?A:c(A);if(0===R.length)return;if(M){var P,N,U,B=t.axis,j=t.block,_=c.type(j),V=t.margin,q=c.type(V);if(_===i.s)j=[j,j];else if(_===i.a)if((N=j.length)>2||N<1)j=n;else{for(P=!0,1===N&&(j[1]=O),m=0;m0||C){var ue={};if(ce&&(ue[nn]=b.x),fe&&(ue[rn]=b.y),C)ee.animate(ue,r);else{var ve={duration:r,complete:s};if(c.type(o)===i.a){var de={};de[nn]=o[0],de[rn]=o[1],ve.specialEasing=de}else ve.easing=o;ee.animate(ue,ve)}}else ce&&ee[nn](b.x),fe&&ee[rn](b.y)},wt.scrollStop=function(e,t,n){ee.stop(e,t,n)},wt.getElements=function(){return{target:J[0],host:K[0],padding:$[0],viewport:ee[0],content:ne[0],scrollbarHorizontal:{scrollbar:ie[0],track:ae[0],handle:se[0]},scrollbarVertical:{scrollbar:le[0],track:ce[0],handle:fe[0]},scrollbarCorner:oe}},wt.getState=function(e){var t=function(e){if(!c.isPlainObject(e))return e;var t=c.extend(!0,{},e);f.del(t,"c");var n=function(e,n){t.hasOwnProperty(e)&&(t[n]=t[e],delete t[e])};return n("w",Ut),n("h",Bt),t},n={sleeping:t(R)||!1,autoUpdate:t(!rt),widthAuto:t(ye),heightAuto:t(me),padding:t(ge),overflowAmount:t(Me),hideOverflow:t(pe),hasOverflow:t(he),contentScrollSize:t(ve),viewportSize:t(kt),hostSize:t(ue)};return c.type(e)===i.s?f.get(n,e):n},fo(t,u))return l.add(t,wt),wt;wt=n}function cr(){if(!R){var e=G[0],t={w:e[a.sW],h:e[a.sH]};if(gt){var n=mr(t,_e);_e=t,n&&co(!0,!1)}else _e=t}}function fr(e,t,n){e=e[0];for(var r=t.split(Zt),o=0;o9||!y){var u='">',d="",h="childNodes",x=Kt+In+u;x+=Kt+Rn+'" dir="ltr'+u,x+=Kt+Rn+u,x+=Kt+Pn+Qt,x+=d,x+=Kt+Rn+u,x+=Kt+Pn+'" style="width: 200%; height: 200%'+Qt,x+=d,x+=d,x+=d,e.prepend(x);var w,g,b,C,S=(e=e[0])[h][0][h][0],O=c(S[h][1]),z=c(S[h][0]),H=c(z[0][h][0]),k=S[a.oW],M=S[a.oH],A=2,T=v.nativeScrollbarSize,E=function(){z[nn](n)[rn](n),O[nn](n)[rn](n)},L=function(){g=0,w&&(k=b,M=C,o())},F=function(e){return b=S[a.oW],C=S[a.oH],w=b!=k||C!=M,e&&w&&!g?(r.cAF()(g),g=r.rAF()(L)):e||L(),E(),e&&(r.prvD(e),r.stpP(e)),!1},D={};D[Ft]=-(T.y+1)*A,D[Dt]=T.x*-A,D[It]=T.y*-A,D[Rt]=-(T.x+1)*A,c(S).css(D),z.on(qt,F),O.on(qt,F),c(e).on(f,function(){F(!1)});var R={};R[Ut]=n,R[Bt]=n,H.css(R),E()}else{var P=q[0],N=e;e=e[0];var U=P.attachEvent,B=typeof navigator===i.u||(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));if(U)N.prepend(Kt+In+Qt),N.find(Gt+In).first()[0].attachEvent("onresize",o);else{var j=P.createElement(i.o);j.setAttribute("tabindex","-1"),j.setAttribute(a.c,In),j.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",o),e.document.documentElement.style.display="none"},j.type="text/html",B&&N.prepend(j),j.data="about:blank",B||N.prepend(j),N.on(f,o)}}}if((e=c(e))[0]===G[0]){var _=function(){var t=K.css("direction");if(t!==Oe){var r={},o=0;return"ltr"===t?(r[Rt]=0,r[Dt]=Vt,o=n):(r[Rt]=Vt,r[Dt]=0,o=p.n?-n:p.i?0:n),G.children().first().css(r),e.scrollLeft(o),e.scrollTop(n),Oe=t,!0}return!1};_(),e.on(qt,function(e){return _()&&co(),r.prvD(e),r.stpP(e),!1})}}function pr(e){if(W){var t=e.contents()[0];t[vn].disconnect(),delete t[vn]}else e.children(Gt+In).first().remove()}function yr(e,t,r){return!0===r?r:t===n||e!==t}function mr(e,t,r,o,i){if(!0===i)return i;if(o===n&&i===n){if(!0===r)return r;r=n}return r=r===n?"w":r,o=o===n?"h":o,t===n||(e[r]!==t[r]||e[o]!==t[o])}function xr(e,t){return t===n||(e.t!==t.t||e.r!==t.r||e.b!==t.b||e.l!==t.l)}function wr(e,t){gt&&e.call(wt,t)}function gr(e,t,r){r===n&&(r=[_t,_t,_t,_t]),e[t+Ft]=r[0],e[t+Dt]=r[1],e[t+It]=r[2],e[t+Rt]=r[3]}function br(){ot&&!rt&&(tt.observe(K[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[a.i,a.c,a.s]}),nt.observe(Ct?J[0]:ne[0],{attributes:!0,attributeOldValue:!0,subtree:!Ct,childList:!Ct,characterData:!Ct,attributeFilter:Ct?["wrap","cols","rows"]:[a.i,a.c,a.s]}),rt=!0)}function Cr(){ot&&rt&&(tt.disconnect(),nt.disconnect(),rt=!1)}function Sr(e){if(!R){var t=(e.originalEvent||e).touches!==n;(1===r.mBtn(e)||t)&&(rt&&(ht=!0,Cr()),sr=r.page(e),lr.w=K[0][a.oW]-(M?0:A),lr.h=K[0][a.oH]-(M?0:T),q.on(fn,Ir),q.on(sn,Or),q.on(an,zr),Y.addClass(er),oe.setCapture&&oe.setCapture(),r.prvD(e),r.stpP(e))}}function Or(e){e.originalEvent;var t=r.page(e),n={};(mt||yt)&&(n[Ut]=lr.w+t.x-sr.x),(xt||yt)&&(n[Bt]=lr.h+t.y-sr.y),K.css(n),r.stpP(e)}function zr(e){var t=e!==n;q.off(fn,Ir),q.off(sn,Or),q.off(an,zr),Y.removeClass(er),oe.releaseCapture&&oe.releaseCapture(),t&&(ht&&br(),wt.update(Vt)),ht=!1}function Hr(){if(!R){var e=!Le,t=kt.w-(M||ze||!ye?0:T+L),n=kt.h-(M||ze||!me?0:T+L),r={},o=ye||e,i=J[0];r[Pt+Ut]=_t,r[Pt+Bt]=_t,r[Ut]=Vt,J.css(r);var s=i[a.oW],l=o?Math.max(s,i[a.sW]-1):1;l+=ye?F+(M?0:e?0:A+E):0,r[Ut]=ye?l:Xt,r[Bt]=Vt,J.css(r);var c=i[a.oH],f=Math.max(c,i[a.sH]-1);return r[Ut]=l,r[Bt]=f,re.css(r),r[Pt+Ut]=t+(!M&&ye?A+E:0),r[Pt+Bt]=n+(!M&&me?T+L:0),J.css(r),{ow:s,oh:c,dw:l,dh:f}}}function Wr(){var e=J.prop("selectionStart");if(e!==n){for(var t=J.val(),r=t.length,o=t.split("\n"),i=o.length,a=t.substr(0,e).split("\n"),s=0,l=0,c=a.length,f=a[a.length-1].length,u=0;ul&&(s=u+1,l=v)}return{cursorRow:c,cursorCol:f,rows:i,cols:l,wRow:s,pos:e,max:r}}}function kr(e){for(var t=0;t-1&&ar.splice(n,1),0===ar.length&&(Hr(),wt.update(Vt),clearInterval(it))}}function Er(){setTimeout(function(){Hr(),wt.update(Vt)},50)}function Lr(){at=!0}function Fr(){at=!1,clearInterval(it),ar=[],Hr(),wt.update(Vt)}function Dr(e){return J[nn](p.i&&Ke?9999999:0),J[rn](0),r.prvD(e),r.stpP(e),!1}function Ir(e){return r.prvD(e),!1}function Rr(){return Ae&&C.x&&C.y}function Pr(e,t,n){var r=e?mn:xn,o=e?ie:le;t?K.removeClass(r):K.addClass(r),n?o.removeClass(qn):o.addClass(qn)}function Nr(e,t){if(clearTimeout(st),e)ie.removeClass(Xn),le.removeClass(Xn);else{var n="active",r=function(){if(!dt){var e=se.hasClass(n)||fe.hasClass(n);e||!ft&&!ut||ie.addClass(Xn),e||!ft&&!ut||le.addClass(Xn)}};lt>0&&!0!==t?st=setTimeout(r,lt):r()}}function Ur(e){var t={},n=qr(e),r=Math.min(1,(ue[n._wh]-(ze?e?A:T:0))/ve[n._wh]);r=isNaN(r)?0:r,t[n.wh]=Math.floor(100*r*1e5)/1e5+"%",Rr()||n.h.css(t),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function Br(e,t){var n=I&&e,r={},o=qr(e),i=ee[0][qt+o.WH]-ee[0]["client"+o.WH];p.n&&n&&(i*=-1);var a=t/i;a=isNaN(a)?0:Math.min(1,a),o.i.ms=i,o.i.cs=t,o.i.csr=a;var s=o.i.hl,l=o.t[0]["offset"+o.WH],c=(l-s)*a;if(c=isNaN(c)?0:c,n&&(p.n||!p.n&&!p.i)&&(c=l-s-c),c=Math.max(0,c),z){var f;n&&(c=-(l-s-c));var u="translate(",v="transform";f=e?u+c+"px, 0px)":u+"0px, "+c+"px)",r["-webkit-"+v]=f,r["-moz-"+v]=f,r["-ms-"+v]=f,r["-o-"+v]=f,r[v]=f}else r[o.lt]=c;Rr()||o.h.css(r),o.i.ho=c,o.i.tl=l}function jr(e,t){var n=t?"removeClass":"addClass",r=e?ce:fe,o=e?jn:Vn;(e?ae:se)[n](o),r[n](o)}function _r(){ie=c(Kt+Un+Zt+Zn+Qt),ae=c(Kt+Bn+Qt),se=c(Kt+_n+Qt),le=c(Kt+Un+Zt+$n+Qt),ce=c(Kt+Bn+Qt),fe=c(Kt+_n+Qt),ie.append(ae),ae.append(se),le.append(ce),ce.append(fe),$.after(le),$.after(ie),O&&(ie.on(un,function(e){e.target===ie[0]&&(Ur(!0),Br(!0,ee[nn]()))}),le.on(un,function(e){e.target===le[0]&&(Ur(!1),Br(!1,ee[rn]()))})),Vr(!0),Vr(!1),oe=c(Kt+Zt+Yn+Qt),K.append(oe)}function Vr(e){var t,o,i,a=qr(e),s=a.xy,l=qt+a.LT,c="active",f=1,u=function(){f=.5},v=function(){f=1},d=function(n){n.originalEvent;var i=a.i.tl,c=a.i.hl,f=a.i.ms*((c/2+r.page(n)[s]-o-c/2)/(i-c));f=isFinite(f)?f:0,I&&e&&(p.n||!p.n&&!p.i)&&(f*=-1),ee[l](t+f),H||r.prvD(n)},h=function(e){e=e||e.originalEvent,Y.removeClass(er),a.h.removeClass(c),a.t.removeClass(c),a.s.removeClass(c),H?(ur(q,sn,d),ur(q,an,h),ur(q,ln,y),ur(q,cn,m),ur(q,fn,Ir)):(q.off(sn,d),q.off(an,h),q.off(ln,y),q.off(cn,m),q.off(fn,Ir)),v(),t=n,o=n,i!==n&&(wt.scrollStop(),clearTimeout(i),i=n);var r=K[0].getBoundingClientRect();e.clientX>=r.left&&e.clientX<=r.right&&e.clientY>=r.top&&e.clientY<=r.bottom||Yr(),ft&&Nr(!1)},y=function(e){16==e.keyCode&&u()},m=function(e){16==e.keyCode&&v()};a.h.on(on,function(i){if(!R){var f=(i.originalEvent||i).touches!==n;Rr()||!Ye||f&&!vt||(1===r.mBtn(i)||f)&&(t=(t=ee[l]())===n?0:t,(I&&e&&!p.n||!I)&&(t=t<0?0:t),o=r.page(i)[s],Y.addClass(er),a.h.addClass(c),a.s.addClass(c),H?(fr(q,fn,Ir),fr(q,sn,d),fr(q,an,h)):(q.on(fn,Ir),q.on(sn,d),q.on(an,h)),r.prvD(i))}}),a.t.on(on,function(t){if(!R){var l=(t.originalEvent||t).touches!==n;if(!Rr()&&Xe&&(!l||vt)&&(1===r.mBtn(t)||l)){var v,d=kt[a._wh],x=a.t.offset()[a.lt],w=!0;t.shiftKey&&u();var g=function(){var t=a.i.ho,r=a.i.hl,s=o-x,l=200*f,c=w?Math.max(333,l):l,u={},h=I&&e&&(!p.i&&!p.n||Ke),y=t>s;h&&(y=t=s;h&&(m=v?t+r>=s:t<=s),m?(clearTimeout(i),wt.scrollStop(),i=n):i=setTimeout(g,c),w=!1};o=r.page(t)[s],Y.addClass(er),a.t.addClass(c),a.s.addClass(c),H?(fr(q,fn,Ir),fr(q,an,h),fr(q,ln,y),fr(q,cn,m)):(q.on(fn,Ir),q.on(an,h),q.on(ln,y),q.on(cn,m)),g(),r.prvD(t)}}}).hover(function(){ft&&(dt=!0,Nr(!0))},function(){ft&&(dt=!1,Nr(!1))}),a.s.on(on,function(e){r.stpP(e)})}function qr(e){return{wh:e?Ut:Bt,WH:e?"Width":"Height",lt:e?Rt:Ft,LT:e?"Left":"Top",xy:e?Yt:Jt,XY:e?"X":"Y",_wh:e?"w":"h",_lt:e?"l":"t",t:e?ae:ce,h:e?se:fe,s:e?ie:le,i:e?Ht:Wt}}function Xr(){ut&&Nr(!0)}function Yr(){ut&&!Y.hasClass(er)&&Nr(!1)}function Jr(e){if(!R){var t=B.callbacks,r=t.onScrollStart,o=t.onScroll,i=t.onScrollStop;P!==n?clearTimeout(P):(ft&&Nr(!0),Rr()||K.addClass(Cn),c.isFunction(r)&&wr(r,e)),Br(!0,ee[nn]()),Br(!1,ee[rn]()),c.isFunction(o)&&wr(o,e),P=setTimeout(function(){Kr(e),c.isFunction(i)&&wr(i,e)},Mt)}}function Kr(){clearTimeout(P),P=n,ft&&Nr(!1),Rr()||K.removeClass(Cn)}function Qr(e){return typeof HTMLElement===i.o?e instanceof HTMLElement:e&&typeof e===i.o&&null!==e&&1===e.nodeType&&typeof e.nodeName===i.s}function Gr(e,t,r,o){var a,s,l,u,v,d={n:t,s:!1,v:n,p:n},h=i.u,p=f.has(e,t),y=f.get(e,t),m=!1,x=!0!==p,w="*",g=!1;for(c.type(r)!==i.a&&(r=[r]),v=r.length,s=0;s1){var C=0;for(u=0;u1)break}1===C&&(g=!0)}else g=!0;b===n&&(m=!0)}if(x&&!1===p&&m&&(x=!1),!x){a=y,h=c.type(a);var O=function(e){var t=c.type(e);return t===h&&(t!==i.s||(!!g||a===e))&&(d.s=!0,d.v=a,d.p=a,!0)};for(s=0;s-1&&i.splice(f,1);for(var u=0;u0&>&&i-j0?K.addClass(ce):K.addClass(tr)),it&&(!0===ot?(Cr(),d.add(wt)):null===ot&&y?(Cr(),d.add(wt)):(d.remove(wt),br())),_e)if(je)if(Z===n&&(Z=c(Kt+Fn+Qt),$.before(Z)),Ot)Q.show();else{Q=c(Kt+Dn+Qt),Z.before(Q);var Mt={w:-1,h:-1};hr(Q,function(){var e={w:Q[0][a.oW],h:Q[0][a.oH]};mr(e,Mt)&&(gt&&me&&e.h>0||ye&&e.w>0?co():(gt&&!me&&0===e.h||!ye&&0===e.w)&&co()),Mt=e}),Ot=!0,null!==w&&Q.css(Bt,w+"(100% + 1px)")}else Ot&&Q.hide();o&&(G.find("*").trigger(qt),Ot&&Q.find("*").trigger(qt));var At,Gt=K.css("direction"),Zt=yr(Gt,Se,o),$t=K.css("box-sizing"),en=yr($t,we,o),tn={c:o,t:ao(K.css(Et+Ft)),r:ao(K.css(Et+Dt)),b:ao(K.css(Et+It)),l:ao(K.css(Et+Rt))};try{At=Ot?Q[0].getBoundingClientRect():null}catch(Io){return}M="border-box"===$t;var an=(I="rtl"===Gt)?Rt:Dt,sn=I?Dt:Rt,ln=K[0],cn=$[0],fn=!1,un=!(!Ot||"none"===K.css(jt))&&(0===Math.round(At.right-At.left)&&(!!Pe||ln[a.cW]-A>0));if(je&&!un){var vn=ln[a.oW],dn=Z.css(Ut);Z.css(Ut,Vt);var hn=ln[a.oW];Z.css(Ut,dn),(fn=vn!==hn)||(Z.css(Ut,vn+1),hn=ln[a.oW],Z.css(Ut,dn),fn=vn!==hn)}var pn=(un||fn)&&je,yn=yr(pn,ye,o),mn=!pn&&ye,xn=!!Ot&&0===Math.round(At.bottom-At.top),wn=yr(xn,me,o),Hn=!xn&&me,Wn="-"+Ut,kn=pn&&M||!M,Mn=xn&&M||!M,An={c:o,t:Mn?ao(K.css(Lt+Ft+Wn)):0,r:kn?ao(K.css(Lt+Dt+Wn)):0,b:Mn?ao(K.css(Lt+It+Wn)):0,l:kn?ao(K.css(Lt+Rt+Wn)):0},Tn={c:o,t:ao(K.css(Tt+Ft)),r:ao(K.css(Tt+Dt)),b:ao(K.css(Tt+It)),l:ao(K.css(Tt+Rt))},En={h:String(K.css(Nt+Bt)),w:String(K.css(Nt+Ut))},In={},Rn={};if(A=tn.l+tn.r,T=t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t||Wt||o){var Bn="overflow",jn=Bn+"-x",_n=Bn+"-y",Vn="hidden",qn="visible",Xn=!!k&&(C.x||C.y||kt.w0&&(Rn[Ut]=Math.max(1,Rn[Ut]),Rn[Bt]=Math.max(1,Rn[Bt])),Ct&&re.css(zr),Z.css(Rn)}pn&&(In[Ut]=Xt),!pn||M||rt||(In[jt]="none"),ne.css(In),In={};var kr=er.getBoundingClientRect(),Mr={w:Math.max(er[a.sW],or[a.sW]),h:Math.max(er[a.sH],or[a.sH])};if(Xn&&ne.css(Bn,_t),kr.width!==n){var Ar=kr.width,Tr=kr.height,Er=.001;Mr.w+=ao(Ar+Er)-Ar,Mr.h+=ao(Tr+Er)-Tr}Mr.c=t=mr(Mr,ve,o),ve=Mr,e=mr(lr={w:ln[a.cW],h:ln[a.cH]},ue),ue=lr,kt={w:cn[a.oW],h:cn[a.oH]};var Lr={x:"v-s"===st.x,y:"v-s"===st.y},Fr={x:"v-h"===st.x,y:"v-h"===st.y},Dr={x:"s"===st.x,y:"s"===st.y},Ir={x:Math.max(0,Mr.w-lr.w+(Pe?A:0)),y:Math.max(0,Mr.h-lr.h+(Pe?T:0))},Rr=Ct&&(0===kt.w||0===kt.h);Rr&&(Ir.x=0,Ir.y=0);var _r={x:Ir.x>0,y:Ir.y>0},Vr={x:_r.x,y:_r.y};(Lr.x||Fr.x)&&(Vr.x=_r.y&&!Lr.y&&!Fr.y),(Lr.y||Fr.y)&&(Vr.y=_r.x&&!Lr.x&&!Fr.x),Vr.xs=!!Vr.x&&(Dr.x||Lr.x),Vr.ys=!!Vr.y&&(Dr.y||Lr.y);var qr={x:_r.x&&Vr.xs,y:_r.y&&Vr.ys},Jr=Me;if(Ir.c=mr(Ir,Me,Yt,Jt,o),Me=Ir,_r.c=mr(_r,he,Yt,Jt,o),he=_r,Vr.c=mr(Vr,pe,Yt,Jt,o),pe=Vr,C.x||C.y){var Kr=o,Qr={};if((_r.x||_r.y)&&(Qr.w=C.y&&_r.y?Mr.w+S.y:_t,Qr.h=C.x&&_r.x?Mr.h+S.x:_t,Kr=yr(Qr,de,o),de=Qr),_r.c||Vr.c||Mr.c||Zt||yn||wn||pn||xn||nt){var Gr="px solid transparent";In[Lt+sn]=_t,In[Tt+sn]=_t,C.x&&_r.x&&Vr.xs?(xn&&(In[Tt+It]=tt?_t:S.x),In[Lt+It]=xn||tt?_t:S.x+Gr):(Qr.h=_t,Kr=!0,In[Lt+It]=_t,In[Tt+It]=_t),C.y&&_r.y&&Vr.ys?(pn&&(In[Tt+an]=tt?_t:S.y),In[Lt+an]=tt?_t:S.y+Gr):(Qr.w=_t,Kr=!0,In[Lt+an]=_t,In[Tt+an]=_t)}if(tt&&(Qr.w=_t,Qr.h=_t,Kr=!0),Kr){var $r={};$r[Ut]=Vr.y?Qr.w:_t,$r[Bt]=Vr.x?Qr.h:_t,te===n&&(te=c(Kt+Ln+Qt),ee.prepend(te)),te.css($r)}ne.css(In)}var eo={};Pn={};if(e||_r.c||Vr.c||Mr.c||dt||en||nt||Zt||Be||wn){eo[sn]=_t;var to=function(){eo[It]=_t,zt.h=0},no=function(){eo[an]=_t,zt.w=0};if(_r.x&&Vr.xs?(eo[jn]=qt,tt?to():(eo[It]=-(C.x?S.x:g.x),zt.h=C.x?S.y:0)):(eo[jn]=_t,to()),_r.y&&Vr.ys?(eo[_n]=qt,tt?no():(eo[an]=-(C.y?S.y:g.y),zt.w=C.y?S.x:0)):(eo[_n]=_t,no()),(kt.h-1,Do=Lo.y>-1;(Fo||Do)&&(Do&&ee[rn](Lo.y),Fo&&(I&&Ke&&p.i?ee[nn](0):ee[nn](Lo.x)))}Fe=Oo}else Ct||(I&&p.i&&C.y&&_r.x&&Ke&&(f.l+=zt.w),ee[nn](f.l),ee[rn](f.t));Zt&&c.isFunction(P)&&wr(P,{isRTL:I,dir:Gt}),e&&c.isFunction(U)&&wr(U,{width:ue.w,height:ue.h}),t&&c.isFunction(N)&&wr(N,{width:ve.w,height:ve.h}),(_r.c||Vr.c)&&c.isFunction(z)&&wr(z,{x:_r.x,y:_r.y,xScrollable:Vr.xs,yScrollable:Vr.ys,clipped:Vr.x||Vr.y}),Ir.c&&c.isFunction(W)&&wr(W,{x:Ir.x,y:Ir.y})}St&&(_r.c||et.c)&&(et.f||Zr(),C.y&&_r.x&&ne.css(Pt+Ut,et.w+S.y),C.x&&_r.y&&ne.css(Pt+Bt,et.h+S.x),et.c=!1),dr(G),dr(Q),c.isFunction(O)&&wr(O,{forced:o})}}function fo(e,t){N=v.defaultOptions,x=v.nativeScrollbarStyling,g=c.extend(!0,{},v.nativeScrollbarSize),C=c.extend(!0,{},v.nativeScrollbarIsOverlaid),S=c.extend(!0,{},v.overlayScrollbarDummySize),p=c.extend(!0,{},v.rtlScrollBehavior),ro(c.extend(!0,{},N,t));var n,o=B.callbacks;if(C.x&&C.x&&!B.nativeScrollbarsOverlaid.initialize){var i=o.onInitializationWithdrawn;return c.isFunction(i)&&wr(i),!1}if(w=v.cssCalc,m=v.msie,y=v.autoUpdateRecommended,O=v.supportTransition,z=v.supportTransform,H=v.supportPassiveEvents,W=v.supportResizeObserver,ot=v.supportMutationObserver,k=v.restrictedMeasuring,q=c(e.ownerDocument),V=c(q[0].defaultView||q[0].parentWindow),X=q.find("html").first(),Y=X.find("body").first(),J=c(e),Ct=J.is("textarea"),(St=J.is("body"))&&((n={}).l=Math.max(J[nn](),X[nn](),V[nn]()),n.t=Math.max(J[rn](),X[rn](),V[rn]())),Ct){J.wrap(Kt+yn+Qt),J.addClass(Hn).addClass(Nn),K=J.parent();var s={};B.sizeAutoCapable||(s[Ut]=J.css(Ut),s[Bt]=J.css(Bt)),K.css(s),K.wrapInner(Kt+En+Zt+Nn+Qt).wrapInner(Kt+Mn+Zt+Nn+Qt).wrapInner(Kt+kn+Zt+Nn+Qt),ne=K.find(Gt+En).first(),ee=K.find(Gt+Mn).first(),$=K.find(Gt+kn).first(),re=c(Kt+Wn+Qt),ne.prepend(re),J.on(qt,Dr),J.on("drop",Er),J.on("focus",Lr),J.on("focusout",Fr),m>9||!y?J.on("input",Mr):(J.on(ln,Ar),J.on(cn,Tr))}else J.addClass(pn),(K=J).wrapInner(Kt+En+Qt).wrapInner(Kt+Mn+Qt).wrapInner(Kt+kn+Qt),ne=K.find(Gt+En).first(),ee=K.find(Gt+Mn).first(),$=K.find(Gt+kn).first(),ne.on(un,function(e){!0!==Te&&so((e=e.originalEvent||e).propertyName)&&co(Vt)});if(_r(),H?fr(ee,qt,Jr):ee.on(qt,Jr),x&&(C.x&&C.y?ee.addClass(Tn):ee.addClass(An)),ot){var l,f=r.mO(),u=r.now();tt=new f(function(e){if(gt&&!R){var t=!1;c.each(e,function(){var e=this,n=this.target,r=e.attributeName;if(t=r===a.c?to(e.oldValue,n.className):r!==a.s||e.oldValue!==n.style.cssText)return!1}),t&&wt.update(Vt)}}),nt=new f(function(e){if(gt&&!R){for(var t=!1,n=0;nor||!i?a():l=setTimeout(a,or)}}})}St&&(X.addClass(hn),ee[nn](n.l),ee[rn](n.t)),G=c(Kt+"os-resize-observer-host"+Qt),K.prepend(G),hr(G,cr),cr(),wt.update(Vt),setTimeout(function(){O&&!bt&&K.addClass(wn)},333),gt=!0;var d=o.onInitialized;return c.isFunction(d)&&wr(d),gt}}e[o]=function(e,t){if(0===arguments.length)return this;h();var r,o=[];return c.isPlainObject(t)?e&&e.length?e.length>1?(c.each(e,function(){(r=this)!==n&&o.push(m(r,t,u,v))}),o):m(e[0],t,u,v):m(e,t,u,v):e?e.length&&e.length>0?e.length>1?(c.each(e,function(){r=l.get(this),"!"===t?r!==n&&o.push(r):o.push(r)}),o):l.get(e[0]):l.get(e):void 0},e[o].globals=function(){h();var e=c.extend(!0,{},u);return delete e.msie,e},e[o].defaultOptions=function(e){h();var t=u.defaultOptions;if(e===n)return c.extend(!0,{},t);u.defaultOptions=c.extend(!0,{},t,e)}}(s,c,l,f);return e[o]}); \ No newline at end of file diff --git a/sites/all/themes/custom/edlptheme/assets/dist/bower/masonry.pkgd.min.js b/sites/all/themes/custom/edlptheme/assets/dist/bower/masonry.pkgd.min.js new file mode 100644 index 000000000..d7f84ef16 --- /dev/null +++ b/sites/all/themes/custom/edlptheme/assets/dist/bower/masonry.pkgd.min.js @@ -0,0 +1,9 @@ +/*! + * Masonry PACKAGED v4.2.1 + * Cascading grid layout library + * https://masonry.desandro.com + * MIT License + * by David DeSandro + */ + +!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;oe;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);r.isBoxSizeOuter=s=200==t(o.width),i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}); \ No newline at end of file diff --git a/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js b/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js index 570a0ddf9..2a17ebd89 100644 --- a/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js +++ b/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js @@ -36,6 +36,9 @@ edlp_vars = { _$body.on('corpus-map-ready', onCorpusMapReady); initScrollbars(); initAjaxLinks(); + if (_$body.is('.path-productions')) { + initProductions(); + } }; // ___ _ _ ___ @@ -105,6 +108,7 @@ edlp_vars = { _$body.removeClass('ajax-loading'); // add body class for currently loaded content _$body.removeClass().addClass('path-'+sys_path.replace(/\//g, '-')); + // id node add a generic path-node class to body m = sys_path.match(/^\/?(edlp\/node\/\d+)$/g); if(m){ @@ -112,10 +116,20 @@ edlp_vars = { } _$ajaxLinks.removeClass('is-active'); $link.removeClass('ajax-loading').addClass('is-active'); + initScrollbars(); + console.log(sys_path); + if(sys_path == "productions"){ + window.requestAnimationFrame(initProductions); + } + }; - // corpus + // ___ + // / __|___ _ _ _ __ _ _ ___ + // | (__/ _ \ '_| '_ \ || (_-< + // \___\___/_| | .__/\_,_/__/ + // |_| function onCorpusMapReady(e){ console.log('theme : onCorpusReady'); _$corpus_map = $('canvas#corpus-map'); @@ -125,7 +139,34 @@ edlp_vars = { }); } - //modals + // ___ _ _ _ + // | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___ + // | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-< + // |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/ + function initProductions(){ + console.log('theme : initProductions'); + var $grid = $('.row', _$content_container).masonry({ + itemSelector:'.col', + columnWidth:'.col-2' + }); + + // layout Masonry after each image loads + $grid.imagesLoaded().progress( function() { + $grid.masonry('layout'); + }); + // var $grid = $('.row', _$content_container).imagesLoaded( function() { + // // init Masonry after all images have loaded + // $grid.masonry({ + // itemSelector:'.col', + // columnWidth:'.col-2' + // }); + // }); + }; + + // __ __ _ _ + // | \/ |___ __| |__ _| |___ + // | |\/| / _ \/ _` / _` | (_-< + // |_| |_\___/\__,_\__,_|_/__/ function closeAllModals(){ console.log('theme : closeAllModals'); // TODO: animate the remove @@ -136,8 +177,7 @@ edlp_vars = { }; init(); - } - + } // end EdlpTheme() $(document).ready(function($) { var edlptheme = new EdlpTheme(); diff --git a/sites/all/themes/custom/edlptheme/assets/dist/styles/app.min.css b/sites/all/themes/custom/edlptheme/assets/dist/styles/app.min.css index dba7ba177..7cad28a30 100644 --- a/sites/all/themes/custom/edlptheme/assets/dist/styles/app.min.css +++ b/sites/all/themes/custom/edlptheme/assets/dist/styles/app.min.css @@ -53,7 +53,7 @@ a:focus { .med-col-1:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-1 { padding-left: 0em; padding-right: 1em; @@ -92,7 +92,7 @@ a:focus { .med-col-2:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-2 { padding-left: 0em; padding-right: 1em; @@ -131,7 +131,7 @@ a:focus { .med-col-3:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-3 { padding-left: 0em; padding-right: 1em; @@ -170,7 +170,7 @@ a:focus { .med-col-4:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-4 { padding-left: 0em; padding-right: 1em; @@ -209,7 +209,7 @@ a:focus { .med-col-5:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-5 { padding-left: 0em; padding-right: 1em; @@ -248,7 +248,7 @@ a:focus { .med-col-6:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-6 { padding-left: 0em; padding-right: 1em; @@ -287,7 +287,7 @@ a:focus { .med-col-7:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-7 { padding-left: 0em; padding-right: 1em; @@ -326,7 +326,7 @@ a:focus { .med-col-8:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-8 { padding-left: 0em; padding-right: 1em; @@ -365,7 +365,7 @@ a:focus { .med-col-9:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-9 { padding-left: 0em; padding-right: 1em; @@ -404,7 +404,7 @@ a:focus { .med-col-10:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-10 { padding-left: 0em; padding-right: 1em; @@ -443,7 +443,7 @@ a:focus { .med-col-11:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-11 { padding-left: 0em; padding-right: 1em; @@ -482,7 +482,7 @@ a:focus { .med-col-12:last-child { padding-right: 0; } } -@media only screen and (min-width: 1081px) and (max-width: 1900px) { +@media only screen and (min-width: 1081px) { .large-col-12 { padding-left: 0em; padding-right: 1em; @@ -1232,10 +1232,11 @@ main[role="main"] .layout-content { height: 100%; overflow: hidden; } main[role="main"] .layout-content .row .col { - pointer-events: all; - max-height: 100%; + pointer-events: none; + height: 100%; position: relative; } main[role="main"] .layout-content .row .col > .wrapper { + pointer-events: all; position: relative; -webkit-box-sizing: border-box; box-sizing: border-box; @@ -1279,7 +1280,7 @@ body.ajax-loading main[role="main"]:before { background-position: center; border-radius: 30px; } -body.path-agenda main .col, body.path-agenda main .col > .wrapper { +body.path-agenda main .col > .wrapper { height: 100%; } #agenda { @@ -1304,6 +1305,42 @@ body.path-agenda main .col, body.path-agenda main .col > .wrapper { font-weight: normal; text-transform: uppercase; } +body.path-productions .layout-content .row { + white-space: normal; } + body.path-productions .layout-content .row .col { + height: auto; } + body.path-productions .layout-content .row .col.col-2:last-child { + padding-left: 0em; + padding-right: 1em; } + body.path-productions .layout-content .row .col > .wrapper { + margin-bottom: 1em; + padding: 0; } + body.path-productions .layout-content .row .col > .wrapper > * { + padding: 0; } + body.path-productions .layout-content .row .col > .wrapper article.node .field--name-field-visuel a, body.path-productions .layout-content .row .col > .wrapper article.node .field--name-field-visuel img { + display: block; + width: 100%; + height: auto; } + body.path-productions .layout-content .row .col > .wrapper article.node header { + background-color: rgba(255, 255, 255, 0.95); + padding: 0.5em 1em; } + body.path-productions .layout-content .row .col > .wrapper article.node header h2.node-title { + margin: 0; } + body.path-productions .layout-content .row .col > .wrapper article.node header p { + margin: 0; } + body.path-productions .layout-content .row .col > .wrapper article.node.node--view-mode-image-2-columns header { + position: absolute; + bottom: 0; + left: 0; } + body.path-productions .layout-content .row .col > .wrapper article.node.node--view-mode-image-2-columns header h2.node-title { + font-size: 1.6em; + font-weight: 500; } + body.path-productions .layout-content .row .col > .wrapper article.node.node--view-mode-image-1-columns h2.node-title { + font-size: 1.2em; + font-weight: 500; } + body.path-productions .layout-content .row .col > .wrapper article.node.node--view-mode-text-1-column { + padding: 0 1em; } + footer { display: table; padding: 0 0 0.5em 0; } diff --git a/sites/all/themes/custom/edlptheme/assets/scripts/main.js b/sites/all/themes/custom/edlptheme/assets/scripts/main.js index c26745810..f3de1bc49 100644 --- a/sites/all/themes/custom/edlptheme/assets/scripts/main.js +++ b/sites/all/themes/custom/edlptheme/assets/scripts/main.js @@ -13,6 +13,9 @@ _$body.on('corpus-map-ready', onCorpusMapReady); initScrollbars(); initAjaxLinks(); + if (_$body.is('.path-productions')) { + initProductions(); + } }; // ___ _ _ ___ @@ -82,6 +85,7 @@ _$body.removeClass('ajax-loading'); // add body class for currently loaded content _$body.removeClass().addClass('path-'+sys_path.replace(/\//g, '-')); + // id node add a generic path-node class to body m = sys_path.match(/^\/?(edlp\/node\/\d+)$/g); if(m){ @@ -89,10 +93,20 @@ } _$ajaxLinks.removeClass('is-active'); $link.removeClass('ajax-loading').addClass('is-active'); + initScrollbars(); + console.log(sys_path); + if(sys_path == "productions"){ + window.requestAnimationFrame(initProductions); + } + }; - // corpus + // ___ + // / __|___ _ _ _ __ _ _ ___ + // | (__/ _ \ '_| '_ \ || (_-< + // \___\___/_| | .__/\_,_/__/ + // |_| function onCorpusMapReady(e){ console.log('theme : onCorpusReady'); _$corpus_map = $('canvas#corpus-map'); @@ -102,7 +116,34 @@ }); } - //modals + // ___ _ _ _ + // | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___ + // | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-< + // |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/ + function initProductions(){ + console.log('theme : initProductions'); + var $grid = $('.row', _$content_container).masonry({ + itemSelector:'.col', + columnWidth:'.col-2' + }); + + // layout Masonry after each image loads + $grid.imagesLoaded().progress( function() { + $grid.masonry('layout'); + }); + // var $grid = $('.row', _$content_container).imagesLoaded( function() { + // // init Masonry after all images have loaded + // $grid.masonry({ + // itemSelector:'.col', + // columnWidth:'.col-2' + // }); + // }); + }; + + // __ __ _ _ + // | \/ |___ __| |__ _| |___ + // | |\/| / _ \/ _` / _` | (_-< + // |_| |_\___/\__,_\__,_|_/__/ function closeAllModals(){ console.log('theme : closeAllModals'); // TODO: animate the remove @@ -113,8 +154,7 @@ }; init(); - } - + } // end EdlpTheme() $(document).ready(function($) { var edlptheme = new EdlpTheme(); diff --git a/sites/all/themes/custom/edlptheme/assets/styles/app.scss b/sites/all/themes/custom/edlptheme/assets/styles/app.scss index 01b179c2f..892630d23 100644 --- a/sites/all/themes/custom/edlptheme/assets/styles/app.scss +++ b/sites/all/themes/custom/edlptheme/assets/styles/app.scss @@ -116,10 +116,11 @@ main[role="main"]{ height:100%; overflow: hidden; .col{ - pointer-events:all; - max-height: 100%; + pointer-events: none; + height: 100%; position: relative; &>.wrapper{ + pointer-events:all; position: relative; box-sizing: border-box; border-top: 1px solid red; @@ -162,8 +163,26 @@ main[role="main"]{ border-radius: $s/2; } } + + + // _ _ _ _ _ + // /_\ (_)__ ___ __ | \| |___ __| |___ + // / _ \ | / _` \ \ / | .` / _ \/ _` / -_) + // /_/ \_\/ \__,_/_\_\ |_|\_\___/\__,_\___| + // |__/ +// body.path-edlp-node main{ +// main .col>.wrapper, .edlp-ajax-node{ +// height: 100%; +// } +// } + +// _ _ +// /_\ __ _ ___ _ _ __| |__ _ +// / _ \/ _` / -_) ' \/ _` / _` | +// /_/ \_\__, \___|_||_\__,_\__,_| +// |___/ body.path-agenda main .col{ - &, &>.wrapper{ + &>.wrapper{ height:100%; } } @@ -192,8 +211,71 @@ body.path-agenda main .col{ } } -// Footer +// ___ _ _ _ +// | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___ +// | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-< +// |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/ +body.path-productions{ + .layout-content .row{ + white-space: normal; + .col{ + height:auto; + &.col-2:last-child{ + padding-left: 0em; + padding-right: 1em; + } + >.wrapper{ + margin-bottom: 1em; + padding:0; + >*{ + padding:0; + } + + article.node{ + .field--name-field-visuel{ + a,img{ + display: block; + width: 100%; height:auto; + } + } + header{ + background-color: rgba(255,255,255,0.95); + padding:0.5em 1em; + h2.node-title{ + margin:0; + } + p{margin: 0;} + } + + &.node--view-mode-image-2-columns{ + header{ + position: absolute; + bottom: 0; left:0; + h2.node-title{ + font-size: 1.6em; + font-weight: 500; + } + } + } + &.node--view-mode-image-1-columns{ + h2.node-title{ + font-size: 1.2em; + font-weight: 500; + } + } + &.node--view-mode-text-1-column{ + padding:0 1em; + } + } + } + } + } +} +// ___ _ +// | __|__ ___| |_ ___ _ _ +// | _/ _ \/ _ \ _/ -_) '_| +// |_|\___/\___/\__\___|_| @mixin oblique-list { display: inline-block; position: relative; diff --git a/sites/all/themes/custom/edlptheme/assets/styles/base/_grid.scss b/sites/all/themes/custom/edlptheme/assets/styles/base/_grid.scss index f66dfbe46..36132facb 100644 --- a/sites/all/themes/custom/edlptheme/assets/styles/base/_grid.scss +++ b/sites/all/themes/custom/edlptheme/assets/styles/base/_grid.scss @@ -5,7 +5,7 @@ $default_sum: 12; $small-bp:768px; $med-bp:1080px; -$large-bp:1900px; +// $large-bp:1900px; @mixin row() { font-size: 0; @@ -59,7 +59,7 @@ $large-bp:1900px; // large .large-col-#{$c} { - @media only screen and (min-width: $med-bp+1) and (max-width: $large-bp) { + @media only screen and (min-width: $med-bp+1) { @include col($c); } } diff --git a/sites/all/themes/custom/edlptheme/assets/styles/base/_shared_variables.scss b/sites/all/themes/custom/edlptheme/assets/styles/base/_shared_variables.scss index 41a84095e..5dadaec14 100644 --- a/sites/all/themes/custom/edlptheme/assets/styles/base/_shared_variables.scss +++ b/sites/all/themes/custom/edlptheme/assets/styles/base/_shared_variables.scss @@ -1,19 +1,19 @@ -$e_col_130: rgb(126, 8, 104); -$e_col_121: rgb(58, 51, 182); -$e_col_134: rgb(43, 143, 47); -$e_col_125: rgb(44, 159, 87); -$e_col_119: rgb(196, 137, 120); -$e_col_132: rgb(82, 112, 187); -$e_col_122: rgb(251, 84, 211); -$e_col_129: rgb(224, 116, 131); -$e_col_120: rgb(101, 88, 69); -$e_col_118: rgb(14, 113, 33); -$e_col_127: rgb(218, 189, 66); -$e_col_133: rgb(3, 153, 187); -$e_col_128: rgb(57, 154, 28); -$e_col_124: rgb(112, 133, 64); -$e_col_116: rgb(25, 27, 255); -$e_col_117: rgb(39, 157, 132); -$e_col_131: rgb(82, 25, 171); -$e_col_126: rgb(212, 156, 182); -$e_col_123: rgb(73, 119, 21); +$e_col_130: rgb(126, 8, 104); +$e_col_121: rgb(58, 51, 182); +$e_col_134: rgb(43, 143, 47); +$e_col_125: rgb(44, 159, 87); +$e_col_119: rgb(196, 137, 120); +$e_col_132: rgb(82, 112, 187); +$e_col_122: rgb(251, 84, 211); +$e_col_129: rgb(224, 116, 131); +$e_col_120: rgb(101, 88, 69); +$e_col_118: rgb(14, 113, 33); +$e_col_127: rgb(218, 189, 66); +$e_col_133: rgb(3, 153, 187); +$e_col_128: rgb(57, 154, 28); +$e_col_124: rgb(112, 133, 64); +$e_col_116: rgb(25, 27, 255); +$e_col_117: rgb(39, 157, 132); +$e_col_131: rgb(82, 25, 171); +$e_col_126: rgb(212, 156, 182); +$e_col_123: rgb(73, 119, 21); diff --git a/sites/all/themes/custom/edlptheme/bower.json b/sites/all/themes/custom/edlptheme/bower.json index dcfe210c7..d1bfe4626 100644 --- a/sites/all/themes/custom/edlptheme/bower.json +++ b/sites/all/themes/custom/edlptheme/bower.json @@ -16,6 +16,8 @@ "dependencies": { "history.js": "latest", "jquery.hotkeys": "latest", - "overlayScrollbars": "latest" + "overlayScrollbars": "latest", + "masonry-layout": "latest", + "imagesloaded": "latest" } } diff --git a/sites/all/themes/custom/edlptheme/edlptheme.libraries.yml b/sites/all/themes/custom/edlptheme/edlptheme.libraries.yml index cfeed9da2..e5de614c5 100644 --- a/sites/all/themes/custom/edlptheme/edlptheme.libraries.yml +++ b/sites/all/themes/custom/edlptheme/edlptheme.libraries.yml @@ -12,6 +12,8 @@ global-js: assets/dist/bower/jquery.history.js: { scope: footer } assets/dist/bower/jquery.hotkeys.js: { scope: footer } assets/dist/bower/jquery.overlayScrollbars.min.js: { scope: footer } + assets/dist/bower/imagesloaded.pkgd.min.js: { scope: footer } + assets/dist/bower/masonry.pkgd.min.js: { scope: footer } assets/dist/scripts/main.min.js: { scope: footer } dependencies: - core/drupal diff --git a/sites/all/themes/custom/edlptheme/edlptheme.theme b/sites/all/themes/custom/edlptheme/edlptheme.theme index 9b1ab1c04..ed32d44af 100644 --- a/sites/all/themes/custom/edlptheme/edlptheme.theme +++ b/sites/all/themes/custom/edlptheme/edlptheme.theme @@ -24,3 +24,21 @@ function edlptheme_form_user_login_form_alter(&$form, FormStateInterface $form_s $form['pass']['#attributes']['placeholder'] = (string) $form['pass']['#title']; unset($form['pass']['#title']); } + +function edlptheme_preprocess_edlp_productions(&$vars){ + foreach($vars['nodes'] as &$node){ + switch($node['vm']){ + case "image_2_columns": + $cols = 4; + break; + case "image_1_columns": + $cols = 2; + break; + case "text_1_column": + $cols = 2; + break; + }; + $node['cols'] = $cols; + } + // dpm($vars); +} diff --git a/sites/all/themes/custom/edlptheme/gulpfile.js b/sites/all/themes/custom/edlptheme/gulpfile.js index 7b5832e12..4f2dd657b 100644 --- a/sites/all/themes/custom/edlptheme/gulpfile.js +++ b/sites/all/themes/custom/edlptheme/gulpfile.js @@ -86,15 +86,23 @@ gulp.task('bower', function() { "history.js":{ "main":"./scripts/bundled/html4+html5/jquery.history.js" }, - "jquery":{ - "ignore":true - }, "overlayScrollbars":{ "main":[ "./js/jquery.overlayScrollbars.min.js", "./css/OverlayScrollbars.min.css" ] - } + }, + "masonry-layout":{ + "main":"./dist/masonry.pkgd.min.js" + }, + "imagesloaded":{ + "main":"./imagesloaded.pkgd.min.js" + }, + "jquery":{"ignore":true}, + "ev-emitter":{"ignore":true}, + "fizzy-ui-utils":{"ignore":true}, + "get-size":{"ignore":true}, + "outlayer":{"ignore":true}, } })) .pipe(gulp.dest('./assets/dist/bower/')); diff --git a/sites/all/themes/custom/edlptheme/templates/content/edlp-ajax-node.html.twig b/sites/all/themes/custom/edlptheme/templates/content/edlp-ajax-node.html.twig index 05542000f..48341725b 100644 --- a/sites/all/themes/custom/edlptheme/templates/content/edlp-ajax-node.html.twig +++ b/sites/all/themes/custom/edlptheme/templates/content/edlp-ajax-node.html.twig @@ -1,5 +1,5 @@
-
+
{{ node }}
diff --git a/sites/all/themes/custom/edlptheme/templates/content/edlp-productions.html.twig b/sites/all/themes/custom/edlptheme/templates/content/edlp-productions.html.twig new file mode 100644 index 000000000..183918273 --- /dev/null +++ b/sites/all/themes/custom/edlptheme/templates/content/edlp-productions.html.twig @@ -0,0 +1,9 @@ +
+ {% for node in nodes %} +
+
+ {{ node.build }} +
+
+ {% endfor %} +
diff --git a/sites/all/themes/custom/edlptheme/templates/content/node--page--image-1-columns.html.twig b/sites/all/themes/custom/edlptheme/templates/content/node--page--image-1-columns.html.twig new file mode 100644 index 000000000..844ca3f1c --- /dev/null +++ b/sites/all/themes/custom/edlptheme/templates/content/node--page--image-1-columns.html.twig @@ -0,0 +1,103 @@ +{# +/** + * @file + * Default theme implementation to display a node. + * + * Available variables: + * - node: The node entity with limited access to object properties and methods. + * Only method names starting with "get", "has", or "is" and a few common + * methods such as "id", "label", and "bundle" are available. For example: + * - node.getCreatedTime() will return the node creation timestamp. + * - node.hasField('field_example') returns TRUE if the node bundle includes + * field_example. (This does not indicate the presence of a value in this + * field.) + * - node.isPublished() will return whether the node is published or not. + * Calling other methods, such as node.delete(), will result in an exception. + * See \Drupal\node\Entity\Node for a full list of public properties and + * methods for the node object. + * - label: The title of the node. + * - content: All node items. Use {{ content }} to print them all, + * or print a subset such as {{ content.field_example }}. Use + * {{ content|without('field_example') }} to temporarily suppress the printing + * of a given child element. + * - author_picture: The node author user entity, rendered using the "compact" + * view mode. + * - metadata: Metadata for this node. + * - date: Themed creation date field. + * - author_name: Themed author name field. + * - url: Direct URL of the current node. + * - display_submitted: Whether submission information should be displayed. + * - attributes: HTML attributes for the containing element. + * The attributes.class element may contain one or more of the following + * classes: + * - node: The current template type (also known as a "theming hook"). + * - node--type-[type]: The current node type. For example, if the node is an + * "Article" it would result in "node--type-article". Note that the machine + * name will often be in a short form of the human readable label. + * - node--view-mode-[view_mode]: The View Mode of the node; for example, a + * teaser would result in: "node--view-mode-teaser", and + * full: "node--view-mode-full". + * The following are controlled through the node publishing options. + * - node--promoted: Appears on nodes promoted to the front page. + * - node--sticky: Appears on nodes ordered above other non-sticky nodes in + * teaser listings. + * - node--unpublished: Appears on unpublished nodes visible only to site + * admins. + * - title_attributes: Same as attributes, except applied to the main title + * tag that appears in the template. + * - content_attributes: Same as attributes, except applied to the main + * content tag that appears in the template. + * - author_attributes: Same as attributes, except applied to the author of + * the node tag that appears in the template. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the main title tag that appears in the template. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the main title tag that appears in the template. + * - view_mode: View mode; for example, "teaser" or "full". + * - teaser: Flag for the teaser state. Will be true if view_mode is 'teaser'. + * - page: Flag for the full page state. Will be true if view_mode is 'full'. + * - readmore: Flag for more state. Will be true if the teaser content of the + * node cannot hold the main body content. + * - logged_in: Flag for authenticated user status. Will be true when the + * current user is a logged-in member. + * - is_admin: Flag for admin user status. Will be true when the current user + * is an administrator. + * + * @see template_preprocess_node() + * + * @todo Remove the id attribute (or make it a class), because if that gets + * rendered twice on a page this is invalid CSS for example: two lists + * in different view modes. + * + * @ingroup themeable + */ +#} +{% + set classes = [ + 'node', + 'node--type-' ~ node.bundle|clean_class, + node.isPromoted() ? 'node--promoted', + node.isSticky() ? 'node--sticky', + not node.isPublished() ? 'node--unpublished', + view_mode ? 'node--view-mode-' ~ view_mode|clean_class, + 'clearfix', + ] +%} +{{ attach_library('classy/node') }} + + + + {{ content.field_visuel }} +
+
+ {{ title_prefix }} + {% if not page %} + + {{ label }} + + {% endif %} + {{ title_suffix }} + {{ content|without('field_visuel') }} +
+ + diff --git a/sites/all/themes/custom/edlptheme/templates/content/node--page--image-2-columns.html.twig b/sites/all/themes/custom/edlptheme/templates/content/node--page--image-2-columns.html.twig new file mode 100644 index 000000000..844ca3f1c --- /dev/null +++ b/sites/all/themes/custom/edlptheme/templates/content/node--page--image-2-columns.html.twig @@ -0,0 +1,103 @@ +{# +/** + * @file + * Default theme implementation to display a node. + * + * Available variables: + * - node: The node entity with limited access to object properties and methods. + * Only method names starting with "get", "has", or "is" and a few common + * methods such as "id", "label", and "bundle" are available. For example: + * - node.getCreatedTime() will return the node creation timestamp. + * - node.hasField('field_example') returns TRUE if the node bundle includes + * field_example. (This does not indicate the presence of a value in this + * field.) + * - node.isPublished() will return whether the node is published or not. + * Calling other methods, such as node.delete(), will result in an exception. + * See \Drupal\node\Entity\Node for a full list of public properties and + * methods for the node object. + * - label: The title of the node. + * - content: All node items. Use {{ content }} to print them all, + * or print a subset such as {{ content.field_example }}. Use + * {{ content|without('field_example') }} to temporarily suppress the printing + * of a given child element. + * - author_picture: The node author user entity, rendered using the "compact" + * view mode. + * - metadata: Metadata for this node. + * - date: Themed creation date field. + * - author_name: Themed author name field. + * - url: Direct URL of the current node. + * - display_submitted: Whether submission information should be displayed. + * - attributes: HTML attributes for the containing element. + * The attributes.class element may contain one or more of the following + * classes: + * - node: The current template type (also known as a "theming hook"). + * - node--type-[type]: The current node type. For example, if the node is an + * "Article" it would result in "node--type-article". Note that the machine + * name will often be in a short form of the human readable label. + * - node--view-mode-[view_mode]: The View Mode of the node; for example, a + * teaser would result in: "node--view-mode-teaser", and + * full: "node--view-mode-full". + * The following are controlled through the node publishing options. + * - node--promoted: Appears on nodes promoted to the front page. + * - node--sticky: Appears on nodes ordered above other non-sticky nodes in + * teaser listings. + * - node--unpublished: Appears on unpublished nodes visible only to site + * admins. + * - title_attributes: Same as attributes, except applied to the main title + * tag that appears in the template. + * - content_attributes: Same as attributes, except applied to the main + * content tag that appears in the template. + * - author_attributes: Same as attributes, except applied to the author of + * the node tag that appears in the template. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the main title tag that appears in the template. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the main title tag that appears in the template. + * - view_mode: View mode; for example, "teaser" or "full". + * - teaser: Flag for the teaser state. Will be true if view_mode is 'teaser'. + * - page: Flag for the full page state. Will be true if view_mode is 'full'. + * - readmore: Flag for more state. Will be true if the teaser content of the + * node cannot hold the main body content. + * - logged_in: Flag for authenticated user status. Will be true when the + * current user is a logged-in member. + * - is_admin: Flag for admin user status. Will be true when the current user + * is an administrator. + * + * @see template_preprocess_node() + * + * @todo Remove the id attribute (or make it a class), because if that gets + * rendered twice on a page this is invalid CSS for example: two lists + * in different view modes. + * + * @ingroup themeable + */ +#} +{% + set classes = [ + 'node', + 'node--type-' ~ node.bundle|clean_class, + node.isPromoted() ? 'node--promoted', + node.isSticky() ? 'node--sticky', + not node.isPublished() ? 'node--unpublished', + view_mode ? 'node--view-mode-' ~ view_mode|clean_class, + 'clearfix', + ] +%} +{{ attach_library('classy/node') }} + + + + {{ content.field_visuel }} +
+
+ {{ title_prefix }} + {% if not page %} + + {{ label }} + + {% endif %} + {{ title_suffix }} + {{ content|without('field_visuel') }} +
+ + diff --git a/sites/default/config/sync/block.block.messages.yml b/sites/default/config/sync/block.block.messages.yml index ef30b7c76..bd2cf1eb8 100644 --- a/sites/default/config/sync/block.block.messages.yml +++ b/sites/default/config/sync/block.block.messages.yml @@ -9,7 +9,7 @@ dependencies: id: messages theme: edlptheme region: content -weight: -3 +weight: -4 provider: null plugin: system_messages_block settings: diff --git a/sites/default/config/sync/block.block.tabs.yml b/sites/default/config/sync/block.block.tabs.yml new file mode 100644 index 000000000..889e0e380 --- /dev/null +++ b/sites/default/config/sync/block.block.tabs.yml @@ -0,0 +1,41 @@ +uuid: 70556079-1327-4a07-9f28-5f14af34ff00 +langcode: fr +status: true +dependencies: + module: + - node + - user + theme: + - edlptheme +id: tabs +theme: edlptheme +region: content +weight: -3 +provider: null +plugin: local_tasks_block +settings: + id: local_tasks_block + label: Tabs + provider: core + label_display: '0' + primary: true + secondary: true +visibility: + node_type: + id: node_type + bundles: + enregistrement: enregistrement + evenement: evenement + page: page + negate: false + context_mapping: + node: '@node.node_route_context:node' + user_role: + id: user_role + roles: + collectionneur: collectionneur + admin: admin + root: root + negate: false + context_mapping: + user: '@user.current_user_context:current_user' diff --git a/sites/default/config/sync/core.entity_view_display.node.evenement.default.yml b/sites/default/config/sync/core.entity_view_display.node.evenement.default.yml index f552fc7aa..0aaf9cfbc 100644 --- a/sites/default/config/sync/core.entity_view_display.node.evenement.default.yml +++ b/sites/default/config/sync/core.entity_view_display.node.evenement.default.yml @@ -10,7 +10,6 @@ dependencies: - node.type.evenement module: - datetime_range - - options - text - user id: node.evenement.default @@ -26,34 +25,28 @@ content: third_party_settings: { } region: content field_date: - weight: 5 - label: above + weight: 1 + label: hidden settings: - separator: '-' - format_type: medium timezone_override: '' + format_type: long + separator: '-' third_party_settings: { } type: daterange_default region: content field_page_liee: weight: 3 - label: above + label: hidden settings: link: true third_party_settings: { } type: entity_reference_label region: content - field_workflow_generic: - weight: 4 - label: above - settings: { } - third_party_settings: { } - type: list_default - region: content links: weight: 0 region: content settings: { } third_party_settings: { } hidden: + field_workflow_generic: true langcode: true diff --git a/sites/default/config/sync/core.entity_view_display.node.page.image_1_columns.yml b/sites/default/config/sync/core.entity_view_display.node.page.image_1_columns.yml new file mode 100644 index 000000000..3a806802f --- /dev/null +++ b/sites/default/config/sync/core.entity_view_display.node.page.image_1_columns.yml @@ -0,0 +1,47 @@ +uuid: 20481275-9dd1-49ce-9103-543636c6cde2 +langcode: fr +status: true +dependencies: + config: + - core.entity_view_mode.node.image_1_columns + - field.field.node.page.body + - field.field.node.page.field_page_type + - field.field.node.page.field_son + - field.field.node.page.field_view_mode + - field.field.node.page.field_visuel + - field.field.node.page.field_workflow_generic + - image.style.large + - node.type.page + module: + - image + - text + - user +id: node.page.image_1_columns +targetEntityType: node +bundle: page +mode: image_1_columns +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 1 + settings: + trim_length: 100 + third_party_settings: { } + region: content + field_visuel: + weight: 0 + label: hidden + settings: + image_style: large + image_link: content + third_party_settings: { } + type: image + region: content +hidden: + field_page_type: true + field_son: true + field_view_mode: true + field_workflow_generic: true + langcode: true + links: true diff --git a/sites/default/config/sync/core.entity_view_display.node.page.image_2_columns.yml b/sites/default/config/sync/core.entity_view_display.node.page.image_2_columns.yml new file mode 100644 index 000000000..656f452f3 --- /dev/null +++ b/sites/default/config/sync/core.entity_view_display.node.page.image_2_columns.yml @@ -0,0 +1,47 @@ +uuid: e803e246-1f0d-4812-a241-9a512a983b0a +langcode: fr +status: true +dependencies: + config: + - core.entity_view_mode.node.image_2_columns + - field.field.node.page.body + - field.field.node.page.field_page_type + - field.field.node.page.field_son + - field.field.node.page.field_view_mode + - field.field.node.page.field_visuel + - field.field.node.page.field_workflow_generic + - image.style.large + - node.type.page + module: + - image + - text + - user +id: node.page.image_2_columns +targetEntityType: node +bundle: page +mode: image_2_columns +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 1 + settings: + trim_length: 200 + third_party_settings: { } + region: content + field_visuel: + weight: 0 + label: hidden + settings: + image_style: large + image_link: content + third_party_settings: { } + type: image + region: content +hidden: + field_page_type: true + field_son: true + field_view_mode: true + field_workflow_generic: true + langcode: true + links: true diff --git a/sites/default/config/sync/core.entity_view_display.node.page.text_1_column.yml b/sites/default/config/sync/core.entity_view_display.node.page.text_1_column.yml new file mode 100644 index 000000000..a66e4987a --- /dev/null +++ b/sites/default/config/sync/core.entity_view_display.node.page.text_1_column.yml @@ -0,0 +1,29 @@ +uuid: 1466b89d-530e-4d0f-ba73-8d9b4dbb8b09 +langcode: fr +status: true +dependencies: + config: + - core.entity_view_mode.node.text_1_column + - field.field.node.page.body + - field.field.node.page.field_page_type + - field.field.node.page.field_son + - field.field.node.page.field_view_mode + - field.field.node.page.field_visuel + - field.field.node.page.field_workflow_generic + - node.type.page + module: + - user +id: node.page.text_1_column +targetEntityType: node +bundle: page +mode: text_1_column +content: { } +hidden: + body: true + field_page_type: true + field_son: true + field_view_mode: true + field_visuel: true + field_workflow_generic: true + langcode: true + links: true diff --git a/sites/default/config/sync/core.entity_view_mode.node.image_1_columns.yml b/sites/default/config/sync/core.entity_view_mode.node.image_1_columns.yml new file mode 100644 index 000000000..5aa1a73d4 --- /dev/null +++ b/sites/default/config/sync/core.entity_view_mode.node.image_1_columns.yml @@ -0,0 +1,10 @@ +uuid: a6343175-4044-47b1-b535-b4c7dc76386f +langcode: fr +status: true +dependencies: + module: + - node +id: node.image_1_columns +label: 'Image 1 Column' +targetEntityType: node +cache: true diff --git a/sites/default/config/sync/core.entity_view_mode.node.image_2_columns.yml b/sites/default/config/sync/core.entity_view_mode.node.image_2_columns.yml new file mode 100644 index 000000000..a7db935f1 --- /dev/null +++ b/sites/default/config/sync/core.entity_view_mode.node.image_2_columns.yml @@ -0,0 +1,10 @@ +uuid: 4745caec-c5f7-4d98-bd0c-c236c50e7c54 +langcode: fr +status: true +dependencies: + module: + - node +id: node.image_2_columns +label: 'Image 2 Columns' +targetEntityType: node +cache: true diff --git a/sites/default/config/sync/core.entity_view_mode.node.text_1_column.yml b/sites/default/config/sync/core.entity_view_mode.node.text_1_column.yml new file mode 100644 index 000000000..5e2810619 --- /dev/null +++ b/sites/default/config/sync/core.entity_view_mode.node.text_1_column.yml @@ -0,0 +1,10 @@ +uuid: 2bb31429-b93f-4178-94de-c8f1e566184d +langcode: fr +status: true +dependencies: + module: + - node +id: node.text_1_column +label: 'Text 1 Column' +targetEntityType: node +cache: true diff --git a/sites/default/config/sync/core.extension.yml b/sites/default/config/sync/core.extension.yml index a1f8d32e9..73cc01195 100644 --- a/sites/default/config/sync/core.extension.yml +++ b/sites/default/config/sync/core.extension.yml @@ -28,6 +28,7 @@ module: editor: 0 edlp_admin: 0 edlp_agenda: 0 + edlp_ajax_node: 0 edlp_corpus: 0 edlp_fils: 0 edlp_home: 0 diff --git a/sites/default/config/sync/field.field.node.page.field_visuel.yml b/sites/default/config/sync/field.field.node.page.field_visuel.yml index 5ee236600..f470006d9 100644 --- a/sites/default/config/sync/field.field.node.page.field_visuel.yml +++ b/sites/default/config/sync/field.field.node.page.field_visuel.yml @@ -24,7 +24,7 @@ settings: max_resolution: '' min_resolution: '' alt_field: true - alt_field_required: true + alt_field_required: false title_field: false title_field_required: false default_image: diff --git a/sites/default/config/sync/image.style.large.yml b/sites/default/config/sync/image.style.large.yml index 98b0fb568..d78610962 100644 --- a/sites/default/config/sync/image.style.large.yml +++ b/sites/default/config/sync/image.style.large.yml @@ -5,13 +5,12 @@ dependencies: { } _core: default_config_hash: J2n0RpFzS0-bgSyxjs6rSdgxB1rb-bTAgqywNx_964M name: large -label: 'Large (480×480)' +label: 'Large (800×450)' effects: - ddd73aa7-4bd6-4c85-b600-bdf2b1628d1d: - uuid: ddd73aa7-4bd6-4c85-b600-bdf2b1628d1d - id: image_scale - weight: 0 + 4ce08fdd-911f-42d3-a5ad-be7591d91894: + uuid: 4ce08fdd-911f-42d3-a5ad-be7591d91894 + id: image_scale_and_crop + weight: 2 data: - width: 480 - height: 480 - upscale: false + width: 800 + height: 450 diff --git a/sites/default/config/sync/image.style.medium.yml b/sites/default/config/sync/image.style.medium.yml index ec5e3447d..d7e30714d 100644 --- a/sites/default/config/sync/image.style.medium.yml +++ b/sites/default/config/sync/image.style.medium.yml @@ -5,13 +5,13 @@ dependencies: { } _core: default_config_hash: Y9NmnZHQq20ASSyTNA6JnwtWrJJiSajOehGDtmUFdM0 name: medium -label: 'Medium (220×220)' +label: 'Medium (400×400)' effects: bddf0d06-42f9-4c75-a700-a33cafa25ea0: uuid: bddf0d06-42f9-4c75-a700-a33cafa25ea0 id: image_scale weight: 0 data: - width: 220 - height: 220 + width: 500 + height: 500 upscale: false