1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="aec21b3c-9f5a-5aad-8f9a-025e966fcef8")}catch(e){}}(); 3(self.webpackChunkchatbot_builder=self.webpackChunkchatbot_builder||[]).push([[9443],{79443:(e,t,s)=>{s.r(t),s.d(t,{default:()=>u});var o=s(72791),n=s(95048),i=s(64813),a=s(63532),r=s(21525),c=s(61990),d=s(85159);const l=s(90082).ZP.div` 4 gap: 50px; 5 6 .grey { 7 color: ${e=>e.theme.colors.content.secondary}; 8 } 9 .small-grey { 10 font-size: 10px; 11 line-height: 12px; 12 font-weight: 400; 13 color: ${e=>e.theme.colors.content.placeholder}; 14 } 15 .sticky-notes { 16 &__preview { 17 gap: 8px; 18 height: 340px; 19 padding: 16px; 20 background-color: ${e=>e.theme.colors.background.inactive}; 21 border: 1px solid ${e=>e.theme.colors.surface.hovered}; 22 border-radius: 4px; 23 &__info { 24 gap: 10px; 25 &__icon { 26 height: 20px; 27 width: 20px; 28 } 29 &__text { 30 position: relative; 31 top: -3px; 32 } 33 } 34 &__heading { 35 height: 96px; 36 align-items: flex-start; 37 padding: 24px; 38 gap: 8px; 39 width: 280px; 40 align-self: center; 41 background-color: ${e=>e.theme.colors.background.warning.light}; 42 box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12); 43 border-radius: 4px; 44 p { 45 font-weight: 400; 46 font-size: 20px; 47 line-height: 28px; 48 } 49 } 50 &__body { 51 height: 148px; 52 align-items: flex-start; 53 padding: 24px; 54 gap: 8px; 55 width: 280px; 56 align-self: center; 57 background-color: ${e=>e.theme.colors.background.warning.light}; 58 box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12); 59 border-radius: 4px; 60 p { 61 font-weight: 400; 62 font-size: 14px; 63 line-height: 20px; 64 } 65 } 66 } 67 } 68`;var p=s(1103),h=s(97355),x=s(80184);const u=e=>{var t;const{nodeData:s,saveTo:u,setSaveTo:_}=e,g=(0,n.I0)(),[y,k]=(0,o.useState)({}),m=(0,c.C)((e=>e.stickyNotesState.notes)),[f,v]=(0,o.useState)({}),[b,w]=(0,o.useState)({}),N=(0,o.useRef)(""),j=(0,o.useContext)(h.zQ);(0,o.useEffect)((()=>{var e;const t=(null===m||void 0===m||null===(e=m[s.nodeId])||void 0===e?void 0:e.content)||"";k({sticky_note:t}),w({sticky_note:t}),N.current=t}),[Object.keys(m||{}).length]),(0,o.useEffect)((()=>{if(null!==j&&void 0!==j&&j.isMacro&&null!==j&&void 0!==j&&j.setHasUnsavedChanges&&void 0!==N.current){const e=(b.sticky_note||"")!==N.current;j.setHasUnsavedChanges(e)}}),[b,j]),(0,o.useEffect)((()=>{if("sticky_notes"===u||"sticky_error"===u){var e;if(!S())return;const t=(0,p.f)(new Date((new Date).toLocaleString("en-US",{timeZone:"Asia/Kolkata"}))),o={content:C(y.sticky_note),createdDate:null!==s&&void 0!==s&&null!==(e=s.stickyNotesData)&&void 0!==e&&e.createdDate?s.stickyNotesData.createdDate:t,updatedDate:t,nodeId:s.nodeId},n={type:"Sticky notes",subType:"sticky_notes",isMicroFlow:!1,description:""};g(a._.setEditNode({nodeId:s.nodeId,nodeType:"Sticky notes",nodeSubType:"sticky_notes",data:n})),g(r.l.updateInsertNode({notes:{},id:s.nodeId,data:o})),_("close")}}),[u]);const S=()=>{var e;return b.sticky_note&&null!==(e=b.sticky_note)&&void 0!==e&&e.length?!(b.sticky_note.length>500)||(v({sticky_note:"Note length should be less than 500 character."}),_("sticky_error"),!1):(v({sticky_note:"Note cannot be empty!"}),_("sticky_error"),!1)},C=e=>{try{return e.replace(/((https?|ftps?):\/\/[^"<\s]+)(?![^<>]*>|[^"]*?<\/a)/g,'<a href="$1" onclick="event.stopPropagation();" target="_blank">$1</a>')}catch(f){return e}};return(0,x.jsxs)(l,{className:"sticky-notes flex--column",children:[(0,x.jsx)("div",{className:"sticky-notes__comment d-flex",children:(0,x.jsx)(d.ZP,{headerText:"Comment",headerTextColor:"#212121",showVariableOnly:!1,customHeight:"160px",textMessage:b.sticky_note,htmlMessage:y.sticky_note,selectedVariableList:[],setSelectedVariableList:()=>{},setTextMessage:w,setHtmlMessage:k,uniqueId:"sticky_note",placeHolder:"Enter your text here",customWordCount:500,showFontSize:!0,hideAddVariables:!0,errorText:f.sticky_note,hideWordLimit:!(null===f||void 0===f||null===(t=f.sticky_note)||void 0===t||!t.length),onChange:()=>{v({sticky_note:""})}})}),(0,x.jsxs)("div",{className:"sticky-notes__preview flex--column",children:[(0,x.jsxs)("div",{className:"sticky-notes__preview__info flex--row",children:[(0,x.jsx)("div",{className:"sticky-notes__preview__info__icon",children:(0,x.jsx)(i.Z,{})}),(0,x.jsx)("div",{className:"sticky-notes__preview__info__text grey",children:"You can use large font size for heading text and small font size for body text."})]}),(0,x.jsxs)("div",{className:"sticky-notes__preview__heading flex--column",children:[(0,x.jsx)("p",{children:"Heading"}),(0,x.jsx)("span",{className:"small-grey",children:"Last updated on 11:00 PM, 20 Mar 2023"})]}),(0,x.jsxs)("div",{className:"sticky-notes__preview__body flex--column",children:[(0,x.jsx)("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}),(0,x.jsx)("span",{className:"small-grey",children:"Last updated on 11:00 PM, 20 Mar 2023"})]})]})]})}}}]); 69//# sourceMappingURL=9443.3105dc6e.chunk.js.map 70//# debugId=aec21b3c-9f5a-5aad-8f9a-025e966fcef8
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.