Current section
Files
Jump to
Current section
Files
priv/static/client.js
(()=>{function h(t){let e=`
<div id="debug-button" style="
position: fixed;
height: 40px;
width: 40px;
padding-left: 5px;
padding-right: 5px;
border-radius: 10px;
background-color: #001A72;
color: #ffffff;
display: flex;
gap: 5px;
justify-content: center;
align-items: center;
z-index: 9999;
bottom: 20px;
right: 20px;
cursor: grab;">
<a href="${t}" target="_blank">
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.0941 20.624C22.5697 20.624 22.9553 20.2385 22.9554 19.7628L22.9556 16.6568C22.9556 16.4283 22.8649 16.2093 22.7034 16.0477C22.5418 15.8862 22.3228 15.7955 22.0944 15.7955L18.3034 15.7955L18.3034 17.5179L21.2331 17.5179L21.2329 19.7627C21.2329 20.2384 21.6185 20.624 22.0941 20.624Z" fill="currentColor"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.9823 12.9677C22.9823 12.4921 22.5968 12.1065 22.1211 12.1065L18.3034 12.1065V13.8289H22.1211C22.5968 13.8289 22.9823 13.4433 22.9823 12.9677Z" fill="currentColor"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.1385 5.31162C22.6142 5.31159 22.9998 5.69715 22.9998 6.17279L23 9.27886C23 9.50728 22.9093 9.72635 22.7478 9.88787C22.5863 10.0494 22.3672 10.1401 22.1388 10.1401L18.3034 10.1402L18.3164 8.41772L21.2775 8.4177L21.2774 6.1729C21.2773 5.69726 21.6629 5.31165 22.1385 5.31162Z" fill="currentColor"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.86148 20.624C1.38585 20.624 1.00024 20.2385 1.00021 19.7628L1 16.6568C0.999985 16.4283 1.09071 16.2093 1.25222 16.0478C1.41373 15.8862 1.6328 15.7955 1.86122 15.7955L5.6836 15.7955L5.6836 17.5179L2.7225 17.5179L2.72265 19.7627C2.72268 20.2384 2.33712 20.624 1.86148 20.624Z" fill="currentColor"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.00465 12.9677C1.00465 12.4921 1.39023 12.1065 1.86587 12.1065L5.6836 12.1065L5.68361 13.8289L1.86588 13.8289C1.39024 13.8289 1.00465 13.4434 1.00465 12.9677Z" fill="currentColor"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.8619 5.31162C1.38626 5.31159 1.00066 5.69715 1.00062 6.17279L1.00042 9.27886C1.00041 9.50728 1.09113 9.72635 1.25265 9.88787C1.41416 10.0494 1.63322 10.1401 1.86164 10.1401L5.68402 10.1402L5.68403 8.41773L2.72292 8.4177L2.72307 6.1729C2.7231 5.69726 2.33754 5.31165 1.8619 5.31162Z" fill="currentColor"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.5822 5.951C16.5563 5.55988 16.4815 5.18216 16.3637 4.82389C15.761 2.9901 14.0347 1.66608 11.9993 1.66608C9.46255 1.66608 7.40614 3.72245 7.40607 6.25914C7.40607 6.07964 7.41637 5.90255 7.4364 5.72842C6.37344 6.4641 5.5006 7.27955 4.95972 7.82907C4.57693 8.21798 4.3604 8.47369 4.3604 8.47369V15.576C4.3604 16.9134 4.75938 18.2352 5.70216 19.1839C6.91489 20.4041 8.85964 21.9501 11.1606 22.2731C11.4426 22.3127 11.7299 22.3339 12.0219 22.3339C12.3121 22.3339 12.5995 22.3101 12.8831 22.266C15.0234 21.9325 16.9448 20.4369 18.1856 19.2336C19.1941 18.2556 19.6354 16.8718 19.6354 15.4671V8.47369C19.6354 8.47369 19.4208 8.21698 19.0408 7.8268C18.5007 7.27223 17.6266 6.44804 16.5597 5.7081C16.5693 5.78844 16.5768 5.86943 16.5822 5.951ZM9.94789 6.25926C9.21504 6.59448 8.48065 7.06772 7.79147 7.60478C7.27937 8.00384 6.83377 8.40537 6.483 8.74437L12.0205 12.0717L17.5232 8.74442C17.1757 8.40464 16.7328 8.00128 16.2228 7.60045C15.5416 7.06516 14.8151 6.59357 14.0886 6.25926H9.94789ZM11.9993 3.38852C13.0618 3.38852 13.9896 3.96582 14.4859 4.82389L9.51244 4.82411C10.0088 3.96592 10.9366 3.38852 11.9993 3.38852ZM11.1606 13.5645L6.08284 10.5134V15.576C6.08284 16.5949 6.38663 17.4291 6.92389 17.9697C8.02405 19.0767 9.53264 20.2139 11.1606 20.5272V13.5645ZM12.8831 20.5143C14.3643 20.1903 15.8444 19.1047 16.9865 17.9971C17.5787 17.4228 17.913 16.5336 17.913 15.4671V10.5216L12.8831 13.5629V20.5143Z" fill="currentColor"/>
</svg>
</a>
</div>
`,n=document.createElement("div");return n.innerHTML=e,n.firstElementChild}function d(t){let e=h(t);document.body.appendChild(e);let n=!1,l=i=>{i.button!==0||i.ctrlKey||(i.preventDefault(),posXStart=i.clientX,posYStart=i.clientY,document.addEventListener("mousemove",o),document.addEventListener("mouseup",s),e.style.cursor="grabbing",n=!1)},o=i=>{!i.clientX||!i.clientY||(n=!0,posX=posXStart-i.clientX,posY=posYStart-i.clientY,posXStart=i.clientX,posYStart=i.clientY,e.style.top=`${e.offsetTop-posY}px`,e.style.left=`${e.offsetLeft-posX}px`)},s=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",s),e.style.cursor="grab",e.offsetTop<0&&(e.style.top=e.style.bottom),e.offsetTop+e.clientHeight>window.innerHeight&&(e.style.top=""),e.offsetLeft<0&&(e.style.left=e.style.right),e.offsetLeft+e.clientWidth>window.innerWidth&&(e.style.left="")},g=i=>{n&&(i.preventDefault(),n=!1)};window.addEventListener("resize",()=>{e.offsetLeft+e.clientWidth+Number.parseInt(e.style.right)>window.innerWidth&&(e.style.left=""),e.offsetTop+e.clientHeight+Number.parseInt(e.style.bottom)>window.innerHeight&&(e.style.top="")}),e.addEventListener("mousedown",l),e.addEventListener("click",g)}var r="live-debugger-highlight-element",p="live-debugger-highlight-pulse-element",u=t=>{if(!t)return!1;let e=window.getComputedStyle(t);return e.display!=="none"&&e.visibility!=="hidden"&&e.opacity!=="0"};function c(t,e,n){let l=t.getBoundingClientRect(),o=document.createElement("div");return o.id=n,o.dataset.attr=e.attr,o.dataset.val=e.val,o.style.position="absolute",o.style.top=`${l.top+window.scrollY}px`,o.style.left=`${l.left+window.scrollX}px`,o.style.width=`${t.offsetWidth}px`,o.style.height=`${t.offsetHeight}px`,o.style.backgroundColor="#87CCE880",o.style.zIndex="10000",o.style.pointerEvents="none",o}function m({detail:t}){let e=document.getElementById(r);if(e){e.remove();let l=t.attr===void 0||t.val===void 0,o=e.dataset.val===t.val;if(l||o)return}let n=document.querySelector(`[${t.attr}="${t.val}"]`);u(n)&&(e=c(n,t,r),document.body.appendChild(e))}function C(){let t=document.getElementById(r);if(t){let e=document.querySelector(`[${t.dataset.attr}="${t.dataset.val}"]`),n=e.getBoundingClientRect();t.style.top=`${n.top+window.scrollY}px`,t.style.left=`${n.left+window.scrollX}px`,t.style.width=`${e.offsetWidth}px`,t.style.height=`${e.offsetHeight}px`}}function v({detail:t}){let e=document.querySelector(`[${t.attr}="${t.val}"]`);if(u(e)){let n=c(e,t,p);document.body.appendChild(n);let l=n.offsetWidth,o=n.offsetHeight;n.animate([{width:`${l}px`,height:`${o}px`,transform:"translate(0, 0)",backgroundColor:"#87CCE860"},{width:`${l+20}px`,height:`${o+20}px`,transform:"translate(-10px, -10px)",backgroundColor:"#87CCE830"},{width:`${l+40}px`,height:`${o+40}px`,transform:"translate(-20px, -20px)",backgroundColor:"#87CCE800"}],{duration:500,iterations:1,delay:200}).onfinish=()=>{n.remove()}}}function a(){window.addEventListener("phx:highlight",m),window.addEventListener("resize",C),window.addEventListener("phx:pulse",v)}function b(){let t;if((t=document.querySelector("[data-phx-main]"))||(t=document.querySelector('[id^="phx-"]')))return t.id;if(t=document.querySelector("[data-phx-root-id]"))return t.getAttribute("data-phx-root-id")}function f(){let t=`
LiveDebugger meta tag not found!
If you have recently bumped LiveDebugger version, please update your layout according to the instructions in the GitHub README.
You can find it here: https://github.com/software-mansion/live-debugger#installation
`;throw new Error(t)}function y(){let t=document.querySelector('meta[name="live-debugger-config"]');if(t)return t.hasAttribute("debug-button");f()}function L(){let t=document.querySelector('meta[name="live-debugger-config"]');if(t)return t.hasAttribute("highlighting")}function w(){let t=document.querySelector('meta[name="live-debugger-config"]');if(t)return t.getAttribute("url");f()}function x(t){let e=b(),n=e?`redirect/${e}`:"";return`${t}/${n}`}window.document.addEventListener("DOMContentLoaded",function(){let t=w(),e=x(t);y()&&d(e),L()&&a(),console.info(`LiveDebugger available at: ${t}`)});})();