1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24513],{983169:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/onboarding-walkthrough-v7",function(){return l(406931)}])},406931:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return Y},default:function(){return X}});var s=l(511527),i=l(50959),n=l(305341),a=l(554498),r=l(340997),o=l(805196),c=l(343710),d=l(573457),h=l(468880),u=l(11984),x=l(486885),f=l(984387),v=l(756843);let p=e=>(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5zm0 1.5a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5zm6.745 15.033A4.75 4.75 0 0 0 14 14.25h-4l-.217.005A4.75 4.75 0 0 0 5.25 19v2l.007.102A.75.75 0 0 0 6.75 21v-2l.005-.184A3.25 3.25 0 0 1 10 15.75h4l.184.005A3.25 3.25 0 0 1 17.25 19v2l.007.102A.75.75 0 0 0 18.75 21v-2l-.005-.217z",fill:"white"===e.color?"#fff":"#111418"})}),m=e=>(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M4.5 21c-.417 0-.77-.146-1.063-.438A1.447 1.447 0 0 1 3 19.5V8.625c0-.417.146-.77.438-1.063A1.447 1.447 0 0 1 4.5 7.125h2.625V4.5c0-.417.146-.77.438-1.063A1.447 1.447 0 0 1 8.624 3h6.75c.417 0 .77.146 1.063.438.291.291.437.645.437 1.062v6.75H19.5c.417 0 .77.146 1.063.438.291.291.437.645.437 1.062v6.75c0 .417-.146.77-.438 1.063A1.446 1.446 0 0 1 19.5 21h-6.175v-4.125h-2.65V21H4.5zm0-1.5h2.625v-2.625H4.5V19.5zm0-4.125h2.625V12.75H4.5v2.625zm0-4.125h2.625V8.625H4.5v2.625zm4.125 4.125h2.625V12.75H8.625v2.625zm0-4.125h2.625V8.625H8.625v2.625zm0-4.125h2.625V4.5H8.625v2.625zm4.125 8.25h2.625V12.75H12.75v2.625zm0-4.125h2.625V8.625H12.75v2.625zm0-4.125h2.625V4.5H12.75v2.625zM16.875 19.5H19.5v-2.625h-2.625V19.5zm0-4.125H19.5V12.75h-2.625v2.625z",fill:"white"===e.color?"#fff":"#111418"})}),_=e=>(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 8 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1.5a.5.5 0 0 1 .495.432L8.499 2v1.5h.855a2.5 2.5 0 0 1 2.25 1.667.5.5 0 0 1-.943.333 1.499 1.499 0 0 0-1.218-.99l-.11-.01H6.666a1.5 1.5 0 0 0-.103 2.997l.103.003h2.667a2.5 2.5 0 0 1 .132 4.996l-.132.004h-.834V14a.5.5 0 0 1-.995.068L7.499 14v-1.5h-.855a2.5 2.5 0 0 1-2.25-1.667.5.5 0 1 1 .944-.332c.19.541.672.923 1.218.99l.11.009h2.667a1.5 1.5 0 0 0 .102-2.997L9.333 8.5H6.666a2.5 2.5 0 0 1-.133-4.997l.133-.003h.833V2a.5.5 0 0 1 .5-.5z",fill:"white"===e.color?"#fff":"#111418"})}),j=e=>(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.426 2.383a.75.75 0 0 0-.957.087l-9 9-.084.098A.75.75 0 0 0 3 12.75h1.25V19l.009.226a2.75 2.75 0 0 0 2.74 2.524h10l.226-.01A2.75 2.75 0 0 0 19.75 19v-6.25H21l.13-.01a.75.75 0 0 0 .4-1.27l-9-9-.103-.087zM18.25 12a.75.75 0 0 1 .75-.75h.189l-7.19-7.19-7.19 7.19h.19a.75.75 0 0 1 .738.615L5.75 12v7a1.25 1.25 0 0 0 1.093 1.24l.157.01h10a1.25 1.25 0 0 0 1.24-1.093l.01-.157v-7z",fill:"white"===e.color?"#fff":"#111418"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6.5a.5.5 0 0 1 .495.432l.004.068v1.5h.855a2.5 2.5 0 0 1 2.25 1.667.5.5 0 0 1-.943.332 1.499 1.499 0 0 0-1.218-.99l-.11-.009h-2.667a1.5 1.5 0 0 0-.103 2.996l.103.004h2.667a2.5 2.5 0 0 1 .133 4.997l-.133.003h-.834V19a.5.5 0 0 1-.995.068L11.499 19v-1.5h-.855a2.5 2.5 0 0 1-2.25-1.667.5.5 0 1 1 .944-.332c.19.541.672.923 1.218.99l.11.009h2.667a1.5 1.5 0 0 0 .102-2.996l-.102-.004h-2.667a2.5 2.5 0 0 1-.133-4.997l.133-.003h.833V7a.5.5 0 0 1 .5-.5z",fill:"white"===e.color?"#fff":"#111418"})]}),g=e=>(0,s.jsx)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 512.000000 512.000000",preserveAspectRatio:"xMidYMid meet",children:(0,s.jsxs)("g",{transform:"translate(0.000000,512.000000) scale(0.100000,-0.100000)",fill:"white"===e.color?"#ffffff"
1:"#111418",stroke:"none",children:[(0,s.jsx)("path",{d:"M1880 4831 c-625 -274 -656 -289 -673 -322 -17 -32 -17 -78 -14 -764 3 -648 6 -738 21 -805 41 -176 137 -349 263 -472 55 -54 713 -538 971 -715 75 -51 133 -58 192 -22 111 68 937 674 998 733 128 123 226 297 268 476 15 67 18 154 21 805 3 686 3 732 -14 765 -17 33 -47 47 -673 322 -360 158 -666 287 -680 287 -14 -1 -320 -130 -680 -288z m1275 -150 l590 -258 0 -719 c0 -812 5 -757 -82 -926 -77 -150 -121 -189 -639 -562 l-464 -335 -327 236 c-684 493 -694 501 -776 661 -87 169 -82 114 -82 926 l0 719 590 258 c325 142 592 258 595 259 3 0 271 -117 595 -259z"}),(0,s.jsx)("path",{d:"M2065 4539 c-264 -116 -490 -220 -502 -231 l-23 -21 0 -620 c0 -690 -1 -680 68 -812 20 -38 62 -96 92 -127 32 -33 219 -176 445 -338 334 -241 394 -281 420 -278 41 5 757 520 845 608 39 39 79 93 102 135 69 132 68 123 68 812 l0 620 -23 21 c-23 22 -974 442 -998 442 -8 -1 -230 -95 -494 -211z m928 -159 l418 -183 -3 -586 -3 -586 -28 -59 c-15 -33 -43 -79 -63 -103 -35 -42 -730 -553 -753 -553 -21 0 -695 490 -740 538 -24 26 -58 76 -75 112 l-31 65 -3 586 -3 585 423 186 c233 102 428 185 433 183 6 -1 198 -85 428 -185z"}),(0,s.jsx)("path",{d:"M3040 4087 c-16 -8 -141 -186 -346 -492 -176 -264 -324 -480 -327 -480 -3 0 -63 43 -133 95 -70 52 -138 101 -151 108 -69 38 -151 -49 -109 -113 19 -29 361 -289 393 -299 58 -19 57 -20 434 546 197 296 359 545 359 554 0 31 -30 72 -61 83 -18 6 -32 11 -33 11 -1 0 -12 -6 -26 -13z"}),(0,s.jsx)("path",{d:"M200 2871 c-124 -38 -212 -170 -196 -293 9 -65 365 -848 432 -949 32 -49 145 -172 340 -369 l291 -295 -21 -35 c-20 -34 -21 -47 -21 -420 0 -430 -1 -421 72 -477 l36 -28 511 -3 c573 -3 571 -3 624 66 l27 35 3 402 3 401 -23 34 c-30 43 -67 70 -109 79 l-34 7 -6 159 c-3 88 -11 180 -17 205 -63 253 -202 442 -392 531 -261 123 -361 184 -505 305 -118 99 -166 119 -290 119 -88 0 -107 -3 -159 -28 -32 -15 -60 -26 -61 -25 -1 2 -39 91 -85 198 -108 256 -121 281 -172 324 -64 55 -172 80 -248 57z m132 -181 c18 -13 56 -91 123 -247 117 -275 153 -348 213 -433 64 -90 500 -527 534 -536 58 -13 117 47 103 104 -4 17 -99 120 -249 272 -134 135 -249 255 -255 267 -10 20 -8 24 28 43 48 24 126 26 176 6 19 -8 68 -43 107 -76 148 -125 272 -199 548 -328 109 -51 214 -188 267 -347 23 -69 27 -101 31 -238 l4 -157 -349 0 -348 0 -336 338 c-185 185 -350 360 -367 387 -42 68 -392 841 -392 866 0 79 101 128 162 79z m1798 -2180 l0 -340 -467 2 -468 3 -3 338 -2 337 470 0 470 0 0 -340z"}),(0,s.jsx)("path",{d:"M1755 588 c-51 -29 -61 -93 -20 -133 21 -22 33 -25 100 -25 67 0 79 3 100 25 37 36 34 86 -6 119 -26 22 -40 26 -92 26 -34 0 -71 -6 -82 -12z"}),(0,s.jsx)("path",{d:"M4740 2859 c-58 -26 -106 -72 -135 -129 -12 -25 -60 -133 -105 -240 -46 -107 -84 -196 -86 -198 -1 -2 -13 3 -26 11 -87 55 -247 62 -348 15 -30 -14 -105 -66 -167 -116 -131 -106 -258 -183 -416 -253 -177 -78 -281 -174 -366 -338 -73 -143 -93 -224 -100 -416 l-6 -169 -34 -7 c-42 -9 -79 -36 -109 -79 l-23 -34 3 -400 3 -401 24 -34 c13 -18 42 -42 65 -52 38 -17 75 -19 544 -19 481 0 504 1 541 20 48 24 78 60 91 112 7 24 10 170 8 401 -3 347 -4 363 -24 397 l-21 35 291 295 c195 197 308 320 340 369 72 108 426 892 433 957 12 110 -48 218 -149 268 -67 33 -161 36 -228 5z m159 -163 c28 -15 51 -53 51 -86 0 -24 -352 -799 -393 -865 -17 -27 -182 -202 -366 -387 l-335 -338 -349 0 -349 0 4 157 c4 137 8 169 31 238 53 159 158 296 267 347 277 129 397 201 553 332 42 35 93 70 113 76 47 16 145 8 178 -13 23 -15 25 -21 15 -40 -7 -12 -119 -130 -250 -262 -131 -132 -243 -253 -248 -268 -27 -70 46 -134 114 -101 42 19 446 428 510 515 60 82 100 161 220 442 67 155 105 234 123 247 29 24 72 26 111 6z m-971 -2183 l-3 -338 -467 -3 -468 -2 0 340 0 340 470 0 470 0 -2 -337z"}),(0,s.jsx)("path",{d:"M3191 574 c-40 -33 -43 -83 -6 -119 21 -22 33 -25 100 -25 67 0 79 3 100 25 17 16 25 35 25 57 -1 61 -40 88 -129 88 -49 0 -65 -4 -90 -26z"})]})}),w=e=>(0,s.jsx)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 512.000000 512.000000",preserveAspectRatio:"xMidYMid meet",children:(0,s.jsxs)("g",{transform:"translate(0.000000,512.000000) scale(0.100000,-0.100000)",fill:"white"===e.color?"#ffffff"
1:"#111418",stroke:"none",children:[(0,s.jsx)("path",{d:"M1725 4656 c-65 -30 -131 -104 -150 -169 -10 -34 -15 -95 -15 -184 l0 -133 -453 0 -454 0 -61 -31 c-36 -17 -74 -46 -92 -69 -64 -81 -60 40 -60 -1774 l0 -1652 26 -52 c29 -58 79 -106 138 -133 39 -18 100 -19 1391 -19 l1350 0 50 24 c56 26 119 89 143 145 11 26 17 78 20 188 l4 152 462 3 c435 3 463 4 501 23 50 25 105 80 130 130 20 39 20 72 23 1703 2 1605 2 1665 -16 1706 -27 61 -75 111 -134 140 l-52 26 -1350 0 -1351 0 -50 -24z m2742 -146 c68 -41 63 90 63 -1697 0 -1605 0 -1618 -20 -1651 -40 -66 42 -62 -1390 -62 -1419 0 -1332 -4 -1379 56 -20 26 -21 38 -21 319 l0 292 138 6 c109 4 155 10 226 31 324 97 569 347 658 671 32 119 32 356 0 474 -45 164 -119 295 -235 417 -175 185 -386 279 -654 291 l-133 6 0 389 c0 349 2 393 17 419 37 62 -49 59 1388 59 1282 0 1311 0 1342 -20z m-2907 -688 l0 -199 -39 -12 c-77 -22 -217 -101 -296 -164 -302 -242 -423 -652 -303 -1027 81 -255 281 -471 531 -577 43 -18 85 -33 92 -33 11 0 14 -60 17 -327 l3 -328 27 -51 c15 -29 46 -68 69 -87 81 -70 44 -67 936 -67 l803 0 0 -136 c0 -110 -3 -141 -17 -165 -37 -63 46 -59 -1388 -59 -1442 0 -1344 -4 -1385 63 -20 31 -20 63 -20 1652 0 1607 0 1620 20 1653 37 61 41 61 518 62 l432 0 0 -198z m450 -338 c284 -70 507 -294 581 -582 26 -104 26 -271 -1 -378 -77 -307 -336 -545 -647 -593 -267 -41 -526 51 -711 253 -300 329 -261 856 84 1140 112 92 259 157 403 177 75 10 211 2 291 -17z"}),(0,s.jsx)("path",{d:"M2112 4063 c-21 -8 -43 -61 -36 -88 14 -58 -40 -55 1051 -55 l1002 0 21 22 c29 32 27 81 -6 107 -27 21 -30 21 -1023 20 -548 0 -1002 -3 -1009 -6z"}),(0,s.jsx)("path",{d:"M2815 3585 c-30 -30 -32 -64 -4 -99 l20 -26 650 0 c636 0 649 0 669 20 30 30 27 83 -6 109 -26 21 -34 21 -666 21 l-639 0 -24 -25z"}),(0,s.jsx)("path",{d:"M3026 3129 c-33 -26 -36 -79 -6 -109 20 -20 33 -20 565 -20 532 0 545 0 565 20 30 30 27 83 -6 109 -26 21 -36 21 -559 21 -523 0 -533 0 -559 -21z"}),(0,s.jsx)("path",{d:"M3026 2669 c-34 -27 -37 -86 -5 -115 20 -18 46 -19 533 -22 281 -2 526 0 544 3 70 13 95 82 47 130 l-24 25 -534 0 c-525 0 -535 0 -561 -21z"}),(0,s.jsx)("path",{d:"M2828 2214 c-52 -28 -45 -110 10 -133 19 -8 214 -11 660 -9 l634 3 19 24 c24 30 24 72 0 102 l-19 24 -639 2 c-551 2 -642 0 -665 -13z"}),(0,s.jsx)("path",{d:"M2120 1757 c-55 -28 -59 -98 -7 -132 21 -14 130 -15 1021 -13 l998 3 19 24 c24 30 24 72 0 102 l-19 24 -994 2 c-788 2 -998 0 -1018 -10z"}),(0,s.jsx)("path",{d:"M1776 3209 c-17 -13 -28 -34 -32 -60 l-7 -39 -59 0 c-72 0 -121 -20 -171 -68 -103 -101 -77 -275 52 -345 39 -22 62 -27 115 -27 l66 0 0 -100 0 -100 -94 0 c-79 0 -97 -3 -120 -21 -18 -14 -26 -30 -26 -50 0 -68 38 -89 160 -89 l78 0 6 -36 c9 -46 38 -74 76 -74 40 0 80 39 80 79 0 29 2 30 58 36 83 10 114 21 161 61 181 155 70 444 -171 444 l-48 0 0 70 0 70 70 0 c62 0 74 3 95 25 14 13 25 36 25 50 0 14 -11 37 -25 50 -21 22 -33 25 -95 25 -68 0 -70 1 -70 25 0 80 -66 119 -124 74z m-36 -319 l0 -70 -49 0 c-62 0 -94 24 -94 70 0 46 32 70 94 70 l49 0 0 -70z m255 -234 c40 -17 55 -42 55 -91 0 -55 -44 -95 -104 -95 l-46 0 0 100 0 100 30 0 c17 0 46 -6 65 -14z"})]})});var z=l(274380),A=l.n(z),k=l(735693),M=l(974474),N=l(230995),b=l(626040);function S(e){let{eventSource:t}=e,{nextStep:l}=(0,o.G_)(),n=(0,h.v9)(c.S8),[a,r]=(0,i.useState)(()=>(0,v.hi)(null==n?void 0:n.user_type_id)),[z,S]=(0,i.useState)(!1),{sendEvent:C}=(0,u.q)(),F=(0,h.I0)(),W=(0,N.NL)();return(0,s.jsxs)("div",{className:A().container,children:[z&&(0,s.jsx)(k.default,{}),(0,s.jsx)("h3",{children:"Which profession are you in?"}),(0,s.jsxs)("div",{className:A().roles,children:[(0,s.jsx)("div",{className:A().role,children:(0,s.jsx)(R,{id:"individual_agent",title:"Individual Real Estate Agent",role:a,setRole:r,prefix:(0,s.jsx)(p,{color:"individual_agent"===a?"white":"black"})})}),(0,s.jsx)("div",{className:A().role,children:(0,s.jsx)(R,{id:"broker",title:"Managing Broker (Real Estate)",role:a,setRole:r,prefix:(0,s.jsx)(m,{color:"broker"===a?"white":"black"})})}),(0,s.jsx)("div",{className:A().role,children:(0,s.jsx)(R,{id:"commercial_agent",title:"Commercial (Real Estate)",role:a,setRole:r,prefix:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"flex-end"},children:[(0,s.jsx)(_,{color:"commercial_agent"===a?"white":"black"}),(0,s.jsx)(p,{color:"commercial_agent"===a?"white":"black"})]})})}),(0,s.jsx)("div",{className:A().role,children:(0,s.jsx)(R,{id:"mortgage",title:"Mortgage Broker / Loan Officer",role:a,setRole:r,prefix:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(j,{color:"mortgage"===a?"white":"black"})})})}),(0,s.jsx)("div",{className:A().role,children:(0,s.jsx)(R,{id:"insurance",title:"Insurance Agent",role:a,setRole:r,prefix:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(g,{color:"insurance"===a?"white":"black"})})})}),(0,s.jsx)("div",{className:A().role,children:(0,s.jsx)(R,{id:"finance",title:"Finance Advisor",role:a,setRole:r,prefix:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(w,{color:"finance"===a?"white":"black"})})})}),(0,s.jsx)("div",{className:A().role,children:(0,s.jsx)(R,{id:"other",title:"Other",role:a,setRole:r})})]}),(0,s.jsx)(f.z,{className:A().next,onClick:()=>{S(!0),C("".concat(t,"_roles_save")),(0,x.R)({role:a}).then(async e=>{await F((0,M.gS)()),(a===v.E_.Insurance||a===v.E_.Finance)&&await W.invalidateQueries((0,b.j)()),e?l(a):(0,d.cB)("Something went wrong. Please try again."),S(!1)})},color:"primary",size:"xl",fullWidth:!0,children:"Next"})]})}let R=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{type:"radio",name:"role",value:e.id,id:e.id,defaultChecked:e.role==e.id,onClick:()=>e.setRole(e.id)}),(0,s.jsxs)("label",{htmlFor:e.id,children:[e.prefix,e.title]})]});
1var C=l(17784),F=l(698565),W=l(545351),B=l.n(W),V=l(237945),E=l(287047),y=l(901446),H=l(225144),P=l.n(H),L=l(28786),I=l(300576);function T(e){let{id:t,children:l,subTitle:i,selected:a=!1,onClick:r,...o}=e;return(0,s.jsxs)("div",{className:(0,n.W)(P().item,o.className,{[P().selected]:a}),onClick:e=>{e.stopPropagation(),r()},children:[(0,s.jsx)(L.X,{id:t,checked:a}),(0,s.jsxs)("div",{className:P().titleWrapper,children:[(0,s.jsx)(I.Z,{tag:"span",variant:"text",size:"md",fontWeight:"semibold",className:P().title,children:l}),(0,s.jsx)(I.Z,{variant:"text",size:"sm",fontWeight:"medium",tag:"span",className:P().subtitle,children:i})]})]})}var O=l(388025),Z=l.n(O),q=l(463823),U=l(832332);function D(e){let{selectedContentTagIds:t,setSelectedContentTagIds:l,handleUpdateFavoriteContent:n,isSaving:a,calendarSettings:r}=e,o=(0,h.v9)(c.fd),d=(0,h.v9)(c.dl),u=(0,h.v9)(c.cA),x=o||d||u,v=(0,i.useMemo)(()=>{if(!x)return[];let e=o?U.i5:d?U.o8:U.dU,t=(null==r?void 0:r.content_tags)||[];return(0,q.yD)(e)?t:t.filter(t=>e.includes(t.slug))},[null==r?void 0:r.content_tags,o,d,x]),p=(0,i.useMemo)(()=>x?((null==r?void 0:r.content_tags)||[]).map(e=>e.id):[],[r,x]),m=(0,i.useMemo)(()=>x?[...v.map(e=>({id:e.id,title:e.title})),{id:"selectAll",title:"All ".concat(o?"Insurance":d?"Finance":"Mortgage"," Videos")}]:[],[v,o,d,x]),_=x&&t.length===p.length&&p.length>0,j=e=>{if("selectAll"===e)_?l([]):l(p);else{let s=v.map(e=>e.id);t.includes(e)?l(t.filter(t=>s.includes(t)&&t!==e)):l([...t,e])}};return(0,s.jsxs)("div",{className:Z().container,children:[a&&(0,s.jsx)(k.default,{}),(0,s.jsx)("h3",{children:"What video types you want to share?"}),(0,s.jsxs)("div",{className:Z().listWrapper,children:[m.map(e=>(0,s.jsx)(T,{id:e.id,selected:"selectAll"===e.id?_:null==t?void 0:t.includes(e.id),onClick:()=>j(e.id),children:e.title},e.id)),(0,s.jsx)(I.Z,{variant:"text",size:"sm",fontWeight:"semibold",children:"*You can add more categories later on"})]}),(0,s.jsx)(f.z,{className:Z().next,onClick:n,color:"primary",size:"xl",fullWidth:!0,children:"Next"})]})}let G="onboarding_v7",Q=e=>{let{video:t}=e,l=(0,h.v9)(c.fd),d=(0,h.v9)(c.dl),x=(0,h.v9)(c.cA),[f]=(0,i.useState)(()=>l||d||x),p=(0,i.useMemo)(()=>f,[]),[m,_]=(0,i.useState)(()=>f?o.Af.FavoriteContent:p?o.Af.Personalization:o.Af.Roles),[j,g]=(0,i.useState)([]),{sendEvent:w}=(0,u.q)(),{mutateAsync:z,isLoading:A}=(0,E.F)(),{data:k}=(0,y.i)();(0,i.useEffect)(()=>{(0,F.Z)(),w(G+"_start",null,{video_id:null==t?void 0:t.id,product_scenario:"onboarding"})},[]),(0,i.useEffect)(()=>{if(!(l||d||x)||!k)return;if(l){let e=k.content_tags||[],t=e.filter(e=>U.i5.includes(e.slug)).map(e=>e.id);g(t.length>0?t:e.map(e=>e.id));return}let e=k.selected_content_tags;Array.isArray(e)&&g(e)},[l,d,x,k,m]);let M=(0,i.useCallback)(async()=>{try{await z({...k,selected_content_tags:j}),b()}catch(e){throw Error(e)}},[z,k,j]),N=(0,i.useMemo)(()=>m===o.Af.Personalization&&!a.tq,[m]),b=e=>{switch(m){case o.Af.Roles:e===v.E_.Insurance||e===v.E_.Finance?_(o.Af.FavoriteContent):_(o.Af.Personalization);break;case o.Af.FavoriteContent:_(o.Af.Personalization);break;default:throw Error("Not implemented")}},R=(0,i.useMemo)(()=>Object.keys(o.Af).length/2-(p?1:0),[p]),W=(0,i.useMemo)(()=>f&&m===o.Af.FavoriteContent?0:m,[m,f]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,n.W)(B().wrapper,{[B().fullScreen]:N}),children:(0,s.jsx)("div",{className:(0,n.W)(B().content,{[B().fullScreen]:N}),children:(0,s.jsxs)(o.P6,{step:m,setStep:_,onNextStep:b,onPrevStep:()=>{if(m===o.Af.Personalization)_(o.Af.Roles);else throw Error("Not implemented")},steps:R,children:[(0,s.jsx)(r.R,{currentStep:W,steps:R,classes:{backButton:N?B().backButton:void 0}}),m===o.Af.Roles&&(0,s.jsx)(S,{eventSource:G}),m===o.Af.FavoriteContent&&(0,s.jsx)(D,{calendarSettings:k,isSaving:A,selectedContentTagIds:j,setSelectedContentTagIds:g,handleUpdateFavoriteContent:M}),m===o.Af.Personalization&&(0,s.jsx)(C.Z,{eventSource:G,fullScreen:N})]})})}),(0,s.jsx)(V.Z,{})]})};Q.isDashboard=!0,Q.pageName="walkthrough_v7";var Y=!0,X=Q},340997:function(e,t,l){"use strict";l.d(t,{R:function(){return d}});var s=l(511527),i=l(50959),n=l(619533),a=l(305341),r=l(805196),o=l(69773),c=l.n(o);function d(e){let{steps:t=3,classes:l,currentStep:o,displayBackButton:d,title:h}=e,{step:u,prevStep:x}=(0,r.G_)(),f=null!=o?o:u+1,v=(0,i.useMemo)(()=>3===t,[t]),p=(0,i.useMemo)(()=>4===t,[t]),m=(0,i.useMemo)(()=>Array(t).fill(0).map((e,t)=>t),[t]);return(0,s.jsxs)(s.Fragment,{children:[h?(0,s.jsx)("div",{className:c().titleWrapper,children:h}):null,d&&(0,s.jsxs)("div",{className:(0,a.W)(c().back,null==l?void 0:l.backButton),onClick:x,children:[(0,s.jsx)(n.Z,{src:"/images/icons/icons-s-arrow-left-black.svg",alt:"",fill:!0}),(0,s.jsx)("span",{className:c().backText,children:"Back"})]}),(0,s.jsx)("div",{className:(0,a.W)(c().container,null==l?void 0:l.container,{[c().threeSteps]:v,[c().fourSteps]:p}),children:m.map(e=>(0,s.jsx)("div",{className:(0,a.W)({[c().active]:e<=f})},e))})]})}},805196:function(e,t,l){"use strict";l.d(t,{Af:function(){return i},G_:function(){return c},P6:function(){return o}});var s,i,n=l(511527),a=l(50959);(s=i||(i={}))[s.Roles=0]="Roles",s[s.FavoriteContent=1]="FavoriteContent",s[s.Personalization=2]="Personalization";let r=(0,a.createContext)({step:0,nextStep:e=>{},prevStep:()=>{}}),o=e=>{let{steps:t=3,children:l,step:s,setStep:i,onPrevStep:a,onNextStep:o}=e;return(0,n.jsx)(r.Provider,{value:{step:s,nextStep:e=>{if(o)o(e);else if(0===s)i(2);else throw Error("Not implemented")},prevStep:()=>
1{if(a)a();else if(2===s)i(0);else throw Error("Not implemented")}},children:l})};function c(){return(0,a.useContext)(r)}},388025:function(e){e.exports={container:"FavoriteContent_container__fOBCA",next:"FavoriteContent_next__1I0Uf",listWrapper:"FavoriteContent_listWrapper__O4OsA"}},225144:function(e){e.exports={item:"ListButton_item__gBaTc",selected:"ListButton_selected__u0UAz",titleWrapper:"ListButton_titleWrapper__6gaTB",title:"ListButton_title__HjLYV",subtitle:"ListButton_subtitle__6E87i"}},274380:function(e){e.exports={container:"roles_container__13Qvj",next:"roles_next__I8ISS",roles:"roles_roles__MnJLQ",role:"roles_role__15l_B"}},69773:function(e){e.exports={container:"steps_container__rwLwe",threeSteps:"steps_threeSteps__ZJ3oU",fourSteps:"steps_fourSteps__iWwmu",active:"steps_active__kqT0n",titleWrapper:"steps_titleWrapper__SHVcc",back:"steps_back__Q4pA6",backText:"steps_backText__Sxq3w",skipToDashboard:"steps_skipToDashboard__AsaaA",skipIcon:"steps_skipIcon__adG7C"}}},function(e){e.O(0,[58898,1888,80388,64528,6406,22375,49689,21661,33913,60312,27259,85245,90602,55430,81969,92888,49774,40179],function(){return e(e.s=983169)}),_N_E=e.O()}]);
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.