|
619 | 619 | typeof window.initCookieConsent !== "function" && (window.initCookieConsent = Wa); |
620 | 620 | })(); |
621 | 621 |
|
622 | | - // src/languages/en.js |
| 622 | + // src/languages/cs.js |
623 | 623 | var config = { |
624 | 624 | consent_modal: { |
625 | | - title: "I use cookies", |
626 | | - description: "Your cookie consent message here", |
| 625 | + title: "Tyto str\xE1nky vyu\u017E\xEDvaj\xED cookies", |
| 626 | + description: `Kliknut\xEDm na \u201EP\u0159ijmout v\u0161e\u201C d\xE1v\xE1te souhlas spole\u010Dnosti LMC s.r.o. k\xA0vyu\u017E\xEDv\xE1n\xED soubor\u016F Cookies a\xA0dal\u0161\xEDch identifik\xE1tor\u016F ve\xA0va\u0161em za\u0159\xEDzen\xED. Pou\u017Eit\xED t\u011Bchto Cookies a\xA0dal\u0161\xEDch identifik\xE1tor\u016F usnadn\xED navigaci na str\xE1nk\xE1ch, zobrazen\xED personalizovan\xE9ho obsahu, c\xEDlen\xFD marketing, anal\xFDzu vyu\u017E\xEDv\xE1n\xED na\u0161ich produkt\u016F a\xA0slu\u017Eeb. |
| 627 | + V\xEDce informac\xED naleznete na\xA0str\xE1nce\xA0<a href="https://www.lmc.eu/cs/cookies" target="_blank">Pou\u017E\xEDv\xE1n\xED\xA0cookies</a>.`, |
627 | 628 | primary_btn: { |
628 | | - text: "Accept", |
| 629 | + text: "P\u0159ijmout v\u0161e", |
629 | 630 | role: "accept_all" |
630 | 631 | }, |
631 | 632 | secondary_btn: { |
632 | | - text: "Reject", |
| 633 | + text: "P\u0159ijmout nezbytn\xE9", |
633 | 634 | role: "accept_necessary" |
634 | 635 | } |
635 | 636 | }, |
636 | 637 | settings_modal: { |
637 | | - title: "Cookie settings", |
638 | | - save_settings_btn: "Save settings", |
639 | | - accept_all_btn: "Accept all", |
640 | | - reject_all_btn: "Reject all", |
641 | | - close_btn_label: "Close", |
642 | 638 | blocks: [ |
643 | 639 | { |
644 | 640 | toggle: { |
|
647 | 643 | readonly: true |
648 | 644 | } |
649 | 645 | }, |
| 646 | + { |
| 647 | + toggle: { |
| 648 | + value: "ad", |
| 649 | + enabled: false, |
| 650 | + readonly: false |
| 651 | + } |
| 652 | + }, |
650 | 653 | { |
651 | 654 | toggle: { |
652 | 655 | value: "analytics", |
|
672 | 675 | } |
673 | 676 | }; |
674 | 677 |
|
675 | | - // src/languages/cs.js |
| 678 | + // src/languages/en.js |
676 | 679 | var config2 = { |
677 | 680 | consent_modal: { |
678 | | - title: "Tyto str\xE1nky pou\u017E\xEDvaj\xED cookies", |
679 | | - description: 'Cookies pou\u017E\xEDv\xE1me, abychom zajistili spr\xE1vn\xE9 fungov\xE1n\xED a bezpe\u010Dnost na\u0161ich str\xE1nek, t\xEDm p\xE1dem co nejlep\u0161\xED zku\u0161enost p\u0159i n\xE1v\u0161t\u011Bv\u011B. Kliknut\xEDm na \u201EP\u0159ijmout v\u0161echny\u201C d\xE1v\xE1te sv\u016Fj souhlas s pou\u017Eit\xEDm cookies pro \xFA\u010Dely reklamy a analytik. Sv\xE1 nastaven\xED cookies m\u016F\u017Eete pozd\u011Bji kdykoliv zm\u011Bnit. V\xEDce informac\xED naleznete v <a href="#">Prohl\xE1\u0161en\xED o cookies.</a>', |
| 681 | + title: "This website uses cookies", |
| 682 | + description: `By clicking on "Accept all", you give your consent to LMC s.r.o. to use cookies and other identifiers on your device. The use of these cookies and other identifiers will simplify navigation on the site, enable personalized content, targeted marketing, analysis of the usage of our products and services. |
| 683 | + For more information read page <a href="https://www.lmc.eu/en/cookies/" target="_blank">Use\xA0of\xA0cookies</a>.`, |
680 | 684 | primary_btn: { |
681 | | - text: "P\u0159ijmout", |
| 685 | + text: "Accept all", |
682 | 686 | role: "accept_all" |
683 | 687 | }, |
684 | 688 | secondary_btn: { |
685 | | - text: "P\u0159ijmout nezbytn\xE9", |
| 689 | + text: "Accept necessary", |
| 690 | + role: "accept_necessary" |
| 691 | + } |
| 692 | + }, |
| 693 | + settings_modal: { |
| 694 | + blocks: [ |
| 695 | + { |
| 696 | + toggle: { |
| 697 | + value: "necessary", |
| 698 | + enabled: true, |
| 699 | + readonly: true |
| 700 | + } |
| 701 | + }, |
| 702 | + { |
| 703 | + toggle: { |
| 704 | + value: "ad", |
| 705 | + enabled: false, |
| 706 | + readonly: false |
| 707 | + } |
| 708 | + }, |
| 709 | + { |
| 710 | + toggle: { |
| 711 | + value: "analytics", |
| 712 | + enabled: false, |
| 713 | + readonly: false |
| 714 | + } |
| 715 | + }, |
| 716 | + { |
| 717 | + toggle: { |
| 718 | + value: "functionality", |
| 719 | + enabled: false, |
| 720 | + readonly: false |
| 721 | + } |
| 722 | + }, |
| 723 | + { |
| 724 | + toggle: { |
| 725 | + value: "personalization", |
| 726 | + enabled: false, |
| 727 | + readonly: false |
| 728 | + } |
| 729 | + } |
| 730 | + ] |
| 731 | + } |
| 732 | + }; |
| 733 | + |
| 734 | + // src/languages/pl.js |
| 735 | + var config3 = { |
| 736 | + consent_modal: { |
| 737 | + title: "Ta strona u\u017Cywa cookies", |
| 738 | + description: `Klikaj\u0105c \u201EAkceptuj\u0119 wszystkie\u201D, wyra\u017Casz zgod\u0119 aby LMC s.r.o. wykorzystywa\u0142o pliki cookie i\xA0inne identyfikatory na Twoim urz\u0105dzeniu. Korzystanie z\xA0tych plik\xF3w cookie i\xA0innych identyfikator\xF3w u\u0142atwi nawigacj\u0119 w\xA0serwisie, wy\u015Bwietlanie spersonalizowanych tre\u015Bci, marketing ukierunkowany, analiz\u0119 korzystania z\xA0naszych produkt\xF3w i\xA0us\u0142ug. |
| 739 | + Wi\u0119cej informacji znajdziesz na stronie\xA0<a href="https://www.lmc.eu/pl/cookies" target="_blank">Korzystanie z\xA0plik\xF3w Cookies</a>.`, |
| 740 | + primary_btn: { |
| 741 | + text: "Akceptuj wszystkie", |
| 742 | + role: "accept_all" |
| 743 | + }, |
| 744 | + secondary_btn: { |
| 745 | + text: "Akceptuj niezb\u0119dne", |
| 746 | + role: "accept_necessary" |
| 747 | + } |
| 748 | + }, |
| 749 | + settings_modal: { |
| 750 | + blocks: [ |
| 751 | + { |
| 752 | + toggle: { |
| 753 | + value: "necessary", |
| 754 | + enabled: true, |
| 755 | + readonly: true |
| 756 | + } |
| 757 | + }, |
| 758 | + { |
| 759 | + toggle: { |
| 760 | + value: "ad", |
| 761 | + enabled: false, |
| 762 | + readonly: false |
| 763 | + } |
| 764 | + }, |
| 765 | + { |
| 766 | + toggle: { |
| 767 | + value: "analytics", |
| 768 | + enabled: false, |
| 769 | + readonly: false |
| 770 | + } |
| 771 | + }, |
| 772 | + { |
| 773 | + toggle: { |
| 774 | + value: "functionality", |
| 775 | + enabled: false, |
| 776 | + readonly: false |
| 777 | + } |
| 778 | + }, |
| 779 | + { |
| 780 | + toggle: { |
| 781 | + value: "personalization", |
| 782 | + enabled: false, |
| 783 | + readonly: false |
| 784 | + } |
| 785 | + } |
| 786 | + ] |
| 787 | + } |
| 788 | + }; |
| 789 | + |
| 790 | + // src/languages/sk.js |
| 791 | + var config4 = { |
| 792 | + consent_modal: { |
| 793 | + title: "Tieto str\xE1nky pou\u017E\xEDvaj\xFA cookies", |
| 794 | + description: `Kliknut\xEDm na \u201EPrija\u0165 v\u0161etky\u201C d\xE1vate s\xFAhlas spolo\u010Dnosti LMC s.r.o. k\xA0vyu\u017E\xEDvaniu s\xFAborov Cookies a\xA0\u010Fal\u0161\xEDch identifik\xE1torov vo\xA0va\u0161om zariaden\xED. Pou\u017Eitie t\xFDchto cookies a\xA0\u010Fal\u0161\xEDch identifik\xE1torov u\u013Eah\u010D\xED navig\xE1ciu na\xA0str\xE1nkach, zobrazenie personalizovan\xE9ho obsahu, cielen\xFD marketing, anal\xFDzu vyu\u017E\xEDvania na\u0161ich produktov a\xA0slu\u017Eieb. |
| 795 | + Viac inform\xE1ci\xED n\xE1jdete na\xA0str\xE1nke\xA0<a href="https://www.lmc.eu/sk/cookies" target="_blank">Pou\u017E\xEDvanie\xA0cookies</a>.`, |
| 796 | + primary_btn: { |
| 797 | + text: "Prija\u0165 v\u0161etky", |
| 798 | + role: "accept_all" |
| 799 | + }, |
| 800 | + secondary_btn: { |
| 801 | + text: "Prija\u0165 nevyhnutn\xE9", |
686 | 802 | role: "accept_necessary" |
687 | 803 | } |
688 | 804 | }, |
689 | 805 | settings_modal: { |
690 | | - title: "Nastaven\xED cookies", |
691 | | - save_settings_btn: "Ulo\u017Eit nastaven\xE9", |
692 | | - accept_all_btn: "P\u0159ijmout v\u0161e", |
693 | | - reject_all_btn: "Odm\xEDtnout v\u0161e", |
694 | | - close_btn_label: "Zav\u0159\xEDt", |
695 | 806 | blocks: [ |
696 | 807 | { |
697 | 808 | toggle: { |
|
700 | 811 | readonly: true |
701 | 812 | } |
702 | 813 | }, |
| 814 | + { |
| 815 | + toggle: { |
| 816 | + value: "ad", |
| 817 | + enabled: false, |
| 818 | + readonly: false |
| 819 | + } |
| 820 | + }, |
703 | 821 | { |
704 | 822 | toggle: { |
705 | 823 | value: "analytics", |
|
726 | 844 | }; |
727 | 845 |
|
728 | 846 | // src/LmcCookieConsentManager.js |
729 | | - var defaultOptions = { currentLang: "cs", themeCss: "", config: {} }; |
730 | | - var LmcCookieConsentManager = (options = defaultOptions) => { |
731 | | - const { currentLang, themeCss, config: config3 } = options; |
732 | | - const cookieconsent = window.initCookieConsent(); |
733 | | - cookieconsent.run(__spreadValues({ |
734 | | - current_lang: currentLang, |
735 | | - auto_language: true, |
736 | | - theme_css: themeCss, |
737 | | - cookie_name: "lmc_ccm", |
738 | | - cookie_expiration: 365, |
739 | | - use_rfc_cookie: true, |
| 847 | + var defaultOptions = { |
| 848 | + defaultLang: "cs", |
| 849 | + autodetectLang: true, |
| 850 | + themeCss: "", |
| 851 | + onFirstAccept: (cookie, cookieConsent) => { |
| 852 | + }, |
| 853 | + onFirstAcceptOnlyNecessary: (cookie, cookieConsent) => { |
| 854 | + }, |
| 855 | + onFirstAcceptAll: (cookie, cookieConsent) => { |
| 856 | + }, |
| 857 | + onAccept: (cookie, cookieConsent) => { |
| 858 | + }, |
| 859 | + onAcceptOnlyNecessary: (cookie, cookieConsent) => { |
| 860 | + }, |
| 861 | + onAcceptAll: (cookie, cookieConsent) => { |
| 862 | + }, |
| 863 | + config: {} |
| 864 | + }; |
| 865 | + var LmcCookieConsentManager = (args) => { |
| 866 | + const options = __spreadValues(__spreadValues({}, defaultOptions), args); |
| 867 | + const { |
| 868 | + defaultLang, |
| 869 | + autodetectLang, |
| 870 | + themeCss, |
| 871 | + onFirstAccept, |
| 872 | + onFirstAcceptOnlyNecessary, |
| 873 | + onFirstAcceptAll, |
| 874 | + onAccept, |
| 875 | + onAcceptOnlyNecessary, |
| 876 | + onAcceptAll, |
| 877 | + config: config5 |
| 878 | + } = options; |
| 879 | + const cookieName = "lmc_ccm"; |
| 880 | + const cookieConsent = window.initCookieConsent(); |
| 881 | + const isFirstTimeAccept = !cookieConsent.validCookie(cookieName); |
| 882 | + cookieConsent.run(__spreadValues({ |
| 883 | + auto_language: autodetectLang, |
740 | 884 | autorun: true, |
| 885 | + cookie_expiration: 365, |
| 886 | + cookie_name: cookieName, |
| 887 | + current_lang: defaultLang, |
741 | 888 | delay: 0, |
742 | 889 | force_consent: false, |
743 | 890 | hide_from_bots: true, |
| 891 | + page_scripts: true, |
| 892 | + theme_css: themeCss, |
| 893 | + use_rfc_cookie: true, |
744 | 894 | gui_options: { |
745 | 895 | consent_modal: { |
746 | 896 | layout: "bar", |
|
749 | 899 | } |
750 | 900 | }, |
751 | 901 | onAccept: (cookie) => { |
| 902 | + const givenLevels = cookieConsent.get("level"); |
| 903 | + const acceptedOnlyNecessary = givenLevels.length === 1 && givenLevels[0] === "necessary"; |
752 | 904 | window.dataLayer = window.dataLayer || []; |
753 | 905 | window.dataLayer.push({ |
754 | 906 | event: "CookieConsent-update", |
|
758 | 910 | "CookieConsent.personalization": cookie.level.includes("personalization"), |
759 | 911 | "CookieConsent.revision": cookie.revision |
760 | 912 | }); |
| 913 | + onAccept(cookie, cookieConsent); |
| 914 | + if (isFirstTimeAccept) { |
| 915 | + onFirstAccept(cookie, cookieConsent); |
| 916 | + acceptedOnlyNecessary ? onFirstAcceptOnlyNecessary(cookie, cookieConsent) : onFirstAcceptAll(cookie, cookieConsent); |
| 917 | + } |
| 918 | + acceptedOnlyNecessary ? onAcceptOnlyNecessary(cookie, cookieConsent) : onAcceptAll(cookie, cookieConsent); |
761 | 919 | }, |
762 | 920 | languages: { |
763 | | - en: config, |
764 | | - cs: config2 |
| 921 | + cs: config, |
| 922 | + en: config2, |
| 923 | + pl: config3, |
| 924 | + sk: config4 |
765 | 925 | } |
766 | | - }, config3)); |
| 926 | + }, config5)); |
| 927 | + return cookieConsent; |
767 | 928 | }; |
768 | 929 | var LmcCookieConsentManager_default = LmcCookieConsentManager; |
769 | 930 | })(); |
0 commit comments