1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1ecf64e4-ce22-4356-99ae-66d570a7a92b",e._sentryDebugIdIdentifier="sentry-dbid-1ecf64e4-ce22-4356-99ae-66d570a7a92b")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8463],{8463:(e,t,c)=>{c.d(t,{A:()=>V});var a=c(37876),l=c(14232),n=c(58103),s=c.n(n),r=c(48945),i=c(82525),p=c(59870),o=c(36104),u=c(74281),d=c(3492),y=c(79468),k=c(65835),m=c(96380),h=c(47864),f=c(89099),_=c(14e3),v=c(19903),T=c(82440),S=c(56557),b=c.n(S),j=c(18847),x=c.n(j),g=c(20464),N=c(55232),A=c(64769),I=c(29046),C=c(93146),P=c(146),O=c.n(P);let G=x()(()=>Promise.all([c.e(5468),c.e(9955)]).then(c.bind(c,82336)),{loadableGenerated:{webpack:()=>[82336]},loading:()=>(0,a.jsx)(a.Fragment,{})}),E=x()(()=>Promise.all([c.e(7280),c.e(9102)]).then(c.bind(c,39102)),{loadableGenerated:{webpack:()=>[39102]},loading:()=>(0,a.jsx)(a.Fragment,{})}),w=e=>{var t;let{packType:c,actionEndDate:n,item:o,itemGroup:d,activePackType:m,baseUnitsObject:_,packTypeClickHandler:S,cart:j,location:x,altPerUnit:P,hideCutDiscount:w,state:M,view:R,isFindings:D,ignoreSamplesInCart:L,perehvatLocked:U,priorityCurrency:V,priorityCurrencyRate:q,user:F=null,query:H,pathname:B,isInstantSelector:W=null,instantPackTypeClickHandler:z,activePackTypes:Q,isMultyPacktypes:K,cartItems:X,activeTabType:Z,setStateActivePackType:J,mobileSelectedPackType:Y,selectMobilePackType:$,cartItemQuanity:ee,fromCartItem:et,orderItem:ec,chunkSlotIndex:ea=null,chunkSlotCartItemId:el=null,activeCartItemId:en=null,activeChunkSlot:es=null,isChunkGroupChild:er=!1}=e,ei=(0,i.jL)(),ep=(0,i.GV)(p.dG),eo=(0,i.GV)(u.ND),eu=(0,i.GV)(g.MS),ed=(0,i.GV)(g.EW),[ey,ek]=(0,l.useState)(!1),[em,eh]=(0,l.useState)(null),ef=(0,l.useRef)(null),e_=(0,l.useRef)({value:null}),ev=(0,l.useRef)({value:null}),eT=(0,l.useRef)(!1),eS=(0,l.useRef)(null),eb=(0,l.useRef)(null),ej=(0,l.useRef)(null),ex=(0,l.useRef)(null),{show:eg,handleShow:eN,handleCloseError:eA}=(0,A.A)(),eI=(0,l.useRef)(!1),eC=(0,f.useRouter)(),eP=(0,k.MaB)()&&(null==(t=window)?void 0:t.innerWidth)>1699;(0,l.useEffect)(()=>(ep?window.addEventListener("click",eE):ef.current&&(ef.current.addEventListener("mouseover",eO),ef.current.addEventListener("mouseout",eG)),()=>{ep?window.removeEventListener("click",eE):ef.current&&(ef.current.removeEventListener("mouseover",eO),ef.current.removeEventListener("mouseout",eG));let e=document.querySelector(".item-groups-slider-controls");e&&(e.style.zIndex=5),et&&"function"==typeof $&&$(null)}),[]);let eO=()=>{e_.current.value&&clearTimeout(e_.current.value),!ev.current.value&&(ey||eR())},eG=e=>{let[t]=c;ev.current.value||!(e.relatedTarget&&e.relatedTarget.closest("#pack-type-select-item-".concat(t)))&&eI.current&&(e.relatedTarget&&e.relatedTarget.closest(".pack-type-select-item")||e_.current.value&&clearTimeout(e_.current.value),eD())},eE=e=>{let t=e.target;if(!t.classList.contains("pack-type-select-subscription-popup")){for(;t&&t.parentNode;){if(t.classList.contains("pack-type-select-subscription-popup__container"))return;t=t.parentNode}!eT.current&&eI.current&&eD()}},ew=e=>{if(!eT.current&&!ey){let t=e.target;for(;t&&t.parentNode;){if(t.classList.contains("svoim-container"))return;t=t.parentNode}eR()}},eM=()=>{eT.current=!0,eP?setTimeout(()=>{eT.current=!1},500):eT.current=!1},eR=()=>{let e=document.querySelector(".item-groups-slider-controls");e&&(e.style.zIndex=-1),ek(!0),eI.current=!0,eM()},eD=()=>{ek(!1),eI.current=!1,eM()};(0,l.useEffect)(()=>{let e=document.querySelector(".item-groups-slider-controls"),t=document.querySelector(".pack-type-select-subscription-popup__container");e&&!t&&(e.style.zIndex=5)},[ey]);let eL=e=>{let[t]=c;return e.preventDefault(),e.stopPropagation(),ep&&eD(),F||(eh(!0),eN()),ed||!eu?null:eu&&eu[o.id]&&eu[o.id][t]?ei((0,g.Lg)(eu[o.id][t].id,o.id,t)):ei((0,g.hP)(o.id,t))},eU=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"select_pack_type";S(c,e,t,{chunkSlotIndex:ea,chunkSlotCartItemId:el})},[eV,eq,eF,eH,eB,eW,ez,eQ,eK]=c,eX=(0,k.oeC)(eH,eF,_.unit),eZ=!K&&eH!==eB,eJ=(0,k.VoD)(eq,eF),eY=y.Su[M],e$=!eY&&eW>1&&"kg"!==eF,e0=0!==eF.indexOf("samples")&&P&&P.value&&(0,k.Kiu)(eW*eq*P.value),e1=e0?"~".concat(e0," ").concat((0,k.E5T)(e0,...P.forms)):null,e3=e$?"".concat(eX," (").concat(eJ).concat(e1?" / ".concat(e1):"",")"):"".concat(eX).concat(e1?" (".concat(e1,")"):""),e4=F&&(0,v.k1)("employee",F),e2=!!eB||e4;ev.current.value=e2;let e6=eK&&!!(eK&y.kV.is_chunk),e8="samples"===eF,e9="samples_xl"===eF,e5="roll"===eF,e7="meter"===eF,te="chunk"===eF,tt=!["common","perehvat"].includes(M),tc=["ordered","not_ordered","china_perehvat"].includes(M),ta="not_ordered"===M,tl=K&&(er?null!=es&&es===ea||Y&&(0,r.A)(Y,0)===eV&&eH===(0,r.A)(Y,3)&&(null==(0,r.A)(Y,"chunkSlot")||(0,r.A)(Y,"chunkSlot")===ea):te?(0,r.A)(Y,0)===eV&&eH===(0,r.A)(Y,3):(0,r.A)(Y,0)===eV),tn={...o.states_all||{},...o.states||{}},ts=tt&&!tc&&tn[M]&&("string"==typeof tn[M]?(0,k.y6q)(tn[M],F):(0,k.y6q)((0,k.BT6)(tn[M].arrival_date),F)),tr=tt&&(0,r.A)(o,["states_all",M,"arrival_days"])?(0,k.o3j)(o.states_all[M].arrival_days,!0):"4 меÑ.",ti=tt&&I.eg[M]?"".concat(ts&&I.eg[M].titleWithDate||I.eg[M].title).concat(ts?" ".concat(b()(ts).format("D MMMM")):""):null,tp=!e4&&C.B2.includes(M),to=!!(!e2&&eu&&eu[o.id]&&eu[o.id][eV]),tu=er?null!=en&&null!=el&&en===el||null!=es&&es===ea&&m&&((0,k.uGO)(m)?eV===m[0]&&eH===m[3]:eV===m.id&&
1(!m.min||m.min===eH)):m&&((0,k.uGO)(m)?eV===m[0]&&eH===m[3]:eV===m.id&&(!m.min||m.min===eH)),td=!1;K&&(er?td=!!el:(0,k.uGO)(Q)&&Q.forEach(e=>{let t=(0,k.uGO)((0,r.A)(e,"activePackType"))?eV===(0,r.A)(e,"activePackType[0]")&&eH===(0,r.A)(e,"activePackType[3]"):eV===(0,r.A)(e,"activePackType.id")&&(!(0,r.A)(e,"activePackType.min")||(0,r.A)(e,"activePackType.min")===eH);t&&(td=t)}));let ty=D&&eK&&!!(eK&y.kV.is_perehvat),tk=!L&&e8&&j.info&&!j.info.unlimited_samples&&!(0,h.A)(eo)&&j.info.sampleCountIsMax[eo[d.section].specialization],tm=er&&null!=el&&(0,k.uGO)(X)?X.find(e=>(0,r.A)(e,"id")===el):null,th=K&&((null==ec?void 0:ec.quantity)||(et?ee:er?(0,r.A)(tm,"quantity"):(0,r.A)(null==X?void 0:X.find(e=>(0,r.A)(e,"pack_type")===eV&&(!te||(0,r.A)(e,"quantity")===eH)),"quantity"))),tf=K&&!!th&&(e5||e7)&&(et&&tu||td),t_=Number(th)>0&&(td||tu);return W?o.to_order||"perehvat"===M||e8||e9||tp?null:(0,a.jsxs)("div",{className:O().packTypeSelectInstant,onClick:()=>{"function"==typeof z&&z(c,"".concat(eZ?"Ð¾Ñ ":"").concat(eX),ez,eQ,_.unit)},children:[(0,a.jsxs)("div",{className:O().packTypeSelectInstantName,children:[eZ&&"Ð¾Ñ ",(0,a.jsx)("span",{className:"".concat(O().packTypeSelectQty," pack-type-select-qty"),children:eX})]}),(0,a.jsxs)("div",{className:"".concat(O().packTypeSelectRest," pack-type-select-rest ").concat(O().packTypeSelectInfoUnit," pack-type-select__info-unit"),children:[(0,a.jsx)("span",{className:"".concat(O().packTypeSelectPrice," pack-type-select-price"),children:(0,a.jsx)(T.A,{value:ez,priorityCurrency:V,priorityCurrencyRate:q,className:"".concat(O().packTypePrice," price pack-type-price"),noExceptions:!0})}),!!eQ&&(0,a.jsxs)("span",{className:"".concat(O().packTypeSelectDiscount," pack-type-select-discount"),children:["-",eQ,"%"]})]})]},"item_group_".concat(d.id,"_select_").concat(eV)):(0,a.jsxs)("li",{className:s()("pack-type-select-item",O().packTypeSelectItem,{["".concat(O().active," active")]:K?th>0&&(tu||td):tu,["".concat(O().packTypeSelectItemDisabled," pack-type-select-item_disabled")]:!e2||tk,["".concat(O().locked," locked")]:U,["".concat(O().inactive," inactive")]:e4&&!eB,"pack-type-select-item_to-order":"to_order"===Z,"pack-type-select-item_no-ordered":eY,"pack-type-select-item_samples":e8||e9,"pack-type-select-item_selected":tu&&td,"pack-type-select-item_mobile-selected":ep&&tl,"pack-type-select-item_show-delete":!et&&!ec,["".concat(O().packTypeSelectItemChunkGroupChild," pack-type-select-item_chunk-group-child")]:er,[O().popupOpen]:eg}),onClick:e=>{if(!K)return U?void alert("ФаÑовка недоÑÑÑпна: ÑÐ¾Ð²Ð°Ñ Ð½Ðµ ÑвлÑеÑÑÑ Ð¿ÐµÑеÑ
ваÑнÑм"):e2?void eU():void(ep&&ew(e));(ep||td&&!tu)&&(e=>{let t=eS.current&&eS.current.contains(e.target),a=eb.current&&eb.current.contains(e.target),l=ej.current&&ej.current.contains(e.target),n=ex.current&&ex.current.contains(e.target);if(!t&&!a&&!l&&!n&&(et||!et&&"function"==typeof J)){let e=er?{cartItemId:el,chunkSlot:ea}:{};ep?($&&"function"==typeof $&&$(er?Object.assign([],c,{chunkSlot:ea}):c),et||!td||tu||J(c,e)):J(c,e)}})(e)},ref:ef,id:"pack-type-select-item-".concat(eV).concat(er?"-slot-".concat(ea):""),children:[(0,a.jsxs)("span",{className:"".concat(O().packTypeSelectLabel," pack-type-select-label"),title:U&&"ФаÑовка недоÑÑÑпна: ÑÐ¾Ð²Ð°Ñ Ð½Ðµ ÑвлÑеÑÑÑ Ð¿ÐµÑеÑ
ваÑнÑм"||!e8&&!e9&&e3||null,...!e8&&!tp&&{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},children:[(0,a.jsxs)("span",{className:"pack-type-select-title",children:[(0,a.jsxs)("div",{className:"".concat(O().packTypeSelectName," pack-type-select-name ").concat(O().packTypeSelectInfoUnit," pack-type-select__info-unit"),children:[e8||e9?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"".concat(O().packTypeSelectNameVal," pack-type-select-name__val"),children:[e8&&"ÐбÑÐ°Ð·ÐµÑ ".concat(I.dk),e9&&"ÐбÑÐ°Ð·ÐµÑ ".concat(I.z3)]}),(e8||e9)&&"1\xa0ÑÑ.",tk&&(0,a.jsx)("span",{className:"pack-type-select__warning",children:"РкоÑзине макÑ. кол-во!"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"".concat(O().packTypeSelectNameVal," pack-type-select-name__val"),itemProp:"description",children:["chunk"===eF&&"".concat("м"===(0,r.A)(_,"unit.shortForm")?"оÑÑез":"оÑÑаÑок"," ")||e6&&"".concat("roll"===eF?"оÑÑез":"оÑÑаÑок"," "),eZ&&"Ð¾Ñ ",(0,a.jsx)("span",{className:"".concat(O().packTypeSelectQty," pack-type-select-qty"),children:eX})]}),!ta&&(e$&&(0,a.jsxs)(a.Fragment,{children:[eJ,e1?" / ".concat(e1):null]})||e1||null)]}),n&&(0,a.jsxs)("span",{className:"".concat(O().packTypeSpecialOffer," pack-type-select-special-offer"),children:["акÑÐ¸Ñ Ð´Ð¾"," ",b()(n).format("D MMMM")]})]}),K&&("to_order"===Z||"samples"===Z||ty||!(0,k.MaB)()&&!["common","perehvat"].includes(M))&&(0,a.jsx)("span",{className:s()("pack-type-select-availability","pack-type-select__info-unit",{available:e2&&!tt&&!ty&&!e9&&!e8,arrivals:tt,perehvat:"perehvat"===M&&e4,["".concat(O().packTypeSelectAvailabilityToOrder," pack-type-select-availability_to-order")]:ty}),children:e2&&(tt?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{title:ti,children:ts&&"Ñ ".concat(b()(ts).format("D MMMM"))||tr&&"ÑеÑез ".concat(tr)||!tc&&"ожидаем"})}):ty?(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:"под\xa0заказ"}),(0,a.jsx)("br",{}),I.XO]}):(0,a.jsx)("span",{ref:ex,children:(e8||e9)&&(0,a.jsx)("div",{onClick:e=>{e.stopPropagation(),ei((0,N.ds)({modalId:"samplesPopup",modalData:{type:e9?"xl"
1:"regular"}}))},className:"".concat(O().packTypeSelectLink," pack-type-select__link"),children:"подÑобнее"})||(ep?(0,a.jsx)("i",{className:"fa fa-check","aria-hidden":"true"}):o.to_order&&"под заказ"||"perehvat"===M&&e4&&"Ð (Ñдал. Ñкл.)"||"в налиÑии")}))}),!e8&&!tp&&(0,a.jsxs)("div",{className:"".concat(O().packTypeSelectRest," pack-type-select-rest ").concat(O().packTypeSelectInfoUnit," pack-type-select__info-unit"),children:[!tf&&(0,a.jsx)("span",{className:"".concat(O().packTypeSelectPrice," pack-type-select-price"),children:(0,a.jsx)(T.A,{value:ez,priorityCurrency:V,priorityCurrencyRate:q,className:"".concat(O().packTypePrice," price pack-type-price"),noExceptions:!0,showMeta:!0})}),tf&&(0,a.jsx)("span",{className:"pack-type-select-count",children:"".concat(th," м")}),!!eQ&&(0,a.jsxs)("span",{className:"".concat(O().packTypeSelectDiscount," pack-type-select-discount"),children:["-",eQ,"%"]})]}),eY&&(0,a.jsx)("span",{className:"".concat(O().packTypeSelectRest," pack-type-select-rest ").concat(O().packTypeSelectInfoUnit," pack-type-select__info-unit"),children:(0,a.jsxs)("span",{className:"".concat(O().packTypeSelectPrice," pack-type-select-price"),children:["~ ",(0,a.jsx)(T.A,{value:ez,priorityCurrency:3===(0,r.A)(d,"section_id")?!ta&&eY:eY,className:"".concat(O().packTypePrice," price pack-type-price"),noExceptions:!0})]})}),e8&&(0,a.jsx)("div",{className:"".concat(O().packTypeSelectRest," pack-type-select-rest ").concat(O().packTypeSelectInfoUnit," pack-type-select__info-unit"),children:(0,a.jsx)("span",{className:"".concat(O().packTypeSelectPrice," pack-type-select-price"),children:"беÑплаÑно"})}),!K&&(0,a.jsx)("div",{className:s()(O().packTypeSelectAvailability,O().packTypeSelectInfoUnit,"pack-type-select-availability","pack-type-select__info-unit",{[O().available]:e2&&!tt&&!ty&&!e9&&!e8,[O().arrivals]:tt,[O().perehvat]:"perehvat"===M&&e4,["".concat(O().packTypeSelectAvailabilityToOrder," pack-type-select-availability_to-order")]:ty}),children:e2&&(tt?(0,a.jsx)("span",{title:ti,children:ts&&"Ñ ".concat(b()(ts).format("D MMMM"))||tr&&"ÑеÑез ".concat(tr)||!tc&&"ожидаем"}):ty?(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:"под\xa0заказ"}),(0,a.jsx)("br",{}),I.XO]}):(0,a.jsx)("span",{children:(e8||e9)&&(0,a.jsx)("div",{onClick:e=>{e.stopPropagation(),eC.push({pathname:B,query:{...H,samples:e9?"xl":"regular"}},void 0,{shallow:!0})},className:"".concat(O().packTypeSelectLink," pack-type-select__link"),children:"подÑобнее"})||(ep?(0,a.jsx)("div",{className:"".concat(O().packTypeSelectCheckIcon," fa fa-check"),"aria-hidden":"true"}):o.to_order&&"под заказ"||"perehvat"===M&&e4&&"Ð (Ñдал. Ñкл.)"||(0,a.jsx)("span",{children:"в налиÑии"}))}))||(0,a.jsx)("span",{children:ep?to&&(0,a.jsx)("i",{className:"".concat(O().packTypeSelectSubscribeBtn," ").concat(O().packTypeSelectSubscribeBtnSubscribed," fa fa-bell-slash-o pack-type-select__subscribe-btn"),"aria-hidden":"true",onClick:eL})||(0,a.jsx)("i",{className:"".concat(O().packTypeSelectSubscribeBtn," fa fa-bell-o pack-type-select__subscribe-btn"),"aria-hidden":"true",onClick:eL}):(0,a.jsx)("span",{className:"".concat(O().packTypeSelectSubscribeBtn," pack-type-select__subscribe-btn"),onClick:eL,children:to&&"оÑпиÑаÑÑÑÑ"||"подпиÑаÑÑÑÑ"})})}),K&&e2&&(0,a.jsx)("span",{ref:eS,className:"pack-type-select__add-wrapper",children:(0,a.jsx)("div",{className:"pack-type-select__add-btn",onClick:e=>{if(e.stopPropagation(),U)return void alert("ФаÑовка недоÑÑÑпна: ÑÐ¾Ð²Ð°Ñ Ð½Ðµ ÑвлÑеÑÑÑ Ð¿ÐµÑеÑ
ваÑнÑм");if(!t_){if(e2)return void eU();ep&&ew(e)}},children:t_?"order"===R?"ÐÑбÑано":"РкоÑзине":"order"===R?"ÐÑбÑаÑÑ":"РкоÑзинÑ"})}),K&&!e2&&(0,a.jsx)("span",{ref:ej,className:"pack-type-select__subscribe pack-type-select__info-unit",children:(0,a.jsx)("span",{className:"pack-type-select__subscribe-btn",onClick:eL,children:to?"оÑпиÑаÑÑÑÑ":"подпиÑаÑÑÑÑ"})}),K&&e2&&(0,k.MaB)()&&(0,a.jsx)("span",{ref:eb,className:"pack-type-select__del-wrapper",children:(0,a.jsx)("div",{className:"pack-type-select__del-btn",onClick:()=>eU(!0,"decrease"),children:"УбÑаÑÑ"})})]}),!e8&&!tp&&(0,a.jsx)("meta",{itemProp:"availability",content:eB?"https://schema.org/InStock":"https://schema.org/OutOfStock"})]}),ey&&!e2&&(0,a.jsx)(E,{packType:{name:eX},isSubscribed:to,isMobileVersion:ep}),!F&&eg&&(0,a.jsx)(G,{text:"ЧÑÐ¾Ð±Ñ Ð¿Ð¾Ð´Ð¿Ð¸ÑаÑÑÑÑ Ð½Ð° поÑÑÑпление ÑоваÑа",closeError:eA})||null]}
1,"item_group_".concat(d.id,"_select_").concat(eV).concat(er?"-slot-".concat(ea):""))},M={type:"store",states:["common"]},R={type:"to_order",states:["ordered","not_ordered","transfer"]},D=e=>{let{user:t,CartDiscountAlert:c,item:n,itemGroup:p,activePackType:d,filteredUnits:S,baseUnitsObject:b,packTypeClickHandler:j=null,location:x,altPerUnit:g,ignoreSamplesInCart:N,priorityCurrency:A,priorityCurrencyRate:I,isInstantSelector:C=null,instantPackTypeClickHandler:P=null,filtredPtGroups:G,isMultyPacktypes:E,activePackTypes:D,cartItems:L,activeTabType:U,setStateActivePackType:V,avaliablePacktypes:q,fromCartItem:F,mobileSelectedPackType:H,selectMobilePackType:B,orderItem:W,view:z,cartItemQuanity:Q=null,activeCartItemId:K=null,activeChunkSlot:X=null,chunkSlotBindings:Z=null}=e,J=(0,i.GV)(u.ND),Y=(0,i.GV)(o.VH),$=(0,f.useRouter)(),ee=(0,_.usePathname)(),[et,ec]=(0,l.useState)(!1),[ea,el]=(0,l.useState)({}),en=(0,k.js9)($.asPath),es=(0,k.Z1l)(n),er=t&&(0,v.k1)("employee",t),ei=!(0,h.A)(J)&&(0,r.A)(J[p.section],"specialization")===y.n5,ep=!1,eo=(0,l.useMemo)(()=>{if(!E)return{};if(Z)return Z;let e=(0,r.A)(n,"pt_groups")||(F?q:G);return(0,m.U8)(L,e,{})},[E,Z,L,G,q,F,n]);(0,l.useEffect)(()=>{let e=(0,r.A)(n,"pt_groups");if((0,k.uGO)(e)){let t=!1,c=!1;e.forEach(e=>{let a=(0,r.A)(e,"intervals");(0,k.uGO)(a)&&(t=t||!!a.find(e=>"chunk"===e[2]&&!!e[4]),c=c||!!a.find(e=>"chunk"!==e[2]&&!!e[4]))}),t&&!c&&ec(!et)}},[]),(0,l.useEffect)(()=>{E&&F&&K&&eo&&Object.keys(eo).forEach(e=>{Object.values(eo[e]||{}).includes(K)&&!Object.prototype.hasOwnProperty.call(ea,e)&&el(t=>({...t,[e]:!0}))})},[E,F,K,eo]);let eu=E?G:F?q:(e=>{let t=(0,m.Sv)(e,M);return(0,k.uGO)(t)?t:(0,m.Sv)(e,R)||[]})(n.pt_groups),ed=(0,l.useMemo)(()=>{let e={};return E&&(0,k.uGO)(eu)&&eu.forEach(t=>{(0,k.uGO)(t.intervals)&&t.intervals.forEach(t=>{if("chunk"!==(0,r.A)(t,2))return;let c=t[8]&&!!(t[8]&y.kV.is_active),a=null===t[4]&&t[3]>=2e4;if(!c||a)return;let l=(0,r.A)(t,3);e[l]=(e[l]||0)+1})}),e},[E,eu]),ey=function(e,c,l,s){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},{isChunkGroupChild:o=!1,chunkSlotIndex:u=null,hideItem:y=!1}=i;if(y)return null;let h=(0,r.A)(s.promo_pts,e[0]),f=o?(0,m.Uh)(eo,e,u):null;return(0,a.jsx)(w,{packType:e,actionEndDate:(0,k.uGO)(h)?h[1]:void 0,item:n,itemGroup:p,activePackType:d,baseUnitsObject:b,packTypeClickHandler:j,cart:Y,location:x,altPerUnit:g,hideCutDiscount:es,state:s.state,isFindings:ei,ignoreSamplesInCart:N,perehvatLocked:!ei&&"perehvat"===s.state&&!n.perehvat,priorityCurrency:A,priorityCurrencyRate:I,query:en,pathname:ee,user:t,isInstantSelector:C,instantPackTypeClickHandler:P,activePackTypes:D,isMultyPacktypes:E,cartItems:L,activeTabType:U,setStateActivePackType:V,mobileSelectedPackType:H,selectMobilePackType:B,fromCartItem:F,cartItemQuanity:Q,chunkSlotIndex:u,chunkSlotCartItemId:f,activeCartItemId:K,activeChunkSlot:X,isChunkGroupChild:o,orderItem:W,view:z},"".concat(c,"-").concat(e[0],"-").concat(l).concat(o?"-slot-".concat(u):""))};return(0,k.uGO)(eu)&&(()=>{let e=new Set;return eu.reduce((t,l,n)=>(l.intervals.forEach((i,p)=>{let o=i[8]&&!!(i[8]&y.kV.is_active),u=null===i[4]&&i[3]>=2e4;if(o&&!u){let c=i[8]&&!!(i[8]&y.kV.is_perehvat),o=d&&((0,k.uGO)(d)?i[0]===d[0]&&i[3]===d[3]:i[0]===d.id&&(!d.min||d.min===i[3])),u=(0,k.uGO)(S)&&!S.includes(i[2]);if(!(0,k.kHC)({isEmployee:er,isFindings:ei,isPerehvat:c,isSelected:o,hasNonChunkPackType:ep})&&!u){ep||"chunk"===i[2]||(ep=!0);let c="chunk"===i[2],o=i[3];if(E&&c&&ed[o]>1){let c=(0,m.Nj)(i),l="len:".concat(o);if(!e.has(l)){e.add(l);let p=[];eu.forEach(e=>{(0,k.uGO)(e.intervals)&&e.intervals.forEach(t=>{let c=t[8]&&!!(t[8]&y.kV.is_active),a=null===t[4]&&t[3]>=2e4;c&&!a&&"chunk"===t[2]&&t[3]===o&&p.push({interval:t,group:e})})});let u=p.every(e=>{let{interval:t}=e;return(0,m.Nj)(t)===c})?c:l,d=(e=>{if(Object.prototype.hasOwnProperty.call(ea,e))return!!ea[e];let t=(0,r.A)(eo,e);if(t&&Object.keys(t).length)return!0;if(String(e).startsWith("len:")){let t=Number(String(e).slice(4));return Object.keys(eo||{}).some(e=>Number(e.split(":")[1])===t&&Object.keys(eo[e]||{}).length)}return!1})(u);t.push(((e,t,c,l,n)=>{let i="м"===(0,r.A)(b,"unit.shortForm")?"оÑÑез":"оÑÑаÑок",p=(0,k.oeC)(t,"chunk",b.unit);return(0,a.jsx)("li",{className:s()(O().packTypeSelectItem,"pack-type-select-item",O().packTypeSelectItem
1ChunkGroup,"pack-type-select-item_chunk-group",{["".concat(O().packTypeSelectItemChunkGroupExpanded," pack-type-select-item_chunk-group_expanded")]:n}),onClick:()=>(e=>{el(t=>{let c=Object.prototype.hasOwnProperty.call(t,e)?!!t[e]:(()=>{let t=(0,r.A)(eo,e);if(t&&Object.keys(t).length)return!0;if(String(e).startsWith("len:")){let t=Number(String(e).slice(4));return Object.keys(eo||{}).some(e=>Number(e.split(":")[1])===t&&Object.keys(eo[e]||{}).length)}return!1})();return{...t,[e]:!c}})})(l),children:(0,a.jsx)("span",{className:"".concat(O().packTypeSelectLabel," pack-type-select-label"),children:(0,a.jsxs)("span",{className:"".concat(O().packTypeSelectTitle," pack-type-select-title"),children:[(0,a.jsx)("span",{className:"".concat(O().packTypeSelectName," pack-type-select-name ").concat(O().packTypeSelectInfoUnit," pack-type-select__info-unit"),children:(0,a.jsxs)("span",{className:"".concat(O().packTypeSelectNameVal," pack-type-select-name__val"),children:[i," ",(0,a.jsx)("span",{className:"".concat(O().packTypeSelectQty," pack-type-select-qty"),children:p})," ","(",c,"\xa0ÑÑ.)"]})}),(0,a.jsxs)("span",{className:"".concat(O().packTypeSelectRest," pack-type-select-rest ").concat(O().packTypeSelectInfoUnit," pack-type-select__info-unit ").concat(O().packTypeSelectChunkGroupPrice),children:[(0,a.jsxs)("span",{className:"".concat(O().packTypeSelectPrice," pack-type-select-price"),children:[!(0,k.MaB)()&&" ",(0,a.jsx)(T.A,{value:e[6],priorityCurrency:A,priorityCurrencyRate:I,className:"".concat(O().packTypePrice," price pack-type-price"),noExceptions:!0})]}),!!e[7]&&(0,a.jsxs)("span",{className:"".concat(O().packTypeSelectDiscount," pack-type-select-discount"),children:["-",e[7],"%"]}),(0,a.jsx)("span",{className:s()(O().packTypeSelectChunkGroupToggler,"pack-type-select-chunk-group__toggler",O().togglerArrowAfter,"toggler-arrow-after",{["".concat(O().togglerArrowAfterActive," toggler-arrow-after_active")]:n})})]})]})})},"chunk-group-".concat(l))})(i,o,p.length,u,d)),d&&p.forEach((e,c)=>{let{interval:a,group:l}=e,s=(0,m.Nj)(a),r=ey(a,n,c,l,{isChunkGroupChild:!0,chunkSlotIndex:p.filter(e=>{let{interval:t}=e;return(0,m.Nj)(t)===s}).findIndex(t=>t===e)});r&&t.push(r)})}return}let u=ey(i,n,p,l);u&&t.push(u)}}else!C&&u&&c&&t.push((0,a.jsx)("li",{className:"".concat(O().packTypeSelectItem," pack-type-select-item"),children:c},"fake-discount-".concat(n,"-").concat(p)))}),t),[])})()};var L=c(71980),U=c.n(L);let V=e=>{let{inShowcaseSlider:t,itemGroup:c,fullView:n,activePackType:h,isOpened:f,item:_,toggleOpened:v,CartDiscountAlert:T,filteredUnits:S,location:b,altPerUnit:j,ignoreSamplesInCart:x,priorityCurrency:g,priorityCurrencyRate:N,showButtonLoader:A,isOrderRecommend:I,orderItem:C,visible:P,promoPackType:G,onShowPriceRequestForm:E,isInstantSelector:w=null,instantPackTypeClickHandler:M,activePackTypes:R,type:L,filtredPtGroups:V,isMultyPacktypes:q,cartItems:F,setStateActivePackType:H,activeTab:B,isLargeWholesale:W,setIsFetchingPackType:z,avaliablePacktypes:Q,fromCartItem:K,selectMobilePackType:X,mobileSelectedPackType:Z,cartItemQuanity:J,setShowItemOutlineRef:Y,resizeBlocked:$,view:ee,activeCartItemId:et=null,activeChunkSlot:ec=null,chunkSlotBindings:ea=null,bindChunkSlot:el=null,unbindChunkSlot:en=null}=e,es=(0,i.GV)(p.dG),er=(0,i.GV)(o.be),ei=(0,i.GV)(u.ND),ep=(0,i.GV)(d.selectUser),eo=(0,i.jL)(),eu=(0,l.useRef)({value:!1}),ed=(0,l.useRef)(null);function ey(){let e;if($)return null;let t=ed.current;for(;t&&t.parentNode;){if(t&&t.classList.contains("showcase-container")){e=t;break}t=t.parentNode}if(e){let t=(0,k.xli)(e).left+e.offsetWidth-((0,k.xli)(ed.current).left+ed.current.offsetWidth)-(es?24:31);t<0&&(ed.current.style.marginLeft="".concat(t,"px"))}}(0,l.useEffect)(()=>(P||(window.addEventListener("click",ek,!0),window.addEventListener("resize",em,!0)),t&&ey(),eu.current.value=!0,()=>{window.removeEventListener("click",ek,!0),window.removeEventListener("resize",em,!0),eu.current.value=!1}),[]);let ek=e=>{e.target&&(e.target.closest(".pack-type-select")||e.target.closest(".common-popup-container_samples-info"))||setTimeout(()=>{eu&&v(!1)},10)},em=()=>{ed.current.style.marginLeft=null,ey()},eh=h?h.name:null,ef=y.tn[c.measurement_unit]||y.tn[y.vQ[c.measurement_unit]],e_=h?"".concat(h.quantity).concat(ef.unit.shortForm):null;if(w)return(0,a.jsx)(D,{user:ep,CartDiscountAlert:T,item:_,itemGroup:c,activePackType:h,filteredUnits:S,baseUnitsObject:ef,instantPackTypeClickHandler:M,location:b,altPerUnit:j,ignoreSamplesInCart:x,priorityCurrency:g,priorityCurrencyRate:N,isInstantSelector:w,filtredPtGroups:V,isMultyPacktypes:q,activePackTypes:R,cartItems:F,activeTabType:(0,r.A)(B,"type"),setStateActivePackType:H,avaliablePacktypes:Q,fromCartItem:K,mobileSelectedPackType:Z,selectMobilePackType:X,activeCartItemId:et,activeChunkSlot:ec,chunkSlotBindings:ea});let ev="to_order"===(0,r.A)(B,"type");return(0,a.jsxs)("div",{className:s()(U().packTypeSelect,"pack-type-select",{["".concat(U().opened," opened")]:f,["".concat(U().highlight," highlight")]:f,["".concat(U().notSelected," not-selected")]:!h,["".concat(U().selected," selected")]:h,["".concat(U().multypacktypes," multypacktypes")]:q,[U().packTypeSelectFromCartItem]:es&&q&&K,"pack-type-select_from-cart-item":es&&q&&K}),children:[n&&(0,a.jsx)("div",{className:"pack-type-select-value",onClick:()=>v(),children:(0,a.jsx)("span",{className:"pack-type-select-label",title:eh||"",children:(0,a.jsx)("span",{className:"pack-type-select-title",children:eh?(0,a.jsxs)("span",{className:"pack-type-select-name",children:[eh,h.quantity>1&&(0,a.jsxs)("span",{className:"pack-type-select-units",children:[" (по ",e_,")"]})]}):(0,a.jsx)("span",{className:"pack-type-select-default",children:"ÐÑбеÑиÑе ÑаÑовкÑ"})})})}),(0,a.jsxs)("ul",{className:"".concat(U().packTypeSelectList," pack-type-select-list"),ref:ed,children:[(0,a.jsxs)("li",{className:"".concat(U().packTypeSelectHeader," pack-type-select-header"),children:[(0,a.jsx)("span",{className:s()(U().packTypeSelectHeaderCell,"pack-type-select-header__cell",O().packTypeSelectInfoUnit,"pack-type-select__info-unit",O().packTypeSelectName,"pack-type-select-name",{["".concat(U().packTypeSelectHeaderCellChina," pack-type-select-header__cell_china")]:W}),children:q?W?"Ðаказ на ÑабÑике, оÑ\xa0":"Ðаказ оÑ\xa0":"ÐÑпиÑÑ\xa0"}),q&&ev&&!W&&(0,a.jsx)("span",{className:"".concat(U().packTypeSelectHeaderCell," ").concat(U().packTypeSelectHeaderCellStore," pack-type-select-header__cell pack-type-select__info-unit pack-type-select-store"),children:"Ðа Ñкладе"}),(0,a.jsxs)("span",{className:"".concat(U().packTypeSelectHeaderCell," pack-type-select-header__cell ").concat(O().packTypeSelectInfoUnit," pack-type-select__info-unit ").concat(O().packTypeSelectRest," pack-type-select-rest"),children:["Цена за ",ef.unit.accusativeForm]}),!q&&(0,a.jsx)("span",{className:"".concat(U().packTypeSelectHeaderCell," pack-type-select-header__cell ").concat(O().packTypeSelectInfoUnit," pack-type-select__info-unit ").concat(O().packTypeSelectAvailability," pack-type-select-availability"),children:"ÐалиÑие"})]}),(0,a.jsx)(D,{user:ep,CartDiscountAlert:T,item:_,itemGroup:c,activePackType:h,filteredUnits:S,baseUnitsObject:ef,packTypeClickHandler:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select_pack_type",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if((0,k.uGO)(e)&&"samples"===e[2]&&er&&ei&&!er.unlimited_samples&&(null==er?void 0:er.sampleC
1ountIsMax[ei[c.section].specialization])&&!x)return;A&&!h&&A(!(0,k.uGO)(e)||e[2]),"function"==typeof v&&v(!1);let n=I?{isOrderRecommend:I}:C,s=q&&"roll"===(0,r.A)(e,2),i=q&&"chunk"===(0,r.A)(e,2),p=q&&t&&i&&(0,r.A)(e,3),u=(0,r.A)(_,"pt_groups")||V,d=(0,m.E3)(e,u)||("to_order"===(0,r.A)(B,"type")?"ordered":"common"),y=q&&s&&(0,m.oF)(F,R,d),f=(0,m.a3)({isMultyPacktypes:q,fromCartItem:K,packType:e,cartItems:F,itemId:(0,r.A)(_,"id"),ptGroups:u,state:d}),T=(0,r.A)(l,"chunkSlotCartItemId"),S=(0,r.A)(l,"chunkSlotIndex"),b=(null!=T&&(0,k.uGO)(F)?F.find(e=>(0,r.A)(e,"id")===T):null)||K&&n||(0,m.ss)(F,e,null,null,et)||n||(K?null:y||n),j=K?Q:V,g=i&&(0,k.uGO)(F)?F.filter(t=>(0,r.A)(t,"pack_type")===(0,r.A)(e,0)&&(0,r.A)(t,"quantity")===(0,r.A)(e,3)).map(e=>(0,r.A)(e,"id")):[],N=(0,r.A)(b,"id");eo((0,o.Pe)(a,_,e,b&&"order"===ee?{...b,superDuperNewKey:!0}:b,!1,f,q,t,j,K,p)).then(t=>{if(q&&"function"==typeof H){let c=(0,r.A)(t,"type"),l=(0,r.A)(t,"cart_items[0].item"),n=(0,r.A)(t,"cart_items[0].id")||(0,r.A)(t,"cart_item.id")||(0,r.A)(t,"cart.id");if("POST_NEW_CART_ITEM"===c){let c=n;!c&&i&&(c=((0,r.A)(t,"cart_items")||[]).filter(t=>(0,r.A)(t,"pack_type")===(0,r.A)(e,0)&&(0,r.A)(t,"quantity")===(0,r.A)(e,3)).map(e=>(0,r.A)(e,"id")).filter(e=>!g.includes(e))[0]),i&&null!=S&&null!=c&&"function"==typeof el&&el(e,S,c),(l||c)&&H(e,{cartItemId:c||null,chunkSlot:null!=S?S:null})}if("PUT_NEW_CART_ITEM"===c&&(0,r.A)(t,"cart.pack_type")===(0,r.A)(e,0)&&H(e,{cartItemId:(0,r.A)(t,"cart.id")||T||null,chunkSlot:null!=S?S:null}),"decrease"===a&&"DELETE_NEW_CART_ITEM"===c)if(i&&null!=S&&"function"==typeof en&&en(e,S),K)H(null,{cartItemId:null,chunkSlot:null});else{let e=(0,m.bM)({cartItems:F,itemId:(0,r.A)(_,"id"),ptGroups:(0,r.A)(_,"pt_groups"),deletedCartItemId:N,currentTabType:(0,r.A)(B,"type")});e?H(e.packType,{cartItemId:e.cartItemId}):H(null,{cartItemId:null,chunkSlot:null})}}}).finally(()=>{z&&"function"==typeof z&&z(!1),Y&&"function"==typeof Y&&Y()})},location:b,altPerUnit:j,ignoreSamplesInCart:x,priorityCurrency:g,priorityCurrencyRate:N,filtredPtGroups:V,isMultyPacktypes:q,activePackTypes:R,cartItems:F,activeTabType:(0,r.A)(B,"type"),setStateActivePackType:H,avaliablePacktypes:Q,fromCartItem:K,mobileSelectedPackType:Z,selectMobilePackType:X,cartItemQuanity:J,orderItem:C,view:ee,activeCartItemId:et,activeChunkSlot:ec,chunkSlotBindings:ea})]})]})}}}]);
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.