PageSourceSearch

https://clearcompany.com/dist/modules/modal-js-e62c0341c9a2db3822ae.js

js clearcompany.com collected 2026-10-01 08:09:07 UTC 5,085 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcraft_boilerplate=self.webpackChunkcraft_boilerplate||[]).push([[770],{117(t,e,r){function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,o)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(t,e,r){return(e=function(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.r(e),r.d(e,{cModal:()=>s});var l=function(t,e,r,o){var i=this;if(t.preventDefault(),this.modal.transition)return!1;var n={background:"bg-white",width:"max-w-p768",height:"max-h-modal"};"video"===(r=a(a({},{mode:"normal"}),r)).mode&&(n.width="max-w-p1280",n.background="bg-transparent"),r=a(a({},n),r),o&&(this.caller=o);var l,s,d=t.currentTarget||t.target,c=document.getElementById(e),u=document.getElementById("modal-component"),m=document.getElementById("modal-content"),h=document.getElementById("modal-transcript"),f=!1;if(d&&d.getAttribute("data-params")){var p=d.getAttribute("data-params");f=JSON.parse(p)}if(this.modal.heading=!1,this.modal.label=!1,this.modal.transcript=!1,this.modal.showTranscript=!1,this.modal.background=r.background,this.modal.width=r.width,this.modal.height=r.height,"video"===r.mode){this.modal.bg="bg-transparent";var g=d.getAttribute("data-video"),b=d.getAttribute("data-platform"),y=d.getAttribute("data-transcript");if(l='<div class="bg-white relative pt-ratio-video">',l+="vimeo"===b?'<iframe class="absolute z-10 inset-0 w-full h-full" width="560" height="315" src="https://player.vimeo.com/video/'+g+'?&color=28b682&autoplay=1&title=0&portrait=0" width="560" height="315" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen tabindex="0"></iframe>':'<iframe class="absolute z-10 inset-0 w-full h-full" width="560" height="315" src="https://www.youtube.com/embed/'+g+'?rel=1&autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" tabindex="0"></iframe>',l+="</div>",this.modal.label="Video Modal",y){var w=document.getElementById(y);if(w){this.modal.transcript=!0;var v=w.innerHTML;h.innerHTML=v}}}else if("image"===r.mode){var O=d.getAttribute("href"),j=d.getAttribute("data-caption");l='<figure><img src="'+O+'"',l+=function(t){for(var e,r=" ",o=Object.keys(t),i=0;i<o.length;i++)r+=(e=o[i])+'="'+t[e]+'"';return r}(f),l+=">",j&&(l+='<content class="block p-p8 text-p24">'+j+"</caption>"),l+="</figure>",this.modal.label="Image Modal"}else l=c.innerHTML,c&&(s=c.getAttribute("data-title"));this.modal.trigger=t.target,s&&(this.modal.heading=s),l&&(m.innerHTML=l,this.modal.content=!0),this.modal.show=!0,this.modal.transition=!0,setTimeout(function(){u.focus(),i.modal.transition=!1},100)},s=function(t){return{id:t.id,focusable:!1,firstElement:!1,lastElement:!1,lastFocused:!1,closing:!1,caller:!1,modal:Alpine.store("modal"),init:function(){window.modal=this,this.$root.classList.remove("hidden")},trigger:l,activate:function(){document.querySelector("body").classList.add("overflow-hidden")},showModal:function(){return this.$store.modal.show},showHeading:function(){return this.$store.modal.heading},getHeading:function(){return this.$store.modal.heading},getContent:function(){return this.$store.modal.content},getLabel:function(){return this.$store.modal.label},modalClass:function(){for(var t=[this.modal.background,this.modal.width,this.modal.height],e="",r=0;r<t.length;r++)t[r]&&(e+=" "+t[r]),e=e.trim();return e},transcriptClass:function(){return this.modal.width},closeModal:function(){if(this.modal.transition)return!1;this.modal.trigger&&this.modal.trigger.focus(),this.modal.trigger=!1,this.modal.transition=!0,this.modal.show=!1,setTimeout(function(){this.modal.content=!1,this.modal.transition=!1,document.querySelector("body").classList.remove("overflow-hidden")}.bind(this),400)},keyPress:function(t){27===t.keyCode&&this.closeModal()},showTranscript:function(t){t.preventDefault();var e="calc(99.9999vh - (4rem + "+this.$refs.dialog.offsetHeight+"px))";this.$store.modal.showTranscript=!this.$store.modal.showTranscript,this.$refs.transcript.style.maxHeight=e}}}}}]);

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.