PageSourceSearch

https://bikayichatbotbuilder.web.app/static/js/9506.f694006b.chunk.js

js bikayichatbotbuilder.web.app collected 2026-10-03 12:18:53 UTC 6,440 bytes, 105 lines download raw bytes

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]="bec2abcb-ce14-5533-991a-cf515b970e0a")}catch(e){}}();
3(self.webpackChunkchatbot_builder=self.webpackChunkchatbot_builder||[]).push([[9506,2867],{28751:(e,t,o)=>{o.d(t,{Z:()=>n});var r=o(80184);const n=e=>{const{width:t,height:o,color:n}=e;return(0,r.jsxs)("svg",{width:t||"20",height:o||"20",viewBox:"0 0 21 20",fill:n||"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M4.16683 7.5C3.70659 7.5 3.3335 7.8731 3.3335 8.33333C3.3335 8.79357 3.70659 9.16667 4.16683 9.16667H15.8335C16.2937 9.16667 16.6668 8.79357 16.6668 8.33333C16.6668 7.8731 16.2937 7.5 15.8335 7.5H4.16683Z",fill:"#9E9E9E"}),(0,r.jsx)("path",{d:"M4.16683 10.8333C3.70659 10.8333 3.3335 11.2064 3.3335 11.6667C3.3335 12.1269 3.70659 12.5 4.16683 12.5H15.8335C16.2937 12.5 16.6668 12.1269 16.6668 11.6667C16.6668 11.2064 16.2937 10.8333 15.8335 10.8333H4.16683Z",fill:"#9E9E9E"})]})}},37761:(e,t,o)=>{o.d(t,{u:()=>l});var r=o(72791),n=o(58559),i=o(94457),s=o(90082),d=o(80184);const l=e=>{const[t,o]=(0,r.useState)(e.buttons),l=(0,s.Fg)(),[a,c]=(0,r.useState)(e.selectedIndex||-1),p=/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$/,u=(t,o,r)=>({display:"flex",userSelect:"none",borderRadius:e.isGroup?"":"4px",marginTop:e.isGroup?"0":"12px",border:e.isGroup?"":`1px solid ${a===r?`${l.colors.stroke.brand}`:x(r)}`,boxShadow:e.isGroup?"":"0 2px 8px rgb(0 0 0 / 12%)",...o}),x=t=>{var o,r;const n=e.buttons[t],i=!(null!==n&&void 0!==n&&n.buttonText)||0===n.buttonText.length||""===n.buttonText.trim(),s=!(null===n||void 0===n||!n.buttonText)&&(null===n||void 0===n||null===(o=n.buttonText)||void 0===o?void 0:o.length)>20,d=!(null===n||void 0===n||!n.buttonId)&&"custom_url"===n.buttonId&&!(null!==(r=n.ctaValue)&&void 0!==r&&r.match(p));return e.checkForButtonErrors&&(i||s||d)?l.colors.stroke.negative.vibrant:l.colors.stroke.primary};(0,r.useEffect)((()=>{o(e.buttons)}),[e.buttons]);return(0,r.useEffect)((()=>{o(e.buttons)}),[e.buttons.length]),(0,r.useEffect)((()=>{c(Number(e.selectedIndex))}),[e.selectedIndex]),(0,r.useEffect)((()=>{t&&e.setButtonProps&&e.setButtonProps&&e.setButtonProps(t)}),[t]),(0,r.useEffect)((()=>{e.buttonProps&&o(e.buttonProps)}),[]),(0,d.jsx)(d.Fragment,{children:t.length>0&&(0,d.jsx)(i.Af,{theme:l,buttons:e,children:(0,d.jsx)(n.Z5,{onDragEnd:r=>{if(!r.destination)return;const n=Array.from(t),[i]=n.splice(r.source.index,1);n.splice(r.destination.index,0,i),o(n),e.onChange(n)},children:(0,d.jsx)(n.bK,{isDropDisabled:e.isDropDisabled,droppableId:"droppable",children:o=>(0,d.jsxs)("div",{...o.droppableProps,ref:o.innerRef,style:{},id:e.id,children:[t.map(((t,o)=>(0,d.jsx)(n._l,{draggableId:t.buttonKey,index:o,children:(r,n)=>(0,d.jsx)("div",{id:t.buttonKey,ref:r.innerRef,...r.draggableProps,...r.dragHandleProps,style:u(n.isDragging,r.draggableProps.style,o),onClick:t=>{t.preventDefault(),c(o),e.onClick(o)},children:(0,d.jsxs)("div",{className:"button-container",children:[(0,d.jsx)("div",{className:"my-auto d-flex",children:e.leftIcon}),(0,d.jsx)("div",{className:"centre-text",children:(0,d.jsxs)("div",{style:{display:"flex",margin:"auto"},children:[e.centreIcon&&(0,d.jsx)("div",{className:"my-auto centre-icon",children:e.centreIcon[o]}),t.buttonText||"Add button text"]})}),(e.hideRightIcon||[""]).includes(t.buttonKey)?(0,d.jsx)(d.Fragment,{}):(0,d.jsx)("div",{className:"my-auto d-flex",onClick:t=>{t.preventDefault(),t.stopPropagation(),c(o),(t=>{e.onRightIconClick(t)})(o)},children:e.rightIcon})]})})},t.buttonKey))),o.placeholder]})})})})})}},94457:(e,t,o)=>{o.d(t,{Af:()=>n,Dj:()=>l,Fe:()=>p,IS:()=>i,ZB:()=>d,m3:()=>a,mF:()=>c,mN:()=>s});var r=o(90082);const n=r.ZP.div`
4  box-shadow: ${e=>e.buttons.isGroup?"0 2px 8px rgba(0, 0, 0, 0.12)":""};
5  border: ${e=>e.buttons.isGroup?"1px solid #E0E0E0":""};
6  border-radius: 4px;
7
8  div:first-child {
9    border-radius: ${e=>e.buttons.isGroup?"4px 4px 0 0":"4px"};
10    margin-top: 0 !important;
11    border-top: none;
12  }
13
14  div:last-child {
15    border-radius: ${e=>e.buttons.isGroup?"0 0 4px 4px":"4px"};
16  }
17
18  .button-container {
19    width: 100%;
20    height: 48px;
21    display: flex;
22    border-bottom: ${e=>e.buttons.isGroup?`1px solid ${e.theme.colors.stroke.primary}`:""};
23    padding: 14px 16px;
24    background-color: white;
25    box-shadow: ${e=>e.buttons.isGroup?"":"0 2px 8px rgba(0, 0, 0, 0.12)"};
26
27    .centre-icon {
28      margin-right: 8px;
29    }
30
31    .centre-text {
32      display: flex;
33      color: ${e=>e.theme.colors.content.secondary};
34      ${e=>e.theme.fonts.buttonLarge}
35      overflow: hidden;
36      margin: 0 16px;
37      width: 100%;
38    }
39  }
40`,i=r.ZP.div`
41  border: 1px dashed #e0e0e0;
42  border-radius: 4px;
43  height: 48px;
44  display: flex;
45  color: #616161;
46
47  .button-container {
48    width: 358px;
49    height: 48px;
50    display: flex;
51    padding: 14px 16px;
52
53    .centre-icon {
54      margin-right: 8px;
55    }
56
57    .centre-text {
58      display: flex;
59      color: ${e=>e.theme.colors.content.secondary};
60      ${e=>e.theme.fonts.buttonLarge}
61    }
62  }
63`,s=r.ZP.div`
64  border: 1px ${e=>e.isValidButton?"#BDBDBD":"#D53434"}
65    ${e=>e.isCompleted?"solid":"dashed"};
66  border-radius: 4px;
67  display: flex;
68  flex-direction: column;
69  background-color: #ffffff;
70`,d=r.ZP.div`
71  display: flex;
72  flex-direction: row;
73  flex: auto;
74  justify-content: space-between;
75  align-items: center;
76  margin: 16px;
77`,l=r.ZP.div`
78  display: flex;
79  flex-direction: column;
80`,a=r.ZP.div`
81  border: 1px ${e=>e.isChecked?"#C3E4C4":"#E0E0E0"} solid;
82  border-radius: 4px;
83  display: flex;
84  color: #616161;
85  background-color: ${e=>e.isChecked?"#E6F4E7":(e.allButtonSelected,"#FAFAFA")};
86  margin-bottom: 8px;
87`,c=r.ZP.div`
88  display: flex;
89  flex-direction: column;
90  align-items: center;
91  flex: 1;
92`,p=r.ZP.div`
93  height: 18px;
94  width: 18px;
95  display: flex;
96  justify-content: center;
97  align-items: center;
98  border: ${e=>
98e.selected||e.allButtonSelected?e.selected?"":e.allButtonSelected?"2px solid #E0E0E0":"":"2px solid #212121"};
99  border-radius: 4px;
100  margin-left: auto;
101  margin-right: 16px;
102  background: ${e=>e.selected?"#1A872C":"#FFFFFF"};
103`}}]);
104//# sourceMappingURL=9506.f694006b.chunk.js.map
105//# debugId=bec2abcb-ce14-5533-991a-cf515b970e0a

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.