1define("WNCSabyGet/Widgets/shop",["react/jsx-runtime","react","i18n!WNCSabyGet","clsx","WasabyLoader/ModulesLoader","WNCSabyGet/core","WNCSabyGet/basketUtils","WNCSabyGet/Widgets/shopPrefetch","WNCSabyGet/Widgets/hooks","WNCSabyGet/Widgets/functions","WNCSabyGet/Widgets/fieldsDescription","WNCSabyGet/Widgets/BasketFooter","UI/Async","Types/entity","Types/di","Types/chain","Router/router","I18n/singletonI18n","Hint/HelpPersonImage","Env/Env","Controls/Store","Controls/Container/Async","Controls-DataEnv/context","Catalog/basket","require","exports","css!Catalog/widget/Shop"],(function(e,t,o,i,l,a,n,s,r,d,c,u,p,v,m,g,b,y,C,h,k,f,S,T,P,O){var I,E,N,R,w;return Object.defineProperty(O,"__esModule",{value:!0}),I=function(e,t,o,i,l,a,n){"use strict";function s({filter:e,shopType:t,position:i,historyId:s,showBasketAuthDialog:r,shopRecord:d,orderFromTableMode:c,isPhone:u,basketVisibility:p}){const v=e.PriceListType,m={shopType:t,isDelivery:i===n.PricePosition.delivery,priceListType:v,historyId:s,showBasketAuthDialog:r,shopRecord:d,basketWidgetOptions:{pointId:null==d?void 0:d.get("ТоÑкаÐÑодаж")},orderFromTableMode:c,showEmptyCaption:!0,iconStyle:"default",onMainActionClick:(0,n.isOnlinePlatform)()?()=>!0:void 0,onAdditionalActionClick:(0,n.isOnlinePlatform)()?()=>!0:void 0},g=c&&(null==d?void 0:d.get("IsRestaurant"))&&u&&v===n.PriceListType.booking;return(0,o.jsxs)("div",{className:(0,a.clsx)("wnc-sabyget-composite__order-wrapper","tw-sticky","tw-box-border","tw-flex","tw-self-end","tw-justify-end","tw-z-20","wnc-sabyget-composite__order-"+(u?"phone":"desktop")),children:[p&&!g?(0,o.jsx)(l.default,{templateName:"WNCSabyGet/Buttons/Double",templateOptions:m}):null,g?(0,o.jsx)(l.default,{templateName:"SabyGetShop/tableOrders:CatalogButton",templateOptions:{}}):null]})}Object.defineProperty(t,"__esModule",{value:!0}),t.DetailFooterTemplate=void 0;return t.DetailFooterTemplate=function(e){const{isKiosk:t,isShop:l,basketPosition:a,basketTemplate:n}=e;return t?n&&"detail"===a?(0,i.isValidElement)(n)?n:(0,o.jsx)(n,{}):void 0:l?(0,o.jsx)(s,{...e}):void 0},t}(0,{},e,t,f,i,a),E=function(e,t,o,i,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WRAPPER_CLASSNAME=t.RESTRICTIVE_CONTAINER=t.FIELDS_OPTIONS=t.TAGS_OPTIONS=t.BOTTOM_TEMPLATE_OPTIONS=t.EMPTY_TEMPLATE_PROPS=void 0,t.EMPTY_TEMPLATE_PROPS={itemsStoreId:"detail",filterStoreId:"detail",helpPersonEmpty:o.HelpPerson.common.wowNothing,helpPersonSearched:o.HelpPerson.common.letsSee},t.BOTTOM_TEMPLATE_OPTIONS={backgroundStyle:"contrast",className:"controls-margin_top-2xl controls-padding_top-m controls_border-radius-s controls-padding_left-3xs",applyMode:"manual"},t.TAGS_OPTIONS={tagsProperty:"NomenclatureSetData"},t.FIELDS_OPTIONS={fieldsDescription:i.fieldsDescription};const a="m",n="s",s="s";return t.RESTRICTIVE_CONTAINER=".wnc-sabyget-composite-kiosk_scroll",t.WRAPPER_CLASSNAME=(0,l.clsx)("tw-box-border","controls-background-page",`controls-padding_left-${a}`,`controls-padding_right-${a}`,`controls-padding_top-${s}`,`controls-padding_bottom-${n}`),t}(0,{},C,c,i),N=function(e,t,o){"use strict";return Object.defineProperty(t,"__esModule",{value:!0}),t.copyLinkCallback=t.DEFAULT_EXPANDED_BASKET_OFFSET=void 0,t.DEFAULT_EXPANDED_BASKET_OFFSET=72,t.copyLinkCallback=async function(e,t,i,l,a){if((0,o.isOnlinePlatform)())return"";const n=location.host.includes("sabyget.")||location.host.includes("settyget."),s=t||"root",r=null!=a?a:o.NavigateUtils.getNomUrl(e.get("Identifier"),e.get("Id"));if(n){const[,e,t]=location.pathname.split("/");return`${`${location.protocol}//${location.host}/${e}/${t}`}${i?"/"+i:""}${l?`/${s}/${r}${location.search}`:`/catalog/${s}/${r}${location.search}`}`}else{const[e,t]=location.href.split("/catalog");return`${e}/catalog/${s}/${r}${location.search}`}},t}(0,{},a),R=function(e,t,o,i,l,a,n,s,r,d,c,u,p,v,m,g,b,y,C,h,k,f,S,T,P,O,I,E,N){"use strict";function R({children:e}){return e}function w(e,t){const o=(0,i.useRef)(!0);(0,i.useEffect)((()=>{if(!o.current)return e();else o.current=!1}),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.useUpdateEffect=void 0;const M=(0,s.lazy)((()=>(0,s.importer)("Catalog/widget/Shop"))),_=(0,s.lazy)((()=>(0,s.importer)("BookingWidgetBase/Components/WidgetOpener"))),A=(0,s.lazy)((()=>(0,s.importer)("WNCCards/Switcher")));return t.useUpdateEffect=w,t.default=(0,i.memo)((0,i.forwardRef)((function(t,s){var W,B,x,F,V,D,L,K,$,j,H,U,G,z,X,Y,q,Z,J,Q,ee,te,oe,ie,le;const ae=(0,i.useRef)(null),ne=(0,i.useRef)(null),se=(0,i.useRef)(null),re=(0,i.useRef)(null),de=(0,i.useContext)(n.DataContext),ce=(0,l.useStrictSlice)("detail"),ue=(0,l.useStrictSlice)("master"),pe=(0,l.useStrictSlice)("settings"),ve=(0,l.useSlice)("getExistRoot"),me=(0,l.useSlice)("card"),ge=null!==(B=null===(W=(((0,l.useSlice)("widgetsConfig")||{}).state||{}).hotelSettings)||void 0===W?void 0:W.clickable)&&void 0!==B?B:!0,be=null!==(x=t.isPhone||(null==pe?void 0:pe.state.isPhone))&&void 0!==x?x:a.detection.isPhone,ye=null!==(F=t.shopType)&&void 0!==F?F:null==pe?void 0:pe.state.remoteFilter.shopType,Ce=null==ce?void 0:ce.state.filter,he=(null==pe?void 0:pe.state.position)||I.PricePosition.catalog,ke=ye===I.ShopType.salon?"PriceMin":"Price",fe="brand_app"===(null===(V=p.MaskResolver.calculateUrlParams("/page/:page"))||void 0===V?void 0:V.page),Se=null!==(D=t.compositeStickyFixedBackgroun
1dStyle)&&void 0!==D?D:fe?"transparent":"page",Te=ce&&"getListConfiguration"in ce&&"function"==typeof ce.getListConfiguration?ce.getListConfiguration():t.listConfiguration,Pe="left"===(null===(L=null==Te?void 0:Te.tile.navigation)||void 0===L?void 0:L.contentsPosition)&&!t.isWideFooter?"detail":t.isWideFooter?"full":void 0,Oe=t.negativeSale===I.NegativeSale.disable?I.OrderScope.inStock:null!==(j=null!==($=null===(K=null==pe?void 0:pe.state)||void 0===K?void 0:K.orderScope)&&void 0!==$?$:null==ce?void 0:ce.state.orderScope)&&void 0!==j?j:I.OrderScope.all,Ie=null===(H=null==Te?void 0:Te.tile)||void 0===H?void 0:H.size,Ee="expanded"===(null===(U=null==me?void 0:me.state.viewOptions)||void 0===U?void 0:U.viewMode)&&(null==pe?void 0:pe.state.isKiosk),Ne=(0,i.useMemo)((()=>{var e;const o=null===(e=null==Te?void 0:Te.tile.navigation)||void 0===e?void 0:e.contentsPosition,i=(0,f.getBottomTemplateName)(null==ce?void 0:ce.state.filterDescription);return t.itemsContainerPadding||(0,h.getItemsContainerPadding)(!(!be&&!(null==pe?void 0:pe.state.isKiosk)),"none"===o&&i?"left":o)}),[be,t.itemsContainerPadding,null==pe?void 0:pe.state.isKiosk,null==ce?void 0:ce.state.filterDescription]),Re=(0,i.useMemo)((()=>t.itemsContainerPadding||(0,h.getNegativeContainerPadding)({itemsContainerPadding:t.itemsContainerPadding,isAdaptive:!(!be&&!(null==pe?void 0:pe.state.isKiosk))})),[be,t.itemsContainerPadding,null==pe?void 0:pe.state.isKiosk]),we=(0,i.useMemo)((()=>t.shopRecordCompatibleMode?void 0:t.shopRecord||m.default.get("SHOP_RECORD")),[t.shopRecord,t.shopRecordCompatibleMode]),{basketVisibility:Me,controllerResolver:_e,basketOptions:Ae,basketContext:We,basketController:Be}=(0,b.useBasket)({basketVisibility:t.basketVisibility,forceEnableOrder:t.forceEnableOrder,isPhone:t.isPhone,orderFromTableMode:t.orderFromTableMode,position:he,priceProperty:ye===I.ShopType.salon?"PriceMin":"Price",shopRecordCompatibleMode:t.shopRecordCompatibleMode,shopType:ye,shopRecord:we,isBrandMobile:t.isBrandMobile,incrementIconStyle:t.incrementIconStyle,decrementVisibility:t.decrementVisibility,isKiosk:null==pe?void 0:pe.state.isKiosk,orderScope:Oe,basketValidators:t.basketValidators,basketCore:t.basketCore}),xe=(0,i.useMemo)((()=>{var e;return(null===(e=null==me?void 0:me.state.sharedCards)||void 0===e?void 0:e.find((e=>e.identifier===I.NavigateUtils.getNomenclatureId(me.state.entityKey||""))))&&!Me}),[null==me?void 0:me.state.sharedCards,null==me?void 0:me.state.entityKey,Me]),{navigateRoot:Fe,routerNomenclatureId:Ve,catalogId:De,onNomenclatureOpeningStateChanged:Le,pageUrl:Ke,getRoutingState:$e}=(0,b.useRouting)(),je=(0,i.useCallback)((e=>{var t;return Me&&(0,P.basketItemVisibilityCallback)(e,ye,null===(t=null==pe?void 0:pe.state)||void 0===t?void 0:t.orderScope)}),[Me,ye,null===(G=null==pe?void 0:pe.state)||void 0===G?void 0:G.orderScope]),He=(0,i.useCallback)((e=>(0,P.basketOptionsCallback)(e,{shopType:ye,tileSize:Ie})),[ye,Ie]),Ue=(0,i.useCallback)((e=>{if(ge)(0,r.loadAsync)("WNCSabyGet/basket/actions/showHotelWidget").then((t=>{const o=null==ce?void 0:ce.state.filter;t({widgetOpener:ne.current,pointId:null==we?void 0:we.get("ТоÑкаÐÑодаж"),shopUUID:(null==o?void 0:o.uuid)||(null==o?void 0:o.SalePointUUID),shopType:ye,nomenclatureId:e.get("Id")})}))}),[null==ce?void 0:ce.state.filter,we,ye,ge]),Ge=(0,i.useCallback)((async(e,t,o,i,l,a)=>{var n;(await(0,r.loadAsync)("WNCSabyGet/basket/actions/showPaymentWidget"))({basketCallbackOptions:{itemId:e,modifiers:t,partyCode:o,count:i,nomenclatureTitle:l,closeCallback:a},widgetOptions:{logicOpener:ae.current,shopType:ye,filter:Ce,shopRecord:we,sharedCards:null===(n=null==me?void 0:me.state)||void 0===n?void 0:n.sharedCards}})}),[ye,Ce,we,null===(z=null==me?void 0:me.state)||void 0===z?void 0:z.sharedCards]),{handleItemCountChanged:ze,cardBasketOptions:Xe}=(0,b.useCard)({basketContext:We,controllerResolver:_e,basketOptionsCallback:He,basketVisibilityCallback:je,showHotelWidget:Ue,shopType:ye,showPaymentWidgetCallback:xe?Ge:void 0,showMobileServiceWidget:t.showMobileServiceWidget}),Ye=(0,i.useMemo)((()=>{var e,o,i,l;return{orderButtonVisible:!1,wrapExpandedInScroll:!1,shopType:ye,expandedBasketOffset:null!==(e=t.expandedBasketOffset)&&void 0!==e?e:y.DEFAULT_EXPANDED_BASKET_OFFSET,orderScope:Oe,priceProperty:ke,codeVisibility:ye
1===I.ShopType.shop,basketActionButtonsVisibility:ye===I.ShopType.hotel?!1:void 0,mobileGalleryRoundBorder:"expanded"===(null===(o=null==me?void 0:me.state.viewOptions)||void 0===o?void 0:o.viewMode)?{tl:"m",tr:"m",bl:"null",br:"null"}:void 0,hideCopyButton:null==me?void 0:me.state.hideCopyButton,useAutoSelectOnlyOne:t.useAutoSelectOnlyOne,copyLinkCallback(e){const{catalogId:t}=$e();return(0,y.copyLinkCallback)(e,t,Ke,(null==pe?void 0:pe.state.remoteFilter.siteType)===I.SiteTypes.shop,null==me?void 0:me.state.entityKey)},basketOptions:Xe,balanceVisible:(0,C.calcCardBalanceVisibility)(Te),openerOptions:{filter:null==me?void 0:me.state.filter,templateOptions:{basketOptions:Xe,closeButtonVisible:!Ee,wrapperClassName:E.WRAPPER_CLASSNAME},viewOptions:null==me?void 0:me.state.viewOptions,maximize:Ee,restrictiveContainer:E.RESTRICTIVE_CONTAINER},imageFit:null===(l=null===(i=null==Te?void 0:Te.tile)||void 0===i?void 0:i.leaf)||void 0===l?void 0:l.imageFit,openAnalogHandler:(e,t)=>Ze(e,void 0,void 0,t),relatedProductsCaption:ye===I.ShopType.salon?N("С ÑÑой ÑÑлÑгой покÑпаÑÑ"):N("С ÑÑим ÑоваÑом покÑпаÑÑ"),...Ee?{closeButtonVisible:!1,wrapperClassName:E.WRAPPER_CLASSNAME,maximize:!0,restrictiveContainer:E.RESTRICTIVE_CONTAINER}:{},...xe?{basketButtonCaption:"ÐаказаÑÑ",basketOptions:{...Xe,basketVisibilityCallback:()=>!0},closeAfterOrder:!1}:{}}}),[ye,t.expandedBasketOffset,Oe,ke,null===(X=null==me?void 0:me.state.viewOptions)||void 0===X?void 0:X.viewMode,null==me?void 0:me.state.hideCopyButton,Xe,Te,xe,De,he,null==me?void 0:me.state.entityKey]);(0,i.useMemo)((()=>{null==me||me.setTemplateOptions(Ye)}),[Ye]),(0,i.useEffect)((()=>{null==me||me.openFromState()}),[]);const qe=(0,i.useCallback)(((t,o,i,l,a)=>{if((null==pe?void 0:pe.state.siteType)===I.SiteTypes.hotel)return Ue(t),{count:0};else if(_e)return _e().then((n=>{if(n)return(0,C.itemCountChangedHandler)({count:o,item:t,action:i,modifiers:l,partyCode:a,context:{card:de.card,detail:de.detail,settings:de.settings,master:de.master,basketState:de.basketState,detailFilter:de.detailFilter},basketController:n,handleItemCountChanged:ze,popupOptions:Ee?{closeButtonVisible:!1,wrapperClassName:E.WRAPPER_CLASSNAME,maximize:!0,restrictiveContainer:E.RESTRICTIVE_CONTAINER}:{}}).catch((()=>(new Promise(((t,o)=>{e(["Controls/popup"],t,o)})).then((({Confirmation:e})=>{var t;null==me||me.close(),null===(t=re.current)||void 0===t||t.destroy(),e.openPopup({type:"ok",message:N("Ð¢Ð¾Ð²Ð°Ñ Ð·Ð°ÐºÐ¾Ð½ÑилÑÑ Ð¸Ð»Ð¸ его ÑбÑали из пÑодажи")})})).catch((function(e){requirejs.onError(e)})),Promise.resolve({count:0}))));else return{count:o}}));return{count:o}}),[null==pe?void 0:pe.state.siteType,_e,Ue,ze,de.card,de.detail,de.settings,de.master,de.basketState,de.detailFilter]);(0,i.useMemo)((()=>{if(null==ce?void 0:ce.state.objectName)(0,u.register)("basketWidgetOptions",(function(){return{basketCountChangedCallback:qe,basketVisibility:Me}}),{single:!0})}),[]);const Ze=(0,i.useCallback)(((e,o,i,l)=>{if(!e.get("IsFolder"))if(t.addBasketOnItemClick)return _e().then((t=>{(0,C.itemCountChangedHandler)({count:1,item:e,action:"incrementValue",context:{card:de.card,detail:de.detail,settings:de.settings,master:de.master,basketState:de.basketState,detailFilter:de.detailFilter},basketController:t,handleItemCountChanged:ze})}));else if(t.openProductWidgetCallback)t.openProductWidgetCallback(e);else(0,C.openNomenclatureCardWithHandler)(e,de,{opener:l||ae.current||void 0,...Ee?{closeButtonVisible:!1,wrapperClassName:E.WRAPPER_CLASSNAME,maximize:!0,restrictiveContainer:E.RESTRICTIVE_CONTAINER}:{}}).then((()=>
1{if((null==pe?void 0:pe.state.siteType)===I.SiteTypes.hotel)(0,r.loadAsync)("WNCSabyGet/statistics/hotelCategoryCardOpen").then((e=>e()))}))}),[de,t.openProductWidgetCallback,_e,t.addBasketOnItemClick]);(0,i.useEffect)((()=>{(0,C.startPreloadCardData)()}),[]),(0,b.useFirstRender)();const Je=(0,i.useMemo)((()=>({widgetType:"hotel"})),[]),Qe=(0,i.useMemo)((()=>({priceRender:O.PriceRender,priceProperty:ye===I.ShopType.salon?"PriceMin":"DisplayPrice",priceRenderProps:{fontSize:"3xl",fontWeight:"bold",fontColorStyle:"primary",currencySize:"l",currencyStyle:"primary",precision:2,showEmptyDecimals:!1,currency:v.controller.currentLocaleConfig.money.symbol,basketContext:We,basketVisibilityCallback:je,basketOptions:Ae,basketOptionsCallback:He,basketCountChangedCallback:qe}})),[We,qe,Ae,He,je,null==ce?void 0:ce.state.viewMode,ye]);w((()=>{if("compact"===(null==me?void 0:me.state.lastViewMode))null==et||et(me.state.entityKey)}),[null==me?void 0:me.state.entityKey,null==me?void 0:me.state.lastViewMode]);const et=(0,i.useCallback)((e=>{Le(De,e)}),[Le,De]),tt=(0,i.useCallback)((e=>{const t=de.master.state.keyProperty,o=-1e3===e.get(t)?null:e.get(t);de.detail.changeRoot(o,{scrollToPreviousRoot:null!==o}),Fe(o,void 0)}),[de,Fe]),ot=(0,i.useCallback)((e=>{var t;return null==me||me.open({item:e,entityKey:I.NavigateUtils.getNomUrl(e.get("Identifier"),e.get("Id")),priceListHierarchy:null===(t=null==me?void 0:me.state.filter)||void 0===t?void 0:t.PriceListHierarchy}),!1}),[null==me?void 0:me.open,null===(Y=null==me?void 0:me.state.filter)||void 0===Y?void 0:Y.PriceListHierarchy]),it=(0,i.useCallback)((({nomenclatureId:e,catalogId:t},{nomenclatureId:o,catalogId:i})=>{setTimeout((()=>{if(e!==o){if(e&&!o){if(!(null==me?void 0:me.isOpen()))(0,C.openNomenclatureCardWithHandler)(c.Record.fromObject({Id:I.NavigateUtils.getNomenclaturePriceId(e)}),de,{opener:ae.current||void 0})}else if(!e&&o)null==me||me.close()}else if(t!==i){const e=I.NavigateUtils.getRootByCategoryId(t);null==ce||ce.setRoot(e)}}),0)}),[]);(0,i.useImperativeHandle)(s,(()=>({reset:async()=>{var e,o,i,l,a,n;null==me||me.close(),null===(e=se.current)||void 0===e||e.resetSlider();const s=(null===(l=null===(i=null===(o=ue.state.sourceController)||void 0===o?void 0:o.getItems())||void 0===i?void 0:i.at(0))||void 0===l?void 0:l.getKey())||null;if(null!==ce.state.root||ce.state.searchValue)return null===(a=t.scrollToCallback)||void 0===a||a.call(t,0),ce.setState({activeElement:s,root:null,searchValue:"",searchInputValue:""});else return await ce.reload(ce.state.navigation,!1),null===(n=t.scrollToCallback)||void 0===n||n.call(t,0),ce.setState({activeElement:s})},editBasketItem:async e=>{var t,o;const i=await _e(),l=null===(t=null==i?void 0:i.getItem)||void 0===t?void 0:t.call(i,e);if(l)null===(o=null==i?void 0:i.beginEdit)||void 0===o||o.call(i,e),(0,C.openNomenclatureCardWithHandler)(l.registryItem,de,{viewOptions:{imagePosition:"right",imagePreviewMode:"gallery",imageProportion:"3:4",orientation:"horizontal",selectedStyle:null,viewMode:"compact",imageThumbnailMode:"tile"},modifiers:l.modifiers},{templateOptions:{scrollToModifiers:!0,scrollToAccountingFields:!1,basketCount:l.count,basketButtonCaption:N("ÐоÑово"),isBasketNomenclature:!0,onClose:()=>{null==i||i.endEdit()},closeButtonVisible:!0,useAutoSelect:!1}},l)},openCardByBarcode:e=>(0,C.getItemsByBarcode)(e,ce.state.filter,ce.state.source).then((e=>{const t=(0,C.filterPublicationItems)(e);return(0,C.selectItem)(t,re.current,ae.current).then((e=>{if(e)(0,C.openNomenclatureCardWithHandler)(e,de,{...Ee?{closeButtonVisible:!1,wrapperClassName:E.WRAPPER_CLASSNAME,maximize:!0,restrictiveContainer:E.RESTRICTIVE_CONTAINER}:{}});return(null==t?void 0:t.getCount())>0}))})),getItem:e=>{var t;const o=null===(t=ce.state.sourceController)||void 0===t?void 0:t.getItems();return o&&(0,g.factory)(o).toArray().find((t=>{var o;return((null===(o=t.get("PriceListHierarchy"))||void 0===o?void 0:o.get("NomenclatureId"))||t.get("Id"))===e}))},isEmptyCatalog(){var e;return!(null===(e=ce.state.items)||void 0===e?void 0:e.getCount())},basketResolver:_e,getCatalogContext:()=>de})),[ce,me,ue,de.detail,de.master]);const lt=(0,i.useMemo)((()=>{var e,t,o;if(null==pe?void 0:pe.state.isKiosk){const i=null===(e=null==Te?void 0:Te.tile.navigation)||void 0===e?void 0:e.contentsPosition;if(i&&"none"!==i)return(null===(o=null===(t=ce.state.items)||void 0===t?void 0:t.at(0))||void 0===o?void 0:o.get(ce.state.nodeProperty))||!1;else return!1}}),[null===(q=null==Te?void 0:Te.tile.navigation)||void 0===q?void 0:q.contentsPosition,ce.state.items]),at=(0,i.useMemo)((()=>(0,o.jsx)(T.DetailFooterTemplate,{filter:Ce,shopType:ye,position:he,historyId:We,showBasketAuthDialog:t.showBasketAuthDialog,shopRecord:we,orderFromTableMode:t.orderFromTableMode,isPhone:be,basketVisibility:Me,isKiosk:null==pe?void 0:pe.state.isKiosk,basketPosition:Pe,basketTemplate:t.basketTemplate,isShop:(null==pe?void 0:pe.state.remoteFilter.siteType)===I.SiteTypes.shop})),[We,he,ye,pe,Ce,We,t.orderFromTableMode,t.showBasketAuthDialog,we,be,Me,null==pe?void 0:pe.state.isKiosk,Pe,t.basketTemplate,null==pe?void 0:pe.state.remoteFilter.siteType]),nt=`${he}-${(null==Ce?void 0:Ce.SalePoint)||(null==Ce?void 0:Ce.uuid)}-${null==pe?void 0:pe.state.widgetId}`,st=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{className:(0,d.clsx)(null!==(Z=t.widgetClassName)&&void 0!==Z?Z:"wnc-sabyget-composite-"+((null==pe?void 0:pe.state.isKiosk)?"shop":"menu"),"tw-h-full","tw-min-h-full"),forwardedRef:se,searchVisible:pe.state.searchVisible,masterWidth:t.masterWidth,tagsOptions:E.TAGS_OPTIONS,masterScrollOffsetTop:60,masterOffsetTop:60,navigationVisible:lt,readOnly:!1,isPhone:be,imageProperty:"MasterImage",contentWidth:(0,k.getShopContentWidth)(t.contentWidth,be),historyKey:`${he}-${(null==Ce?void 0:Ce.SalePoint)||(null==Ce?void 0:Ce.uuid)}
1`,addBasketOnItemClick:!1,stickyFixedBackgroundStyle:Se,stickyBackgroundStyle:t.compositeStickyBackgroundStyle,detailBackgroundColor:Se,priceOptions:Qe,fieldsOptions:E.FIELDS_OPTIONS,sliderTitlePaddingSize:be||(null==pe?void 0:pe.state.isKiosk)?"m":void 0,sliderClasses:"wnc-sabyget-composite-slider-"+((null==pe?void 0:pe.state.isKiosk)?"shop":"menu"),sliderCaptionClass:"catalog-slider-caption",sliderVisible:!0,sliderPriceProperty:"DisplayPrice",compositeHeaderClasses:"controls-padding_top-m controls-padding_bottom-m",nomenclatureId:Ve,catalogId:(null==ve?void 0:ve.state.rootDropped)?null:De,detailVirtualScrollConfig:null,virtualScrollConfig:null,itemsContainerPadding:Ne,isSearchModeCallback:t.isSearchModeCallback,urlProperty:"Url",emptyTemplate:null!==(J=t.emptyTemplate)&&void 0!==J?J:"Catalog/empty:Template",emptyTemplateProps:null!==(Q=t.emptyTemplateProps)&&void 0!==Q?Q:E.EMPTY_TEMPLATE_PROPS,masterScrollBackgroundStyle:"page",noZen:t.noZen,lightWeight:null==ce?void 0:ce.state.lightWeight,isWidget:null==ce?void 0:ce.state.isBrowserWidget,showcaseMode:!0,onItemClick:Ze,onMasterClick:tt,masterExpandByItemClick:!0,stickyMasterScrollable:null!==(ee=t.stickyMasterScrollable)&&void 0!==ee?ee:!0,captionLineBreak:"break-word",bottomTemplateName:(0,f.getBottomTemplateName)(null==ce?void 0:ce.state.filterDescription),bottomTemplateOptions:E.BOTTOM_TEMPLATE_OPTIONS,detailFooterTemplate:at,masterFooterTemplate:lt?t.basketTemplate&&!Pe?(0,o.jsx)(S.default,{basketController:Be}):"full"===Pe&&t.masterBasketTemplate?(0,o.jsx)(t.masterBasketTemplate,{}):void 0:void 0,compositeFooterTemplate:t.basketTemplate?Pe?"full"===Pe?t.basketTemplate:void 0:t.basketTemplate:void 0,nodeTemplate:t.node,leafTemplate:t.leaf,nodeHeight:t.nodeHeight,nodeWidth:t.nodeWidth,leafHeight:t.leafHeight,leafWidth:t.leafWidth,disableVirtualScroll:t.disableVirtualScroll,blockMarkup:!0,masterScrollSticky:!!(0,f.getBottomTemplateName)(null==ce?void 0:ce.state.filterDescription)||(null==ce?void 0:ce.state.lightWeight),staticListConfiguration:null==ce?void 0:ce.state.staticListConfiguration,task02207896:t.task02207896||(null==pe?void 0:pe.state.isKiosk),task0628540:t.task0628540||(null==pe?void 0:pe.state.isKiosk),fix05219225:t.fix05219225||(null==pe?void 0:pe.state.isKiosk),task0628549:t.task0628549,fix09085677:!0,muteScrollEvents:t.muteScrollEvents,compositeVirtualScrollConfig:t.compositeVirtualScrollConfig,negativeContainerPadding:Re,...(null==pe?void 0:pe.state.isKiosk)?{contentClassName:"tw-flex-grow",disableScrollReaction:t.disableScrollReaction,backButtonIconViewMode:"functionalButton",compositeCaptionClickable:!1}:{}},nt),(null==pe?void 0:pe.state.siteType)===I.SiteTypes.hotel?(0,o.jsx)(_,{ref:ne,widgetOptions:Je,readOnly:!1}):null]}),rt="tree"===(null===(te=null==Te?void 0:Te.tile.navigation)||void 0===te?void 0:te.contentsStyle)?"right"===(null===(oe=null==Te?void 0:Te.tile.navigation)||void 0===oe?void 0:oe.contentsPosition)?"_right":"left"===(null===(ie=null==Te?void 0:Te.tile.navigation)||void 0===ie?void 0:ie.contentsPosition)?"_left":"":"",dt=(0,d.clsx)(t.className,t.withNegativeOffset?`wnc-sabyget-composite_margin-${Re.left}${rt}`:void 0),ct=(0,i.useMemo)((()=>`${(null==pe?void 0:pe.state.remoteFilter.siteType)===I.SiteTypes.shop?Ke:"catalog"}/:catalogId/:nomenclatureId`),[]),ut="expanded"===(null===(le=null==me?void 0:me.state.viewOptions)||void 0===le?void 0:le.viewMode)&&!(null==pe?void 0:pe.state.isKiosk)?(0,o.jsx)(A,{ref:ae,className:dt,contentWidth:t.contentWidth?t.contentWidth+(be?24:56):void 0,disableFullHeight:t.disableFullHeight,onNestedNomenclatureClick:ot,onNomenclatureStateChanged:et,children:st}):pe.state.allowWidgetRouting?(0,o.jsx)(R,{children:(0,o.jsx)("div",{className:dt,children:st})}):(0,o.jsx)("div",{className:dt,children:st});return pe.state.allowWidgetRouting?(0,o.jsx)(p.Route,{mask:ct,onUrlChange:it,children:ut}):ut}))),t}(P,{},e,t,S,h,S,p,l,i,v,m,b,y,k,g,r,N,d,s,s,s,u,I,n,T,a,E,o,"undefined"==typeof css_Catalog_widget_Shop||css_Catalog_widget_Shop),w=R,O.Menu=void 0,Object.defineProperty(O,"Menu",{enumerable:!0,get:function(){return w.default}}),O}));
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.