{"id":2,"date":"2024-11-18T11:05:34","date_gmt":"2024-11-18T11:05:34","guid":{"rendered":"https:\/\/yourskills2024.kreativa.dev\/?page_id=2"},"modified":"2024-12-12T08:04:59","modified_gmt":"2024-12-12T08:04:59","slug":"sample-page","status":"publish","type":"page","link":"https:\/\/yourskills2024.kreativa.dev\/sv\/","title":{"rendered":""},"content":{"rendered":"\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n\n<div class='mwai-chatbot-container' data-params='{&quot;aiName&quot;:&quot; &quot;,&quot;userName&quot;:&quot; &quot;,&quot;guestName&quot;:&quot;G\\u00e4st:&quot;,&quot;aiAvatar&quot;:&quot;&quot;,&quot;guestAvatar&quot;:&quot;&quot;,&quot;textSend&quot;:&quot;Skicka&quot;,&quot;textClear&quot;:&quot;T\\u00f6m&quot;,&quot;imageUpload&quot;:false,&quot;fileUpload&quot;:false,&quot;multiUpload&quot;:false,&quot;maxUploads&quot;:1,&quot;fileUploads&quot;:0,&quot;fileSearch&quot;:false,&quot;mode&quot;:&quot;assistant&quot;,&quot;textInputPlaceholder&quot;:&quot;Skriv...&quot;,&quot;textInputMaxLength&quot;:512,&quot;textCompliance&quot;:&quot;H\\u00e4r kan man ocks\\u00e5 informera om villkor, dock utan action-knapp.&quot;,&quot;startSentence&quot;:&quot;Hej, fr\\u00e5ga Ed om yrken och yrkesutbildning i Sverige. Skriv din fr\\u00e5ga h\\u00e4r \\u2026&quot;,&quot;localMemory&quot;:true,&quot;themeId&quot;:&quot;none&quot;,&quot;window&quot;:false,&quot;icon&quot;:&quot;&quot;,&quot;iconText&quot;:&quot;&quot;,&quot;iconTextDelay&quot;:1,&quot;iconAlt&quot;:&quot;AI Engine Chatbot&quot;,&quot;iconPosition&quot;:&quot;bottom-right&quot;,&quot;centerOpen&quot;:false,&quot;width&quot;:&quot;&quot;,&quot;openDelay&quot;:&quot;&quot;,&quot;iconBubble&quot;:false,&quot;windowAnimation&quot;:&quot;zoom&quot;,&quot;fullscreen&quot;:false,&quot;copyButton&quot;:false,&quot;pdfButton&quot;:false,&quot;headerSubtitle&quot;:&quot;Discuss with&quot;,&quot;containerType&quot;:&quot;standard&quot;,&quot;headerType&quot;:&quot;standard&quot;,&quot;messagesType&quot;:&quot;standard&quot;,&quot;inputType&quot;:&quot;standard&quot;,&quot;footerType&quot;:&quot;standard&quot;}' data-system='{&quot;botId&quot;:&quot;chatbot-yih4xa&quot;,&quot;customId&quot;:null,&quot;userData&quot;:null,&quot;sessionId&quot;:&quot;6a0e998540efe&quot;,&quot;restNonce&quot;:null,&quot;contextId&quot;:null,&quot;pluginUrl&quot;:&quot;https:\\\/\\\/yourskills2024.kreativa.dev\\\/wp-content\\\/plugins\\\/ai-engine-pro&quot;,&quot;restUrl&quot;:&quot;https:\\\/\\\/yourskills2024.kreativa.dev\\\/sv\\\/wp-json&quot;,&quot;stream&quot;:false,&quot;debugMode&quot;:true,&quot;eventLogs&quot;:false,&quot;speech_recognition&quot;:false,&quot;speech_synthesis&quot;:false,&quot;typewriter&quot;:false,&quot;crossSite&quot;:false,&quot;actions&quot;:[],&quot;blocks&quot;:[{&quot;id&quot;:&quot;mwai_gdpr_6a0e99854144f&quot;,&quot;type&quot;:&quot;content&quot;,&quot;data&quot;:{&quot;id&quot;:&quot;mwai_gdpr_6a0e99854144f&quot;,&quot;html&quot;:&quot;&lt;div&gt;\\n                              &lt;p&gt;By using this chatbot, you &amp;lt;a href=&amp;#039;#&amp;#039; target=&amp;#039;_blank&amp;#039;&amp;gt;agree&amp;lt;\\\/a&amp;gt; to the recording and processing of your data by our website and the external services it might use (LLMs, vector databases, etc.).&lt;\\\/p&gt;\\n                              &lt;div class=\\&quot;mwai-gdpr-buttons\\&quot;&gt;\\n                              &lt;button id=\\&quot;mwai_gdpr_6a0e99854144f-button\\&quot; type=\\&quot;button\\&quot; style=\\&quot;width: 100%;\\&quot;&gt;I understand&lt;\\\/button&gt;\\n                              &lt;\\\/div&gt;\\n                              &lt;\\\/div&gt;&quot;,&quot;script&quot;:&quot;\\n                              (function() {\\n                                    \\\/\\\/ In cross-site mode, the server cannot see the cookie set on the\\n                                    \\\/\\\/ external domain, so check client-side if consent was already given.\\n                                    if (document.cookie.split(\\&quot;;\\&quot;).some(c =&gt; c.trim().startsWith(\\&quot;mwai_gdpr_accepted=1\\&quot;))) {\\n                                      var tryRemove = setInterval(function() {\\n                                        var chatbot = (typeof MwaiAPI !== \\&quot;undefined\\&quot;) ? MwaiAPI.getChatbot(\\&quot;chatbot-yih4xa\\&quot;) : null;\\n                                        if (chatbot) {\\n                                          chatbot.removeBlockById(\\&quot;mwai_gdpr_6a0e99854144f\\&quot;);\\n                                          clearInterval(tryRemove);\\n                                        }\\n                                      }, 100);\\n                                      setTimeout(function() { clearInterval(tryRemove); }, 5000);\\n                                      return;\\n                                    }\\n\\n                                    \\\/\\\/ Handle GDPR consent button click\\n                                    document.addEventListener(\\&quot;click\\&quot;, function(event) {\\n                                      if (event.target.id === \\&quot;mwai_gdpr_6a0e99854144f-button\\&quot;) {\\n                                        event.preventDefault();\\n                                        \\n                                        \\\/\\\/ Set GDPR acceptance cookie for 1 year\\n                                        const date = new Date();\\n                                        date.setTime(date.getTime() + (365 * 24 * 60 * 60 * 1000));\\n                                        document.cookie = \\&quot;mwai_gdpr_accepted=1; expires=\\&quot; + date.toUTCString() + \\&quot;; path=\\\/\\&quot;;\\n                                        \\n                                        \\\/\\\/ IMPORTANT: When multiple chatbots share the same botId, we must find\\n                                        \\\/\\\/ the specific chatbot instance that contains this GDPR block.\\n                                        \\\/\\\/ MwaiAPI.getChatbot() returns the first match, which may be wrong.\\n                                        let foundChatbot = null;\\n                                        const chatbotsWithSameBotId = MwaiAPI.chatbots.filter(cb =&gt; cb.botId === \\&quot;chatbot-yih4xa\\&quot;);\\n                                        \\n                                        \\\/\\\/ Find the chatbot that actually has this GDPR block\\n                                        for (const chatbot of chatbotsWithSameBotId) {\\n                                          const blocks = chatbot.getBlocks ? chatbot.getBlocks() : [];\\n                                          if (blocks.some(block =&gt; block.id === \\&quot;mwai_gdpr_6a0e99854144f\\&quot;)) {\\n                                            foundChatbot = chatbot;\\n                                            break;\\n                                          }\\n                                        }\\n                                        \\n                                        if (foundChatbot) {\\n                                          foundChatbot.unlock();\\n                                          foundChatbot.removeBlockById(\\&quot;mwai_gdpr_6a0e99854144f\\&quot;);\\n                                        }\\n                                      }\\n                                    }, true); \\\/\\\/ Use capture phase for better popup\\\/modal support\\n                                    \\n                                    \\\/\\\/ Lock the chatbot when it has this GDPR block\\n                                    \\\/\\\/ Note: Using MwaiAPI.getChatbot() here is fine for locking\\n                                    \\\/\\\/ as we want to lock any chatbot with this botId initially\\n                                    const tryLock = setInterval(function() {\\n                                      const chatbot = MwaiAPI.getChatbot(\\&quot;chatbot-yih4xa\\&quot;);\\n                                      if (chatbot &amp;&amp; chatbot.lock) {\\n                                        chatbot.lock();\\n                                        clearInterval(tryLock);\\n                                      }\\n                                    }, 100);\\n                                    \\n                                    \\\/\\\/ Stop trying after 5 seconds\\n                                    setTimeout(function() {\\n                                      clearInterval(tryLock);\\n                                    }, 5000);\\n                                  })();\\n                                &quot;}}],&quot;shortcuts&quot;:[]}' data-theme='null'><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/yourskills2024.kreativa.dev\/sv\/wp-json\/wp\/v2\/pages\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourskills2024.kreativa.dev\/sv\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/yourskills2024.kreativa.dev\/sv\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/yourskills2024.kreativa.dev\/sv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yourskills2024.kreativa.dev\/sv\/wp-json\/wp\/v2\/comments?post=2"}],"version-history":[{"count":25,"href":"https:\/\/yourskills2024.kreativa.dev\/sv\/wp-json\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":60,"href":"https:\/\/yourskills2024.kreativa.dev\/sv\/wp-json\/wp\/v2\/pages\/2\/revisions\/60"}],"wp:attachment":[{"href":"https:\/\/yourskills2024.kreativa.dev\/sv\/wp-json\/wp\/v2\/media?parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}