Skip to content

Commit

Permalink
Merge pull request #9 from Romeo-Rosete/main
Browse files Browse the repository at this point in the history
bombastictranz/demo-editor
  • Loading branch information
bombastictranz authored May 5, 2024
2 parents 343381b + 37db048 commit 0e1114a
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions 5149643(1).js.download
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var _hsp=window._hsp=window._hsp||[];_hsp.push(['addEnabledFeatureGates',[]]);_hsp.push(['useV2Wildcard',true]);!function(t,e,r){if(!document.getElementById(t)){var n=document.createElement("script");for(var a in n.src="https://js.hs-banner.com/v2/5149643/banner.js",n.type="text/javascript",n.id=t,r)r.hasOwnProperty(a)&&n.setAttribute(a,r[a]);var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i)}}("cookieBanner-5149643",0,{"data-cookieconsent":"ignore","data-hs-ignore":true,"data-loader":"hs-scriptloader","data-hsjs-portal":5149643,"data-hsjs-env":"prod","data-hsjs-hublet":"na1"});!function(e,t){if(!document.getElementById(e)){var c=document.createElement("script");c.src="https://js.hs-analytics.net/analytics/1714785600000/5149643.js",c.type="text/javascript",c.id=e;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}}("hs-analytics");!function(t,e,r){if(!document.getElementById(t)){var n=document.createElement("script");for(var a in n.src="https://js.usemessages.com/conversations-embed.js",n.type="text/javascript",n.id=t,r)r.hasOwnProperty(a)&&n.setAttribute(a,r[a]);var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i)}}("hubspot-messages-loader",0,{"data-loader":"hs-scriptloader","data-hsjs-portal":5149643,"data-hsjs-env":"prod","data-hsjs-hublet":"na1"});
16 changes: 16 additions & 0 deletions assets_YJIGb4i01jvw0SRdL5Bt_26e08c7b921d4540835d59bb11ad0e9a
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<svg width="180" height="218" viewBox="0 0 180 218" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="179.869" height="217.61" rx="19.2717" fill="#F0F0F0"/>
<path d="M25.8731 118.441H39.1689C39.4501 118.441 39.7479 118.708 39.7479 119.129V132.207C39.7479 132.628 39.4501 132.895 39.1689 132.895H25.8731C25.5919 132.895 25.2941 132.628 25.2941 132.207V119.129C25.2941 118.708 25.5919 118.441 25.8731 118.441Z" fill="#F06D41" fill-opacity="0.5" stroke="#F06D41" stroke-width="0.802988"/>
<path d="M61.2046 118.441H74.5004C74.7816 118.441 75.0794 118.708 75.0794 119.129V132.207C75.0794 132.628 74.7816 132.895 74.5004 132.895H61.2046C60.9234 132.895 60.6256 132.628 60.6256 132.207V119.129C60.6256 118.708 60.9234 118.441 61.2046 118.441Z" fill="#F06D41" fill-opacity="0.5" stroke="#F06D41" stroke-width="0.802988"/>
<path d="M43.5386 118.441H56.8344C57.1156 118.441 57.4134 118.708 57.4134 119.129V132.207C57.4134 132.628 57.1156 132.895 56.8344 132.895H43.5386C43.2574 132.895 42.9596 132.628 42.9596 132.207V119.129C42.9596 118.708 43.2574 118.441 43.5386 118.441Z" fill="#F06D41" fill-opacity="0.5" stroke="#F06D41" stroke-width="0.802988"/>
<rect x="26.4985" y="12.0449" width="126.069" height="4.81793" rx="2.40896" fill="#D9D9D9"/>
<rect x="98.3658" y="46.9747" width="59.4211" height="5.62091" rx="2.81046" fill="#F06D41" fill-opacity="0.5" stroke="#F06D41" stroke-width="0.802988"/>
<rect x="98.3658" y="59.0197" width="59.4211" height="5.62091" rx="2.81046" fill="#F06D41" fill-opacity="0.5" stroke="#F06D41" stroke-width="0.802988"/>
<rect x="98.3658" y="71.4015" width="59.4211" height="5.62091" rx="2.81046" fill="#F06D41" fill-opacity="0.5" stroke="#F06D41" stroke-width="0.802988"/>
<rect x="98.4015" y="85.4015" width="36.197" height="5.19701" rx="2.59851" fill="#F06D41" fill-opacity="0.5" stroke="#F06D41" stroke-width="0.802988"/>
<rect x="23.2866" y="159.795" width="28.9076" height="28.9076" rx="3.21195" fill="#C7C7C7"/>
<rect x="57.8149" y="159.795" width="28.9076" height="28.9076" rx="3.21195" fill="#C7C7C7"/>
<rect x="126.872" y="159.795" width="28.9076" height="28.9076" rx="3.21195" fill="#C7C7C7"/>
<rect x="92.3433" y="159.795" width="28.9076" height="28.9076" rx="3.21195" fill="#C7C7C7"/>
<rect x="25.2941" y="32.5211" width="61.0271" height="72.2689" rx="7.62838" fill="#F06D41" fill-opacity="0.5" stroke="#F06D41" stroke-width="0.802988"/>
</svg>
8 changes: 8 additions & 0 deletions assets_YJIGb4i01jvw0SRdL5Bt_6219ff85f0694eaea93a41deff335787
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<svg width="181" height="218" viewBox="0 0 181 218" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.423828" width="179.869" height="217.61" rx="19.2717" fill="#F0F0F0"/>
<rect x="13.673" y="46.1718" width="153.371" height="153.371" rx="6.02241" fill="#33B533" fill-opacity="0.2" stroke="#33B533" stroke-width="0.802988"/>
<path d="M27.7463 56.9008H152.449C154.679 56.9008 156.485 58.7919 156.485 61.1265V111.853C156.485 114.187 154.679 116.078 152.449 116.078H27.7463C25.5166 116.078 23.7104 114.187 23.7104 111.853V61.1265C23.7104 58.7919 25.5166 56.9008 27.7463 56.9008Z" fill="#33B533"/>
<path d="M94.2687 122.654H152.584C154.814 122.654 156.62 124.545 156.62 126.88V177.606C156.62 179.941 154.814 181.832 152.584 181.832H94.2687C92.039 181.832 90.2329 179.941 90.2329 177.606V126.88C90.2329 124.545 92.039 122.654 94.2687 122.654Z" fill="#33B533"/>
<path d="M27.8781 122.654H82.6054C84.8351 122.654 86.6412 124.545 86.6412 126.88V177.606C86.6412 179.941 84.8351 181.832 82.6054 181.832H27.8781C25.6484 181.832 23.8423 179.941 23.8423 177.606V126.88C23.8423 124.545 25.6484 122.654 27.8781 122.654Z" fill="#33B533"/>
<rect x="26.9224" y="12.0448" width="126.069" height="4.81793" rx="2.40896" fill="#D9D9D9"/>
</svg>
12 changes: 12 additions & 0 deletions assets_YJIGb4i01jvw0SRdL5Bt_e14d60c9911f407ebd39c2f1e3d5b281
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<svg width="180" height="218" viewBox="0 0 180 218" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="179.869" height="217.61" rx="19.2717" fill="#F0F0F0"/>
<path d="M25.8731 90.0393H39.1689C39.7106 90.0393 40.1493 90.5269 40.1493 91.1288V104.207C40.1493 104.809 39.7106 105.296 39.1689 105.296H25.8731C25.3314 105.296 24.8926 104.809 24.8926 104.207V91.1288C24.8926 90.5269 25.3314 90.0393 25.8731 90.0393Z" fill="#C7C7C7"/>
<path d="M61.2046 90.0393H74.5004C75.0421 90.0393 75.4809 90.5269 75.4809 91.1288V104.207C75.4809 104.809 75.0421 105.296 74.5004 105.296H61.2046C60.6629 105.296 60.2241 104.809 60.2241 104.207V91.1288C60.2241 90.5269 60.6629 90.0393 61.2046 90.0393Z" fill="#C7C7C7"/>
<rect x="13.4015" y="119.401" width="153.197" height="87.197" rx="6.02241" fill="#33B533" fill-opacity="0.2" stroke="#33B533" stroke-width="0.802988"/>
<path d="M43.5386 90.0393H56.8344C57.3761 90.0393 57.8149 90.5269 57.8149 91.1288V104.207C57.8149 104.809 57.3761 105.296 56.8344 105.296H43.5386C42.9969 105.296 42.5581 104.809 42.5581 104.207V91.1288C42.5581 90.5269 42.9969 90.0393 43.5386 90.0393Z" fill="#C7C7C7"/>
<rect x="26.4985" y="12.0449" width="126.069" height="4.81793" rx="2.40896" fill="#D9D9D9"/>
<rect x="97.9644" y="46.5732" width="60.2241" height="6.4239" rx="1.60598" fill="#C7C7C7"/>
<rect x="97.9644" y="58.6182" width="60.2241" height="6.4239" rx="1.60598" fill="#C7C7C7"/>
<rect x="23" y="128" width="135" height="71" rx="1.60598" fill="#33B533"/>
<rect x="25" y="32" width="62" height="52" rx="3.21195" fill="#C7C7C7"/>
</svg>
1 change: 1 addition & 0 deletions snippet.js.download
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(()=>{var e,t,r={271:e=>{function t(e){const t=document.createElement("a");return t.href=e,t.search.split("?")[1]||""}e.exports={getQueryParamsString:t,parseUrlParams:function(e){const r=t(e);return""===r?{}:r.split("&").reduce((function(e,t){const r=t.split("=");return e[r[0]]=decodeURIComponent(r[1]),e}),{})},loadScript:function(e,t=(()=>{})){const r=document.createElement("script");r.type="text/javascript",r.onerror=function(){t(new Error("Script failed to load"))},r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,t())}:r.onload=function(){t()},r.src=e,document.getElementsByTagName("head")[0].appendChild(r)}}}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return r[e](o,o.exports,s),o.loaded=!0,o.exports}s.m=r,s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,r)=>(s.f[r](e,t),t)),[])),s.u=e=>"sentry-browser.min.js",s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="asset_composer:",s.l=(r,n,o,i)=>{if(e[r])e[r].push(n);else{var a,c;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u<d.length;u++){var p=d[u];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){a=p;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",t+o),a.src=r),e[r]=[n];var l=(t,n)=>{a.onerror=a.onload=null,clearTimeout(h);var s=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),s&&s.forEach((e=>e(n))),t)return t(n)},h=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.p="https://static.zdassets.com/ekr/",(()=>{var e={11:0};s.f.j=(t,r)=>{var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,s)=>n=e[t]=[r,s]));r.push(n[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(r=>{if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,a,c]=r,d=0;if(i.some((t=>0!==e[t]))){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);c&&c(s)}for(t&&t(r);d<i.length;d++)o=i[d],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.zEWebpackACJsonp=globalThis.zEWebpackACJsonp||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";class e{constructor(e="",t={},r=!1){this.message=e,this.props=t,this.error=Error(this.message),this.isUserError=r,this.fingerprint=this.message}}const t={},r={},n={};class o{constructor(e,t){this.name=e.name,this.id=e.id,this.features=e.features,this.bootstrap=e.bootstrap,this.win=t,this.doc=t.document}ready(){return new Promise(((e,t)=>{this.createIframeElement().then((r=>{r.addEventListener("load",(()=>{const{contentWindow:n}=r;n&&n.document?e(n.document):t(this.error())})),r.src="about:blank",this.doc.body.appendChild(r)}))}))}injectMetadata(e,t){e&&(e.zendesk={[this.name]:{id:this.id,features:this.features,bootstrap:this.bootstrap}},Object&&Object.freeze&&this.deepFreeze(e.zendesk),e.zEQueue=t)}deepFreeze(e){return Object.freeze(e),void 0===e||Object.getOwnPropertyNames(e).forEach((t=>{null===e[t]||"object"!=typeof e[t]&&"function"!=typeof e[t]||Object.isFrozen(e[t])||this.deepFreeze(e[t])})),e}injectAssets(e,t){if(!e)return;const r=e.getElementsByTagName("head")[0];t.scripts.forEach((t=>{r.appendChild(this.createScriptElement(e,t.src))}))}parentDocumentReady(){return new Promise(((t,r)=>{"loading"!==this.doc.readyState&&this.doc.body?t():this.doc.addEventListener("DOMContentLoaded",(()=>{const{body:n}=this.doc;n?t():r(new e("host page document.body not available"))}))}))}createIframeElement(){return this.parentDocumentReady().then((()=>{const e=this.doc.createElement("iframe");return e.dataset.product=this.name,e.title="No content",e.role="presentation",e.tabIndex=-1,e.allow="microphone *",e.setAttribute("aria-hidden",!0),e.style.cssText="width: 0; height: 0; border: 0; position: absolute; top: -9999px",e}))}createScriptElement(e,t){if(!e)return null;const r=e.createElement("script");return r.type="text/javascript",r.src=t,r}error(){const t={product:this.name,id:this.id,features:this.features};return new e("iframe document not available to load product",t)}}class i{constructor(e,t){this.product=e,this.productIframe=new o(this.product,t)}getProductAssets(e=!1){return e?n[this.product.name].assets:this.product.assets}load(e,t){return this.productIframe.ready().then((r=>{this.productIframe.injectMetadata(r,t),this.productIframe.injectAssets(r,e)})).catch((()=>Promise.reject(this.loadProductError())))}loadProductError(){const{name:t,id:r,features:n}=this.product;return new e("failed to load product",{product:t,id:r,features:n})}}var a=s(271);class c{constructor(e,t){this.zopimKey=e,this.win=t,this.doc=t.document}getProductAssets(){return{zopimSrc:`https://v2.zopim.com/w?${this.zopimKey}`}}load(e){return new Promise(((t,r)=>{try{(0,a.loadScript)(e.zopimSrc),t()}catch(e){r(e)}}))}}const d="__zE_ac_version";class u{constructor(e,t){this.version=this.getVersion(e),this.baseUrl=`https://ekr.zdassets.com/compose/${t}`,this.snippetKey=t}resolveComposeUrl(e=!1){let t=this.baseUrl;return this.version&&(t+=`?${this.getSerializedVersionQueryParam()}`,this.displayWarning()),decodeURI(t)}displayWarning(){console.warn(`You are loading ${this.version.name} version ${this.version.string}`)}getSerializedVersionQueryParam(){return`${d}=${this.version.name}/${this.version.string}`}getVersion(e){let t;try{t=e.localStorage.getItem("ZD-ac-version")}catch{}const r=(0,a.parseUrlParams)(e.location.href)[d]||t;if(r){const e=r.split("/");if(this.validVersion(e[1]))return{name:e[0],string:e[1]}}return null}validVersion(e){return e&&/^\w+$/.test(e)}}class p{constructor(e){this.snippet=e}getProducts(e,n=!1){return new Promise(((s,o)=>{const i=this.snippet.getParentWindow();if(n)i.zEACLoaded=!0,i.$zopim?s(r.products):s(t.products);else{const t=t=>{200===t.status?t.json().then((({products:e})=>{i.zEACLoaded=!0,s(e)})).catch((()=>o(this.error(e)))):o(this.error(e))},r=new u(i,e).resolveComposeUrl();fetch(r).then(t).catch((()=>o(this.error(e))))}}))}loadProducts(e,t=!1){return e.map((e=>{const r=e.getProductAssets(t);return e.load(r,this.snippet.getZEQueue()).catch((e=>Promise.reject(e)))}))}getProductLoaders(e){const t=this.snippet.getParentWindow();return e.map((e=>"zopim_chat"===e.name?new c(e.id,t):new i(e,t)))}error(t){return new e("compose request failed",{key:t})}}class l{constructor(e){this.win=e,this.doc=e.document}getKey(){return new Promise(((t,r)=>r(new e("Key is missing from snippet",{},!0))))}getZEQueue(){return null}getParentWindow(){return this.win}}class h extends l{getKey(){return new Promise(((t,r)=>{const{zendeskHost:n}=this.doc;return n?this._isHostMapped(n)?fetch(`https://${n}/embeddable/zendesk_host`).then((n=>{200===n.status?n.json().then((e=>{t(`web_widget/${e.zendesk_host}`)})).catch((t=>r(new e(t.message)))):r(new e("zendesk_host request failed"))})).catch((t=>r(new e(t.message)))):t(`web_widget/${n}`):r(Error("Zendesk host is not defined"))}))}getZEQueue(){return this.doc.zEQueue}getParentWindow(){return this.win.parent}_isHostMapped(e){return-1===e.indexOf(".zendesk.com")&&-1===e.indexOf(".zendesk-staging.com")}}class m extends l{static isSnippetPresent(e){return e.document.getElementById("ze-snippet")}getKey(){return new Promise(((t,r)=>{const n=this._getScript(this.win.zE);if(n){const e=(0,a.parseUrlParams)(n.src);if(e&&e.key)return t(e.key)}return r(new e("Key is missing from snippet",{},!0))}))}getZEQueue(){return this.win.zE._}_getScript(e){return m.isSnippetPresent(this.win)||(e&&e.s?e.s:void 0)}}class g extends l{getKey(){return new Promise(((e,t)=>e(`zopim_chat/${(0,a.getQueryParamsString)(g.getScriptSrc(this.win))}`)))}static getScriptSrc(e){if(e.$zopim&&e.$zopim.s)return e.$zopim.s.src;const t=document.getElementsByTagName("script"),r=/.*zopim.(com|net|org)\//;let n;for(let e=0,s=t.length;e<s;e++)if(n=t[e].src||"",r.test(n))return n}static isSnippetPresent(e){return!!g.getScriptSrc(e)}}let f=null;const w={autoSessionTracking:!1,enabled:!window.zESettings||void 0===window.zESettings.errorReporting||Boolean(window.zESettings.errorReporting),dsn:"https://872255ec19884ba7a0c81c005eef1913@zendesk-eu.my.sentry.io/41",environment:"production",release:"asset-composer@v71",sampleRate:.001,defaultIntegrations:!1},y=()=>new Promise((e=>{f?e(f):s.e(996).then(s.bind(s,858)).then((t=>{const{BrowserClient:r,makeFetchTransport:n,defaultStackParser:s,Hub:o,Integrations:i}=t,a=new r({...w,integrations:[new i.InboundFilters,new i.FunctionToString,new i.HttpContext],transport:n,stackParser:s});f=new o(a),e(f)}))}));function b(t){return t&&t instanceof e?y().then((e=>{e.withScope((r=>{t.fingerprint&&r.setFingerprint(t.fingerprint),r.setLevel("warning"),e.captureException(t.error)})),window.console&&t.isUserError&&window.console.error(t.message)})):y().then((e=>{e.captureException(t)}))}!function(){try{if("function"!=typeof window.zE){const e=function(){const e=[],t=function(){e.push(arguments)};return t._=e,t.t=Date.now(),t}();window.zE=e,window.zEmbed=e}if(window.zEACLoaded)return;const e=function(e){return m.isSnippetPresent(e)?new m(e):e.document.zendeskHost&&e.document.zEQueue?new h(e):g.isSnippetPresent(e)?new g(e):new m(e)}(window),t=new p(e),r=!1;e.getKey().then((e=>t.getProducts(e,r))).then((e=>{if(e&&e.length)return Promise.all(t.loadProducts(t.getProductLoaders(e),r))})).catch((e=>b(e)))}catch(e){b(e)}}()})()})();

0 comments on commit 0e1114a

Please sign in to comment.