PageSourceSearch

https://app.slaydigital.ai/static/react/8281.58e62938a9cc3e3a7f8f.js

js slaydigital.ai collected 2026-10-05 14:40:13 UTC 5,183 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkStammer_ai=self.webpackChunkStammer_ai||[]).push([[8281],{28281:function(e,t,n){n.r(t),n.d(t,{ChatbotAccessLinkPage:function(){return y}});var r=n(78685),o=n(2057),i=n(31547),s=n(13066),a=n(10838),c=(0,n(81056).A)((0,r.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"}),"LinkOff"),u=n(86591),l=n(17e3),d=n(30157),h=n(43186),f=n(6765),v=n(39675),x=n(42317),m=n(39751),p=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},b=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};function g(e){var t=e.customMessage;return(0,r.jsx)(i.A,{sx:{backgroundColor:"#fff",minHeight:"100vh"},children:(0,r.jsx)(s.A,{maxWidth:"xl",sx:{px:3},children:(0,r.jsx)(i.A,{sx:{display:"flex",justifyContent:"center"},children:(0,r.jsxs)(i.A,{sx:{width:{xs:"100%",lg:"50%"},textAlign:"center",mt:8},children:[(0,r.jsx)(c,{sx:{fontSize:"5rem",color:"text.disabled",mb:3}}),(0,r.jsx)(a.A,{variant:"h5",fontWeight:600,gutterBottom:!0,children:"Link Expired"}),(0,r.jsx)(a.A,{sx:{fontSize:"1.1rem",color:"text.secondary"},children:t||"This chat link has expired and is no longer accessible."})]})})})})}function w(){var e,t,n=(0,l.g)().accessToken,s=void 0===n?"":n,a=(0,o.useState)(!1),c=a[0],v=a[1],w=(0,o.useState)(""),y=w[0],j=w[1],k=(0,u.I)({queryKey:["access-link-page",s],queryFn:function(){return function(e){return p(this,void 0,Promise,(function(){var t,n,r,o,i,s;return b(this,(function(a){switch(a.label){case 0:t=(0,x.QW)(),a.label=1;case 1:return a.trys.push([1,3,,6]),[4,f.uE.get("/".concat(t,"/chatbot/api/v1/access-link-page/").concat(e,"/"))];case 2:return[2,a.sent().data];case 3:if(n=a.sent(),410===(r=null===(o=null==n?void 0:n.response)||void 0===o?void 0:o.status))throw{expired:!0,customMessage:(null===(s=null===(i=null==n?void 0:n.response)||void 0===i?void 0:i.data)||void 0===s?void 0:s.custom_message)||""};return 404!==r?[3,5]:[4,f.uE.get("/".concat(t,"/chatbot/api/v1/share-page/").concat(e,"/"))];case 4:return[2,a.sent().data];case 5:throw n;case 6:return[2]}}
1))}))}(s)},enabled:Boolean(s),retry:!1}),A=k.data,S=k.isLoading,E=k.isError,M=k.error;if((0,o.useEffect)((function(){if(null==A?void 0:A.expiresAt){var e=new Date(A.expiresAt).getTime()-Date.now();if(e<=0)return v(!0),void j(A.customMessage||"");var t=setTimeout((function(){v(!0),j(A.customMessage||"")}),e);return function(){return clearTimeout(t)}}}),[null==A?void 0:A.expiresAt,null==A?void 0:A.customMessage]),(0,o.useEffect)((function(){var e=function(){var e=document.getElementById("widgetScrollSection");e&&(e.style.height=window.innerWidth<768?"".concat(window.innerHeight-230,"px"):"")};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e);var t=document.getElementById("widgetScrollSection");t&&(t.style.height="")}}),[null===(e=null==A?void 0:A.chatbot)||void 0===e?void 0:e.uuid]),(null===(t=null==A?void 0:A.chatbot)||void 0===t?void 0:t.id)&&A.chatbot.uuid&&(window.chatbotId=A.chatbot.id.toString(),window.chatbotUUID=A.chatbot.uuid,window.sourcePlatform=A.sourcePlatform,window.embedType=A.embedType,delete window.isInternal),c)return(0,r.jsx)(g,{customMessage:y});if(E){var I=M;return(null==I?void 0:I.expired)?(0,r.jsx)(g,{customMessage:I.customMessage}):(0,r.jsx)(h.NotFoundPage,{})}return s?S||!A?(0,r.jsx)(m.A,{}):(0,r.jsx)(i.A,{sx:{minHeight:"100vh"},children:(0,r.jsx)(i.A,{sx:{width:{xs:"100%",md:"50%"},ml:{xs:0,md:"25%"},mt:{xs:0,md:4}},children:(0,r.jsx)(d.A,{chatbotUUID:A.chatbot.uuid})})}):(0,r.jsx)(h.NotFoundPage,{})}function y(){return(0,r.jsx)(v.R2,{children:(0,r.jsx)(w,{})})}}}]);

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.