PageSourceSearch

https://johnhardy.com/cdn/shop/t/19/assets/component.gorgias-modal-forms.min.js?v=1790168230509

js johnhardy.com collected 2026-09-24 22:01:51 UTC 9,437 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1054,116],{2766:function(t,o,e){e.d(o,{Z:function(){return s}});var n=e(2117);const a={class:"icon icon__chat icon--no-fill",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r=[(0,n._)("path",{d:"M17 13.2a.6.6 0 1 0 0-1.2.6.6 0 0 0 0 1.2ZM12.8 13.2a.6.6 0 1 0-.001-1.2.6.6 0 0 0 0 1.2ZM8.6 13.2a.6.6 0 1 0 0-1.2.6.6 0 0 0 0 1.2Z",stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":".75"},null,-1),(0,n._)("path",{d:"M12.5 22a9.5 9.5 0 1 0-8.23-4.75l-.795 4.275 4.275-.796A9.457 9.457 0 0 0 12.5 22Z",stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,-1)],i={};var s=(0,e(6959).Z)(i,[["render",function(t,o){return(0,n.wg)(),(0,n.iD)("svg",a,r)}]])},222:function(t,o,e){e.d(o,{Z:function(){return s}});var n=e(2117);const a={class:"icon icon__email",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r=[(0,n._)("path",{d:"M4.5 6.167v11.666h15V6.167h-15Zm.833.777h.124L12 12.834l6.543-5.89h.124v10.112H5.333V6.944Zm1.386 0h10.562L12 11.697 6.718 6.944Z","fill-rule":"evenodd","clip-rule":"evenodd"},null,-1)],i={};var s=(0,e(6959).Z)(i,[["render",function(t,o){return(0,n.wg)(),(0,n.iD)("svg",a,r)}]])},5934:function(t,o,e){e.d(o,{Z:function(){return s}});var n=e(2117);const a={class:"icon icon__phone",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r=[(0,n._)("path",{d:"M6.71 2.395a1.347 1.347 0 0 0-1.905 0l-1.62 1.62a4.042 4.042 0 0 0-1.06 3.858 19.78 19.78 0 0 0 5.111 8.893c3.17 3.17 6.7 4.532 8.894 5.108l.003.001a4.041 4.041 0 0 0 3.852-1.058c.556-.553 1.174-1.171 1.622-1.62a1.346 1.346 0 0 0 0-1.905l-3.22-3.22a1.348 1.348 0 0 0-1.906 0l-1.678 1.678a.45.45 0 0 1-.438.115 10.768 10.768 0 0 1-3.8-2.429A10.61 10.61 0 0 1 8.15 9.648.443.443 0 0 1 8.26 9.2c.43-.44 1.15-1.16 1.67-1.68a1.346 1.346 0 0 0 0-1.904L6.71 2.395Zm-.635.635 3.22 3.22a.45.45 0 0 1 0 .636c-.522.522-1.243 1.243-1.675 1.686a1.34 1.34 0 0 0-.329 1.346l.007.018A11.518 11.518 0 0 0 9.93 14.07a11.685 11.685 0 0 0 4.13 2.64l.021.007c.479.15 1.002.021 1.356-.334l1.678-1.678a.45.45 0 0 1 .635 0l3.221 3.221a.45.45 0 0 1 0 .635c-.448.448-1.065 1.066-1.621 1.619a3.141 3.141 0 0 1-2.995.824A18.845 18.845 0 0 1 7.87 16.13a18.877 18.877 0 0 1-4.876-8.484 3.143 3.143 0 0 1 .824-2.996L5.44 3.03a.45.45 0 0 1 .636 0ZM12.045 4.323a7.637 7.637 0 0 1 7.634 7.634.45.45 0 0 0 .898 0c0-4.71-3.824-8.532-8.532-8.532a.45.45 0 0 0 0 .898Z","fill-rule":"evenodd","clip-rule":"evenodd"},null,-1),(0,n._)("path",{d:"M12 7.017A4.985 4.985 0 0 1 16.982 12a.45.45 0 0 0 .898 0A5.883 5.883 0 0 0 12 6.12a.45.45 0 0 0 0 .898Z","fill-rule":"evenodd","clip-rule":"evenodd"},null,-1),(0,n._)("path",{d:"M12 9.712a2.246 2.246 0 0 1 2.245 2.245.45.45 0 0 0 .898 0A3.145 3.145 0 0 0 12 8.813a.45.45 0 0 0 0 .899Z","fill-rule":"evenodd","clip-rule":"evenodd"},null,-1)],i={};var s=(0,e(6959).Z)(i,[["render",function(t,o){return(0,n.wg)(),(0,n.iD)("svg",a,r)}]])},948:function(t,o,e){e.r(o),e.d(o,{default:function(){return L}});var n=e(2117);const a={class:"gorgias-modal-footer"},r={class:"gorgias-modal-footer__section gorgias-modal-footer__chat"},i=["textContent"],s={class:"gorgias-modal-footer__section"},l=["textContent"],c=["innerHTML"],d={class:"gorgias-modal-footer__section"},u=["textContent"],g=["innerHTML"],p={class:"gorgias-modal-footer__section gorgias-modal-footer__appointment"},h={class:"gorgias-modal-footer__label text-other-button-link-uppercase"},m={target:"_blank",rel:"noopener noreferrer",href:"https://outlook.office365.com/owa/calendar/[email protected]/bookings/"},f={class:"gorgias-modal-footer__section"},_=["innerHTML"],v=["textContent"],w=["textContent"];var y=e(5916),b=e(222),x=e(5934),Z=e(2766);const k={class:"icon icon__calendar",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},M=[(0,n._)("path",{d:"M15.438 1.954H13.5V.546c0-.262-.23-.512-.5-.5a.51.51 0 0 0-.5.5v1.408h-7V.546c0-.262-.23-.512-.5-.5a.51.51 0 0 0-.5.5v1.408H2.562a2.503 2.503 0 0 0-2.5 2.5v11c0 1.379 1.122 2.5 2.5 2.5h12.875c1.379 0 2.5-1.121 2.5-2.5v-11a2.5 2.5 0 0 0-2.499-2.5Zm-12.876 1H4.5v.592c0 .262.23.512.5.5.271-.
1012.5-.22.5-.5v-.592h7v.592c0 .262.23.512.5.5.271-.012.5-.22.5-.5v-.592h1.937c.827 0 1.5.673 1.5 1.5v1.584H1.062V4.454c0-.827.673-1.5 1.5-1.5Zm12.876 14H2.562c-.827 0-1.5-.673-1.5-1.5V7.038h15.875v8.416a1.5 1.5 0 0 1-1.499 1.5Z"},null,-1)];var C=e(6959);const $={};var A=(0,C.Z)($,[["render",function(t,o){return(0,n.wg)(),(0,n.iD)("svg",k,M)}]]),H={name:"GorgiasModalFooter",components:{IconEmail:b.Z,IconPhone:x.Z,IconChat:Z.Z,IconCalendar:A},props:{uid:{type:String,required:!0}},methods:{...(0,y.nv)({toggleOverlay:"overlays/toggle"}),closeOverLay(){this.toggleOverlay({namespace:`gorgiasModal-${this.uid}`,ignoreDismissed:!0,component:"gorgias-modal-form"})},handleChatClick(){this.closeOverLay(),window.GorgiasChat.open()}}},L=(0,C.Z)(H,[["render",function(t,o,e,y,b,x){const Z=(0,n.up)("icon-chat"),k=(0,n.up)("icon-phone"),M=(0,n.up)("icon-email"),C=(0,n.up)("icon-calendar");return(0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("div",r,[(0,n.Wm)(Z),(0,n._)("span",{class:"gorgias-modal-footer__label text-other-button-link-uppercase",onClick:o[0]||(o[0]=(...t)=>x.handleChatClick&&x.handleChatClick(...t)),textContent:(0,n.zw)(t.$string("product.contact_form.footer.chat"))},null,8,i)]),(0,n._)("div",s,[(0,n.Wm)(k),(0,n._)("span",{class:"gorgias-modal-footer__label text-other-button-link-uppercase",textContent:(0,n.zw)(t.$string("product.contact_form.footer.call"))},null,8,l),(0,n._)("span",{class:"gorgias-modal-footer__text text-body-s-regular",innerHTML:t.$string("product.contact_form.footer.phone_number")},null,8,c)]),(0,n._)("div",d,[(0,n.Wm)(M),(0,n._)("span",{class:"gorgias-modal-footer__label text-other-button-link-uppercase",textContent:(0,n.zw)(t.$string("product.contact_form.footer.email"))},null,8,u),(0,n._)("span",{class:"gorgias-modal-footer__text text-body-s-regular",innerHTML:t.$string("product.contact_form.footer.email_address")},null,8,g)]),(0,n._)("div",p,[(0,n.Wm)(C),(0,n._)("span",h,[(0,n._)("a",m,(0,n.zw)(t.$string("product.contact_form.footer.book_appointment")),1)])]),(0,n._)("div",f,[(0,n._)("div",{class:"gorgias-modal-footer__hours text-body-s-medium",innerHTML:t.$string("product.contact_form.footer.hours_operation")},null,8,_),(0,n._)("div",{class:"gorgias-modal-footer__hours text-body-s-regular",textContent:(0,n.zw)(t.$string("product.contact_form.footer.hours_1"))},null,8,v),(0,n._)("div",{class:"gorgias-modal-footer__hours text-body-s-regular",textContent:(0,n.zw)(t.$string("product.contact_form.footer.hours_2"))},null,8,w)])])}]])},5061:function(t,o,e){e.r(o),e.d(o,{default:function(){return u}});var n=e(2117);const a={class:"gorgias-modal-form__container"},r=["data-gorgias-contact-form-uid"],i={class:"gorgias-modal-form__contact-footer"};var s=e(5916),l=e(200),c=e(948),d={name:"GorgiasModalForms",components:{Overlay:l.Z,GorgiasModalFooter:c.default},data(){return{uids:[],types:[],directions:[],footers:[]}},computed:{modalForms(){return this.uids.map(((t,o)=>({uid:t,type:this.types[o],direction:this.directions[o],footer:this.footers[o]})))}},mounted(){this.initializeGorgiasButtons(),cnvs.EventBus.listen("initialize-gorgias-buttons",this.initializeGorgiasButtons)},beforeUnmount(){cnvs.EventBus.remove("initialize-gorgias-buttons")},methods:{...(0,s.nv)({toggleOverlay:"overlays/toggle"}),async initializeGorgiasButtons(){await this.$nextTick();const t=document.querySelectorAll('button[js-gorgias="btn"]');if(!t.length)return;let o=!1;t.forEach((t=>{const e=t.getAttribute("data-uid"),n=t.getAttribute("data-type"),a=t.getAttribute("data-direction"),r=t.getAttribute("data-footer");this.uids.includes(e)||this.uids.push(e),n?this.types.push(n):this.types.push("shelf-modal"),a?this.directions.push(a):this.directions.push("up"),r?this.footers.push(r):this.footers.push("false"),t.hasAttribute("data-gorgias-listener-attached")||(t.addEventListener("click",(()=>this.openOverlay(e))),t.setAttribute("data-gorgias-listener-attached","true"),o=!0)})),o&&(this.loadGorgiasScript(),this.autoOpen())},openOverlay(t){this.toggleOverlay({namespace:`gorgiasModal-${t}`,ignoreDismissed:!0,component:"gorgias-modal-form"})},loadGorgiasScript(){const t=document.createElement("script");t.defer=!0,t.src="https://contact.gorgias.help/api/contact-forms/loader.js?v=2",document.body.appendChild(t)},async autoOpen(){const t=new URLSearchParams(location.search),o=t.get("contact");if(!o)return;t.delete("contact");let e=location.pathname;t.toString()&&(e=`${location.pathname}?${t.toString()}`),history.replaceState({html:""},"",e),await cnvs.Sleep(this.$timing("slow")),this.openOverlay(o)}}},u=(0,e(6959).Z)(d,[["render",function(t,o,e,s,l,c){const d=(0,n.up)("gorgias-modal-footer"),u=(0,n.up)("overlay");return(0,n.wg)(),(0,n.iD)("div",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(c.modalForms,(t=>((0,n.wg)(),(0,n.j4)(n.lR,{key:`gorgiasModal-${t.uid}`,to:"body"},[(0,n.Wm)(u,{type:t.type,namespace:`gorgiasModal-${t.uid}`,direction:t.direction,"block-class":"gorgias-modal-form__overlay",source:"gorgiasModal"},{body:(0,n.w5)((o=>[(0,n._)("div",a,[(0,n._)("div",{"data-gorgias-contact-form-uid":t.uid},null,8,r),(0,n._)("div",i,[(0,n.Wm)(d,{uid:t.uid},null,8,["uid"])])])])),_:2},1032,["type","namespace","direction"])])))),128))])}]])}}]);
2//# sourceMappingURL=component.gorgias-modal-forms.min.js.map?v=1790168230509

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.