1((u,d)=>{var s=u.kanewsEczane||{},n=s.strings||{};function g(e,a){return null!=n[e]&&""!==n[e]?n[e]:a}function f(e){return String(e||"").replace(/&/g,"&").replace(/&/g,"&")}function i(a){if(!a)return"";try{return new URL(f(a),u.location.origin).pathname.replace(/\/+$/,"")||"/"}catch(e){return String(a).replace(/\/+$/,"")}}function t(e){return{wrap:e.querySelector("[data-eczane-location-wrap]"),value:e.querySelector("[data-eczane-location-value]"),btn:e.querySelector("[data-eczane-geo-btn]"),status:e.querySelector("[data-eczane-geo-status]")}}function m(e,a){e=t(e);e.wrap&&e.value&&(a?(e.value.textContent=a,e.wrap.hidden=!1):(e.wrap.hidden=!0,e.value.textContent=""))}function p(e,a,n){e=t(e);e.status&&(e.status.textContent=a||"",e.status.className="eczane-v2__status"+(n?" is-"+n:""),e.status.hidden=!a)}function b(e,a){e=t(e);e.btn&&(e.btn.disabled=a,e.btn.setAttribute("aria-busy",a?"true":"false"))}function y(){if("function"==typeof u.kanewsNonce){var e=u.kanewsNonce("eczane");if(e)return e}return s.nonce||""}function r(i,e){var a=e.manual,r=e.onMatch,l=e.onError,c=e.fallbackLabel||"";navigator.geolocation?(b(i,!0),m(i,g("locating","Konum alınıyorâ¦")),p(i,"",""),navigator.geolocation.getCurrentPosition(function(e){var a,n,t,o;a=e.coords.latitude,e=e.coords.longitude,n=function(e,a){b(i,!1),!e&&a&&a.url?(a.label&&m(i,a.label),r&&r({url:f(a.url),slug:a.slug||"",name:a.label||""},a)):(m(i,c),l&&(e=(a=e)?"string"==typeof a?a:a.code||"geoFail":"geoFail",l("notInTurkey"===e?g("notInTurkey","Konumunuz Türkiye dıÅında görünüyor."):"noMatch"===e?g("noMatch","Konumunuz eÅleÅtirilemedi."):g("geoFail","Konum alınamadı."))))},t=new u.URLSearchParams,o=s.ajaxUrl||u.ajaxurl||"/wp-admin/admin-ajax.php",t.set("action","kanews_eczane_geocode"),t.set("nonce",y()),t.set("lat",String(a)),t.set("lng",String(e)),u.fetch(o,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:t.toString(),credentials:"same-origin"}).then(function(e){return e.json()}).then(function(e){e&&e.success&&e.data&&e.data.url?n(null,e.data):n(e&&e.data||{code:"geoFail"})}).catch(function(){n({code:"geoFail"})})},function(){b(i,!1),m(i,c),l&&l(g("geoFail","Konum alınamadı."))},{enableHighAccuracy:!1,timeout:15e3,maximumAge:3e5})):a&&l&&l(g("noGeo","Tarayıcınız konum özelliÄini desteklemiyor."))}function e(){var n,t,e=s.page,o=document.querySelector("[data-eczane-page-geo]");function a(){t||r(o,{manual:t=!0,fallbackLabel:n.label||"",onMatch:function(e,a){(e=>{var a;return e&&e.url&&(e=i(e.url),a=i(n.url||u.location.pathname),Boolean(e&&a&&e===a))})(e)?(b(o,t=!1),a&&a.label&&m(o,a.label),p(o,"","")):(p(o,g("redirecting","Yönlendiriliyorsunuzâ¦"),"info"),u.location.href=e.url)},onError:function(e){var a=e;e===g("geoFail","Konum alınamadı.")?a=g("geoFailPage","Konum alınamadı. Lütfen il seçin."):e===g("noMatch","Konumunuz eÅleÅtirilemedi.")&&(a=g("noMatchPage","Konumunuz eÅleÅtirilemedi. Lütfen il seçin.")),e=a,b(o,t=!1),m(o,n.label||""),p(o,e||g("geoFailPage","Konum alınamadı. Lütfen il seçin."),"error")}})}e&&o&&(n=e.current||{},t=!1,e=o.querySelector("[data-eczane-geo-btn]"))&&e.addEventListener("click",function(){a()})}function h(e,a){var n=e.find("[data-eczane-location-value]"),t=e.find("[data-eczane-geo-btn]"),o=e.find("[data-eczane-geo-status]");a.loading?(n.text(g("locating","Konum alınıyorâ¦")),e.find("[data-eczane-location-wrap]").prop("hidden",!1),t.prop("disabled",!0).attr("aria-busy","true"),o.prop("hidden",!0).text("").removeClass("is-error")):(t.prop("disabled",!1).attr("aria-busy","false"),a.label&&(n.text(a.label),e.find("[data-eczane-location-wrap]").prop("hidden",!1),e.find("[data-eczane-hero-place]").text(a.label)),a.error?o.text(a.error).prop("hidden",!1).addClass("is-error"):o.prop("hidden",!0).text("").removeClass("is-error"))}function a(c){var e=String(c.data("region")||""),a=String(c.data("city")||""),n=a&&a!==e?e+" / "+a:e;n&&h(c,{label:n}),c.on("click","[data-eczane-geo-btn]",function(e){e.preventDefault();e=c.get(0);h(c,{loading:!0}),r(e,{manual:!0,fallbackLabel:n,onMatch:function(e,a){var n,t,o,i,r,l;a&&a.region?(h(c,{label:a.label}),n=c,t=a.region,o=a.city,i=a.lat,a=a.lng,r=n.find("[data-eczane-body]"),l={action:"kanews_eczane_widget",nonce:y(),region:t,city:o,limit:n.data("limit")||0,page_link:n.data("pageLink")||""},"number"==typeof i&&"number"==typeof a&&(l.lat=i,l.lng=a),r.addClass("is-loading"),d.post(s.ajaxUrl||u.ajaxurl||"/wp-admin/admin-ajax.php",l).done(function(e){e&&e.success&&e.data?(r.html(e.data.html||""),e.data.label&&h(n,{label:e.data.label}),void 0!==e.data.count&&n.find("[data-eczane-count]").text(e.data.count),n.data("region",e.data.region||t),n.data("city",e.data.city||o)):h(n,{error:g("loadFail","Liste yüklenemedi.")})}).fail(function(){h(n,{error:g("loadFail","Liste yüklenemedi.")})}).always(function(){r.removeClass("is-loading")})):h(c,{error:g("noMatch","Konumunuz eÅleÅtirilemedi.")})},onError:function(e){h(c,{error:e})}})})}function o(){var t,o=document.querySelector("[data-kanews-trmap]");function i(){t.hidden=!0}o&&(t=o.querySelector("[data-kanews-trmap-tip]"))&&(o.addEventListener("pointermove",function(e){var a,n;"touch"!==e.pointerType&&(a=e.target.closest?e.target.closest(".kanews-trmap__il"):null)&&(e=e,a=(a=a).getAttribute("data-il"))?(n=o.getBoundingClientRect(),t.textContent=a,t.hidden=!1,t.style.left=e.clientX-n.left+"px",t.style.top=e.clientY-n.top+"px"):i()}),o.addEventListener("pointerleave",i),u.addEventListener("scroll",i,{passive:!0}))}function l(){e(),o(),d("[data-eczane-widget]").each(function(){a(d(this))})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",l):l()})(window,jQuery);
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.