PageSourceSearch

https://psychicbook.net/_next/static/chunks/1696.478d98adb96ffa51.js

js psychicbook.net collected 2026-10-04 05:57:44 UTC 16,643 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0bb067eb-dc5e-420e-b6b4-2cbd8cb143ca",e._sentryDebugIdIdentifier="sentry-dbid-0bb067eb-dc5e-420e-b6b4-2cbd8cb143ca")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1696],{21696:function(e,n,t){t.r(n),t.d(n,{default:function(){return x}});var r=t(68575),o=t(57437),a=t(38148),i=t(6268),l=t(56232),u=t(40718),s=t.n(u),c=t(2265),d=t(51142),p=t(25151),f=t(55866),h=t(7198),b=t(68057);class g extends c.Component{hasErrors(e){return Object.keys(e).some(n=>e[n])}render(){let{form:{getFieldDecorator:e,getFieldsError:n}}=this.props;return(0,o.jsx)(b.W2,{startFlexPadding_50:!0,children:(0,o.jsxs)(p.sj,{children:[(0,o.jsxs)(b.nL,{children:[d.I18n.t("notes.header_new_note"),!!this.state.countSymbols&&(0,o.jsxs)("span",{className:"sub",children:["- ",this.state.countSymbols]})]}),(0,o.jsx)(a.Z,{onSubmit:this.onSave,children:(0,o.jsx)(a.Z.Item,{children:e("note",{initialValue:"",rules:[{required:!0}]})((0,o.jsx)(l.default,{onChange:this.handelChangeNote,autoSize:{minRows:15},placeholder:d.I18n.t("notes.placeholder_write_note"),maxLength:f.ks}))})}),(0,o.jsxs)(p.qO,{absolute:!0,editContainer:!0,children:[(0,o.jsx)(a.Z.Item,{children:(0,o.jsx)(i.Z,{type:"primary",onClick:this.onSave,disabled:this.hasErrors(n())||!this.state.isOpen||this.state.isDisabledSave,children:d.I18n.t("notes.buttons.save")})}),(0,o.jsx)(a.Z.Item,{children:(0,o.jsx)(i.Z,{onClick:this.handleCancel,children:d.I18n.t("notes.buttons.cancel")})})]})]})})}constructor(...e){super(...e),this.state={isOpen:!1,isDisabledSave:!1,countSymbols:0},this.componentDidMount=()=>{let{form:e}=this.props;e.validateFields(()=>{this.setState({isOpen:!0})})},this.componentDidUpdate=e=>{e.language!==this.props.language&&this.props.form.validateFields(e=>{console.error(e)})},this.onSave=async e=>{e.preventDefault();let{addNote:n,match:{params:t}}=this.props;await this.setState({isDisabledSave:!0}),this.props.form.validateFields(async(e,r)=>{if(!e){let e=t.nick;try{r.type="ONLY_FOR_ME",await n(e,r),this.props.location&&"chat"===this.props.location.state?h.m.goBack():h.m.push("/user/".concat(e))}catch(e){console.log(e)}}})},this.handleCancel=()=>{let{match:{params:e}}=this.props,n=e.nick;this.props.location&&"chat"===this.props.location.state?h.m.goBack():h.m.push("/user/".concat(n))},this.handelChangeNote=e=>{e.target&&e.target.value?this.setState({countSymbols:e.target.value.length}):this.setState({countSymbols:0})}}}g.propTypes={form:s().any,addNote:s().func,match:s().any,language:s().any,location:s().any};var m=a.Z.create({})(g);let y={addNote:t(49242).AL};var x=(0,r.$j)(e=>({language:e.config.language,isAuthenticated:e.user.isAuthenticated,publicUser:e.profile.publicUser,isFetchUserInfo:e.profile.isFetchUserInfo}),y)(m)},25151:function(e,n,t){t.d(n,{m8:function(){return p},qO:function(){return d},sj:function(){return c}});var r=t(3659),o=t(78191),a=t(68764);function i(){let e=(0,r._)(["\n  width: 600px;\n  min-height: calc(100vh - 71px - 156px - 100px);\n  position: relative;\n  padding-bottom: 130px;\n  .ant-form-explain {\n    visibility: hidden;\n    display: none;\n  }\n  h1 {\n    text-align: left;\n  }\n  .ant-form-item-with-help {\n    margin-bottom: 24px;\n  }\n  form {\n    margin-top: 30px;\n    textarea.ant-input {\n    border: none;\n    resize: none;\n    padding: 0;\n    min-height: 310px;\n    background-color: ",";\n    color: ",";\n      &:focus, &:hover{\n        border: none;\n        outline: none;\n        box-shadow: none;\n      }\n    }\n  }\n  .has-error .ant-input, .has-error .ant-input:hover {\n    background-color: ",";\n    color: ",";\n  }\n  .ant-radio-button-wrapper {\n    background-color: ",";\n    color: ",";\n  }\n  .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n    color: white;\n    background: ",";\n    border-color: ",";\n    &:hover {\n      color: white;\n    }\n  }\n  .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n    color: white;\n    background: ",";\n    border-color: ",";\n    &:hover {\n      color: white;\n    }\n  }\n  .ant-input-number:hover {\n    border-color: ",";\n  }\n  .ant-input-number-handler:hover .ant-input-number-handler-up-inner,\n  .ant-input-number-handler:hover .ant-input-number-handler-down-inner {\n    color: ",";\n  }\n  .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {\n    color: ",";\n  }\n  .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {\n    background-color: ",";\n  }\n  .ant-radio-button-wrapper:hover {\n    color: ",";\n  }\n  .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {\n    border-color: ",";\n  }\n"]);return i=function(){return e},e}function l(){let e=(0,r._)(["\n  min-height: 310px;\n  margin-top: 10px;\n  font-family: 'Manrope', sans-serif;\n  white-space: pre-line;\n"]);return l=function(){return e},e}function u(){let e=(0,r._)(["\n  display: flex;\n  margin-top: 15px;\n  "," {\n    justify-content: space-between;\n  }\n  "," {\n    position: absolute;\n    width: 100%;\n    bottom: 0;\n  }\n  .ant-btn {\n    font-family: 'Manrope', sans-serif;\n    font-weight: bold;\n    font-size: 14px;\n    color: #8C8C8C;\n    border: none;\n    height: 48px;\n    padding: 0 46px;\n    box-shadow: none;\n    width: 242px;\n    min-width: auto;\n    &:hover, &:active, &:focus {\n      color: ",";\n      box-shadow: none;\n    }\n  }\n  .ant-btn-primary {\n    color: #FFFFFF;\n    background-color: ",";\n    border-radius: 311px;\n    &:hover, &:active, &:focus {\n      color: #FFFFFF;\n    }\n  }\n  .ant-btn-primary[disabled] {\n    background-color: ",";\n    color: #FFFFFF;\n    &:hover, &:active, &:focus {\n      color: #FFFFFF;\n      background-color: ",";\n      box-shadow: none;\n    }\n  }\n  "," {\n    padding: 0 53px;\n    @media "," {\n      padding: 0 20px;\n    }\n    .ant-btn {\n      font-family: 'Manrope', sans-serif;\n      font-weight: bold;\n      font-size: 14px;\n      color: #000000;\n      border: none;\n      height: 48px;\n      padding: 0 46px;\n      box-shadow: none;\n      background: ",";\n      &:first-child {\n        margin-right: 16px;\n      }\n      &:hover, &:active, &:focus {\n        color: #000000;\n        box-shadow: none;\n        background: ",";\n      }\n      &.ant-btn-danger {\n        background: #E56F56;\n        color: #FFFFFF;\n        &:hover, &:active, &:focus {\n          background: #E56F56;\n          color: #FFFFFF;\n        }\n      }\n      &.ant-btn-primary {\n        background: ",";\n        color: #FFFFFF;\n        width: 160px;\n        &:hover, &:active, &:focus {\n          background: ",";\n          color: #FFFFFF;\n        }\n      }\n    }\n  }\n  "," {\n    justify-content: center;\n  }\n  "," {\n    margin-top: 0;\n    .ant-btn {\n      color: #C9C9C9;\n      font-weight: normal;\n      font-size: 16px;\n      padding: 0;\n      &:first-child {\n        color: ",";\n        margin-right: 24px;\n        &:hover {\n          color: ",";\n        }\n      }\n      &:last-child {\n        color: ",";\n        &:hover {\n          color: ",";\n        }\n      }\n    }\n  }\n  "," {\n    .ant-btn {\n      width: auto;\n    }\n  }\n  "," {\n    .ant-btn {\n      padding: 0 27px;\n      width: auto;\n    }\n    .ant-btn-primary {\n      padding: 0;\n      width: 160px;\n    }\n  }\n"]);return u=function(){return e},e}function s(){let e=(0,r._)(["\n  color: ",";\n  padding: 0;\n  background: #fff;\n  border: none;\n  position: relative;\n  right: 29px;\n  display: flex;\n  min-width: 157px;\n  align-items: center;\n  "," {\n    margin-bottom: 3px;\n  }\n  svg {\n    margin-right: 12px;\n  }\n"]);return s=function(){return e},e}let c=o.ZP.div(i(),e=>e.theme.pages.input,e=>e.theme.pages.color,e=>e.theme.pages.input,e=>e.theme.pages.color,e=>e.theme.pages.input,e=>e.theme.pages.color,a.dx,a.dx,a.dx,a.dx,a.dx,a.dx,a.dx,a.dx,a.dx,a.dx);c.Text=o.ZP.p(l());let d=o.ZP.div(u(),e=>!e.spaceBetween,e=>!e.absolute,a.dx,a.dx,a.dx,a.dx,e=>!e.confirmModal,a.Uh.tabletSm,e=>
1e.theme.pages.subBackground,e=>e.theme.pages.subBackground,a.dx,a.dx,e=>!e.center,e=>!e.include,a.dx,a.f5,a.Ts,a.IG,e=>!e.autoWidth,e=>!e.editContainer),p=o.ZP.button(s(),a.dx,e=>!e.top)},49242:function(e,n,t){t.d(n,{AL:function(){return l},Qk:function(){return c},f_:function(){return s},iV:function(){return u}});var r=t(62186),o=t(84112),a=t(20378),i=t(77181);function l(e,n){return async t=>{try{await r.h.notes.addNote(e,n),t({type:o.IZ});let l=await r.h.profile.getPublicUser(e),u=new i.ZP(l.data),s=new i.$x(u);return t({type:a.Vt,user:u,customerData:s}),l}catch(e){}}}function u(e){return async n=>{try{await n({type:o.sf,note:e})}catch(e){}}}function s(e,n){return async t=>{try{let l=await r.h.notes.deleteNote(e);t({type:o.fP});let u=await r.h.profile.getPublicUser(n),s=new i.ZP(u.data),c=new i.$x(s);return t({type:a.Vt,user:s,customerData:c}),l}catch(e){}}}function c(e,n,t){return async l=>{try{let u=await r.h.notes.updateNote(e,n);l({type:o.Bv});let s=await r.h.profile.getPublicUser(t),c=new i.ZP(s.data),d=new i.$x(c);return l({type:a.Vt,user:c,customerData:d}),u}catch(e){}}}},97403:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;var r,o=(r=t(73058))&&r.__esModule?r:{default:r},a=0,i={};function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=a++,r=n;return i[t]=(0,o.default)(function n(){(r-=1)<=0?(e(),delete i[t]):i[t]=(0,o.default)(n)}),t}l.cancel=function(e){void 0!==e&&(o.default.cancel(i[e]),delete i[e])},l.ids=i},56232:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var n=f();if(n&&n.has(e))return n.get(e);var t={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(t,o,a):t[o]=e[o]}}return t.default=e,n&&n.set(e,t),t}(t(2265)),o=p(t(21022)),a=p(t(69814)),i=t(52181),l=p(t(54842)),u=p(t(76049)),s=t(66628),c=p(t(97403)),d=p(t(18139));function p(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){return(b=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,n){return(m=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var y=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>n.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},x=function(e){var n;function t(){var e,n;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,t),n=g(t).apply(this,arguments),(e=n&&("object"===h(n)||"function"==typeof n)?n:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)).state={textareaStyles:{},resizing:!1},e.saveTextAreaRef=function(n){e.textAreaRef=n},e.handleTextareaChange=function(n){"value"in e.props||e.resizeTextarea();var t=e.props.onChange;t&&t(n)},e.handleKeyDown=function(n){var t=e.props,r=t.onPressEnter,o=t.onKeyDown;13===n.keyCode&&r&&r(n),o&&o(n)},e.resizeOnNextFrame=function(){c.default.cancel(e.nextFrameActionId),e.nextFrameActionId=(0,c.default)(e.resizeTextarea)},e.resizeTextarea=function(){var n=e.props.autoSize||e.props.autosize;if(n&&e.textAreaRef){var t=n.minRows,r=n.maxRows,o=(0,u.default)(e.textAreaRef,!1,t,r);e.setState({textareaStyles:o,resizing:!0},function(){c.default.cancel(e.resizeFrameId),e.resizeFrameId=(0,c.default)(function(){e.setState({resizing:!1})})})}},e.renderTextArea=function(n){var t,i,u=n.getPrefixCls,s=e.state,c=s.textareaStyles,p=s.resizing,f=e.props,h=f.prefixCls,g=f.className,m=f.disabled,x=f.autoSize,v=f.autosize,w=y(e.props,[]),F=(0,o.default)(w,["prefixCls","onPressEnter","autoSize","autosize"]),k=u("input",h),S=(0,a.default)(k,g,(t={},(i="".concat(k,"-disabled"))in t?Object.defineProperty(t,i,{value:m,enumerable:!0,configurable:!0,writable:!0}):t[i]=m,t));(0,d.default)(void 0===v,"Input.TextArea","autosize is deprecated, please use autoSize instead.");var O=b(b(b({},w.style),c),p?{overflow:"hidden"}:null);return"value"in F&&(F.value=F.value||""),r.createElement(l.default,{onResize:e.resizeOnNextFrame,disabled:!(x||v)},r.createElement("textarea",b({},F,{className:S,style:O,onKeyDown:e.handleKeyDown,onChange:e.handleTextareaChange,ref:e.saveTextAreaRef})))},e}return!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&m(e,n)}(t,e),n=[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){c.default.cancel(this.nextFrameActionId),c.default.cancel(this.resizeFrameId)}},{key:"focus",value:function(){this.textAreaRef.focus()}},{key:"blur",value:function(){this.textAreaRef.blur()}},{key:"render",value:function(){return r.createElement(s.ConfigConsumer,null,this.renderTextArea)}}],function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(r.Component);(0,i.polyfill)(x),n.default=x},76049:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.calculateNodeStyling=a,n.default=function(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t||(t=document.createElement("textarea"),document.body.appendChild(t)),e.getAttribute("wrap")?t.setAttribute("wrap",e.getAttribute("wrap")):t.removeAttribute("wrap");var l=a(e,r),u=l.paddingSize,s=l.borderSize,c=l.boxSizing,d=l.sizingStyle;t.setAttribute("style","".concat(d,";").concat("\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important\n")),t.value=e.value||e.placeholder||"";var p=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER,h=t.scrollHeight;if("border-box"===c?h+=s:"content-box"===c&&(h-=u),null!==o||null!==i){t.value=" ";var b=t.scrollHeight-u;null!==o&&(p=b*o,"border-box"===c&&(p=p+u+s),h=Math.max(p,h)),null!==i&&(f=b*i,"border-box"===c&&(f=f+u+s),n=h>f?"":"hidden",h=Math.min(f,h))}return{height:h,minHeight:p,maxHeight:f,overflowY:n}};var t,r=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],o={};function a(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(n&&o[t])return o[t];var a=window.getComputedStyle(e),i=a.getPropertyValue("box-sizing")||a.getPropertyValue("-moz-box-sizing")||a.getPropertyValue("-webkit-box-sizing"),l=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),u=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),s={sizingStyle:r.map(function(e){return"".concat(e,":").concat(a.getPropertyValue(e))}).join(";"),paddingSize:l,borderSize:u,boxSizing:i};return n&&t&&(o[t]=s),s}}}]);

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.