1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1732],{15501:(e,r,t)=>{t.d(r,{j:()=>a});var n=t(2445),i=t(34529);function a({discountPercentage:e,sx:r}){let t=Math.round(Number(e));return t?(0,n.FD)(i.A,{component:"span",sx:{padding:"4px 8px",border:"1px solid",borderColor:"#f87171",borderRadius:"6px",fontSize:"20px",fontWeight:"600",lineHeight:"22px",color:"#f87171",backgroundColor:"#f871711a",...r},children:["-",t,"%"]}):null}},96971:(e,r,t)=>{t.d(r,{N:()=>v});var n=t(2445),i=t(8722),a=t(34529),c=t(14953),o=t.n(c),l=t(96540),u=t(48060),s=t(54604);let m=async e=>{let r=await fetch(e);if(!r.ok){let e="Failed to fetch price";try{e=(await r.json()).message||e}catch{}throw Error(e)}try{return await r.json()}catch(r){throw console.error(`Failed to parse JSON response from ${e}:`,r),Error(`Invalid JSON response from ${e}`)}};var d=t(64412),p=t(15501),f=t(63229);let _=o()(()=>Promise.all([t.e(3717),t.e(2416),t.e(6798),t.e(579),t.e(6097),t.e(6098),t.e(9182),t.e(7020),t.e(5690),t.e(9131),t.e(7004),t.e(6453),t.e(8286),t.e(7826),t.e(6348),t.e(6337)]).then(t.bind(t,6337)).then(e=>e.InstalmentsModal),{loadableGenerated:{webpack:()=>[6337]},ssr:!1});function v({product:e,stock_status:r,showDiscountBadge:t=!0,finalPriceSx:c,oldPriceSx:o,wrapperSx:v,isPdp:h=!1,fetchFreshPrice:g=!1}){let y=(0,i.Y)(),[x,w]=(0,l.useState)(!1),[S,k]=(0,l.useState)(!1),{price:O}=function(e){let{data:r,error:t,isLoading:n}=(0,u.Ay)(e?`/api/products/${e}/price`:null,m,{...s.D,revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,dedupingInterval:1e4,errorRetryCount:2,errorRetryInterval:5e3});return{price:r,isLoading:n,isError:t}}(x&&(h||g)&&e?.url_key||"");if((0,l.useEffect)(()=>{(h||g)&&w(!0)},[h,g]),!e)return null;let b=r===f.V.OUT_OF_STOCK,F=e?.price_range?.maximum_price,C=O?.price_range?.maximum_price||F;if(!C)return null;let I=C.final_price?.value,D=C.regular_price?.value,T=C.discount?.percent_off,A=C.final_price?.currency;if(void 0===I||void 0===A)return null;let N=T?(0,n.Y)(p.j,{discountPercentage:T}):null,E=T?(0,n.Y)(a.A,{component:"span",sx:{textDecoration:"line-through",color:"#a08165",fontWeight:300,fontSize:"16px",lineHeight:"22px",...o},children:(0,d.$)(D,A,y)}):null;return(0,n.FD)(n.FK,{children:[(0,n.FD)(a.A,{sx:{display:"flex",alignItems:"center",flexDirection:{xs:"column",md:"row"},gap:"8px",my:{xs:"1rem",md:"2rem"},minHeight:"48px",...v},children:[(0,n.FD)(a.A,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&!b&&N,!b&&E,(0,n.Y)(a.A,{component:"p",sx:{fontSize:"20px",lineHeight:"22px",fontWeight:"600",color:"#555353",m:0,...b&&{textDecoration:"line-through",color:"#9e9e9e"},...c},children:(0,d.$)(I,A,y)})]}),h&&!b&&(0,n.Y)(a.A,{component:"span",sx:{textDecoration:"underline",cursor:"pointer",color:"#111827",fontSize:"13px",pl:"20px",fontWeight:700},onClick:()=>k(!0),children:"Taksit Se\xe7enekleri"})]}),(0,n.Y)(_,{open:S,onClose:()=>k(!1),finalPrice:I,hasDiscount:!!T||e?.es_limited===1})]})}},63229:(e,r,t)=>{t.d(r,{V:()=>n});var n=function(e){return e.IN_STOCK="IN_STOCK",e.OUT_OF_STOCK="OUT_OF_STOCK",e}({})},80710:(e,r,t)=>{t.d(r,{B:()=>a});var n=t(96540),i=t(2614);function a(){return{trackAddToCartEvent:(0,n.useCallback)((e,r=1,t)=>{if(!e||!e.name||!e.sku){console.warn("â ï¸ Invalid product data, skipping tracking");return}!function(){if("undefined"!=typeof localStorage)try{let e=Object.keys(localStorage).filter(e=>e.startsWith("cart_snapshot_")),r=Object.keys(localStorage).filter(e=>e.startsWith("purchase_tracked_")),t=[...e,...r];t.length>0&&t.forEach(e=>{try{localStorage.removeItem(e)}catch(r){console.error(`Failed to remove ${e}:`,r)}})}catch(e){console.error("Failed to cleanup:",e)}}();let n=e.price_range?.maximum_price?.final_price?.value||0,a=e.price_range?.maximum_price?.final_price?.currency||"TRY",c={item_id:e.sku,item_name:e.name,price:n,currency:a,item_category:e.categories?.[0]?.name,item_category2:e.categories?.[1]?.name,item_category3:e.categories?.[2]?.name,item_brand:e.manufacturer?.[0]?.label||e.manufacturer?.[0]?.value,quantity:r,item_variant:t?.map(e=>`${e.attribute}: ${e.value}`).join(", ")};(0,i.Ml)(c,r)},[])}}},54604:(e,r,t)=>{t.d(r,{D:()=>n});let n={revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,dedupingInterval:3e5,errorRetryCount:2,errorRetryInterval:5e3}},2614:(e,r,t)=>{function n(e,r={}){return(window.dataLayer=window.dataLayer||[],window.dataLayer&&(window.dataLayer.push(e),r.waitForSend))?new Promise(e=>{setTimeout(()=>{e()},300)}):Promise.resolve()}function i(e){n({event:"view_item",ecommerce:{currency:e.currency,value:e.price,items:[e]}})}function a(e,r=1){let t={...e,quantity:r};n({event:"add_to_cart",ecommerce:{currency:e.currency,value:e.price*r,items:[t]}})}function c(e){n({event:"view_cart",ecommerce:{currency:e.currency,value:e.value,items:e.items}})}function o(e,r=1){let t={...e,quantity:r};n({event:"remove_from_cart",ecommerce:{currency:e.currency,value:e.price*r,items:[t]}})}async function l(e){let r={event:"begin_checkout",ecommerce:{currency:e.currency,value:e.value,items:e.items}};await n(r,{waitForSend:!0})}function u(e){let r=e.customer_email?.trim().toLowerCase()||void 0;r&&window.gtag?.("set","user_data",{email_address:r}),n({event:"purchase",ecommerce:{transaction_id:e.transaction_id,currency:e.currency,value:e.value,tax:e.tax,shipping:e.shipping,coupon:e.coupon,items:e.items},...r?{user_data:{email_address:r}}:{}})}function s(e){n({event:"add_to_wishlist",ecommerce:{currency:e.currency,value:e.price,items:[e]}})}function m(e){n({event:"remove_from_wishlist",ecommerce:{currency:e.currency,value:e.price,items:[e]}})}function d(e){n({event:"login",method:e||"email"})}function p(){n({event:"logout"})}t.d(r,{AS:()=>i,Du:()=>u,Fu:()=>s,Ml:()=>a,N5:()=>c,US:()=>p,Ui:()=>o,XB:()=>d,XO:()=>m,xS:()=>l})}}]);
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.