From 20cf6696f66a0424acbdb5dfb619478dcccd1079 Mon Sep 17 00:00:00 2001 From: Mastermindzh Date: Sun, 3 Apr 2022 11:37:00 +0200 Subject: [PATCH] Updates --- asset-manifest.json | 17 +++++--- index.html | 2 +- service-worker.js | 1 - static/css/main.4fc30c7c.css | 2 + static/css/main.4fc30c7c.css.map | 1 + static/css/main.c17080f1.css | 2 - static/css/main.c17080f1.css.map | 1 - static/js/main.c53f0247.js | 3 ++ static/js/main.c53f0247.js.LICENSE.txt | 41 +++++++++++++++++++ static/js/main.c53f0247.js.map | 1 + static/js/main.e4e9ce8f.js | 2 - static/js/main.e4e9ce8f.js.map | 1 - ...logo.103b5fa18196d5665a7e12318285c916.svg} | 0 13 files changed, 61 insertions(+), 13 deletions(-) delete mode 100644 service-worker.js create mode 100644 static/css/main.4fc30c7c.css create mode 100644 static/css/main.4fc30c7c.css.map delete mode 100644 static/css/main.c17080f1.css delete mode 100644 static/css/main.c17080f1.css.map create mode 100644 static/js/main.c53f0247.js create mode 100644 static/js/main.c53f0247.js.LICENSE.txt create mode 100644 static/js/main.c53f0247.js.map delete mode 100644 static/js/main.e4e9ce8f.js delete mode 100644 static/js/main.e4e9ce8f.js.map rename static/media/{logo.5d5d9eef.svg => logo.103b5fa18196d5665a7e12318285c916.svg} (100%) diff --git a/asset-manifest.json b/asset-manifest.json index a04e43d..41583f0 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,14 @@ { - "main.css": "static/css/main.c17080f1.css", - "main.css.map": "static/css/main.c17080f1.css.map", - "main.js": "static/js/main.e4e9ce8f.js", - "main.js.map": "static/js/main.e4e9ce8f.js.map", - "static/media/logo.svg": "static/media/logo.5d5d9eef.svg" + "files": { + "main.css": "/react-cookie-consent/static/css/main.4fc30c7c.css", + "main.js": "/react-cookie-consent/static/js/main.c53f0247.js", + "static/media/logo.svg": "/react-cookie-consent/static/media/logo.103b5fa18196d5665a7e12318285c916.svg", + "index.html": "/react-cookie-consent/index.html", + "main.4fc30c7c.css.map": "/react-cookie-consent/static/css/main.4fc30c7c.css.map", + "main.c53f0247.js.map": "/react-cookie-consent/static/js/main.c53f0247.js.map" + }, + "entrypoints": [ + "static/css/main.4fc30c7c.css", + "static/js/main.c53f0247.js" + ] } \ No newline at end of file diff --git a/index.html b/index.html index b25b03e..30eb984 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -React App
\ No newline at end of file +React App
\ No newline at end of file diff --git a/service-worker.js b/service-worker.js deleted file mode 100644 index 407fb13..0000000 --- a/service-worker.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var precacheConfig=[["/react-cookie-consent/index.html","a90fcdc3085b912e6e0a982424c70be0"],["/react-cookie-consent/static/css/main.c17080f1.css","302476b8b379a677f648aa1e48918ebd"],["/react-cookie-consent/static/js/main.e4e9ce8f.js","d69a0ecffccfe39a8f2fb11125099c2a"],["/react-cookie-consent/static/media/logo.5d5d9eef.svg","5d5d9eefa31e5e13a6610d9fa7a283bb"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(t){return t.redirected?("body"in t?Promise.resolve(t.body):t.blob()).then(function(e){return new Response(e,{headers:t.headers,status:t.status,statusText:t.statusText})}):Promise.resolve(t)},createCacheKey=function(e,t,n,r){var a=new URL(e);return r&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,n){var t=new URL(e);return t.hash="",t.search=t.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(t){return n.every(function(e){return!e.test(t[0])})}).map(function(e){return e.join("=")}).join("&"),t.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],r=new URL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(r){return setOfCachedUrls(r).then(function(n){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(t){if(!n.has(t)){var e=new Request(t,{credentials:"same-origin"});return fetch(e).then(function(e){if(!e.ok)throw new Error("Request for "+t+" returned a response with status "+e.status);return cleanResponse(e).then(function(e){return r.put(t,e)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var n=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(t){return t.keys().then(function(e){return Promise.all(e.map(function(e){if(!n.has(e.url))return t.delete(e)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(t){if("GET"===t.request.method){var e,n=stripIgnoredUrlParameters(t.request.url,ignoreUrlParametersMatching),r="index.html";(e=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,r),e=urlsToCacheKeys.has(n));var a="/react-cookie-consent/index.html";!e&&"navigate"===t.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],t.request.url)&&(n=new URL(a,self.location).toString(),e=urlsToCacheKeys.has(n)),e&&t.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(e){return console.warn('Couldn\'t serve response for "%s" from cache: %O',t.request.url,e),fetch(t.request)}))}}); \ No newline at end of file diff --git a/static/css/main.4fc30c7c.css b/static/css/main.4fc30c7c.css new file mode 100644 index 0000000..359e274 --- /dev/null +++ b/static/css/main.4fc30c7c.css @@ -0,0 +1,2 @@ +body{font-family:sans-serif;margin:0;padding:0}.App{text-align:center}.App-logo{-webkit-animation:App-logo-spin 20s linear infinite;animation:App-logo-spin 20s linear infinite;height:80px}.App-header{background-color:#222;color:#fff;height:150px;padding:20px}.App-title{font-size:1.5em}.App-intro{font-size:large}@-webkit-keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}} +/*# sourceMappingURL=main.4fc30c7c.css.map*/ \ No newline at end of file diff --git a/static/css/main.4fc30c7c.css.map b/static/css/main.4fc30c7c.css.map new file mode 100644 index 0000000..5322fad --- /dev/null +++ b/static/css/main.4fc30c7c.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/main.4fc30c7c.css","mappings":"AAAA,KAGE,sBAAuB,CAFvB,QAAS,CACT,SAEF,CCJA,KACE,iBACF,CAEA,UACE,mDAA4C,CAA5C,2CAA4C,CAC5C,WACF,CAEA,YACE,qBAAsB,CAGtB,UAAY,CAFZ,YAAa,CACb,YAEF,CAEA,WACE,eACF,CAEA,WACE,eACF,CAEA,iCACE,GAAO,8BAAuB,CAAvB,sBAAyB,CAChC,GAAK,+BAAyB,CAAzB,uBAA2B,CAClC,CAHA,yBACE,GAAO,8BAAuB,CAAvB,sBAAyB,CAChC,GAAK,+BAAyB,CAAzB,uBAA2B,CAClC","sources":["index.css","App.css"],"sourcesContent":["body {\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n}\n",".App {\n text-align: center;\n}\n\n.App-logo {\n animation: App-logo-spin infinite 20s linear;\n height: 80px;\n}\n\n.App-header {\n background-color: #222;\n height: 150px;\n padding: 20px;\n color: white;\n}\n\n.App-title {\n font-size: 1.5em;\n}\n\n.App-intro {\n font-size: large;\n}\n\n@keyframes App-logo-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/css/main.c17080f1.css b/static/css/main.c17080f1.css deleted file mode 100644 index 5f3841c..0000000 --- a/static/css/main.c17080f1.css +++ /dev/null @@ -1,2 +0,0 @@ -body{margin:0;padding:0;font-family:sans-serif}.App{text-align:center}.App-logo{-webkit-animation:App-logo-spin infinite 20s linear;animation:App-logo-spin infinite 20s linear;height:80px}.App-header{background-color:#222;height:150px;padding:20px;color:#fff}.App-title{font-size:1.5em}.App-intro{font-size:large}@-webkit-keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}} -/*# sourceMappingURL=main.c17080f1.css.map*/ \ No newline at end of file diff --git a/static/css/main.c17080f1.css.map b/static/css/main.c17080f1.css.map deleted file mode 100644 index 9f05178..0000000 --- a/static/css/main.c17080f1.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["index.css","App.css"],"names":[],"mappings":"AAAA,KACE,SACA,UACA,sBAAwB,CCH1B,KACE,iBAAmB,CAGrB,UACE,oDACQ,4CACR,WAAa,CAGf,YACE,sBACA,aACA,aACA,UAAa,CAGf,WACE,eAAiB,CAGnB,WACE,eAAiB,CAGnB,iCACE,GAAO,+BAAiC,sBAAwB,CAChE,GAAK,gCAAmC,uBAA0B,CAAE,CAGtE,yBACE,GAAO,+BAAiC,sBAAwB,CAChE,GAAK,gCAAmC,uBAA0B,CAAE","file":"static/css/main.c17080f1.css","sourcesContent":["body {\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.css",".App {\n text-align: center;\n}\n\n.App-logo {\n -webkit-animation: App-logo-spin infinite 20s linear;\n animation: App-logo-spin infinite 20s linear;\n height: 80px;\n}\n\n.App-header {\n background-color: #222;\n height: 150px;\n padding: 20px;\n color: white;\n}\n\n.App-title {\n font-size: 1.5em;\n}\n\n.App-intro {\n font-size: large;\n}\n\n@-webkit-keyframes App-logo-spin {\n from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n@keyframes App-logo-spin {\n from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/App.css"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/main.c53f0247.js b/static/js/main.c53f0247.js new file mode 100644 index 0000000..fa3455e --- /dev/null +++ b/static/js/main.c53f0247.js @@ -0,0 +1,3 @@ +/*! For license information please see main.c53f0247.js.LICENSE.txt */ +!function(){var e={339:function(e,t,n){"undefined"!=typeof self&&self,e.exports=function(){var e={808:function(e,t,n){var r,l,a;void 0===(l="function"==typeof(r=a=function(){function e(){for(var e=0,t={};e0&&void 0!==arguments[0]?arguments[0]:_,t=u().get(e);return void 0===t?u().get(E(e)):t},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_;u().remove(e)},E=function(e){return"".concat(e,"-legacy")},_="CookieConsent",N=function(e){var t=e.condition,n=e.wrapper,r=e.children;return t?n(r):r},T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(i,e);var n,r,l,a,o=(l=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(l);if(a){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),b(g(t=o.call(this,e)),"handleScroll",(function(){var e=t.props.acceptOnScrollPercentage,n=document.documentElement,r=document.body,l="scrollTop",a="scrollHeight";(n[l]||r[l])/((n[a]||r[a])-n.clientHeight)*100>e&&t.accept(!0)})),b(g(t),"removeScrollListener",(function(){t.props.acceptOnScroll&&window.removeEventListener("scroll",t.handleScroll)})),t.state={visible:!1,style:{alignItems:"baseline",background:"#353535",color:"white",display:"flex",flexWrap:"wrap",justifyContent:"space-between",left:"0",position:"fixed",width:"100%",zIndex:"999"},buttonStyle:{background:"#ffd42d",border:"0",borderRadius:"0px",boxShadow:"none",color:"black",cursor:"pointer",flex:"0 0 auto",padding:"5px 10px",margin:"15px"},declineButtonStyle:{background:"#c12a2a",border:"0",borderRadius:"0px",boxShadow:"none",color:"#e5e5e5",cursor:"pointer",flex:"0 0 auto",padding:"5px 10px",margin:"15px"},contentStyle:{flex:"1 0 300px",margin:"15px"},overlayStyle:{position:"fixed",left:0,top:0,width:"100%",height:"100%",zIndex:"999",backgroundColor:"rgba(0,0,0,0.3)"}},t}return n=i,(r=[{key:"componentDidMount",value:function(){var e=this.props.debug;(void 0===this.getCookieValue()||e)&&(this.setState({visible:!0}),this.props.acceptOnScroll&&window.addEventListener("scroll",this.handleScroll,{passive:!0}))}},{key:"componentWillUnmount",value:function(){this.removeScrollListener()}},{key:"accept",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,n=t.cookieName,r=t.cookieValue,l=t.hideOnAccept,a=t.onAccept;this.setCookie(n,r),a(null!=e&&e),l&&(this.setState({visible:!1}),this.removeScrollListener())}},{key:"overlayClick",value:function(){var e=this.props,t=e.acceptOnOverlayClick,n=e.onOverlayClick;t&&this.accept(),n()}},{key:"decline",value:function(){var e=this.props,t=e.cookieName,n=e.declineCookieValue,r=e.hideOnDecline,l=e.onDecline;e.setDeclineCookie&&this.setCookie(t,n),l(),r&&this.setState({visible:!1})}},{key:"setCookie",value:function(e,t){var n=this.props,r=n.extraCookieOptions,l=n.expires,a=n.sameSite,o=this.props.cookieSecurity;void 0===o&&(o=!location||"https:"===location.protocol);var i=p(p({expires:l},r),{},{sameSite:a,secure:o});a===w.NONE&&u().set(E(e),t,i),u().set(e,t,i)}},{key:"getCookieValue",value:function(){var e=this.props.cookieName;return x(e)}},{key:"render",value:function(){var e=this;switch(this.props.visible){case S.HIDDEN:return null;case S.BY_COOKIE_VALUE:if(!this.state.visible)return null}var n=this.props,r=n.location,l=n.style,a=n.buttonStyle,o=n.declineButtonStyle,i=n.contentStyle,u=n.disableStyles,s=n.buttonText,c=n.declineButtonText,d=n.containerClasses,h=n.contentClasses,m=n.buttonClasses,v=n.buttonWrapperClasses,g=n.declineButtonClasses,y=n.buttonId,b=n.declineButtonId,w=n.disableButtonStyles,x=n.enableDeclineButton,C=n.flipButtons,E=n.ButtonComponent,_=n.overlay,T=n.overlayClasses,P=n.overlayStyle,j=n.ariaAcceptLabel,O=n.ariaDeclineLabel,z=n.customContainerAttributes,L=n.customContentAttributes,A=n.customButtonProps,R={},D={},I={},M={},F={};switch(u?(R=f({},l),D=f({},a),I=f({},o),M=f({},i),F=f({},P)):(R=f({},p(p({},this.state.style),l)),M=f({},p(p({},this.state.contentStyle),i)),F=f({},p(p({},this.state.overlayStyle),P)),w?(D=f({},a),I=f({},o)):(D=f({},p(p({},this.state.buttonStyle),a)),I=f({},p(p({},this.state.declineButtonStyle),o)))),r){case k.TOP:R.top="0";break;case k.BOTTOM:R.bottom="0"}var U=[];return x&&U.push(t().createElement(E,{key:"declineButton",style:I,className:g,id:b,"aria-label":O,onClick:function(){e.decline()}},c)),U.push(t().createElement(E,f({},A,{key:"acceptButton",style:D,className:m,id:y,"aria-label":j,onClick:function(){e.accept()}}),s)),C&&U.reverse(),t().createElement(N,{condition:_,wrapper:function(n){return t().createElement("div",{style:F,className:T,onClick:function(){e.overlayClick()}},n)}},t().createElement("div",f({className:"".concat(d),style:R},z),t().createElement("div",f({style:M,className:h},L),this.props.children),t().createElement("div",{className:"".concat(v)},U.map((function(e){return e})))))}}])&&h(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),i}(e.Component);T.propTypes={location:o().oneOf(Object.keys(k).map((function(e){return k[e]}))),visible:o().oneOf(Object.keys(S).map((function(e){return S[e]}))),sameSite:o().oneOf(Object.keys(w).map((function(e){return w[e]}))),style:o().object,buttonStyle:o().object,declineButtonStyle:o().object,contentStyle:o().object,children:o().any,disableStyles:o().bool,hideOnAccept:o().bool,hideOnDecline:o().bool,onAccept:o().func,onDecline:o().func,buttonText:o().oneOfType([o().string,o().func,o().element]),declineButtonText:o().oneOfType([o().string,o().func,o().element]),cookieName:o().string,cookieValue:o().oneOfType([o().string,o().bool,o().number]),declineCookieValue:o().oneOfType([o().string,o().bool,o().number]),setDeclineCookie:o().bool,debug:o().bool,expires:o().number,containerClasses:o().string,contentClasses:o().string,buttonClasses:o().string,buttonWrapperClasses:o().string,declineButtonClasses:o().string,buttonId:o().string,declineButtonId:o().string,extraCookieOptions:o().object,disableButtonStyles:o().bool,enableDeclineButton:o().bool,flipButtons:o().bool,ButtonComponent:o().elementType,cookieSecurity:o().bool,overlay:o().bool,overlayClasses:o().string,overlayStyle:o().object,onOverlayClick:o().func,acceptOnOverlayClick:o().bool,ariaAcceptLabel:o().string,ariaDeclineLabel:o().string,acceptOnScroll:o().bool,acceptOnScrollPercentage:o().number,customContentAttributes:o().object,customContainerAttributes:o().object,customButtonProps:o().object},T.defaultProps={disableStyles:!1,hideOnAccept:!0,hideOnDecline:!0,location:k.BOTTOM,visible:S.BY_COOKIE_VALUE,onAccept:function(){},onDecline:function(){},cookieName:_,cookieValue:!0,declineCookieValue:!1,setDeclineCookie:!0,buttonText:"I understand",declineButtonText:"I decline",debug:!1,expires:365,containerClasses:"CookieConsent",contentClasses:"",buttonClasses:"",buttonWrapperClasses:"",declineButtonClasses:"",buttonId:"rcc-confirm-button",declineButtonId:"rcc-decline-button",extraCookieOptions:{},disableButtonStyles:!1,enableDeclineButton:!1,flipButtons:!1,sameSite:w.LAX,ButtonComponent:function(e){var n=e.children,r=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},a=Object.keys(e);for(r=0;r=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,c);return t().createElement("button",r,n)},overlay:!1,overlayClasses:"",onOverlayClick:function(){},acceptOnOverlayClick:!1,ariaAcceptLabel:"Accept cookies",ariaDeclineLabel:"Decline cookies",acceptOnScroll:!1,acceptOnScrollPercentage:25,customContentAttributes:{},customContainerAttributes:{},customButtonProps:{}};var P=T}(),l}()},463:function(e,t,n){"use strict";var r=n(791),l=n(296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n