PageSourceSearch

https://gulfamateurs.com/_next/static/chunks/8708-02388669782b9db3.js

js gulfamateurs.com collected 2026-10-01 16:17:11 UTC 21,146 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3768,8708],{33768:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var i=s(95155),a=s(12115),r=s(44283),n=s(44115);let l=()=>(0,i.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("g",{id:"icon",children:(0,i.jsx)("path",{id:"Vector",d:"M8.33002 2.99544C8.2421 2.99752 8.15856 3.03426 8.0976 3.09766L4.99995 6.19531L1.90229 3.09766C1.87123 3.06572 1.83408 3.04034 1.79304 3.02301C1.752 3.00568 1.70791 2.99675 1.66336 2.99674C1.59705 2.99676 1.53225 3.01656 1.47724 3.05359C1.42224 3.09063 1.37953 3.14323 1.35458 3.20467C1.32963 3.26611 1.32356 3.33359 1.33717 3.39849C1.35077 3.46339 1.38342 3.52276 1.43094 3.56901L4.76427 6.90234C4.82678 6.96483 4.91156 6.99994 4.99995 6.99994C5.08834 6.99994 5.17311 6.96483 5.23562 6.90234L8.56896 3.56901C8.61736 3.52246 8.65058 3.46237 8.66426 3.39662C8.67794 3.33087 8.67145 3.26252 8.64562 3.20052C8.6198 3.13853 8.57585 3.08578 8.51953 3.04918C8.46322 3.01259 8.39716 2.99386 8.33002 2.99544Z",fill:"currentColor"})})});var d=s(95795),o=s(16405),c=s(41002),u=s(36039),p=s(53980),h=s(95555);let m=(0,s(15455).eU)(null),x=e=>{let{rate:t,ratings:s,productId:x,canReview:g}=e,{handleOpenPopup:j}=(0,o.A)(c.z5),[b,f]=(0,h.fp)(m),_=(0,d.B)(),w=(0,u.a)(),v=(0,a.useRef)(null),y=!w&&b===x;return(0,a.useEffect)(()=>{if(!y)return;let e=e=>{v.current&&!v.current.contains(e.target)&&f(null)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[y,f]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{ref:v,className:"d-flex gap-2",style:{width:"fit-content"},onClick:()=>{f(e=>e===x?null:x)},children:[(0,i.jsx)(n.A,{rate:t}),(0,i.jsxs)("div",{className:"product-review-count",children:[(0,i.jsx)(l,{}),s&&Object.values(s).reduce((e,t)=>e+t,0)]})]}),y&&(0,i.jsx)(p.A,{target:v.current,show:!0,placement:"right-start",transition:!1,children:(0,i.jsxs)("div",{className:"rate-context-menu",children:[(0,i.jsx)("div",{className:"context-title",children:_.product_review}),(0,i.jsx)(r.A,{menu:!0,rate:t,ratings:s}),(0,i.jsx)("div",{className:"see-all-reviews",onClick:()=>{j({product_id:x,rate:t,ratings:s,canReview:g})},children:_.see_all_reviews})]})})]})}},38708:(e,t,s)=>{s.r(t),s.d(t,{default:()=>ec});var i=s(95155),a=s(63191),r=s(1281),n=s(95795),l=s(16664),d=s(36039),o=s(56438),c=s(16072),u=s(45894),p=s(12115),h=s(10721),m=s(2491),x=s(25323),g=s(54088),j=s(35777),b=s(63647);let f=e=>{let{value:t,setValue:s,onBlur:a,disabled:r=!1}=e,l=(0,n.B)(),[d,o]=(0,p.useState)(2);return(0,i.jsx)("textarea",{disabled:r,rows:d,value:t,placeholder:l.enter_your_note_here,className:"textarea",onChange:e=>{let t=e.target.rows;e.target.rows=1;let i=~~((e.target.scrollHeight-16)/18);i===t?e.target.rows=i:i>=5&&(e.target.rows=5,e.target.scrollTop=e.target.scrollHeight),o(i<5?i:5),s(e.target.value)},onBlur:a})},_=e=>{let{notes:t,setNotes:s,disabled:r=!1}=e,n=(0,a.useGetCompanyQuery)(),{show_customer_notes:l,customer_notes_label:d}=n?.data?.result?.theme?.components?.product??{};return l?(0,i.jsxs)("div",{children:[(0,i.jsx)(b.A,{startLabel:d??"",marginBottom:8}),(0,i.jsx)(f,{disabled:r,value:t,setValue:s})]}):null};var w=s(68302),v=s(47123),y=s(13456),C=s(40464);let k=e=>{let{tagIds:t,themeTags:s,productId:a,className:r}=e,n=(0,C.BH)(t,s);return 0===n.length?null:(0,i.jsx)("ul",{id:`product-tags-${a}`,className:`product-tags${r?` ${r}`:""}`,children:n.map(e=>(0,i.jsx)("li",{id:`product-tag-${a}-${e.id}`,className:`product-tag product-tag-${e.id}`,"data-tag-id":e.id,"data-tag-name":e.name,style:{"--product-tag-theme-bg":e.bgColor,"--product-tag-theme-color":e.textColor},children:e.name},e.id))})};var A=s(33768),N=s(97332);let L=e=>{let{product:t,isConfigrablePopup:s=!1,link:r,showRate:l,getPrise:d}=e,o=(0,n.B)(),c=(0,a.useGetCompanyQuery)(),{show_discount_badge:u,show_new_badge:p,show_sku:m,show_sold_quantity_badge:g,product_tags:j}=c?.data?.result?.theme?.components?.product??{},b=p&&t?.is_new,f=u&&t?.discount_amount>0,_=!!g&&t.sold_quantity>0,C=b||f||_;return(0,i.jsxs)("div",{className:"main-info",children:[(0,i.jsx)("h1",{className:"name",style:{textDecorationLine:s?"underline":"initial",dis
1play:"flex",margin:0},children:t.name}),(0,i.jsx)("div",{style:{width:"fit-content"},children:r}),t.brand&&(0,i.jsx)(x.Link,{prefetch:!1,href:`/brands/${t.brand.slug||t.brand.id}`,children:(0,i.jsxs)(v.y,{className:"m-0 align-items-center",style:{gap:4},children:[(0,i.jsx)(v.f,{className:"p-0 col-auto",children:(0,i.jsx)("div",{style:{width:24,height:24},children:(0,i.jsx)(y.A,{alt:t.name+" brand",width:24,height:24,src:t?.brand?.logo?.thumbnail_url??t?.brand?.logo?.image_url??t?.brand?.logo_url??"",objectFit:"contain"})})}),(0,i.jsx)(v.f,{className:"p-0",children:(0,i.jsx)("div",{className:"brand-logo",children:t?.brand?.name})})]})}),l&&(0,i.jsx)(A.default,{rate:t?.rate,ratings:t?.ratings,canReview:t?.can_review,productId:t.parent_id??t.id}),m&&t.sku&&(0,i.jsx)("div",{className:"sku",children:`SKU: ${t?.sku}`}),(0,i.jsx)(k,{tagIds:t.tag_ids,themeTags:j,productId:t.id}),C&&(0,i.jsxs)(v.y,{className:"m-0 align-items-center",style:{gap:4},children:[b&&(0,i.jsx)(v.f,{className:"p-0 col-auto",children:(0,i.jsx)("div",{className:"new",children:o.new})}),_&&(0,i.jsx)(v.f,{className:"p-0 col-auto",children:(0,i.jsx)("div",{className:"new",children:`${o.sold} ${t.sold_quantity} ${o.pcs}`})}),f&&(()=>{let e=d("discount_amount"),t=d("discount_type"),s=d("discount");if(!e)return null;let a=t===w.T.rate?(0,N.Qg)(s):null;return(0,i.jsx)(v.f,{className:"col-auto sale",children:a||(0,i.jsx)(h.A,{price:{value:-e,className:""},roundPrice:!0})},"discount-badge")})()]}),!s&&t?.description?.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{className:"description fw-bold",children:o.description}),t?.description?.split("\n").map((e,t)=>(0,i.jsx)("p",{className:"description",children:e},t))]})]})};var S=s(54097),$=s(28006),G=s(28708),B=s(96329),I=s(94853),E=s(48019),z=s(75313),P=s(44665);let M=e=>{let{children:t,thumbnails:s,id:a,size:r=137,isSamll:n=!1,sliderWidth:l,ratio:d,autoPlay:o}=e,[c,u]=(0,p.useState)(0);return(0,p.useEffect)(()=>{u(0)},[a]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{style:{position:"relative",display:"flex",gap:n?8:16},children:[s?.length>1&&(0,i.jsx)("div",{className:"slider-thumbmail dots",style:{marginTop:0,maxWidth:l},children:(0,i.jsx)(P.A,{selectedIndex:c,direction:"vertical",children:(0,i.jsx)(P.A.EmblaSliderViewport,{className:"h-100",children:(0,i.jsx)(P.A.EmblaSliderContainer,{height:l*d,direction:"vertical",gap:16,slides:[...s?.map((e,t)=>({component:(0,i.jsxs)("div",{className:`thumbmail dot ${c===t?"with-border":""}`,style:{width:r,height:r,borderRadius:n?8:16,position:"relative"},onClick:()=>u(t),children:[(0,i.jsx)(y.A,{alt:"product",src:e.thumbnail_url,width:r,height:r,objectFit:"contain"}),e?.type==="video"&&(0,i.jsx)(S.A,{style:{position:"absolute",top:"20%",left:"20%",zIndex:5,cursor:"pointer",transform:"scale(0.5)"}})]},t),width:"auto"}))]})})})}),(0,i.jsx)(P.A,{selectedIndex:c,setSelectedIndex:u,autoPlay:o,autoplayDuration:4e3,children:(0,i.jsxs)(P.A.EmblaSliderViewport,{children:[(0,i.jsx)(P.A.EmblaSliderContainer,{gap:0,slides:[...t?.map((e,t)=>({component:(0,i.jsx)("div",{className:"next-image-dynamic-height",children:e},t),width:"100%"}))]}),(0,i.jsx)(P.A.EmblaSliderPrevNextButtons,{})]})}),t.length>1&&s?.length===0&&(0,i.jsx)("div",{className:"dots",style:{position:"absolute",bottom:16,width:"100%"},children:[...t?.map((e,t)=>(0,i.jsx)("button",{className:`dot ${c===t?"active":""}`,onClick:()=>u(t)},t))]})]})})},R=e=>{let{productImages:t,isPC:s,id:r,isSmall:n=!1,productName:l,isFavorite:d=!1,onToggleFavorite:o}=e,c=(0,I.A)(),u=(0,a.useGetCompanyQuery)(),h=u?.data?.result?.theme?.components?.product?.image_ratio??1,m=!!u?.data?.result?.theme?.components?.product?.auto_image_scroller,x=(0,p.useRef)(null),g=n?48:137,j=s?t?.map(e=>({...e})):[],b=j?.length>1?g-(n?8:16):0,f=(0,E.Yh)(x)-b,_=(0,p.useRef)(null),w=t.filter(e=>"image"===e.type).map(e=>e.image_url);return(0,i.jsxs)("div",{ref:x,className:"w-100",style:{position:"relative"},children:[(0,i.jsx)(z.A,{images:w,children:e=>(0,i.jsx)(M,{thumbnails:j,id:r,size:g,isSamll:n,sliderWidth:f,ratio:h,autoPlay:m,children:t?.map((t,s)=>(0,i.jsxs)("div",{style:{borderRadius:16,display:"block",margin:"auto",textAlign:"center",overflow:"hidden",position:"relative"},children:[t?.type==="video"&&(0,i.jsx)(S.A,{style:{position:"absolute",top:"45%",left:"45%",zIndex:5,cursor:"pointer"},onClick:()=>{_.current?.showMedia(t.image_url,t?.type??"image")}}),(0,i.jsx)(y.A,{priority:0===s,alt:`${l} image ${s}`,src:t?.type==="image"?t.image_url:t.thumbnail_url,width:f,height:f*h,onClick:()=>
1{if(t?.type==="image")return e(w.findIndex(e=>e===t.image_url));_.current?.showMedia(t.image_url,t?.type??"image")},objectFit:"contain"})]},s))})}),(0,i.jsx)("div",{style:{position:"absolute",top:n?8:32,right:c?void 0:n?8:16,left:c?n?8:16:void 0,display:"flex",gap:8,zIndex:10},children:(0,i.jsx)("div",{onMouseDown:e=>e.preventDefault(),onClick:e=>{e.preventDefault(),e.stopPropagation(),o?.()},className:`product-favorite-button ${d?"selected":"unselected"}`,children:d?(0,i.jsx)(B.A,{size:24}):(0,i.jsx)(G.A,{selected:d,size:24})})}),(0,i.jsx)($.A,{ref:_})]})};var F=s(70011),T=s(2500),V=s(31352),W=s(93963),q=s(99003),Q=s(37206),O=s(41264),D=s(99817),H=s(44044),J=s(18458);let U=()=>(0,i.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M14.1999 10.2001C14.349 10.3488 14.4674 10.5254 14.5481 10.7199C14.6289 10.9144 14.6705 11.1229 14.6705 11.3334C14.6705 11.544 14.6289 11.7525 14.5481 11.947C14.4674 12.1415 14.349 12.3181 14.1999 12.4668L12.4665 14.2001C12.3179 14.3493 12.1413 14.4676 11.9468 14.5484C11.7523 14.6291 11.5438 14.6707 11.3332 14.6707C11.1226 14.6707 10.9141 14.6291 10.7196 14.5484C10.5251 14.4676 10.3485 14.3493 10.1999 14.2001L1.79987 5.80011C1.50024 5.49903 1.33203 5.09155 1.33203 4.66678C1.33203 4.24201 1.50024 3.83453 1.79987 3.53345L3.5332 1.80011C3.83428 1.50048 4.24177 1.33228 4.66653 1.33228C5.0913 1.33228 5.49879 1.50048 5.79987 1.80011L14.1999 10.2001Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M9.6665 8.33333L10.9998 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M7.6665 6.33333L8.99984 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M5.6665 4.33333L6.99984 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M11.6665 10.3333L12.9998 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});var Z=s(87107);let K=(0,Q.default)(()=>Promise.all([s.e(1760),s.e(9504)]).then(s.bind(s,79504)),{loadableGenerated:{webpack:()=>[79504]},ssr:!1}),X=(0,Q.default)(()=>s.e(1940).then(s.bind(s,91940)).then(e=>e.TabbyPromo),{loadableGenerated:{webpack:()=>[91940]},ssr:!1}),Y=(0,Q.default)(()=>s.e(2807).then(s.bind(s,92807)),{loadableGenerated:{webpack:()=>[92807]},ssr:!1}),ee=(0,Q.default)(()=>Promise.all([s.e(3809),s.e(2360)]).then(s.bind(s,82360)),{loadableGenerated:{webpack:()=>[82360]},ssr:!1}),et=(0,Q.default)(()=>s.e(4986).then(s.bind(s,34986)),{loadableGenerated:{webpack:()=>[34986]},ssr:!1}),es=(0,Q.default)(()=>s.e(9187).then(s.bind(s,19187)),{loadableGenerated:{webpack:()=>[19187]},ssr:!1}),ei=(0,Q.default)(()=>s.e(4910).then(s.bind(s,74910)),{loadableGenerated:{webpack:()=>[74910]},ssr:!1}),ea=(0,Q.default)(()=>s.e(5239).then(s.bind(s,45239)),{loadableGenerated:{webpack:()=>[45239]},ssr:!1}),er=(0,Q.default)(()=>Promise.all([s.e(1760),s.e(6990)]).then(s.bind(s,86990)),{loadableGenerated:{webpack:()=>[86990]},ssr:!1}),en=(0,Q.default)(()=>s.e(1094).then(s.bind(s,41094)),{loadableGenerated:{webpack:()=>[41094]},ssr:!1}),el=(0,Q.default)(()=>s.e(1459).then(s.bind(s,1459)),{loadableGenerated:{webpack:()=>[1459]},ssr:!1}),ed=(0,Q.default)(()=>Promise.all([s.e(7156),s.e(3809),s.e(2295)]).then(s.bind(s,42295)),{loadableGenerated:{webpack:()=>[42295]},ssr:!1}),eo=(0,Q.default)(()=>Promise.all([s.e(1760),s.e(6757)]).then(s.bind(s,16757)),{loadableGenerated:{webpack:()=>[16757]},ssr:!1}),ec=e=>{let{product:t,popup:s=!1,AttrbuitesInitialValues:b,productSettings:f}=e;(e=>{let{product:t}=e,{robosize_domain:s,robosize_id:i,id:a}=t??{};(0,p.useEffect)(()=>{if(!(s&&i))return;window.Robosize=window.Robosize||{},window.Robosize.shop=s,window.Robosize.product=a;let e=document.createElement("link");e.setAttribute("href","https://d3elw2t9mvtwj8.cloudfront.net/app_bundle.css"),e.setAttribute("id","if-css"),e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),document.body.insertBefore(e,document.body.firstChild);let t=document.createElement("script");return t.setAttribute("id","if-script"),t.setAttribute("src","https://d3elw2t9mvtwj8.cloudfront.net/app_bundle.js"),document.head.insertBefore(t,document.head.firstChild),()=>{let e=document.getElementById("if-css"),t=document.getElementById("if-script");e&&e.remove(),t&&t.remove()}},[t])})({product:t});let w=(0,q.mN)(),[v,y]=(0,p.useState)([]),C=(0,d.a)(),k=(0,n.B)(),{handleClosePopup:A}=(0,o.A)(),N=(0,a.useGetCompanyQuery)(),{show_specification_section:S,show_all_product_units:$,auto_select_first_child_in_show_product:G,show_low_stock_alert:B,min_stock_quantity_to_show_alert:I,allow_user_request_stock_availability_reminder:E}=f??N?.data?.result?.theme?.components?.product??{},z=(0,l.V)(t),{currentProd:P,note:M,selectedAddOns:Q,setSelectedChildIndex:ec,handleNoteChange:eu,handleSelectedAddOnsChanged:ep,cartDisabled:eh,otherInputs:em,selectedUnitId:ex,selectedUnit:eg,handleSelectUnits:ej,getPrise:eb,outOfStock:ef,isDisabled:e_,cartItemId:ew,disablechangeAddon:ev,setSelectedBundleItems:ey,selectedBundleItems:eC,handleOtherInputsChange:ek,isCartUpdating:eA,selectedAttributesValues:eN,setSelectedAttributesValues:eL}=z,[eS,e$]=(0,p.useState)(b),eG=(P||t)?.fields_builder,eB=(0,p.useRef)(null),[eI,eE]=(0,p.useState)(0),ez=(0,D.A)(),eP=(()=>{let{data:e}=(0,a.useGetCompanyQuery)();return e?.result.preferences?.tamara_integration})(),eM=(()=>{let{data:e}=(0,a.useGetCompanyQuery)(),{currency:t}=(0,Z.w)({enable:e?.result?.theme?.settings?.enable_currencies_converter??!0});return e?.result.preferences?.taly_integration&&"kwd"===t.code.toLocaleLowerCase()})(),eR=P.units,eF=(0,i.jsx)(m.default,{hierarchy:t?.breadcrumb?.map(e=>({text:e.name,link:"category"===e.type?`/categories/${e.slug}`:`/products/${e.slug}`}))||[{text:t?.name}]}),eT=C?"-mobile":"",eV=!!s,eW="configrable"===s,eq=C&&eV,eQ=!eh&&!!P?.show_note_field,{isFavorite:eO,toggle:eD}=(0,J.n)(P?.id,P?.is_favorite);(0,p.useEffect)(()=>
1{if(!z)return;let e=[];eG?.forEach(t=>{let s;e?.push({...t,value:em?.[(s=t?.configurations?.key.split("."))[s.length-1]]})});let t=(0,O.Ui)(e),s=(0,O.gH)(t),i=w.getValues();JSON.stringify(s)!==JSON.stringify(i)&&w.reset(s),y(t),eE(eB?.current?.clientWidth)},[em,P]),(0,p.useEffect)(()=>{let e=w.watch((0,j.sg)(e=>{ek((0,O.Xz)(e))},1e3));return()=>e.unsubscribe()},[w.watch,ek]);let eH=P?.custom_data?.term_and_condition,eJ=P.preview_type===r.Je.appointment||P.preview_type===r.Je.consultation,[eU,eZ]=(0,p.useState)(!(eH&&!eJ)),eK=B&&P.quantity_on_hand<=I&&!ef&&!e_;(0,p.useEffect)(()=>{eg?.min_quantity_in_cart&&eg?.min_quantity_in_cart>0&&w.setValue("quantity",eg?.min_quantity_in_cart)},[ex]);let{enableAddToCart:eX}=(0,H.A)(),eY=(f??N?.data?.result?.theme?.components?.product)?.product_reviews_visibility!=="not_visible",[e0,e1]=(0,p.useState)(!1),[e3,e9]=(0,p.useState)(!1),[e4,e5]=(0,p.useState)(b),e6=P?.enable_try_on;return(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24*!eq},children:[!s&&!C&&(0,i.jsx)("div",{style:{marginBottom:52*!!C},children:eF}),(0,i.jsxs)(c.A,{className:`m-0 ${eq?"product-details-pop-up-mobile":""}`,style:{height:eq?"100%":"auto"},children:[!eW&&(0,i.jsxs)(u.A,{className:`${C?"p-0":""}`,lg:P?.images?.length>1?5:4,children:[(0,i.jsx)("div",{className:`${!s?"product-details-slider-container"+eT:""}`,children:(0,i.jsx)(R,{productImages:P?.images,id:P?.id,isPC:!C,isSmall:eV,productName:P?.name,isFavorite:eO,onToggleFavorite:eD},P.id)}),!C&&(0,i.jsx)(g.A,{type:g.k.product}),eV&&(0,i.jsx)("div",{className:`see-details-link${eq?eT:""}`,children:(0,i.jsx)(x.Link,{prefetch:!1,href:`/products/${t.slug}${ew?`?cart_item_referer=${ew}`:""}`,onClick:A,children:k.see_details})})]}),(0,i.jsx)(u.A,{className:`${C?"p-0 pt-2 ":""}`,lg:C?{span:!0}:eW?12:P?.images?.length>1?7:8,children:(0,i.jsxs)("div",{ref:eB,className:`product-details-container${eV?"-pop-up":eT}`,style:eq||eW?{maxWidth:"100%",justifyContent:"space-between"}:{},children:[(0,i.jsx)(L,{showRate:!!eY,product:P,isConfigrablePopup:eW,getPrise:eb,link:eW&&(0,i.jsx)("div",{className:`see-details-link${eq?eT:""}`,style:{paddingTop:0,lineHeight:"inherit"},children:(0,i.jsx)(x.Link,{prefetch:!1,href:"/products/"+t.slug,onClick:A,children:k.see_details})})}),P.preview_type===r.Je.event&&(0,i.jsx)(es,{...P.custom_data,price:P.price,price_without_discount:P.price_without_discount,special_prices:P.selling_prices,justifyContentStart:!0}),eX&&(0,i.jsx)("h2",{className:"m-0 p-0",children:(0,i.jsx)(h.A,{gap:10,priceFirst:!0,price:{value:eb("price"),className:"price"},priceWithoutDiscount:{value:eb("price_without_discount"),className:"price-without-discount"},roundPrice:!0,discountAmount:eb("discount_amount")})}),!!t?.size_chart&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{id:`size-chart-btn-${t.id}`,className:"size-chart-btn",onClick:()=>e1(!0),children:[(0,i.jsx)(U,{}),(0,i.jsx)("span",{children:k.size_chart})]}),(0,i.jsx)(er,{show:e0,onHide:()=>e1(!1),sizeChart:t.size_chart})]}),eK&&(0,i.jsx)(ea,{minStockQuantity:P.quantity_on_hand}),(eP||ez||eM)&&(0,i.jsxs)("div",{className:"d-flex flex-column",style:{maxWidth:590,gap:24},children:[eP&&(0,i.jsx)(et,{price:eb("price")}),ez&&(0,i.jsx)(X,{price:eb("price"),source:"product"}),eM&&(0,i.jsx)(en,{price:eb("price")})]}),P?.selling_prices?.length>1&&(0,i.jsx)(Y,{productSpecialPrice:P.selling_prices}),e6&&(0,i.jsx)(el,{onClick:()=>{e5(eN?.length>0?eN:eS),e9(!0)},fullWidth:C}),P.bundle_items&&P.bundle_items?.length>0&&(0,i.jsx)(ei,{items:P.bundle_items,setSelectedBundleItems:ey,selectedBundleItems:eC}),t?.attributes_builder?.length>0&&(0,i.jsx)("div",{id:"attributes-selector",children:(0,i.jsx)(V.default,{product:t,setSelectedChildIndex:ec,autoSelectFirstChild:G,detailsCountaineMaxWidth:eI,initialValues:eS,setSelectedAttributesValues:eL,allow_user_request_stock_availability_reminder:E})}),!P.is_configurable&&P?.addons_builder?.length>0&&(0,i.jsx)(T.A,{addOnBiulder:P.addons_builder,state:Q,setState:ep,detailsCountaineMaxWidth:eI,disablechangeAddon:ev,productId:P.id}),$&&!ef&&(0,i.jsx)(F.A,{units:eR,selectedUnitId:ex,onSelect:ej}),v&&v?.length>0&&t?.preview_type!==r.Je.consultation&&(0,i.jsx)(ee,{fields:v,form:w,disabled:eA}),eQ&&(0,i.jsx)(_,{notes:M,setNotes:eu,disabled:eh||eA}),eH&&!eJ&&(0,i.jsx)(K,{checked:eU,setChecked:eZ,terms:eH}),!eW&&C&&(0,i.jsx)(g.A,{type:g.k.product}),(0,i.jsx)(W.A,{form:w,agreeTerms:eU,productState:z,isPopupMobile:eq,popup:s})]})})]}),!eV&&S&&(0,i.jsx)(eo,{html:P?.long_description,spec:P?.specifications,showRate:eY,rate:t?.rate,ratings:t?.ratings,canReview:t?.can_review,productId:t?.parent_id??t?.id}),(0,i.jsx)(ed,{show:e3,onHide:()=>{e9(!1),e$(eN)},product:t,productState:z,form:w,productSettings:f,agreeTerms:eU,detailsCountaineMaxWidth:eI,AttrbuitesInitialValues:e4,fields:v})]})}},70011:(e,t,s)=>{s.d(t,{A:()=>m});var i=s(95155),a=s(12115),r=s(63647),n=s(1281),l=s(95795),d=s(13336),o=s(15288),c=s(97858),u=s(75131),p=s(16072),h=s(45894);let m=e=>{let{onSelect:t,units:s,selectedUnitId:m}=e,x=(0,l.B)(),g=(0,a.useMemo)(()=>s.find(e=>{let{id:t}=e;return t===m}),[s,m]),j=(0,a.useMemo)(()=>s[0]?.selection_type||n.sx.dropdown,[s]),b=(0,a.useCallback)(e=>()=>{t(e)},[t]);if(s.length<2)return null;switch(j){case n.sx.CAROUSEL:return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{startLabel:x.unit,marginBottom:8}),(0,i.jsx)(c.A,{spacing:8,selectedIndex:s.findIndex(e=>e.id===m),children:s.map(e=>(0,i.jsx)(u.A,{text:e.name,selected:e.id===m,toggleOption:b(e)}
1,e.id))})]});case n.sx.TAG:return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{startLabel:x.unit,marginBottom:8}),(0,i.jsx)(p.A,{as:"ul",style:{columnGap:16,rowGap:8,padding:0,margin:0,listStyleType:"none"},className:"tags-options",children:s.map(e=>(0,i.jsx)(h.A,{as:"li",className:"p-0 col-auto",children:(0,i.jsx)(u.A,{text:e.name,selected:e.id===m,toggleOption:b(e)})},e.id))})]});case n.sx.dropdown:default:return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{startLabel:x.unit,marginBottom:-20}),(0,i.jsx)(d.A,{title:g?.name??x.choose_from_list,children:s.map(e=>(0,i.jsx)(o.A,{label:e.name,disabled:e.id===m,checked:e.id===m,toggleOption:b(e)},e.id))})]})}}},99817:(e,t,s)=>{s.d(t,{A:()=>a});var i=s(63191);let a=()=>{let{data:e}=(0,i.useGetCompanyQuery)();return e?.result.preferences?.tabby_integration}}}]);
2//# sourceMappingURL=8708-02388669782b9db3.js.map

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.