PageSourceSearch

https://grillwood.pro/static/resources/SabyGetShop/Model.min.js?x_module=d233c8fc48cff4e697b5fdd5c20dea33

js grillwood.pro collected 2026-10-02 02:06:03 UTC 9,499 bytes, 1 lines download raw bytes

1define("SabyGetShop/Model",["require","exports","Types/di","Types/entity","Types/chain","SabyGetShop/constants","SabyGetCore/constants","i18n!SabyGetShop","Env/Env","Types/object","SabyGetCore/Helpers/CommonHelpers"],(function(t,e,i,s,r,n,g,a,h,o,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const l=/,{"version":"2"}/g;class d extends s.Model{constructor(){super(...arguments),this._moduleName="SabyGetShop/Model",this._$properties={Categories:{get(){return this._createCategoriesArray("@Категория")}},DescriptionText:{get(){return this.get("ОписаниеТекст")||""}},isChain:{get(){var t;return(null===(t=this.get("ТипГруппы"))||void 0===t?void 0:t.get())===g.GROUP_TYPE.CHAIN}},isAddressUpdateBlocked:{get(){var t;return!1===(null===(t=this.get("AllowedEditField"))||void 0===t?void 0:t.get("Address"))}},isBranchOrNet:{get(){return this.get("IsNetHead")||this.get("isChain")||this.get("IsNetBranch")}},isIndividualEntrepreneur:{get(){var t;return!!(null===(t=this.get("ДанныеКонтрагента"))||void 0===t?void 0:t.get("ИП"))}},chainCount:{get(){return this._getChainCounter("ФилиалыСайт")}},chainWithHeadCount:{get(){return this._getChainCounter("ФилиалыСайт")}},chainAllowedOnHead:{get:()=>!0},hasPublishedChain:{get(){const t=this.get("IsNetBranch"),e=t?this.get("chainWithHeadCount"):this.get("chainCount");if(t)return this.get("Публиковать")?e>1:e>0;else return e>0}},teamTab:{get(){return this._getTab("Мастера")},set(t){this._setTab("teamTab","Мастера",t)}},servicesTab:{get(){return this._getTab(n.BASE_SHOP_TABS_SETTINGS.CATALOG)},set(t){this._setTab("servicesTab",n.BASE_SHOP_TABS_SETTINGS.CATALOG,t)}},anyCatalogTabEnabled:{get(){return n.CATALOG_TABS_SETTINGS.some((t=>this._getTab(t)))}},isMall:{get(){var t;return(null===(t=this.get("ТипГруппы"))||void 0===t?void 0:t.get())===g.GROUP_TYPE.MALL}},Coordinates:{get(){return this._getCoordinates()},set(t){this._setCoordinates(t)}},HeaderStyle:{get(){return this.get("ЗаведениеРасширение.HeaderStyle")},set(t){this.set("ЗаведениеРасширение.HeaderStyle",t)}},ComputedName:{get(){return this.get("IsNetBranch")?this.get("НазваниеСеть"):this.get("Название")},set(t){if(this.get("IsNetBranch"))this.set("НазваниеСеть",t);else this.set("Название",t)}},Description:{get(){const t=this.get("IsNetBranch")?this.get("ОписаниеСеть"):this.get("Описание"),e=t?JSON.parse(t):[];return this._getValidJSONML(e)},set(t){let e=null,i=null;if(t&&t.length){const s="string"==typeof t;e=s?t:JSON.stringify(t),i=s?JSON.parse(t):t}const s=this.get("Description");if(!(0,o.isEqual)(i,s))if(!this._checkRealMarkup(i,s))this.set(this.get("IsNetBranch")?"ОписаниеСеть":"Описание",e)}},Landing:{get(){return this.get("IsNetBranch")?this.get("ОформлениеСеть"):this.get("Оформление")},set(t){this.set(this.get("IsNetBranch")?"ОформлениеСеть":"Оформление",t)}},Banner:{get(){return this.get("Фото")},set(t){this.set("Фото",t)}},HasDescription:{get(){const t=this.get("Description");return!(!t||!t.length)}},IsSalon:{get(){return!!this.get("ТипЗаведения").get("Салон")}},IsRestaurant:{get(){return!!this.get("ТипЗаведения").get("Ресторан")}},IsShop:{get(){return!!this.get("ТипЗаведения").get("МагаÐ
1·Ð¸Ð½")}},IsHotel:{get(){return!!this.get("ТипЗаведения").get("Отель")}},IsSelfEmployed:{get(){return!!this.get("ТипЗаведения").get("Самозанятый")}},IsShopsGroup:{get(){return this.get("isMall")}},IsUnverifiedShop:{get(){var t;return(null===(t=this.get("ТипГруппы"))||void 0===t?void 0:t.get())===g.GROUP_TYPE.BID}},IsNoContractorShop:{get(){var t;return(null===(t=this.get("ТипГруппы"))||void 0===t?void 0:t.get())===g.GROUP_TYPE.NO_CONTRACTOR}},DeliveryButtonEnabled:{get(){var t;return null===(t=this.get("Флаги"))||void 0===t?void 0:t.get("WidgetDelivery")}},BookingButtonEnabled:{get(){var t;return null===(t=this.get("Флаги"))||void 0===t?void 0:t.get("WidgetPresto")}},AppointmentButtonEnabled:{get(){var t;return null===(t=this.get("Флаги"))||void 0===t?void 0:t.get("WidgetBeauty")}},OrderButtonEnabled:{get(){var t;return null===(t=this.get("Флаги"))||void 0===t?void 0:t.get("WidgetOrder")}},RoomsButtonEnabled:{get(){var t;return null===(t=this.get("Флаги"))||void 0===t?void 0:t.get("WidgetHotel")}},WidgetsEnabledCount:{get(){let t=0;if(this.get("DeliveryButtonEnabled"))t++;if(this.get("BookingButtonEnabled"))t++;if(this.get("AppointmentButtonEnabled"))t++;if(this.get("OrderButtonEnabled"))t++;if(this.get("RoomsButtonEnabled"))t++;return t}},DeliveryButtonVisible:{get(){return this.get("Публиковать")&&this._getTab("ВиджетыЗаказа")&&this.get("DeliveryButtonEnabled")}},BookingButtonVisible:{get(){return this.get("Публиковать")&&this._getTab("ВиджетыЗаказа")&&this.get("BookingButtonEnabled")}},AppointmentButtonVisible:{get(){return this.get("Публиковать")&&this._getTab("ВиджетыЗаказа")&&this.get("AppointmentButtonEnabled")}},OrderButtonVisible:{get(){return this.get("Публиковать")&&this._getTab("ВиджетыЗаказа")&&this.get("OrderButtonEnabled")&&!this.get("DeliveryButtonVisible")}},RoomsButtonVisible:{get(){return this.get("Публиковать")&&this._getTab("ВиджетыЗаказа")&&this.get("RoomsButtonEnabled")}},HasWidgets:{get(){return this.get("DeliveryButtonVisible")||this.get("BookingButtonVisible")||this.get("AppointmentButtonVisible")||this.get("OrderButtonVisible")||this.get("RoomsButtonVisible")}},IsNetBranch:{get(){return!!this.get("ИдГоловыСети")}},IsNetHead:{get(){return!!this.get("РП.ИдентификаторСети")&&!this.get("IsNetBranch")}},ChainId:{get(){return this.get("isChain")?this.getKey():this.get("РП.ИдентификаторСети")}},ChainAllowed:{get(){return this.get("chainAllowedOnHead")&&this.get("hasPublishedChain")}},GalleryTab:{get(){return this._getTab("Галерея")},set(t){this._setTab("GalleryTab","Галерея",t)}},PanoramaPublish:{get(){return this._getTab("Панорамы")}},PanoramaExists:{get(){return this.get("СсылкаНаТур")&&this.get("ПревьюТура")}},ShopType:{get(){return(0,u.getComputedShopType)(this.get("ТипЗаведения"))}},CanShowBonusWidget:{get(){return!(!this.get("BonusExists")||!this.get("Публиковать")||this.get("BonusExists")===g.BONUS_EXISTS_PARTICIPANT&&!this.get("ReferralProgram"))}},CanShowBonusChips:{get(){return!(!this.get("BonusExists")||!this.get("Публиковать")||this.get("BonusExists")===g.BONUS_PROGRAM_DISABLE&&!this.get("ReferralProgram"))}},servicesTabName:{get(){const t=this.get("ТипЗаведения");if(t.get("Салон"))return a("Услуги");if(t.get("Ресторан"))return a("Меню");
1if(t.get("Магазин"))return a("Каталог");else return""}},FeaturesKeys:{get(){return(0,r.factory)(this.get("Характеристики")).map((t=>t.get("ИдО"))).value()}},ChainTabNameWithCounter:{get(){const t=this.get("chainWithHeadCount");return`${this.get("ChainTabName")} ${t||""}`}},ChainTabNameCapitalized:{get(){const t=this.get("ChainTabName");if(t){const[e]=t;return`${e.toUpperCase()}${t.slice(1)}`}return""}},IsSmallNet:{get(){return this.get("chainCount")<12}},CanShowDelivery:{get(){var t;return null===(t=this.get("Флаги"))||void 0===t?void 0:t.get("WidgetDelivery")}},CanShowChainTab:{get(){return!this.get("IsSmallNet")}},ChainTabName:{get(){const t=this.get("CategoryAlias"),e=this.get("ТипЗаведения");if(t)return t;else if(this.get("isMall"))return a("ТЦ");else if(e.get("Салон"))return a("Салоны");else if(e.get("Ресторан"))return a("Рестораны");else if(e.get("Магазин"))return a("Магазины");else return a("Заведения")}},serviceSliderName:{get(){return this.get("CanShowDelivery")?a("Доставка"):this.get("servicesTabName")}}}}_createCategoriesArray(t){return(0,r.factory)(this.get("Категории")).map((e=>
1e.get(t))).value()}_getCoordinates(){const t=this.get("Координаты");if(t)return t.replace(/\(|\)/g,"").split(", ").map((t=>+t));else return null}_setCoordinates(t){if(t){const[e,i]=t,s=`(${e}, ${i})`;return this.set("Координаты",s),this.set("Широта",e),void this.set("Долгота",i)}this.set("Координаты",null)}_getTab(t,e="Вкладки"){var i;return!!(null===(i=this.get(e))||void 0===i?void 0:i.get(t))}_setTab(t,e,i){const s=this.get("Вкладки");s.set(e,i),this._notifyChange({Вкладки:s})}_cutVersion(t){return JSON.stringify(t).replace(l,"")}_checkRealMarkup(t,e){return this._cutVersion(t)===this._cutVersion(e)}_getChainCounter(t){if(this.get("isBranchOrNet"))return this.get("Счетчики")[t]||0;else return null}_getValidJSONML(t){let e,i=t;try{if(i.length){const[s]=t,[r]=s;if(Array.isArray(r))i=s,e="Некорректный формат JSONML, проверьте значение в поле Описание"}if(e)h.IoC.resolve("ILogger").error("SabyGetShop/Model:_getValidJSONML",e)}catch(t){h.IoC.resolve("ILogger").error("SabyGetShop/Model:_getValidJSONML",t.message)}return i}}(0,i.register)("CardModel",d),e.default=d}
vendor: 3 bytes, line 1
1));

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.