PageSourceSearch

https://smartypro.ai/crm/js/9892.d22bdf1bca413fb34839.js

js smartypro.ai collected 2026-10-05 13:46:03 UTC 7,040 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksmarty_crm_frontend=self.webpackChunksmarty_crm_frontend||[]).push([[9892],{7924(e,t,n){n.d(t,{h:()=>i});var o,s=n(96540);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(null,arguments)}const i=e=>s.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:7,height:14,viewBox:"0 0 7 14"},e),o||(o=s.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#201600",strokeWidth:2},s.createElement("path",{d:"m1 4.2 2.5-2.6L6 4.2M6 9l-2.5 2.6L1 9"}))));n.p},39892(e,t,n){n.r(t),n.d(t,{default:()=>v});var o=n(20053),s=n(65231),a=n(41217),i=n(69733),c=n(30321),l=n(98491),d=n(19118),r=n(96540);const f="view--e8341bf8febdda76b9b4",p="load--c5620963df07b2027f88",h="empty--e8071b2d909127c86e1e",b="list--a9bde0b5446ac38eb476",u="item--f3a7c9afca4d40ce71d9";var m=n(72943),w=n(76686),C=n(3055),x=n(74848);const v=()=>{const e=(0,i.d4)(c.J0),t=(0,i.wA)(),{intl:n,formatMessage:v}=(0,d.tz)(),[y,g]=(0,r.useState)(""),[E,A]=(0,r.useState)([]),[j,N]=(0,r.useState)(!1),[k,O]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{null!=e&&e.list&&O(!1)},[e.list]),(0,r.useEffect)(()=>{null!=e&&e.list&&A(e.list.filter(e=>e.title.toLowerCase().includes(y.toLowerCase())))},[y,e.list]),(0,x.jsx)(a.M,{title:"Поиск алгоритма (сценария)",onExpandClick:()=>N(e=>!e),isExpanded:j,onCloseClick:()=>{t((0,l.Vc)({type:s.bv6.CANCEL}))},showExpandButton:!0,popModalWindow:e=>t((0,l.Vc)(e)),children:(0,x.jsx)("div",{className:(0,o.A)(f,"box-col no-overflow nowrap"),"data-name":"selectGroupModal",children:k?(0,x.jsx)(m.A,{className:p}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(C.A,{placeholder:"Введите название алгоритма (сценария)",value:y,onChange:g}),(0,x.jsx)("div",{className:b,children:E.length>0?E.map((e,n)=>(0,x.jsx)("div",{onClick:()=>{return n=e,w.A.pushState("".concat(s.o2R,"/extbot?extextflow=").concat(n._id)),void t((0,l.Vc)({type:s.bv6.CONFIRM,value:n._id}));var n},className:u,children:(0,x.jsx)("span",{className:(0,o.A)("singleline"),children:e.title})},n)):(0,x.jsx)("div",{className:h,children:y.length>0?(0,x.jsxs)("span",{children:["По запросу ",(0,x.jsxs)("b",{children:["«",y,"»"]})," ничего не найдено"]}):"Нет объектов, доступных для поиска"})})]})})})}}
1,41217(e,t,n){n.d(t,{A:()=>g,M:()=>y});var o=n(80045),s=n(64467),a=n(96540),i=n(20053),c=n(69733),l=n(60794),d=n(7924),r=n(38327),f=n(94152),p=n(68263),h=n(3157),b=n(98491),u=n(65231),m=n(95844),w=n(74848);const C=["className","contentClassName","titleClassName","children","title","hideCloseIcon","isWhiteCloseIcon","showExpandButton","isExpanded","onExpandClick","isNotExpanded","isChoiceCountry","isLastModal","onCloseClick","onEnterPress","popModalWindow"];function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){(0,s.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class y extends a.PureComponent{constructor(){super(...arguments),(0,s.A)(this,"handleKeyPress",e=>{const{isLastModal:t,onEnterPress:n}=this.props;(0,p.A)(e,"enter")&&e.shiftKey||n&&(0,p.A)(e,"enter")&&t&&(e.preventDefault(),n())}),(0,s.A)(this,"handleCloseClick",()=>{this.props.onCloseClick&&this.props.onCloseClick(),this.props.popModalWindow({type:u.bv6.CANCEL})})}componentDidMount(){window.addEventListener("keypress",this.handleKeyPress)}componentWillUnmount(){window.removeEventListener("keypress",this.handleKeyPress)}render(){const e=this.props,{className:t,contentClassName:n,titleClassName:s,children:a,title:c,hideCloseIcon:p,isWhiteCloseIcon:b,showExpandButton:u,isExpanded:x,onExpandClick:y,isNotExpanded:g,isChoiceCountry:E,isLastModal:A,onCloseClick:j,onEnterPress:N,popModalWindow:k}=e,O=(0,o.A)(e,C);return(0,w.jsxs)("div",v(v({className:(0,i.A)("box-col nowrap radius-4",m.A["widget-universal-window"],{[m.A.expanded]:x},{[m.A["not-expanded"]]:g},{[m.A["choice-country"]]:E},t)},O),{},{children:[!!c&&(0,w.jsx)("b",{className:(0,i.A)("flex-auto",m.A.title,s),children:c}),(0,w.jsx)("div",{className:(0,i.A)("box-col nowrap no-overflow scrollable",m.A.content,n),children:a}),u&&(0,w.jsx)(h.A,{icon:x?l.h:d.h,className:(0,i.A)("box-row align-middle",m.A.wide),onClick:y}),p||(0,w.jsx)(h.A,{icon:b?r.h:f.h,className:(0,i.A)("box-row align-middle",m.A.close),onClick:this.handleCloseClick})]}))}}(0,s.A)(y,"defaultProps",{className:"",contentClassName:"",titleClassName:"",title:"",children:null,isLastModal:!0,hideCloseIcon:!1,showExpandButton:!1,isWhiteCloseIcon:!1,isExpanded:!1,isNotExpanded:!1,isChoiceCountry:!1,onExpandClick:()=>{},onCloseClick:()=>{},onEnterPress:()=>{},popModalWindow:()=>{}});const g=(0,c.Ng)(null,{popModalWindow:b.Vc})(y)},60794(e,t,n){n.d(t,{h:()=>i});var o,s=n(96540);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(null,arguments)}const i=e=>s.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:7,height:13,viewBox:"0 0 7 13"},e),o||(o=s.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#201600",strokeWidth:2},s.createElement("path",{d:"M6 1.6 3.5 4.2 1 1.6M1 11.6 3.5 9 6 11.6"}))));n.p},95844(e,t,n){n.d(t,{A:()=>o});const o={"widget-universal-window":"widget-universal-window--d29897e046a4da5d30b9","modal-confirm":"modal-confirm--f5b17f1a97a6deeac1b8","modal-info":"modal-info--ff91f439a4a702d7ce1c",primaryBtn:"primaryBtn--e0ddfdb572d57dc52f1f","bot-files":"bot-files--acc6cddd694b26bfc656","attention-phone":"attention-phone--c8ada1f310438e858af7",expanded:"expanded--b8f51efd7713ae16c959",content:"content--b4295a848b4d8922676a","add-info":"add-info--fb37f9c9a94c0774691d",info:"info--e73d3534c032eeb5cf22",error:"error--d9bf690af3392b8b2949",close:"close--f8805b5c06f4721f49cc",wide:"wide--a9c0a8b6529089796590",body:"body--df9e0889cf59f298549e",title:"title--e105e180e39563de930f","notify-body":"notify-body--ed1209feb181c4572a67",img:"img--abf02e2c5586d0cacfa4","notify-message":"notify-message--bf341a46f3def1cce614","hover-title":"hover-title--e47c6138044924aec389","contact-card":"contact-card--b76ab55272b081b388d8","confirm-desc":"confirm-desc--e35533a20ff389282622","info-text":"info-text--f2910fde6bc6893cddfb",actions:"actions--d7ad7b9fbfcaf55e27cc",inputName:"inputName--a0fae178fec7690a5487",withoutCancel:"withoutCancel--f7ca1f671814912cf35d"}}}]);
2//# sourceMappingURL=9892.d22bdf1bca413fb34839.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.