1define("SabyGetCore/chatButton",["react/jsx-runtime","react","i18n!SabyGetCore","WasabyLoader/ModulesLoader","SabyGetCore/Helpers/BaseHelpers","Env/Env","EngineUser/Info","Controls/buttons","Controls/Store","require","exports"],(function(e,t,o,n,a,r,s,c,i,u,l){var d,h;return Object.defineProperty(l,"__esModule",{value:!0}),d=function(e,t,o,n,a,r,s,c,i,u,l){"use strict";async function d(t){try{const{isGuest:o,isPhone:n,shopRecord:a,opener:s}=t;if(o){const{showAuthDialog:e}=await(0,r.loadAsync)("SabyGetCore/Helpers/AuthHelpers"),t=await e({opener:s,onSuccess:async()=>{null==t||t.close(),i.default.sendCommand("reloadPage",{reloadLoaders:!0});try{await c.Info.loadData()}catch(e){u.IoC.resolve("ILogger").warn("SabyGetCore/chatButton:ChatButton",`Ðе ÑдалоÑÑ Ð¾Ð±Ð½Ð¾Ð²Ð¸ÑÑ Ð´Ð°Ð½Ð½Ñе полÑзоваÑелÑ, ${e}`)}h=!0},reloadAfterAuth:!1});return}else{h=!1;const{openChat:t}=await new Promise(((t,o)=>{e(["SabyGetCore/chat"],t,o)}));t(null,{isPhone:n,group:a.get("ÐÑÑппа"),name:a.get("Ðазвание"),address:a.get("ÐдÑеÑ"),estColorBackground:a.get("EstColorBackground")})}}catch(e){(0,s.showError)(e)}}Object.defineProperty(t,"__esModule",{value:!0});let h=!1;const f=e=>{const{isPhone:t,record:r,className:i,dataQa:u,buttonStyleSettings:f,iconSize:g="m",clickable:y=!0}=e,C=(0,a.useCallback)((async e=>{if(y)if(r)await d({isPhone:t,shopRecord:r,isGuest:!!c.Info.get("guest"),opener:e.currentTarget});else(0,s.showError)({message:l("ÐÑÑÑÑÑÑвÑÑÑ Ð´Ð°Ð½Ð½Ñе о компании")},!1)}),[y,t,r]);return(0,a.useEffect)((()=>{if(h&&!c.Info.get("guest"))d({isPhone:t,shopRecord:r,isGuest:!!c.Info.get("guest")})}),[h,r,t]),(0,o.jsx)(n.Button,{...f,onClick:C,className:i,"data-qa":u,readOnly:!1,viewMode:"filled",buttonStyle:"primary",contrastBackgroun
1d:!0,inlineHeight:"5xl",fontSize:"3xl",icon:"icon-Chat",iconStyle:"contrast",iconSize:g,useControlFontSize:!1})};return f.displayName="SabyGetCore/chatButton:ChatButton",t.default=f,t}(u,{},e,c,t,n,a,s,i,r,o),h=d,l.ChatButton=void 0,Object.defineProperty(l,"ChatButton",{enumerable:!0,get:function(){return h.default}}),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.