PageSourceSearch

https://toolstoy.com.tr/_next/static/chunks/593.0dc39e066e2b2960.js

js toolstoy.com.tr collected 2026-10-09 03:04:24 UTC 11,179 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[593],{3805:(e,t,n)=>{"use strict";function r(e,t){let n=e.pane??t.pane;return n?{...e,pane:n}:e}n.d(t,{P:()=>r})},15378:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(90974),s=n(69722),a=n(12115);let i=(0,a.forwardRef)(function({bounds:e,boundsOptions:t,center:n,children:i,className:l,id:c,placeholder:o,style:u,whenReady:d,zoom:f,...m},h){let[p]=(0,a.useState)({className:l,id:c,style:u}),[v,x]=(0,a.useState)(null),_=(0,a.useRef)(void 0);(0,a.useImperativeHandle)(h,()=>v?.map??null,[v]);let w=(0,a.useCallback)(a=>{if(null!==a&&!_.current){let i=new s.Map(a,m);_.current=i,null!=n&&null!=f?i.setView(n,f):null!=e&&i.fitBounds(e,t),null!=d&&i.whenReady(d),x((0,r.fB)(i))}},[]);(0,a.useEffect)(()=>()=>{v?.map.remove()},[v]);let j=v?a.createElement(r.dk,{value:v},i):o??null;return a.createElement("div",{...p,ref:w},j)})},47684:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var r=n(54856),s=n(3805),a=n(63489),i=n(69722);let l=(0,r.X3)(function({url:e,...t},n){let r=new i.TileLayer(e,(0,s.P)(t,n));return(0,a.Q)(r,n)},function(e,t,n){!function(e,t,n){let{opacity:r,zIndex:s}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=s&&s!==n.zIndex&&e.setZIndex(s)}(e,t,n);let{url:r}=t;null!=r&&r!==n.url&&e.setUrl(r)})},54856:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>d,Lt:()=>f,X3:()=>m});var r=n(12115);n(47650);var s=n(90974);function a(e){return(0,r.forwardRef)(function(t,n){let{instance:a,context:i}=e(t).current;(0,r.useImperativeHandle)(n,()=>a);let{children:l}=t;return null==l?null:r.createElement(s.dk,{value:i},l)})}var i=n(63489);function l(e,t){let n=(0,r.useRef)(void 0);(0,r.useEffect)(function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}},[e,t])}var c=n(3805);function o(e,t){(0,r.useEffect)(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function u(e){return function(t){var n,a;let i,u=(0,s.U$)(),d=e((0,c.P)(t,u),u);return n=u.map,a=t.attribution,i=(0,r.useRef)(a),(0,r.useEffect)(function(){a!==i.current&&null!=n.attributionControl&&(null!=i.current&&n.attributionControl.removeAttribution(i.current),null!=a&&n.attributionControl.addAttribution(a)),i.current=a},[n,a]),l(d.current,t.eventHandlers),o(d.current,u),d}}function d(e,t){return a(u((0,i.K)(e,t)))}function f(e,t){var n;return a((n=(0,i.K)(e,t),function(e){var t;let a,i=(0,s.U$)(),u=n((0,c.P)(e,i),i);return l(u.current,e.eventHandlers),o(u.current,i),t=u.current,a=(0,r.useRef)(void 0),(0,r.useEffect)(function(){if(e.pathOptions!==a.current){let n=e.pathOptions??{};t.instance.setStyle(n),a.current=n}},[t,e]),u}))}function m(e,t){var n;return n=u((0,i.K)(e,t)),(0,r.forwardRef)(function(e,t){let{instance:s}=n(e).current;return(0,r.useImperativeHandle)(t,()=>s),null})}},59481:(e,t,n)=>{"use strict";n.d(t,{ko:()=>s});var r=n(90974);function s(){return(0,r.U$)().map}n(12115)},60593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(95155),s=n(12115),a=n(59481),i=n(15378),l=n(47684),c=n(86765),o=n(69722),u=n.n(o),d=n(60087);n(90737);let f=u().divIcon({className:"tt-hm-pin",html:'<div class="tt-hm-pin__shape"></div>',iconSize:[28,28],iconAnchor:[14,28]}),m=u().divIcon({className:"tt-hm-pin tt-hm-pin--active",html:'<div class="tt-hm-pin__shape"></div>',iconSize:[32,32],iconAnchor:[16,32]});function h(){let e=(0,a.ko)();return(0,s.useEffect)(()=>{let t=()=>{try{e.invalidateSize({animate:!1,pan:!1})}catch{}};t();let n=[0,200,600].map(e=>window.setTimeout(t,e)),r=()=>window.setTimeout(t,120);return window.addEventListener("toolstoy-store-map-resize",r),window.addEventListener("resize",r),()=>{n.forEach(e=>window.clearTimeout(e)),window.removeEventListener("toolstoy-store-map-resize",r),window.removeEventListener("resize",r)}},[e]),null}function p({activeIndex:e,animate:t}){let n=(0,a.ko)(),r=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{if(!r.current){r.current=!0;let e=d.r.map(e=>e.lat),t=d.r.map(e=>e.lng);n.fitBounds([[Math.min(...e),Math.min(...t)],[Math.max(...e),Math.max(...t)]],{padding:[40,40],maxZoom:11,animate:!1});return}let s=d.r[e];
1if(s){if(t)return void n.setView([s.lat,s.lng],14,{animate:!0});n.setView([s.lat,s.lng],n.getZoom(),{animate:!1})}},[e,t,n]),null}function v({stock:e}){if(null==e)return(0,r.jsx)("span",{className:"tt-hm__stock tt-hm__stock--loading",children:"…"});let t=Number(e);return!t||t<0?(0,r.jsxs)("span",{className:"tt-hm__stock tt-hm__stock--out",children:[(0,r.jsxs)("svg",{viewBox:"0 0 20 20","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"10",cy:"10",r:"8.25",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,r.jsx)("path",{d:"M7.2 7.2l5.6 5.6M12.8 7.2l-5.6 5.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),"Stokta Yok"]}):t<=5?(0,r.jsxs)("span",{className:"tt-hm__stock tt-hm__stock--low",children:[(0,r.jsxs)("svg",{viewBox:"0 0 20 20","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"10",cy:"10",r:"10",fill:"currentColor"}),(0,r.jsx)("rect",{x:"9",y:"4.5",width:"2",height:"7.5",rx:"1",fill:"#fff"}),(0,r.jsx)("circle",{cx:"10",cy:"15",r:"1.3",fill:"#fff"})]}),"Son ",t," Adet"]}):(0,r.jsxs)("span",{className:"tt-hm__stock tt-hm__stock--ok",children:[(0,r.jsxs)("svg",{viewBox:"0 0 20 20","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"10",cy:"10",r:"10",fill:"currentColor"}),(0,r.jsx)("path",{d:"M5.8 10.1l2.6 2.6 5.8-5.9",fill:"none",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),t," Adet"]})}function x(){let[e,t]=(0,s.useState)(0),[n,a]=(0,s.useState)(!1),[o,u]=(0,s.useState)(()=>d.r.map(()=>null)),x=(0,s.useRef)(null),_=(0,s.useRef)([]),w=d.r[e]??d.r[0],j=(0,s.useCallback)(e=>{u(t=>t.map((t,n)=>void 0!==e[n]?e[n]:t))},[]);(0,s.useEffect)(()=>{let e=e=>{let t=e.detail;t?.stockMap&&j(t.stockMap)};return window.addEventListener("toolstoy-product-warehouse-stocks",e),()=>window.removeEventListener("toolstoy-product-warehouse-stocks",e)},[j]),(0,s.useEffect)(()=>(window.TT_updateStoreStocks=e=>j(e),()=>{delete window.TT_updateStoreStocks}),[j]);let k=(0,s.useCallback)(e=>{let t=_.current[e],n=x.current;if(!t||!n)return;let r=t.offsetTop,s=r+t.offsetHeight,a=n.scrollTop,i=a+n.clientHeight;r<a+14?n.scrollTop=Math.max(0,r-14):s>i-14&&(n.scrollTop=s-n.clientHeight+14)},[]),g=(0,s.useCallback)((e,n=!1,r=!1)=>{e<0||e>=d.r.length||(t(e),a(r),n&&k(e))},[k]);return(0,r.jsx)("div",{className:"tt-hm-store-locator",children:(0,r.jsx)("div",{className:"tt-hm",children:(0,r.jsxs)("div",{className:"tt-hm__body",children:[(0,r.jsx)("div",{className:"tt-hm__tab",children:"Hangi Mağazada Var?"}),(0,r.jsxs)("div",{className:"tt-hm__panel",children:[(0,r.jsx)("div",{className:"tt-hm__list-wrap",children:(0,r.jsx)("div",{className:"tt-hm__list",ref:x,role:"list",children:d.r.map((t,n)=>(0,r.jsxs)("article",{ref:e=>{_.current[n]=e},className:`tt-hm__card${e===n?" tt-hm__card--active":""}`,role:"listitem",children:[(0,r.jsxs)("div",{className:"tt-hm__card-head",children:[(0,r.jsx)("h3",{className:"tt-hm__card-name",children:t.name}),(0,r.jsx)("span",{className:"tt-hm__stock-wrap",children:(0,r.jsx)(v,{stock:o[n]})})]}),(0,r.jsxs)("p",{className:"tt-hm__card-row",children:[(0,r.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})}),(0,r.jsx)("span",{children:t.address})]}),(0,r.jsxs)("p",{className:"tt-hm__card-row",children:[(0,r.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"})}),(0,r.jsx)("a",{href:t.phoneHref,children:t.phone})]}),(0,r.jsxs)("div",{className:"tt-hm__actions",children:[(0,r.jsxs)("button",{type:"button",className:"tt-hm__btn tt-hm__btn--show",onClick:()=>g(n,!0,!0),children:[(0,r.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"})}),"G\xf6ster"]}),(0,r.jsxs)("a",{className:"tt-hm__btn tt-hm__btn--dir",href:`https://www.google.com/maps/dir/?api=1&destination=${t.lat},${t.lng}`,target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})}),"Yol Tarifi"]})]})]},t.name))})}),(0,r.jsxs)("div",{className:"tt-hm__map-wrap",children:[(0,r.jsxs)("div",{className:`tt-hm__map-info${w?" tt-hm__map-info--visible":""}`,"aria-live":"polite",children:[(0,r.jsx)("strong",{className:"tt-hm__map-info-name",children:w.name}),(0,r.jsx)("span",{className:"tt-hm__map-info-address",children:w.address})]}),(0,r.jsxs)(i.W,{className:"tt-hm__map",center:[38.42,27.35],zoom:9,minZoom:8,maxZoom:18,scrollWheelZoom:!0,"aria-label":"Mağaza haritası",children:[(0,r.jsx)(l.e,{attribution:'\xa9 <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",maxZoom:19}),(0,r.jsx)(h,{}),(0,r.jsx)(p,{activeIndex:e,animate:n}),d.r.map((t,n)=>(0,r.jsx)(c.p,{position:[t.lat,t.lng],icon:e===n?m:f,eventHandlers:{click:()=>g(n,!1,!1)}},t.name))]})]})]})]})})})}}
1,63489:(e,t,n)=>{"use strict";n.d(t,{K:()=>a,Q:()=>s});var r=n(12115);function s(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function a(e,t){return null==t?function(t,n){let s=(0,r.useRef)(void 0);return s.current||(s.current=e(t,n)),s}:function(n,s){let a=(0,r.useRef)(void 0);a.current||(a.current=e(n,s));let i=(0,r.useRef)(n),{instance:l}=a.current;return(0,r.useEffect)(function(){i.current!==n&&(t(l,n,i.current),i.current=n)},[l,n,t]),a}}},86765:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var r=n(54856),s=n(63489),a=n(90974),i=n(69722);let l=(0,r.Nq)(function({position:e,...t},n){let r=new i.Marker(e,t);return(0,s.Q)(r,(0,a.W4)(n,{overlayContainer:r}))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})},90737:()=>{}
1,90974:(e,t,n)=>{"use strict";n.d(t,{U$:()=>l,W4:()=>a,dk:()=>i,fB:()=>s});var r=n(12115);function s(e){return Object.freeze({__version:1,map:e})}function a(e,t){return Object.freeze({...e,...t})}let i=(0,r.createContext)(null);function l(){let e=(0,r.use)(i);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}}}]);

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.