svoydom/public/assets/plugins/pickr/pickr.es5.min.js

4 lines
71 KiB
JavaScript
Raw Normal View History

2023-05-17 09:57:20 +03:00
/*! Pickr 1.8.2 MIT | https://github.com/Simonwep/pickr */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Pickr=e():t.Pickr=e()}(self,(function(){return(()=>{var t={3099:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:(t,e,r)=>{var n=r(111);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},1223:(t,e,r)=>{var n=r(5112),o=r(30),i=r(3070),a=n("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},1530:(t,e,r)=>{"use strict";var n=r(8710).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},9670:(t,e,r)=>{var n=r(111);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},8533:(t,e,r)=>{"use strict";var n=r(2092).forEach,o=r(9341)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},8457:(t,e,r)=>{"use strict";var n=r(9974),o=r(7908),i=r(3411),a=r(7659),c=r(7466),s=r(6135),u=r(1246);t.exports=function(t){var e,r,l,p,f,v,h=o(t),d="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,b=void 0!==y,m=u(h),x=0;if(b&&(y=n(y,g>2?arguments[2]:void 0,2)),null==m||d==Array&&a(m))for(r=new d(e=c(h.length));e>x;x++)v=b?y(h[x],x):h[x],s(r,x,v);else for(f=(p=m.call(h)).next,r=new d;!(l=f.call(p)).done;x++)v=b?i(p,y,[l.value,x],!0):l.value,s(r,x,v);return r.length=x,r}},1318:(t,e,r)=>{var n=r(5656),o=r(7466),i=r(1400),a=function(t){return function(e,r,a){var c,s=n(e),u=o(s.length),l=i(a,u);if(t&&r!=r){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:(t,e,r)=>{var n=r(9974),o=r(8361),i=r(7908),a=r(7466),c=r(5417),s=[].push,u=function(t){var e=1==t,r=2==t,u=3==t,l=4==t,p=6==t,f=7==t,v=5==t||p;return function(h,d,g,y){for(var b,m,x=i(h),w=o(x),S=n(d,g,3),O=a(w.length),_=0,A=y||c,j=e?A(h,O):r||f?A(h,0):void 0;O>_;_++)if((v||_ in w)&&(m=S(b=w[_],_,x),t))if(e)j[_]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return _;case 2:s.call(j,b)}else switch(t){case 4:return!1;case 7:s.call(j,b)}return p?-1:u||l?l:j}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},1194:(t,e,r)=>{var n=r(7293),o=r(5112),i=r(7392),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:(t,e,r)=>{"use strict";var n=r(7293);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},5417:(t,e,r)=>{var n=r(111),o=r(3157),i=r(5112)("species");t.exports=function(t,e){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},3411:(t,e,r)=>{var n=r(9670),o=r(9212);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){throw o(t),e}}},7072:(t,e,r)=>{var n=r(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},4326:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:(t,e,r)=>{var n=r(1694),o=r(4326),i=r(5112)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:a?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},9920:(t,e,r)=>{var n=r(6656),o=r(3887),i=r(1236),a=r(3070);t.exports=function(t,e){for(var r=o(e),c=a.f,s=i.f,u=0;u<r.length;u++){var l=r[u];n(t,l)||c(t,l,s(e,l))}}},4964:(t,e,r
/*! NanoPop 2.1.0 MIT | https://github.com/Simonwep/nanopop */var F={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8},B=function(t,e,r){var n=M(M({container:document.documentElement.getBoundingClientRect()},F),r),o=n.container,i=n.margin,a=n.position,c=n.variantFlipOrder,s=n.positionFlipOrder,u=e.style,l=u.left,p=u.top;e.style.left="0",e.style.top="0";for(var f,v=t.getBoundingClientRect(),h=e.getBoundingClientRect(),d={t:v.top-h.height-i,b:v.bottom+i,r:v.right+i,l:v.left-h.width-i},g={vs:v.left,vm:v.left+v.width/2+-h.width/2,ve:v.left+v.width-h.width,hs:v.top,hm:v.bottom-v.height/2-h.height/2,he:v.bottom-h.height},y=a.split("-"),b=y[0],m=y[1],x=void 0===m?"middle":m,w=s[b],S=c[x],O=o.top,_=o.left,A=o.bottom,j=o.right,E=R(w);!(f=E()).done;){var P=f.value,k="t"===P||"b"===P,C=d[P],I=k?["top","left"]:["left","top"],T=I[0],L=I[1],N=k?[h.height,h.width]:[h.width,h.height],D=N[1],B=k?[A,j]:[j,A],H=B[1],$=k?[O,_]:[_,O],U=$[1];if(!(C<$[0]||C+N[0]>B[0]))for(var V,G=R(S);!(V=G()).done;){var W=V.value,z=g[(k?"v":"h")+W];if(!(z<U||z+D>H))return e.style[L]=z-h[L]+"px",e.style[T]=C-h[T]+"px",P+W}}return e.style.left=l,e.style.top=p,null};function H(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return $(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function U(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function V(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var G=function(){function e(t){var r=this;V(this,"_initializingActive",!0),V(this,"_recalc",!0),V(this,"_nanopop",null),V(this,"_root",null),V(this,"_color",k()),V(this,"_lastColor",k()),V(this,"_swatchColors",[]),V(this,"_setupAnimationFrame",null),V(this,"_eventListener",{init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]}),this.options=t=Object.assign(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?U(Object(r),!0).forEach((function(e){V(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e.DEFAULT_OPTIONS),t);var n=t,o=n.swatches,i=n.components,a=n.theme,c=n.sliders,s=n.lockOpacity,u=n.padding;["nano","monolith"].includes(a)&&!c&&(t.sliders="h"),i.interaction||(i.interaction={});var l=i.preview,p=i.opacity,f=i.hue,v=i.palette;i.opacity=!s&&p,i.palette=v||l||p||f,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),o&&o.length&&o.forEach((function(t){return r.addSwatch(t)}));var h=this._root,d=h.button,g=h.app;this._nanopop=function(t,e,r){var n="object"!=typeof t||t instanceof HTMLElement?M({reference:t,popper:e},r):t;return{update:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,e=Object.assign(n,t),r=e.reference,o=e.popper;if(!o||!r)throw new Error("Popper- or reference-element missing.");return B(r,o,n)}}}(d,g,{margin:u}),d.setAttribute("role","button"),d.setAttribute("aria-label",this._t("btn:toggle"));var y=this;this._setupAnimationFram
//# sourceMappingURL=pickr.es5.min.js.map