PageSourceSearch

https://tuprasventures.com/ygm/tuprasventures-web/assets/js/cc.js?…nrYsuKUY0q5w_OOxzlPuq8YWxNO1NUq1Jt1Vqp_ycpE

js tuprasventures.com collected 2026-10-07 17:52:36 UTC 21,303 bytes, 287 lines download raw bytes

1import cc from "./cm.esm.js";
2
3window.dataLayer = window.dataLayer || [];
4function gtag() { dataLayer.push(arguments); }
5
6function getCookieConfig() {
7    return window.cookieConsentConfig || {};
8}
9
10function initCookieConsent() {
11    cc.run({
12        disablePageInteraction: true,
13        cookie: {
14            expiresAfterDays: 365,
15        },
16        categories: {
17            necessary: {
18                enabled: true,
19                readOnly: true,
20            },
21            analytics: {
22                enabled: false,
23                services: {
24                    analyticsgoogle: {
25                        enabled: false,
26                        readOnly: false,
27                        onAccept: () => { },
28                        translations: {
29                            tr: {
30                                content: "Açık rızanızı vermeniz halinde, kişisel verileriniz İnternet Sitesi üzerinde kullanıcı davranışlarının analiz edilmesi suretiyle raporlama yapılması amacıyla yurt dışında yerleşik Google LLC'ye aktarılabilecektir.",
31                                label: "Yurt Dışı Aktarım İzni (Google)"
32                            },
33                            en: {
34                                content: "In cases where you give your explicit consent, your personal data processed by using Google Analytics cookies may be transferred to Google LLC located abroad for the purpose of reporting by analyzing user behavior on the Website.",
35                                label: "Consent to Cross-border Data Transfer (Google)"
36                            }
37                        }
38                    }
39                },
40            },
41            marketing: {
42                enabled: false,
43                services: {
44                    marketinggoogle: {
45                        enabled: false,
46                        readOnly: false,
47                        onAccept: () => { },
48                        translations: {
49                            tr: {
50                                content: "Açık rızanızı vermeniz halinde, kişisel verileriniz İnternet Sitesi üzerinden kullanıcılara kişiselleştirilmiş reklamların sunulması amacıyla yurt dışında yerleşik Google LLC'ye aktarılabilecektir.",
51                                label: "Yurt Dışı Aktarım İzni (Google)"
52                            },
53                            en: {
54                                content: "In cases where you give your explicit consent, your personal data processed through the use of Google Analytics cookies may be transferred to Google LLC, located abroad, for the purpose of providing personalized advertisements to users.",
55                                label: "Consent to Cross-border Data Transfer (Google)"
56                            }
57                        }
58                    }
59                },
60            },
61            functionality: {
62                enabled: false,
63                services: {
64                    functionalitygoogle: {
65                        enabled: false,
66                        readOnly: false,
67                        onAccept: () => { },
68                        translations: {
69                            tr: {
70                                content: "Açık rızanızı vermeniz halinde, İnternet Sitesi üzerindeki belirli işlevlerin sağlanması ve bunlara dair tercihlerinizin hatırlanması amacıyla yurt dışında yerleşik Google LLC'ye aktarılabilecektir.",
71                                label: "Yurt Dışı Aktarım İzni (Google)"
72                            },
73                            en: {
74                                content: "In cases where you give your explicit consent, your personal data processed through the use of Google Analytics cookies may be transferred to Google LLC, located abroad, for the purpose of providing certain functions on the Website and remembering your preferences regarding these functions.",
75                                label: "Consent to Cross-border Data Transfer (Google)"
76                            }
77                        }
78                    }
79                },
80            }
81        },
82        language: {
83            default: "en",
84            translations: {
85                tr: {
86                    consentModal: {
87                        title: "Gizlilik Tercihi Merkezi",
88                        description: `İnternet sitemizin sağlanması ve bilgi toplumu hizmetlerinin sunulması için zorunlu çerezler kullanmaktayız. Ayrıca deneyimizin iyileştirilmesi, size yönelik reklam/pazarlama faaliyetlerinin gerçekleştirilmesi internet sitemizin daha işlevsel kullanılması ve geliştirilebilmesi için performans analizinin gerçekleştirilmesi kapsamında üçüncü taraf iş ortaklarımızın da erişebileceği çerezler kullanmak istenmektedir. Zorunlu olmayan çerezler onay vermediğiniz durumlarda kullanılmayacaktır. Çerezler vasıtasıyla kişisel verilerinizin yurt dışına aktarımına yönelik bilgiler “Çerez Tercihlerimi Yönet” altında sunulmakta olup, tercihlerinize göre kişisel verileriniz yurt dışına aktarılabilecektir. <br/> <br/>
89İnternet Sitesi’nde kullanılan çerezlerin türü ve kullanım amaçları ile bu çerezler bakımından sahip olduğunuz tercih haklarınıza ilişkin detaylı bilgiler için <a href="https://www.tupras.com.tr/tr/cerez-politikasi" target="_blank">Çerez Aydınlatma Metni'ni</a> incelemenizi rica ederiz.`,
90                        acceptAllBtn: "İsteğe Bağlı Çerezlerin Tümünü Kabul Et",
91                        acceptNecessaryBtn: "İsteğe Bağlı Çerezlerin Tümünü Reddet",
92                        showPreferencesBtn: "Çerez Tercihlerimi Yönet",
93                    },
94                    preferencesModal: {
95                        title: "Gizlilik Tercihi Merkezi",
96                        acceptAllBtn: "İsteğe Bağlı Çerezlerin Tümünü Kabul Et",
97                        acceptNecessaryBtn: "İsteğe Bağlı Çerezlerin Tümünü Reddet",
98                        savePreferencesBtn: "Seçimleri Kaydet",
99                        showCloseIcon: false,
100                        sections: [
101                            {
102                                title: "",
103                                description: `İnternet sitemizin sağlanması ve bilgi toplumu hizmetlerinin sunulması için zorunlu çerezler kullanmaktayız. Ayrıca deneyimizin iyileştirilmesi, size yönelik reklam/pazarlama faaliyetlerinin gerçekleştirilmesi internet sitemizin daha işlevsel kullanılması ve geliştirilebilmesi için performans analizinin gerçekleştirilmesi kapsamında üçüncü taraf iş ortaklarımızın da erişebileceği çerezler kullanmak istenmektedir. Zorunlu olmayan çerezler onay vermediğiniz durumlarda kullanılmayacaktır. Çerezler vasıtasıyla kişisel verilerinizin yurt dışına aktarımına yönelik bilgiler “Çerez Tercihlerimi Yönet” altında sunulmakta olup, tercihlerinize göre kişisel verileriniz yurt dışına aktarılabilecektir. <br/> <br/>
104İnternet Sitesi’nde kullanılan çerezlerin türü ve kullanım amaçları ile bu çerezler bakımından sahip olduğunuz tercih haklarınıza ilişkin detaylı bilgiler için <a href="https://www.tupras.com.tr/tr/cerez-politikasi" target="_blank">Çerez Aydınlatma Metni'ni</a> incelemenizi rica ederiz.`,
105                            },
106                            {
107                                title: "Zorunlu Çerezler (Her Zaman Etkin)",
108                                description:
109                                    "Zorunlu çerezler, İnternet Sitesi’ni görüntülemeniz esnasında cihazınıza yerleştirilen ve sunulan çevrimiçi servislerin düzgün şekilde çalışabilmesi için gerekli olan çerezlerdir.  Zorunlu çerezlerle edindiğimiz kişisel verileri işlerken KVK Kanunu m.5 kapsamında “İlgili kişinin temel hak ve özgürlüklerine zarar vermemek kaydıyla, veri sorumlusunun meşru menfaatleri için veri işlenmesinin zorunlu olması.” ve “Bir sözleşmenin kurulması veya ifasıyla doğrudan doğruya ilgili olması kaydıyla, sözleşmenin taraflarına ait kişisel verilerin işlenmesinin gerekli olması” hukuki sebeplerine dayanılmaktadır.",
110                                linkedCategory: "necessary",
111                            },
112                            {
113                                title: "Performans ve Analitik (Opsiyonel)",
114                                description: "Performans ve analitik çerezleri, İnternet Sitesi ziyaret ve trafiğini takip ve analiz etmemizi sağlar. Bu çerezler sayesinde İnternet Sitesi üzerindeki alanlardan hangilerinin en sık ya da seyrek ziyaret edildiği gibi b
114ilgileri edinebilir ve İnternet Sitesi’nin trafiğini optimize edebiliriz. İlgili bilgi toplumu hizmetini açıkça talep etmediğiniz hallerde söz konusu olan çerezlerin ve üçüncü taraf analitik çerezlerinin kullanımı esnasında gerçekleştirdiğimiz veri işleme faaliyetleri için KVK Kanunu m.5 kapsamında söz konusu olması halinde “açık rızanıza” dayanılmaktadır.",
115                                linkedCategory: "analytics",
116                            },
117                            {
118                                title: "İşlevsellik Çerezleri (Opsiyonel)",
119                                description: "İşlevsel çerezler, Platform üzerindeki belirli işlevlerin sağlanması ve bunlara dair tercihlerinizin hatırlanması için gerekli olan çerezlerdir. Platform üzerinde dil tercihinizi hatırlamak ya da çerez kullanımına yönelik ayarlarınızı kaydetmek için işlevsellik çerezleri kullanılır.<br/> <br/>İlgili bilgi toplumu hizmetini açıkça talep etmediğiniz hallerde söz konusu olan çerezlerin ve üçüncü taraf çerezlerinin kullanımı esnasında gerçekleştirdiğimiz veri işleme faaliyetleri için KVK Kanunu m.5 kapsamında söz konusu olması halinde “açık rızanıza” dayanılmaktadır.",
120                                linkedCategory: "functionality",
121                            },
122                            {
123                                title: "Kişiselleştirilmiş Reklam ve Pazarlama Çerezleri (Opsiyonel)",
124                                description: "Kişiselleştirilmiş reklam çerezleri, sizlere İnternet Sitesi’nde veya İnternet Sitesi haricindeki mecralarda görüntüleme geçmişinize ve ziyaretçi profilinize uygun olarak kişiselleştirilmiş ürün ve hizmet tanıtımı yapmak için kullanılır. Bu çerezlerin kullanımı esnasında gerçekleştirdiğimiz veri işleme faaliyetleri için KVK Kanunu m.5 kapsamında veri işleme şartı olarak “açık rızanıza” dayanılmaktadır.",
125                                linkedCategory: "marketing",
126                            }
127                        ]
128                    }
129                },
130                en: {
131                    consentModal: {
132                        title: "Privacy Preference Center",
133                        description: `We use essential cookies for the provision of the Website and the provision of information society services. In addition, performance and analytics cookies are requested to be used within the scope of using the Website more functionally and improving your experience; and advertising and marketing cookies within the scope of personalized product and service promotion for you. Non-e
133ssential cookies will not be used if you do not give your consent <br/><br/>
134						You may review the <a href="https://www.tupras.com.tr/en/cookie-policy" target="_blank">Cookie Privacy Notice</a> for detailed information on the type of cookies used on the Website, the purposes for their use and your preference rights in terms of these cookies. Information on the transfer of your personal data abroad through cookies is provided under “Manage My Cookie Preferences” and your personal data may be transferred abroad according to your preferences. <br/> <br/>
135						For detailed information about the types and purposes of cookies used on the Website and your preference rights regarding these cookies, please review the <a href="https://www.tupras.com.tr/en/cookie-policy" target="_blank">Cookie Privacy Notice</a>.`,
136                        acceptAllBtn: "Accept All Optional Cookies",
137                        acceptNecessaryBtn: "Reject All Optional Cookies",
138                        showPreferencesBtn: "Manage My Cookie Preferences",
139                    },
140                    preferencesModal: {
141                        title: "Privacy Preference Center",
142                        acceptAllBtn: "Accept All Optional Cookies",
143                        acceptNecessaryBtn: "Reject All Optional Cookies",
144                        savePreferencesBtn: "Save Selections",
145                        showCloseIcon: false,
146                        sections: [
147                            {
148                                title: "",
149                                description: `We use essential cookies for the provision of the Website and the provision of information society services. In addition, performance and analytics cookies are requested to be used within the scope of using the Website more functionally and improving your experience; and advertising and marketing cookies within the scope of personalized product and service promotion for you. Non-e
149ssential cookies will not be used if you do not give your consent <br/><br/>
150								You may review the <a href="https://www.tupras.com.tr/en/cookie-policy" target="_blank">Cookie Privacy Notice</a> for detailed information on the type of cookies used on the Website, the purposes for their use and your preference rights in terms of these cookies. Information on the transfer of your personal data abroad through cookies is provided under “Manage My Cookie Preferences” and your personal data may be transferred abroad according to your preferences. <br/> <br/>
151								For detailed information about the types and purposes of cookies used on the Website and your preference rights regarding these cookies, please review the <a href="https://www.tupras.com.tr/en/cookie-policy" target="_blank">Cookie Privacy Notice</a>.`,
152                            },
153                            {
154                                title: "Essential Cookies (Always)",
155                                description: "Essential cookies are cookies that are placed on your device while you view the Website and are necessary for the proper functioning of the online services provided. When processing the personal data we obtain through mandatory cookies, we rely on the legal grounds of “processing of personal data of the parties of a contract is necessary, provided that it is directly related to the establishment or performance of the contract” and “processing of data is necessary for the legitimate interests pursued by the data controller, provided that this processing shall not violate the fundamental rights and freedoms of the data subject” within the scope of Article 5 of the PDP Law.",
156                                linkedCategory: "necessary",
157                            },
158                            {
159                                title: "Performance and Analytics Cookies (Optional)",
160                                description: "Performance and analytical cookies allow us to track and analyze the number of people viewing the Website and Website traffic. By means of these cookies, we may obtain information such as which areas on the Website are most frequently or rarely visited and we may optimize the traffic of the Website. <br/> <br/>In cases where you do not explicitly request the relevant information society service, we rely on your ‘explicit consent’ for the data processing activities we carry out during the use of cookies and third-party analytical cookies within the scope of Article 5 of the PDP Law.",
161                                linkedCategory: "analytics",
162                            },
163                            {
164                                title: "Functional Cookies (Optional)",
165                                description: "Functional cookies are necessary for providing certain functions on the Platform and remembering your preferences for them. Functionality cookies are used to remember your language preference on the Platform or to save your settings for the use of cookies.<br/> <br/>In cases where you do not explicitly request the relevant information society service, your ‘explicit consent’ is relied on for the data processing activities we carry out during the use of cookies and third party cookies within the scope of Article 5 of the PDP Law.",
166                                linkedCategory: "functionality",
167                            },
168                            {
169                                title: "Personalized Advertising and Marketing Cookies (Optional)",
170                                description: "Personalised advertising cookies are used to promote personalised products and services to you on the Website or in media other than the Website in accordance with your viewing history and visitor profile. For the data processing activities we carry out during the use of these cookies, we rely on your ‘explicit consent’ as a data processing condition within the scope of Article 5 of the PDP Law.",
171                                linkedCategory: "marketing",
172                            }
173                        ],
174                    },
175                },
176            },
177        },
178        guiOptions: {
179            consentModal: {
180                layout: "box wide",
181                position: "middle center",
182                flipButtons: false,
183                equalWeightButtons: true,
184            },
185            preferencesModal: {
186                layout: "box wide",
187                position: "middle center",
188                flipButtons: false,
189                equalWeightButtons: true,
190            },
191        },
192
193        onModalReady: () => { setConsentDefault(); },
194        onUserAction: () => { setConsent(); },
195        onChange: () => { },
196        onConsent: () => { },
197        onModalShow: () => {
198            cc.setLanguage(document.getElementsByTagName("html")[0].lang || "en");
199        },
200        onModalHide: () => { },
201        onFirstConsent: () => { }
202    });
203}
204
205if (document.readyState === "loading") {
206    document.addEventListener("DOMContentLoaded", initCookieConsent);
207} else {
208    initCookieConsent();
209}
210
211function setConsentDefault() {
212    gtag("js", new Date());
213    gtag("consent", "default", {
214        ad_storage: "denied",
215        ad_user_data: "denied",
216        ad_personalization: "denied",
217        analytics_storage: "denied",
218        functionality_storage: "denied"
219    });
220}
221
222function setConsent() {
223    const consentSettings = {
224        ad_storage: "denied",
225        ad_user_data: "denied",
226        ad_personalization: "denied",
227        analytics_storage: "denied",
228        functionality_storage: "denied"
229    };
230    const preferences = cc.getUserPreferences();
231    preferences.acceptedCategories.forEach(category => {
232        switch (category) {
233            case "analytics":
234                consentSettings.analytics_storage = "granted";
235                break;
236            case "marketing":
237                consentSettings.ad_storage = "granted";
238                consentSettings.ad_user_data = "granted";
239                consentSettings.ad_personalization = "granted";
240                break;
241            case "functionality":
242                consentSettings.functionality_storage = "granted";
243                break;
244            default:
245                break;
246        }
247    });
248    gtag("consent", "update", consentSettings);
249    sendConsentLog();
250}
251
252function joinServices(categories, services) {
253    const extras = [];
254    ["analytics", "marketing", "functionality"].forEach(function (key) {
255        if (services && Array.isArray(services[key])) {
256            extras.push.apply(extras, services[key]);
257        }
258    });
259    return (categories || []).concat(extras).join(",");
260}
261
262function sendConsentLog() {
263    const cookie = cc.getCookie();
264    const preferences = cc.getUserPreferences();
265    const config = getCookieConfig();
266    const acceptedServicesConcat = joinServices(preferences.acceptedCategories, preferences.acceptedServices);
267    const rejectedServicesConcat = joinServices(preferences.rejectedCategories, preferences.rejectedServices);
268
269    try {
270        var data = {
271            website: config.website || window.location.origin,
272            consentUuid: cookie.consentId,
273            consentDate: cookie.consentTimestamp,
274            lastConsentUpdate: cookie.lastConsentTimestamp,
275            acceptedCategories: acceptedServicesConcat,
276            rejectedCategories: rejectedServicesConcat
277        };
278
279        var xhr = new XMLHttpRequest();
280        xhr.open("POST", config.apiUrl || "https://tp-apim.tupras.com.tr/cookie-api/api/cookie/upsert", true);
281        if (config.subscriptionKey) {
282            xhr.setRequestHeader("Ocp-Apim-Subscription-Key", config.subscriptionKey);
283        }
284        xhr.setRequestHeader("Content-Type", "application/json");
285        xhr.send(JSON.stringify(data));
286    } catch (e) { }
287}

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.