PageSourceSearch

https://wappsto.com/assets/CookieNotice-D-mWq_7O.js

js wappsto.com collected 2026-10-08 07:39:38 UTC 7,404 bytes, 2 lines download raw bytes

1import{r as J,h as a,c as Q,j as I,L as Z}from"./index-BZ3QyD5R.js";/*! js-cookie v3.0.5 | MIT */function C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)e[l]=n[l]}return e}var G={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function O(e,t){function n(o,i,s){if(!(typeof document>"u")){s=C({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var r in s)s[r]&&(c+="; "+r,s[r]!==!0&&(c+="="+s[r].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+c}}function l(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},c=0;c<i.length;c++){var r=i[c].split("="),f=r.slice(1).join("=");try{var u=decodeURIComponent(r[0]);if(s[u]=e.read(f,u),o===u)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:l,remove:function(o,i){n(o,"",C({},i,{expires:-1}))},withAttributes:function(o){return O(this.converter,C({},this.attributes,o))},withConverter:function(o){return O(C({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var y=O(G,{path:"/"});const ee=({condition:e,wrapper:t,children:n})=>e?t(n):n,S={TOP:"top",BOTTOM:"bottom"};var E=(e=>(e.STRICT="strict",e.LAX="lax",e.NONE="none",e))(E||{});const B={HIDDEN:"hidden",BY_COOKIE_VALUE:"byCookieValue"},N="CookieConsent",te=({children:e,...t})=>a.createElement("button",{...t},e),d={disableStyles:!1,hideOnAccept:!0,hideOnDecline:!0,location:S.BOTTOM,visible:B.BY_COOKIE_VALUE,onAccept:e=>{},onDecline:()=>{},cookieName:N,cookieValue:"true",declineCookieValue:"false",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:E.LAX,ButtonComponent:te,overlay:!1,overlayClasses:"",onOverlayClick:()=>{},acceptOnOverlayClick:!1,ariaAcceptLabel:"Accept cookies",ariaDeclineLabel:"Decline cookies",acceptOnScroll:!1,acceptOnScrollPercentage:25,customContentAttributes:{},customContainerAttributes:{},customButtonProps:{},customDeclineButtonProps:{},customButtonWrapperAttributes:{},style:{},buttonStyle:{},declineButtonStyle:{},contentStyle:{},overlayStyle:{}},oe={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)"}},ne=(e=N)=>{const t=y.get(e);return t===void 0?y.get(j(e)):t},j=e=>`${e}-legacy`,A=class extends J.Component{constructor(){super(...arguments),this.state=oe,this.handleScroll=()=>{const{acceptOnScrollPercentage:t}={...d,...this.props},n=document.documentElement,l=document.body,o="scrollTop",i="scrollHeight";(n[o]||l[o])/((n[i]||l[i])-n.clientHeight)*100>t&&this.accept(!0)},this.removeScrollListener=()=>{const{acceptOnScroll:t}=this.props;t&&globalThis.removeEventListener("scroll",this.handleScroll)}}componentDidMount(){const{debug:t}=this.props;(this.getCookieValue()===void 0||t)&&(this.setState({visible:!0}),this.props.acceptOnScroll&&globalThis.addEventListener("scroll",this.handleScroll,{passive:!0}))}componentWillUnmount(){this.removeScrollListener()}accept(t=!1){const{cookieName:n,cookieValue:l,hideOnAccept:o,onAccept:i}={...d,...this.props};this.setCookie(n,l),i(t??!1),o&&(this.setState({visible:!1}),this.removeScrollListener())}overlayClick(){const{acceptOnOverlayClick:t,onOverlayClick:n}={...d,...this.props};t&&this.accept(),n()}decline(){const{cookieName:t,declineCookieValue:n,hideOnDecline:l,onDecline:o,setDeclineCookie:i}={...d,...this.props};i&&this.setCookie(t,n),o(),l&&this.setState({visible:!1})}setCookie(t,n){const{extraCookieOptions:l,expires:o,sameSite:i}=this.props;let{cookieSecurity:s}=this.props;s===void 0&&(s=globalThis.location?globalThis.location.protocol==="https:":!0);const c={expires:o,...l,sameSite:i,secure:s};i===E.NONE&&y.set(j(t),n,c),y.set(t,n,c)}getCookieValue(){const{cookieName:t}=this.props;return ne(t)}render(){switch(this.props.visible){case B.HIDDEN:return null;case B.BY_COOKIE_VALUE:if(!this.state.visible)return null;break}const{location:t,style:n,buttonStyle:l,declineButtonStyle:o,contentStyle:i,disableStyles:s,buttonText:c,declineButtonText:r,containerClasses:f,contentClasses:u,buttonClasse
1s:w,buttonWrapperClasses:L,declineButtonClasses:U,buttonId:R,declineButtonId:V,disableButtonStyles:P,enableDeclineButton:W,flipButtons:_,ButtonComponent:D,overlay:K,overlayClasses:z,overlayStyle:T,ariaAcceptLabel:H,ariaDeclineLabel:M,customContainerAttributes:$,customContentAttributes:F,customButtonProps:Y,customDeclineButtonProps:X,customButtonWrapperAttributes:q}=this.props;let p={},b={},h={},k={},v={};switch(s?(p=Object.assign({},n),b=Object.assign({},l),h=Object.assign({},o),k=Object.assign({},i),v=Object.assign({},T)):(p=Object.assign({},{...this.state.style,...n}),k=Object.assign({},{...this.state.contentStyle,...i}),v=Object.assign({},{...this.state.overlayStyle,...T}),P?(b=Object.assign({},l),h=Object.assign({},o)):(b=Object.assign({},{...this.state.buttonStyle,...l}),h=Object.assign({},{...this.state.declineButtonStyle,...o}))),t){case S.TOP:p.top="0";break;case S.BOTTOM:p.bottom="0";break}const m=[];return W&&m.push(a.createElement(D,{key:"declineButton",style:h,className:U,id:V,"aria-label":M,onClick:()=>{this.decline()},...X},r)),m.push(a.createElement(D,{key:"acceptButton",style:b,className:w,id:R,"aria-label":H,onClick:()=>{this.accept()},...Y},c)),_&&m.reverse(),a.createElement(ee,{condition:K,wrapper:g=>a.createElement("div",{style:v,className:z,onClick:()=>{this.overlayClick()},onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),this.overlayClick())},role:"button",tabIndex:0,"aria-label":"Close cookie consent banner"},g)},a.createElement("div",{className:`${f}`,style:p,...$},a.createElement("div",{style:k,className:u,...F},this.props.children),a.createElement("div",{className:`${L}`,...q},m.map(g=>g))))}};A.defaultProps=d;let se=A;function ce(){const{tC:e}=Q("components","helpers");return I.jsxs(se,{location:"bottom",buttonText:e("cookieNotice.acceptButton"),style:{backgroundColor:"#5a548e"},buttonStyle:{backgroundColor:"#faba0d"},children:[`${e("cookieNotice.text")} `,I.jsx("a",{style:{color:"#faba0d"},href:Z.cookieNotice,children:e("cookieNotice.linkText")})]})}export{ce as default};
2//# sourceMappingURL=CookieNotice-D-mWq_7O.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.