PageSourceSearch

https://www.teamazing.de/assets/useTypeformPopup-JfBFedrK.js

js teamazing.de collected 2026-10-05 03:18:52 UTC 3,214 bytes, 1 lines download raw bytes

1const a="//embed.typeform.com/next/embed.js",P={coffeeTalk:{com:"pIBhQdJn",de:"XykdSYjL",at:"XykdSYjL"},support:{com:"hvNEETiR",de:"mETxzeiP",at:"mETxzeiP"},disc:{com:"iLRFrHfC",de:"ip1GXiK0",at:"ip1GXiK0"},leadershipStyle:{com:"QuSvLNXH",de:"B2x26R1X",at:"B2x26R1X"},homeEmbed:{com:"01KFAVHWGPZCMDWKKJVG5JCY5Y",de:"01KFJKZ2M4JZAYA6407K7AA1FH",at:"01KFJKZ2M4JZAYA6407K7AA1FH"}};let c=null;function l(){var r;return typeof window>"u"||(r=window.tf)!=null&&r.createPopup?Promise.resolve():c||(c=new Promise((e,p)=>{var t;const o=document.querySelector(`script[src="${a}"], script[src="https:${a}"]`);if(o){if((t=window.tf)!=null&&t.createPopup){e();return}o.addEventListener("load",()=>e(),{once:!0}),o.addEventListener("error",()=>p(new Error("[useTypeformPopup] embed script failed to load")),{once:!0});return}const n=document.createElement("script");n.src=a,n.async=!0,n.addEventListener("load",()=>e(),{once:!0}),n.addEventListener("error",()=>{c=null,p(new Error("[useTypeformPopup] embed script failed to load"))},{once:!0}),document.body.appendChild(n)}),c)}function T(r){if(!r)return null;const e=r.match(/typeform\.com\/to\/([\w-]+)/i);return e?e[1]:null}function E(r,e){const p=P[r],o=["com","de","at"].includes(e)?e:"com";return p[o]}let d=null,s=!1,f=null;function y(){return typeof document>"u"?!1:!!document.querySelector(".tf-v1-popup, [data-tf-popup-overlay]")}function v(){return typeof document>"u"?null:document.querySelector(".tf-v1-popup, [data-tf-popup-overlay]")}function w(r){if(typeof document>"u")return()=>{};let e=null;const p=t=>{e&&t.target===e&&r()},o=t=>{t.key==="Escape"&&r()},n=()=>(e=v(),e?(e.addEventListener("click",p),!0):!1);return n()||requestAnimationFrame(()=>n()),document.addEventListener("keydown",o),()=>{e==null||e.removeEventListener("click",p),document.removeEventListener("keydown",o),e=null}}function L(r){if(!r)return{};const e=r.indexOf("?");if(e===-1)return{};const p={};
1return new URLSearchParams(r.slice(e+1)).forEach((n,t)=>{n&&(p[t]=n)}),p}function S(){async function r(o,n={}){var t;if(!o){devError("[useTypeformPopup] (openTypeformPopup) ❌ Missing shortId");return}if(s||d||y()){devLog("[useTypeformPopup] (openTypeformPopup) ⏭️ Skipped — popup already open",{shortId:o});return}s=!0;try{if(await l(),!((t=window.tf)!=null&&t.createPopup)){devError("[useTypeformPopup] (openTypeformPopup) ❌ window.tf.createPopup unavailable after script load");return}if(d||y()){devLog("[useTypeformPopup] (openTypeformPopup) ⏭️ Skipped after script load — popup now open",{shortId:o});return}const u=n.onClose,i=window.tf.createPopup(o,{size:100,...n,onClose:()=>{f==null||f(),f=null,d=null,u==null||u()}});d=i,i.open(),f=w(()=>{var m;return(m=i.close)==null?void 0:m.call(i)}),devLog("[useTypeformPopup] (openTypeformPopup) 🚀 Opened popup",{shortId:o})}catch(u){d=null,devError("[useTypeformPopup] (openTypeformPopup) ❌ Failed to open popup",u)}finally{s=!1}}async function e(o,n={}){const t=T(o);if(!t)return!1;const u=L(o),i={...n,hidden:{...u,...n.hidden||{}}};return await r(t,i),!0}function p(o,n,t={}){return r(E(o,n),t)}return{loadTypeformScript:l,openTypeformPopup:r,openTypeformFromUrl:e,openTypeformByKey:p}}export{P as T,T as e,S as u};

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.