gin-8.x-3.0-alpha22/dist/js/gin_accent.js

dist/js/gin_accent.js
!function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(n){return t[n]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=50)}([function(t,n,e){t.exports=!e(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(1),o=e(7),c=e(23),i=e(13)("src"),u=e(24),a="toString",l=(""+u).split(a);e(8).inspectSource=function(t){return u.call(t)},(t.exports=function(t,n,e,u){var a="function"==typeof e;a&&(c(e,"name")||o(e,"name",n)),t[n]===e||(a&&(c(e,i)||o(e,i,t[n]?""+t[n]:l.join(n+""))),t===r?t[n]=e:u?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,a,(function(){return"function"==typeof this&&this[i]||u.call(this)}))},function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){"use strict";var r=e(3);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){var r=e(12),o=e(22);t.exports=e(0)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,n,e){var r=e(14)("wks"),o=e(13),c=e(1).Symbol,i="function"==typeof c;(t.exports=function(t){return r[t]||(r[t]=i&&c[t]||(i?c:o)("Symbol."+t))}).store=r},function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t){var n=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?e:n)(t)}},function(t,n,e){var r=e(3),o=e(19),c=e(21),i=Object.defineProperty;n.f=e(0)?Object.defineProperty:function(t,n,e){if(r(t),n=c(n,!0),r(e),o)try{return i(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t){var n=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+e).toString(36))}},function(t,n,e){var r=e(8),o=e(1),c="__core-js_shared__",i=o[c]||(o[c]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0===n?{}:n)})("versions",[]).push({version:r.version,mode:e(25)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(27),o=e(9)("toStringTag"),c="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?e:c?r(n):"Object"==(i=r(n))&&"function"==typeof n.callee?"Arguments":i}},function(t,n,e){"use strict";var r=e(6),o=RegExp.prototype.exec,c=String.prototype.replace,i=o,u="lastIndex",a=function(){var t=/a/,n=/b*/g;return o.call(t,"a"),o.call(n,"a"),0!==t[u]||0!==n[u]}(),l=void 0!==/()??/.exec("")[1];(a||l)&&(i=function(t){var n,e,i,f,s=this;return l&&(e=new RegExp("^"+s.source+"$(?!\\s)",r.call(s))),a&&(n=s[u]),i=o.call(s,t),a&&i&&(s[u]=s.global?i.index+i[0].length:n),l&&i&&1<i.length&&c.call(i[0],e,(function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(i[f]=void 0)})),i}),t.exports=i},function(t,n,e){"use strict";e(18);var r=e(3),o=e(6),c=e(0),i="toString",u=/./[i],a=function(t){e(4)(RegExp.prototype,i,t,!0)};e(2)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?a((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!c&&t instanceof RegExp?o.call(t):void 0)})):u.name!=i&&a((function(){return u.call(this)}))},function(t,n,e){e(0)&&"g"!=/./g.flags&&e(12).f(RegExp.prototype,"flags",{configurable:!0,get:e(6)})},function(t,n,e){t.exports=!e(0)&&!e(2)((function(){return 7!=Object.defineProperty(e(20)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(5),o=e(1).document,c=r(o)&&r(o.createElement);t.exports=function(t){return c?o.createElement(t):{}}},function(t,n,e){var r=e(5);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,n,e){t.exports=e(14)("native-function-to-string",Function.toString)},function(t){t.exports=!1},function(t,n,e){"use strict";var r=e(15);({})[e(9)("toStringTag")]="z",e(4)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,n,e){"use strict";var r=e(3),o=e(29),c=e(30),i=e(11),u=e(31),a=e(33),l=Math.max,f=Math.min,s=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g,g=function(t){return void 0===t?t:t+""};e(34)("replace",2,(function(t,n,e,d){function h(t,n,r,c,i,u){var a=r+t.length,l=c.length,f=v;return void 0!==i&&(i=o(i),f=p),e.call(u,f,(function(e,o){var u;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(a);case"<":u=i[o.slice(1,-1)];break;default:var f=+o;if(0==f)return e;if(f>l){var p=s(f/10);return 0===p?e:p<=l?void 0===c[p-1]?o.charAt(1):c[p-1]+o.charAt(1):e}u=c[f-1]}return void 0===u?"":u}))}return[function(r,o){var c=t(this),i=null==r?void 0:r[n];return void 0===i?e.call(c+"",r,o):i.call(r,c,o)},function(t,n){var o=d(e,t,this,n);if(o.done)return o.value;var s=r(t),p=this+"",v="function"==typeof n;v||(n+="");var y=s.global;if(y){var x=s.unicode;s.lastIndex=0}for(var m,b=[];null!==(m=a(s,p))&&(b.push(m),y);){""==m[0]+""&&(s.lastIndex=u(p,c(s.lastIndex),x))}for(var _="",w=0,A=0;A<b.length;A++){for(var C=(m=b[A])[0]+"",S=l(f(i(m.index),p.length),0),j=[],E=1;E<m.length;E++)j.push(g(m[E]));var O=m.groups;if(v){var P=[C].concat(j,S,p);void 0!==O&&P.push(O);var k=n.apply(void 0,P)+""}else k=h(C,p,S,j,O,n);S>=w&&(_+=p.slice(w,S)+k,w=S+C.length)}return _+p.slice(w)}]}))},function(t,n,e){var r=e(10);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(11),o=Math.min;t.exports=function(t){return 0<t?o(r(t),9007199254740991):0}},function(t,n,e){"use strict";var r=e(32)(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){var r=e(11),o=e(10);t.exports=function(t){return function(n,e){var c,i,u=o(n)+"",a=r(e),l=u.length;return 0>a||a>=l?t?"":void 0:55296>(c=u.charCodeAt(a))||56319<c||a+1===l||56320>(i=u.charCodeAt(a+1))||57343<i?t?u.charAt(a):c:t?u.slice(a,a+2):i-56320+(c-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(15),o=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"==typeof e){var c=e.call(t,n);if("object"!=typeof c)throw new TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},function(t,n,e){"use strict";e(35);var r=e(4),o=e(7),c=e(2),i=e(10),u=e(9),a=e(16),l=u("species"),f=!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),s=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var p=u(t),v=!c((function(){var n={};return n[p]=function(){return 7},7!=""[t](n)})),g=v?!c((function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[l]=function(){return e}),e[p](""),!n})):void 0;if(!v||!g||"replace"===t&&!f||"split"===t&&!s){var d=/./[p],h=e(i,p,""[t],(function(t,n,e,r,o){return n.exec===a?v&&!o?{done:!0,value:d.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}})),y=h[0],x=h[1];r(String.prototype,t,y),o(RegExp.prototype,p,2==n?function(t,n){return x.call(t,this,n)}:function(t){return x.call(t,this)})}}},function(t,n,e){"use strict";var r=e(16);e(36)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,n,e){var r=e(1),o=e(8),c=e(7),i=e(4),u=e(37),a="prototype",l=function(t,n,e){var f,s,p,v,g=t&l.F,d=t&l.G,h=t&l.S,y=t&l.P,x=t&l.B,m=d?r:h?r[n]||(r[n]={}):(r[n]||{})[a],b=d?o:o[n]||(o[n]={}),_=b[a]||(b[a]={});for(f in d&&(e=n),e)p=((s=!g&&m&&void 0!==m[f])?m:e)[f],v=x&&s?u(p,r):y&&"function"==typeof p?u(Function.call,p):p,m&&i(m,f,p,t&l.U),b[f]!=p&&c(b,f,v),y&&_[f]!=p&&(_[f]=p)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,n,e){var r=e(38);t.exports=function(t,n,e){return r(t),void 0===n?t:1===e?function(e){return t.call(n,e)}:2===e?function(e,r){return t.call(n,e,r)}:3===e?function(e,r,o){return t.call(n,e,r,o)}:function(){return t.apply(n,arguments)}}},function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},,,,,,,,,,,,function(t,n,e){e(51),t.exports=e(52)},function(t,n,e){"use strict";e.r(n);var r=e(17),o=(e.n(r),e(26)),c=(e.n(o),e(28));e.n(c);!function(t,n,e){var r=Math.round;n.behaviors.ginAccent={attach:function(){var t=e.path.currentPath;if(n.behaviors.ginAccent.setFocusColor(),-1!==t.indexOf("user/login")||-1!==t.indexOf("user/password")||-1!==t.indexOf("user/register")||localStorage.getItem("GinAccentColorCustom"))n.behaviors.ginAccent.setAccentColor();else if(n.behaviors.ginAccent.setAccentColor(),"custom"===e.gin.preset_accent_color){var r=e.gin.accent_color;localStorage.setItem("GinAccentColorCustom",r)}else localStorage.setItem("GinAccentColorCustom","")},setAccentColor:function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,c=null==r?e.gin.preset_accent_color:r;"custom"===c?(t("body").attr("data-gin-accent",r),n.behaviors.ginAccent.setCustomAccentColor("custom",o)):t("body").attr("data-gin-accent",c)},setCustomAccentColor:function(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,i=null==c?e.gin.accent_color:c;if("custom"===o){t("body").attr("data-gin-accent",o);var u=null==o?e.gin.darkmode:t('input[name="enable_darkmode"]').is(":checked"),a=(e.gin.darkmode_class,u?10:6.5),l=i;if(l){var f=l.replace("#",""),s='<style class="gin-custom-colors">            body:not(.gin-inactive) {\n              --colorGinPrimary: '.concat(l,";\n              --colorGinPrimaryHover: ").concat(n.behaviors.ginAccent.shadeColor(l,-10),";\n              --colorGinPrimaryActive: ").concat(n.behaviors.ginAccent.shadeColor(l,-15),";\n              --colorGinPrimaryLight: ").concat(l).concat(r(3.5*a),";\n              --colorGinPrimaryLightHover: ").concat(l).concat(r(4.5*a),";\n              --colorGinPrimaryLightActive: ").concat(l).concat(r(5.5*a),";\n              --colorGinItemHover: ").concat(l).concat(r(1.5*a),";\n            }\n            .form-element--type-select:hover,\n            .form-element--type-select:active,\n            .form-element--type-select:focus {\n              background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke-width='1.5' d='M1 1L7 7L13 1' stroke='%23").concat(f,"'/%3E%3C/svg%3E%0A\");\n            }\n            </style>");t("body").append(s)}}},clearAccentColor:function(){t(".gin-custom-colors").remove()},shadeColor:function(t,n){var e=parseInt(t.replace("#",""),16),o=r(2.55*n),c=(e>>16)+o,i=(255&e>>8)+o,u=(255&e)+o;return"#".concat((16777216+65536*(255>c?1>c?0:c:255)+256*(255>i?1>i?0:i:255)+(255>u?1>u?0:u:255)).toString(16).slice(1))},setFocusColor:function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,c=null==r?e.gin.preset_focus_color:r,i=null==o?e.gin.focus_color:o;if(n.behaviors.ginAccent.clearFocusColor(),"gin"!==c){var u;switch(c){default:case"claro":u="#26a769";break;case"green":u="#08a390";break;case"orange":u="#ec7c57";break;case"dark":u="#5c5a67";break;case"accent":u="var(--colorGinPrimary)";break;case"custom":u=i}t("body").css("--colorGinFocus",u)}},clearFocusColor:function(){t("body").css("--colorGinFocus","")}}}(jQuery,Drupal,drupalSettings)},function(){}]);

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc