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.