DELETE FROM KEYWORDS WHERE ID_DOMAINE=36657762DoneDoneDone
URL:legalbooks.ie
Connection: keep-alive
Date: Sat, 02 Nov 2024 10:19:43 GMT
Content-Length: 0
Content-Type: text/html; charset=utf-8
Location: https://legalbooks.ie/
Server: cloudflare
Vary: Accept
x-sorting-hat-podid: 323
x-sorting-hat-shopid: 17655181
x-storefront-renderer-rendered: 1
x-redirect-reason: https_required
x-frame-options: DENY
content-security-policy: frame-ancestors 'none';
x-shopid: 17655181
x-shardid: 323
powered-by: Shopify
server-timing: processing;dur=14, db;dur=5, asn;desc="12322", edge;desc="CDG", country;desc="FR", pageType;desc="index", servedBy;desc="rfsd", requestID;desc="f87df201-ed6a-45d1-8fed-b5c3df1d6842-1730542783"
x-dc: gcp-europe-west1,gcp-europe-west4,gcp-europe-west4
x-request-id: f87df201-ed6a-45d1-8fed-b5c3df1d6842-1730542783
Alt-Svc: h3=":443"; ma=86400
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=C4VmZvfRZ6o8V1ONVIYsmr0d2S%2FVgExsOYBgeaTilstUt5QphgutPPrXtwqcUSh0s7SIYixikhR29et3wOf3hDluUghedzdjUQs7sNu3qXpDUKLO0nmXek5ZtKmaops%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}
Server-Timing: cfRequestDuration;dur=70.000172
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Permitted-Cross-Domain-Policies: none
X-Download-Options: noopen
CF-RAY: 8dc3634e781522b7-CDG
Location => https://legalbooks.ie/
Status => 301
(vide) Tentative en https
<!doctype html>
<html class="no-js" lang="en">
<head><!-- Begin Shopney Mobile App Banner 1.0.1 --><link rel="stylesheet" href="https://bnnr.shopney.co/content/css/shopneyappbanner.css?v=1.0.1">
<script src="https://bnnr.shopney.co/content/js/shopneyappbanner.js?v=1.0.1"></script>
<meta name="sb:title" content="Legal & General App">
<meta name="sb:desc" content="Four Courts Shop App">
<meta name="sb:icon" content="https://cdn.shopify.com/s/files/1/1765/5181/t/16/assets/shopneybanner_icon.png?v=1575588860">
<meta name="sb:itunes" content="https://apps.apple.com/ie/app/legal-general/id1489713321">
<meta name="sb:play" content="https://play.google.com/store/apps/details?id=co.shopney.legalbooks">
<meta name="sb:button" content="Download Now "><!-- End Shopney Mobile App Banner 1.0.1 -->
<script src="//legalbooks.ie/cdn/shop/t/16/assets/jquery.3.4.0.ets.js?v=157398224963696752601574956334" type="text/javascript"></script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, height=device-height, minimum-scale=1.0, maximum-scale=1.0">
<meta name="theme-color" content="#2570c8">
<!-- Global Site Tag (gtag.js) - Google AdWords: 2156104145 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-860390800"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-860390800', {'send_page_view': false});
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5QXR5H9V');</script>
<!-- End Google Tag Manager -->
<!-- Microsoft Ads Dynamic Remarketing -->
<script>
window.uetq = window.uetq || [];
window.uetq.push('event', '',
{'ecomm_prodid': [],
'ecomm_pagetype': 'home', });
</script><title>LegalBooks.ie – Legal & General / Legalbooks.ie
</title><meta name="description" content="Legal and General is the Shop in the Four Courts Dublin We sell Legal or law books, stationery, Attire or Clothes, and professional gifts"><link rel="canonical" href="https://legalbooks.ie/"><link rel="shortcut icon" href="//legalbooks.ie/cdn/shop/files/appicon_48x48.png?v=1613685446" type="image/png"><link rel="preload" as="style" href="//legalbooks.ie/cdn/shop/t/16/assets/theme.scss.css?v=71787340626396438981703328682">
<meta property="og:type" content="website">
<meta property="og:title" content="LegalBooks.ie"><meta property="og:description" content="Legal and General is the Shop in the Four Courts Dublin We sell Legal or law books, stationery, Attire or Clothes, and professional gifts"><meta property="og:url" content="https://legalbooks.ie/">
<meta property="og:site_name" content="Legal & General / Legalbooks.ie"><meta name="twitter:card" content="summary"><meta name="twitter:title" content="LegalBooks.ie">
<meta name="twitter:description" content="Legal and General is the Shop in the Four Courts Dublin We sell Legal or law books, stationery, Attire or Clothes, and professional gifts">
<link rel="preconnect" href="//fonts.shopifycdn.com">
<link rel="dns-prefetch" href="//productreviews.shopifycdn.com">
<link rel="dns-prefetch" href="//maps.googleapis.com">
<link rel="dns-prefetch" href="//maps.gstatic.com">
<script>window.performance && window.performance.mark && window.performance.mark('shopify.content_for_header.start');</script><meta name="google-site-verification" content="3jgr5bgOztpqwvXetMECt3aRlpgL6PSXk2jdy_0Hrmc">
<meta id="shopify-digital-wallet" name="shopify-digital-wallet" content="/17655181/digital_wallets/dialog">
<meta name="shopify-checkout-api-token" content="2b72362c967bb03da3da5849f268f72f">
<meta id="in-context-paypal-metadata" data-shop-id="17655181" data-venmo-supported="false" data-environment="production" data-locale="en_US" data-paypal-v4="true" data-currency="EUR">
<link rel="alternate" hreflang="x-default" href="https://legalbooks.ie/">
<link rel="alternate" hreflang="en-GB" href="https://legalbooks.ie/en-gb">
<link rel="alternate" hreflang="en-IE" href="https://legalbooks.ie/">
<script async="async" src="/checkouts/internal/preloads.js?locale=en-IE"></script>
<link rel="preconnect" href="https://shop.app" crossorigin="anonymous">
<script async="async" src="https://shop.app/checkouts/internal/preloads.js?locale=en-IE&shop_id=17655181" crossorigin="anonymous"></script>
<script id="apple-pay-shop-capabilities" type="application/json">{"shopId":17655181,"countryCode":"IE","currencyCode":"EUR","merchantCapabilities":["supports3DS"],"merchantId":"gid:\/\/shopify\/Shop\/17655181","merchantName":"Legal \u0026 General \/ Legalbooks.ie","requiredBillingContactFields":["postalAddress","email","phone"],"requiredShippingContactFields":["postalAddress","email","phone"],"shippingType":"shipping","supportedNetworks":["visa","maestro","masterCard","amex"],"total":{"type":"pending","label":"Legal \u0026 General \/ Legalbooks.ie","amount":"1.00"},"shopifyPaymentsEnabled":true,"supportsSubscriptions":false}</script>
<script id="shopify-features" type="application/json">{"accessToken":"2b72362c967bb03da3da5849f268f72f","betas":["rich-media-storefront-analytics"],"domain":"legalbooks.ie","predictiveSearch":true,"shopId":17655181,"smart_payment_buttons_url":"https:\/\/legalbooks.ie\/cdn\/shopifycloud\/payment-sheet\/assets\/latest\/spb.en.js","dynamic_checkout_cart_url":"https:\/\/legalbooks.ie\/cdn\/shopifycloud\/payment-sheet\/assets\/latest\/dynamic-checkout-cart.en.js","locale":"en"}</script>
<script>var Shopify = Shopify || {};
Shopify.shop = "legalbooks-2.myshopify.com";
Shopify.locale = "en";
Shopify.currency = {"active":"EUR","rate":"1.0"};
Shopify.country = "IE";
Shopify.theme = {"name":"Warehouse","id":78688157779,"schema_name":"Warehouse","schema_version":"1.6.4","theme_store_id":871,"role":"main"};
Shopify.theme.handle = "null";
Shopify.theme.style = {"id":null,"handle":null};
Shopify.cdnHost = "legalbooks.ie/cdn";
Shopify.routes = Shopify.routes || {};
Shopify.routes.root = "/";</script>
<script type="module">!function(o){(o.Shopify=o.Shopify||{}).modules=!0}(window);</script>
<script>!function(o){function n(){var o=[];function n(){o.push(Array.prototype.slice.apply(arguments))}return n.q=o,n}var t=o.Shopify=o.Shopify||{};t.loadFeatures=n(),t.autoloadFeatures=n()}(window);</script>
<script>window.ShopifyPay = window.ShopifyPay || {};
window.ShopifyPay.apiHost = "shop.app\/pay";</script>
<script id="shop-js-analytics" type="application/json">{"pageType":"index"}</script>
<script>
window.Shopify = window.Shopify || {};
if (!window.Shopify.featureAssets) window.Shopify.featureAssets = {};
window.Shopify.featureAssets['shop-js'] = {"login-button":["modules/client.login-button_8knyv73M.en.esm.js","modules/chunk.common_DCmY8Zac.esm.js"],"shop-pay-payment-request":["modules/client.shop-pay-payment-request_u7RlcaGf.en.esm.js","modules/chunk.common_DCmY8Zac.esm.js","modules/client.login-button_8knyv73M.en.esm.js","modules/chunk.shop-pay_Dgp_3uvF.esm.js"],"payment-terms":["modules/client.payment-terms_BzPahTuF.en.esm.js","modules/chunk.common_DCmY8Zac.esm.js","modules/client.login-button_8knyv73M.en.esm.js"],"pay-button":["modules/client.pay-button_D8dp9wxo.en.esm.js","modules/chunk.common_DCmY8Zac.esm.js"],"discount-app":["modules/client.discount-app_BHUzgLHf.en.esm.js","modules/chunk.common_DCmY8Zac.esm.js"],"avatar":["modules/client.avatar_BTnouDA3.en.esm.js"],"init-shop-for-new-customer-accounts":["modules/client.init-shop-for-new-customer-accounts_mXKTRX4N.en.esm.js","modules/chunk.common_DCmY8Zac.esm.js","modules/client.login-button_8knyv73M.en.esm.js"],"init-shop-email-lookup-coordinator":["modules/client.init-shop-email-lookup-coordinator_ZIyf0vSn.en.esm.js","modules/chunk.common_DCmY8Zac.esm.js"],"init-customer-accounts-sign-up":["modules/client.init-customer-accounts-sign-up_XBTSMnuG.en.esm.js","modules/chunk.common_DCmY8Zac.esm.js","modules/client.login-button_8knyv73M.en.esm.js"],"init-customer-accounts":["modules/client.init-customer-accounts_ONkwF8rK.en.esm.js","modules/chunk.common_DCmY8Zac.esm.js","modules/client.login-button_8knyv73M.en.esm.js"]};
</script>
<script>(function() {
function asyncLoad() {
var urls = ["https:\/\/chimpstatic.com\/mcjs-connected\/js\/users\/35ba8d6c290cc662fd999fa49\/8c1db26cbf1039a40285168bc.js?shop=legalbooks-2.myshopify.com","https:\/\/geolocation-recommendations.shopifyapps.com\/locale_bar\/script.js?shop=legalbooks-2.myshopify.com","https:\/\/stores.enzuzo.com\/apps\/enzuzo\/static\/js\/__enzuzo-cookiebar.js?uuid=c620aab2-5f99-11ee-8cf7-bbf6aaf13b3b\u0026shop=legalbooks-2.myshopify.com"];
for (var i = 0; i < urls.length; i++) {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = urls[i];
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
}
};
if(window.attachEvent) {
window.attachEvent('onload', asyncLoad);
} else {
window.addEventListener('load', asyncLoad, false);
}
})();</script>
<script id="__st">var __st={"a":17655181,"offset":0,"reqid":"b5981100-6688-4fb3-a17a-5f21fb6c25e4-1730542783","pageurl":"legalbooks.ie\/","u":"17b4dd225fd1","p":"home"};</script>
<script>window.ShopifyPaypalV4VisibilityTracking = true;</script>
<script id="captcha-bootstrap">!function(){'use strict';const t='contact',e='account',n='new_comment',o=[[t,t],['blogs',n],['comments',n],[t,'customer']],c=[[e,'customer_login'],[e,'guest_login'],[e,'recover_customer_password'],[e,'create_customer']],r=t=>t.map((([t,e])=>`form[action*='/${t}']:not([data-nocaptcha='true']) input[name='form_type'][value='${e}']`)).join(',');function s(t,e,n=!1){try{const o=window.sessionStorage;for(const[n,c]of Object.entries(JSON.parse(o.getItem(e))))t.elements[n]&&(t.elements[n].value=c);n&&o.removeItem(e)}catch{}}const a='form_key',i=['recaptcha-v3-token','g-recaptcha-response','h-captcha-response','password'],u=()=>{try{return window.sessionStorage}catch{return}},m=t=>t.elements[a],f='form_type',d='cptcha';function p(t){t.dataset[d]=!0}const l=window,h=l.document,_='Shopify',y='ce_forms',E='captcha';let v=!1;((t,e)=>{const n=(g='f06e6c50-85a8-45c8-87d0-21a2b65856fe','https://cdn.shopify.com/shopifycloud/storefront-forms-hcaptcha/ce_storefront_forms_captcha_hcaptcha.v1.4.0.iife.js',T={infoText:'Protected by hCaptcha',privacyText:'Privacy',termsText:'Terms'},(t,e,n)=>{const o=l[_][y],c=o.bindForm;if(c)return c(t,g,e,T).then(n);o.q.push([[t,g,e,T],n]),v||(h.body.append(Object.assign(h.createElement('script'),{id:'captcha-provider',async:!0,src:'https://cdn.shopify.com/shopifycloud/storefront-forms-hcaptcha/ce_storefront_forms_captcha_hcaptcha.v1.4.0.iife.js'})),v=!0)});var g,T;l[_]=l[_]||{},l[_][y]=l[_][y]||{},l[_][y].q=[],l[_][E]=l[_][E]||{},l[_][E].protect=function(t,e){n(t,void 0,e),p(t)},Object.freeze(l[_][E]),function(t,e,n,l,h,_){const[y,E,v,g]=function(t,e,n){const s=e?o:[],a=t?c:[],i=[...s,...a],u=[...o],m=r(i),f=r(s),d=n&&r(i.filter((([t,e])=>n.includes(e)))),p=r(u),l=t=>()=>t?[...document.querySelectorAll(t)].map((t=>t.form)):[];return[l(m),l(f),l(d),l(p)]}(l,h,_),T=t=>{const e=t.target;return e instanceof HTMLFormElement?e:e&&e.form},S=t=>y().includes(t);t.addEventListener('submit',(t=>{const e=T(t);if(!e)return;const n=S(e)&&!e.dataset.hcaptchaBound&&!e.dataset.recaptchaBound,o=m(e),c=g().includes(e)&&(!o||!o.value);(n||c)&&t.preventDefault(),c&&!n&&(function(t){try{if(!u())return;!function(t){const e=u();if(!e)return;const n=m(t);if(!n)return;const o=n.value;o&&e.removeItem(o)}(t);const e=Array.from(Array(32),(()=>Math.random().toString(36)[2])).join('');!function(t,e){m(t)||t.append(Object.assign(document.createElement('input'),{type:'hidden',name:a})),t.elements[a].value=e}(t,e),function(t,e){const n=u();if(!n)return;const o=[...t.querySelectorAll('input[type="password"]')].map((({name:t})=>t)),c=[...i,...o],r={};for(const[s,a]of new FormData(t).entries())c.includes(s)||(r[s]=a);n.setItem(e,JSON.stringify(r))}(t,e)}catch(e){console.error('failed to persist form',e)}}(e),e.submit())}));const w=(t,e)=>{t&&!t.dataset[d]&&(n(t,e.some((e=>e===t))),p(t))};for(const o of['focusin','change'])t.addEventListener(o,(t=>{const e=T(t);S(e)&&w(e,E())}));const A=e.get('form_key'),b=e.get(f),I=A&&b;t.addEventListener('DOMContentLoaded',(()=>{const t=E();if(I)for(const e of t)e.elements[f].value===b&&s(e,A);[...new Set([...v(),...y().filter((t=>'true'===t.dataset.shopifyCaptcha))])].forEach((e=>w(e,t)))}))}(h,new URLSearchParams(l.location.search),n,!0,!0,['guest_login'])})()}();</script>
<script integrity="sha256-EGCDRYTvIEOXsReXgqGwkAR+5Dl8tickSrieA/ZcQwc=" data-source-attribution="shopify.loadfeatures" defer="defer" src="//legalbooks.ie/cdn/shopifycloud/shopify/assets/storefront/load_feature-1060834584ef204397b1179782a1b090047ee4397cb627244ab89e03f65c4307.js" crossorigin="anonymous"></script>
<script crossorigin="anonymous" defer="defer" src="//legalbooks.ie/cdn/shopifycloud/shopify/assets/shopify_pay/storefront-80e528be853eac23af2454534897ca9536b1d3d04aa043b042f34879a3c111c8.js?v=20220906"></script>
<script data-source-attribution="shopify.dynamic_checkout.dynamic.init">var Shopify=Shopify||{};Shopify.PaymentButton=Shopify.PaymentButton||{isStorefrontPortableWallets:!0,init:function(){window.Shopify.PaymentButton.init=function(){};var t=document.createElement("script");t.src="https://legalbooks.ie/cdn/shopifycloud/portable-wallets/latest/portable-wallets.en.js",t.type="module",document.head.appendChild(t)}};
</script>
<script data-source-attribution="shopify.dynamic_checkout.buyer_consent">
function portableWalletsHideBuyerConsent(e){var t=document.getElementById("shopify-buyer-consent"),n=document.getElementById("shopify-subscription-policy-button");t&&n&&(t.classList.add("hidden"),t.setAttribute("aria-hidden","true"),n.removeEventListener("click",e))}function portableWalletsShowBuyerConsent(e){var t=document.getElementById("shopify-buyer-consent"),n=document.getElementById("shopify-subscription-policy-button");t&&n&&(t.classList.remove("hidden"),t.removeAttribute("aria-hidden"),n.addEventListener("click",e))}window.Shopify?.PaymentButton&&(window.Shopify.PaymentButton.hideBuyerConsent=portableWalletsHideBuyerConsent,window.Shopify.PaymentButton.showBuyerConsent=portableWalletsShowBuyerConsent);
</script>
<script data-source-attribution="shopify.dynamic_checkout.cart.bootstrap">document.addEventListener("DOMContentLoaded",(function(){function t(){return document.querySelector("#dynamic-checkout-cart")}if(t())Shopify.PaymentButton.init();else{new MutationObserver((function(e,n){t()&&(Shopify.PaymentButton.init(),n.disconnect())})).observe(document.body,{childList:!0,subtree:!0})}}));
</script>
<script id='scb4127' type='text/javascript' async='' src='https://legalbooks.ie/cdn/shopifycloud/privacy-banner/storefront-banner.js'></script>
<style id="shopify-accelerated-checkout-cart">
#dynamic-checkout-cart {
container-type: inline-size;
container-name: dcc;
width: 100%;
}
.wallet-cart-grid {
--wallet-button-height-horizontal: clamp(
25px,
var(
--shopify-accelerated-checkout-button-inline-size,
42px
),
55px
);
--wallet-button-height-vertical: clamp(
25px,
var(
--shopify-accelerated-checkout-button-block-size,
54px
),
55px
);
--wallet-button-width-horizontal: 150px;
--wallet-button-width-vertical: 100%;
--wallet-button-border-radius: var(
--shopify-accelerated-checkout-button-border-radius,
4px
);
--wallet-grid-margin-horizontal: 0 -5px -5px -5px;
--wallet-button-container-margin-horizontal: 0 5px 5px;
--wallet-button-container-margin-vertical: var(--shopify-accelerated-checkout-row-gap, 8px) 0 0;
}
@keyframes acceleratedCheckoutLoadingSkeleton {
50% {opacity: var(--shopify-accelerated-checkout-skeleton-animation-opacity-start, 1);}
75% {opacity: var(--shopify-accelerated-checkout-skeleton-animation-opacity-end, 0.5);}
100% {opacity: var(--shopify-accelerated-checkout-skeleton-animation-opacity-start, 1);}
}
.wallet-cart-button__skeleton {
animation: acceleratedCheckoutLoadingSkeleton var(--shopify-accelerated-checkout-skeleton-animation-duration, 4s) var(--shopify-accelerated-checkout-skeleton-animation-timing-function, ease) infinite;
animation-delay: -0.168s;
background-color: var(--shopify-accelerated-checkout-skeleton-background-color, #dedede);
box-sizing: border-box;
text-decoration: none !important;
}
.wallet-cart-grid {
margin: var(--wallet-grid-margin-horizontal);
padding: 0;
display: flex;
flex-direction: row;
justify-content: var(--shopify-accelerated-checkout-inline-alignment, start);
gap: 0 !important;
}
.wallet-cart-grid--skeleton {
justify-content: var(--shopify-accelerated-checkout-inline-alignment, inherit);
}
.wallet-cart-button-container {
position: relative;
margin: var(--wallet-button-container-margin-horizontal);
}
.wallet-cart-button-container,
.wallet-cart-button {
width: var(--wallet-button-width-horizontal);
height: var(--wallet-button-height-horizontal);
border-radius: var(--wallet-button-border-radius);
list-style-type: none !important;
text-align: center;
flex-shrink: 0;
flex-grow: 0;
}
.additional-checkout-buttons--vertical .wallet-cart-grid {
justify-content: start;
flex-direction: column;
margin: 0;
}
.additional-checkout-buttons--vertical .wallet-cart-grid .wallet-cart-button-container {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
margin: var(--wallet-button-container-margin-vertical);
}
.additional-checkout-buttons--vertical .wallet-cart-grid .wallet-cart-button-container:first-child {
margin-top: 0;
}
.additional-checkout-buttons--vertical .wallet-cart-grid .wallet-cart-button {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
}
.additional-checkout-buttons--horizontal .wallet-cart-grid .wallet-cart-button-container,
.additional-checkout-buttons--horizontal .wallet-cart-grid .wallet-cart-button {
width: var(--wallet-button-width-horizontal) !important;
height: var(--wallet-button-height-horizontal) !important;
border-radius: var(--wallet-button-border-radius) !important;
}
@container dcc (width >= 150px) and (width <= 500px) {
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(1)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(2))) {
justify-content: start;
flex-direction: column;
margin: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(1)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(2))) .wallet-cart-button-container {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
margin: var(--wallet-button-container-margin-vertical);
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(1)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(2))) .wallet-cart-button-container:first-child {
margin-top: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(1)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(2))) .wallet-cart-button {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
}
}
@container dcc (width <= 310px) {
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(2)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(3))) {
justify-content: start;
flex-direction: column;
margin: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(2)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(3))) .wallet-cart-button-container {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
margin: var(--wallet-button-container-margin-vertical);
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(2)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(3))) .wallet-cart-button-container:first-child {
margin-top: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(2)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(3))) .wallet-cart-button {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
}
}
@container dcc (width <= 470px) {
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(3)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(4))) {
justify-content: start;
flex-direction: column;
margin: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(3)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(4))) .wallet-cart-button-container {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
margin: var(--wallet-button-container-margin-vertical);
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(3)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(4))) .wallet-cart-button-container:first-child {
margin-top: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(3)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(4))) .wallet-cart-button {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
}
}
@container dcc (width <= 630px) {
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(4)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(5))) {
justify-content: start;
flex-direction: column;
margin: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(4)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(5))) .wallet-cart-button-container {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
margin: var(--wallet-button-container-margin-vertical);
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(4)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(5))) .wallet-cart-button-container:first-child {
margin-top: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(4)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(5))) .wallet-cart-button {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
}
}
@container dcc (width <= 790px) {
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(5)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(6))) {
justify-content: start;
flex-direction: column;
margin: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(5)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(6))) .wallet-cart-button-container {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
margin: var(--wallet-button-container-margin-vertical);
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(5)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(6))) .wallet-cart-button-container:first-child {
margin-top: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(5)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(6))) .wallet-cart-button {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
}
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(6)) {
justify-content: start;
flex-direction: column;
margin: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(6)) .wallet-cart-button-container {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
margin: var(--wallet-button-container-margin-vertical);
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(6)) .wallet-cart-button-container:first-child {
margin-top: 0;
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(6)) .wallet-cart-button {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
}
@media screen and (max-width: 750px) {
.wallet-cart-grid {
justify-content: start;
flex-direction: column;
max-width: none;
margin: 0;
}
.wallet-cart-grid .wallet-cart-button-container {
max-width: none;
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
margin: var(--wallet-button-container-margin-vertical);
}
.wallet-cart-grid .wallet-cart-button-container:first-child {
margin-top: 0;
}
.wallet-cart-grid .wallet-cart-button {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
}
}
@supports (not (container-type: inline-size)) or (not (selector(:has(*)))) {
.wallet-cart-grid {
justify-content: start;
flex-direction: column;
margin: 0;
}
.wallet-cart-button-container {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
margin: var(--wallet-button-container-margin-vertical);
}
.wallet-cart-button-container:first-child {
margin-top: 0;
}
.wallet-cart-grid .wallet-cart-button {
width: var(--wallet-button-width-vertical);
height: var(--wallet-button-height-vertical);
}
}
#shopify-buyer-consent {
margin-top: 1em;
display: inline-block;
width: 100%;
}
#shopify-buyer-consent.hidden {
display: none;
}
#shopify-subscription-policy-button {
background: none;
border: none;
padding: 0;
text-decoration: underline;
font-size: inherit;
cursor: pointer;
}
#shopify-subscription-policy-button::before {
box-shadow: none;
}
</style>
<style id="shopify-accelerated-checkout-cart-grid-with-margin-top">.additional-checkout-buttons--vertical .wallet-cart-grid .wallet-cart-button-container:first-child {
margin-top: 8px;
}
@container dcc (width >= 150px) and (width <= 500px) {
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(1)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(2))) .wallet-cart-button-container:first-child {
margin-top: 8px;
}
}
@container dcc (width <= 310px) {
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(2)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(3))) .wallet-cart-button-container:first-child {
margin-top: 8px;
}
}
@container dcc (width <= 470px) {
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(3)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(4))) .wallet-cart-button-container:first-child {
margin-top: 8px;
}
}
@container dcc (width <= 630px) {
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(4)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(5))) .wallet-cart-button-container:first-child {
margin-top: 8px;
}
}
@container dcc (width <= 790px) {
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(5)).wallet-cart-grid:not(:has(>.wallet-cart-button-container:nth-of-type(6))) .wallet-cart-button-container:first-child {
margin-top: 8px;
}
}
.wallet-cart-grid:has(>.wallet-cart-button-container:nth-of-type(6)) .wallet-cart-button-container:first-child {
margin-top: 8px;
}
@media screen and (max-width: 750px) {
.wallet-cart-grid .wallet-cart-button-container:first-child {
margin-top: 8px;
}
}
@supports (not (container-type: inline-size)) or (not (selector(:has(*)))) {
.wallet-cart-button-container:first-child {
margin-top: 8px;
}
}
</style>
<script>window.performance && window.performance.mark && window.performance.mark('shopify.content_for_header.end');</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://legalbooks.ie"
}]
}
</script>
<script>
// This allows to expose several variables to the global scope, to be used in scripts
window.theme = {
template: "index",
localeRootUrl: '',
shopCurrency: "EUR",
cartCount: 0,
customerId: null,
moneyFormat: "€{{amount}}",
moneyWithCurrencyFormat: "€{{amount}} EUR",
useNativeMultiCurrency: true,
currencyConversionEnabled: false,
currencyConversionMoneyFormat: "money_format",
currencyConversionRoundAmounts: true,
showDiscount: true,
discountMode: "saving",
searchMode: "product,page",
cartType: "drawer"
};
window.languages = {
collectionOnSaleLabel: "Save {{savings}}",
productFormUnavailable: "Unavailable",
productFormAddToCart: "Add to cart",
productFormSoldOut: "Sold out",
shippingEstimatorNoResults: "No shipping could be found for your address.",
shippingEstimatorOneResult: "There is one shipping rate for your address:",
shippingEstimatorMultipleResults: "There are {{count}} shipping rates for your address:",
shippingEstimatorErrors: "There are some errors:"
};
window.lazySizesConfig = {
loadHidden: false,
hFac: 0.8,
expFactor: 3,
customMedia: {
'--phone': '(max-width: 640px)',
'--tablet': '(min-width: 641px) and (max-width: 1023px)',
'--lap': '(min-width: 1024px)'
}
};
document.documentElement.className = document.documentElement.className.replace('no-js', 'js');
</script>
<script src="//legalbooks.ie/cdn/shop/t/16/assets/lazysizes.min.js?v=38423348123636194381573221975" async></script>
<script src="//cdn.shopify.com/s/javascripts/currencies.js" defer></script>
<script src="//polyfill-fastly.net/v3/polyfill.min.js?unknown=polyfill&features=fetch,Element.prototype.closest,Element.prototype.matches,Element.prototype.remove,Element.prototype.classList,Array.prototype.includes,Array.prototype.fill,String.prototype.includes,String.prototype.padStart,Object.assign,CustomEvent,Intl,URL,DOMTokenList,IntersectionObserver,IntersectionObserverEntry" defer></script>
<script src="//legalbooks.ie/cdn/shop/t/16/assets/libs.min.js?v=36629197183099365621573221975" defer></script>
<script src="//legalbooks.ie/cdn/shop/t/16/assets/theme.min.js?v=39784513580163524061573221976" defer></script>
<script src="//legalbooks.ie/cdn/shop/t/16/assets/custom.js?v=90373254691674712701573221974" defer></script>
<link rel="stylesheet" href="//legalbooks.ie/cdn/shop/t/16/assets/theme.scss.css?v=71787340626396438981703328682">
<link href="//legalbooks.ie/cdn/shop/t/16/assets/ets_instagram_shopping_slider.css?v=85998654889071154501574956330" rel="stylesheet" type="text/css" media="all">
<script src="//legalbooks.ie/cdn/shop/t/16/assets/omgrfq-chunk-vendors-app.js?v=73008521471246982281610358885" type="text/javascript"></script>
<script id="omgrfq-script" type='text/javascript'>
var OMGRFQConfigs = {"app_url":"https:\/\/apps.omegatheme.com\/quote-list","store":"legalbooks-2.myshopify.com","theme_id":78688157779,"settings":{"enable_app":"0","enable_all_products":"1","enable_manual_products":"0","manual_products":[],"enable_automate_products":"0","automate_kind_condition":"AND","addConditions":"[{\"selectedType\":\"type\",\"isChoosen\":\"contain\",\"valueCondition\":\"\",\"isString\":\"true\",\"isNumber\":\"false\",\"isCustomer\":\"false\",\"isInventory\":\"false\",\"isTime\":\"false\"}]","store_themes":"78688157779","allow_out_stock":"1","allow_collection_button":"0","show_next_cart":"0","hide_add_cart":"0","hide_add_cart_collection":"0","hide_price":"0","hide_price_collection":"0","show_view_button":"1","view_button_manual":"0","show_view_button_empty":"1","redirect_link":"","typeof_dialog":"1","use_google_recaptcha":"0","ggsite_key":"","button_text":"Add to Quote","view_quote_mess":"View Quote","view_history_quotes_mess":"View History Quotes","popup_shopping_mess":"Continue Shopping","empty_quote_mess":"Your quote is currently empty.","add_quote_success_mess":"Add product to quote successfully!","submit_quote_button":"Submit Request","submitting_quote_mess":"Submitting Request We'll get back to you asap.","success_submit_mess":"Thank you for requesting a quote We'll get back to you asap.","unsuccess_submit_mess":"Error when submitting a request a quote!","product_text":"Product","option_text":"Option","quantity_text":"Quantity","remove_text":"Remove","form_name":"Name","form_name_desc":"Enter your name","form_email":"Email","form_email_desc":"Enter your email","form_message":"Message","form_message_desc":"Message","using_email":"0","admin_email_port":"465","admin_email_encryption":"ssl","account_type":"","customer_email_subject":"Thanks for your request","timezone":"UTC","calendar_theme":"airbnb","calendar_lang":"en","customcss":".product-form__info-item{\nmin-width: 200px;\n}\n.omgrfq-product-button .omgrfq-btn-quotes{\npadding: 12px;\n}\n","position_button":"price","check_install":"1","hide_option_table":"0","hide_quantity_table":"0","hide_remove_table":"0","custom_element_position":"","custom_fields":"","show_product_sku":"0","show_product_message":"0","required_products_message":"0","show_product_price":"0","sku_text":"{sku_value}","price_text":"Price","message_text":"Message","message_placeholder":"Add notes","form_data":[{"input":"text","type":"text","label":"Name","placeholder":"Enter your name","send":"1","min":"0","max":"100","req":"1","width":"50"},{"input":"text","type":"email","label":"Email","placeholder":"Enter your email","send":"1","min":"0","max":"100","req":"1","width":"50"},{"input":"text","type":"textarea","label":"Message","placeholder":"Message","send":"1","min":"0","max":"100","req":"1","width":"100"}],"script_tagid":null,"last_time_install":"2021-01-11 09:53:31","added_code":"1","viewed_products":"0","tracking_source":"0","saleman_type":"0","quotes_saleman":"10","version":"1","user_confirm_email":"0","user_confirm_email_text":"Your confirm quote has been sent into your email","email_vat":"0","customer_data_sync":"1","show_total_price_products":"1","choosen_page":"0","submit_all_cart":"0","show_total_price":"1","total_price_text":"Total Price","customer_email_template_id":"0","show_history_quotes_button":"1","show_app_in_page":"0","price_class":".product-form__info-list > .product-form__info-item:first-child"},"theme":{"name":"warehouse","nextcart_class":"","nextcart_css":"","price_class":".product-form__info-list > .product-form__info-item:first-child","title_class":".product-meta__title","description_class":".product-block-list__item--description > .card:last-child","collection_item":".product-item","collection_item_price":[".product-item__price-list"],"collection_price":".product-item .product-item__price-list","collection_addcart":""},"currency":"€"};
if (OMGRFQConfigs.app_url) {
// append css js before start app
const head = document.getElementById('omgrfq-script');
let style = document.createElement('link');
style.href = `${OMGRFQConfigs.app_url}/client_restructure/dist/css/omgrfg_style.css?v=${Math.floor(Date.now() / 1000)}`;
style.type = 'text/css';
style.rel = 'stylesheet';
head.before(style);
}
OMGRFQConfigs.customerId = null;
OMGRFQConfigs.customerTags = null;
OMGRFQConfigs.productId = null;
OMGRFQConfigs.productInTheme = null;
OMGRFQConfigs.currency = "€{{amount}}";
const checkAppAppend = setInterval(() => {
if (!document.getElementById('app-quotes') && document.body) {
let appendApp = document.createElement('div');
appendApp.setAttribute('id', 'app-quotes');
document.body.appendChild(appendApp);
(function(t){function e(e){for(var a,i,s=e[0],c=e[1],u=e[2],l=0,d=[];l<s.length;l++)i=s[l],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&d.push(n[i][0]),n[i]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(t[a]=c[a]);p&&p(e);while(d.length)d.shift()();return o.push.apply(o,u||[]),r()}function r(){for(var t,e=0;e<o.length;e++){for(var r=o[e],a=!0,s=1;s<r.length;s++){var c=r[s];0!==n[c]&&(a=!1)}a&&(o.splice(e--,1),t=i(i.s=r[0]))}return t}var a={},n={app:0},o=[];function i(e){if(a[e])return a[e].exports;var r=a[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=a,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(r,a,function(e){return t[e]}.bind(null,a));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],c=s.push.bind(s);s.push=e,s=s.slice();for(var u=0;u<s.length;u++)e(s[u]);var p=c;o.push([0,"chunk-vendors"]),r()})({0:function(t,e,r){t.exports=r("56d7")},"56d7":function(t,e,r){"use strict";r.r(e);r("e260"),r("e6cf"),r("cca6"),r("a79d");var a=r("2b0e"),n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"app-quotes"}},[r("transition",{attrs:{name:"fade"}},[t.appStatus&&t.isShowForm?r("form-quotes"):t._e()],1),t.isShowButtonAction?r("button-action"):t._e()],1)},o=[],i=(r("c975"),r("b64b"),r("d3b7"),r("ac1f"),r("25f0"),r("3ca3"),r("4d90"),r("841c"),r("1276"),r("ddb0"),r("2b3d"),r("b85c")),s=(r("96cf"),r("1da1")),c=r("5530"),u=r("2f62"),p=(r("4160"),r("d81d"),r("a9e3"),r("159b"),r("4fad"),r("3835")),l={apiResponseGet:function(t,e,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=Object(c["a"])({action:r,shop:a.$shop},t);return a.$http.get(e,{params:n})},apiResponse:function(t,e,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o="";if(n)o=Object(c["a"])({},t);else{o=new FormData,o.append("shop",a.$shop),o.append("action",r);for(var i=0,s=Object.entries(t);i<s.length;i++){var u=Object(p["a"])(s[i],2),l=u[0],d=u[1];o.append(l,d)}}return a.$http.post(e,o)}},d={callShowBtnViewQuote:!1,isShowBtnViewQuoteCart:!1,isShowForm:!1,isShowFormSendEmail:!1,textEmailSend:"",customer:{},storeForm:[],isShowNotification:!1,variantId:0,isHideClassBtnQuotes:!1,products:[]},m={isShowForm:function(t,e){t.isShowForm=e},customerData:function(t,e){t.customer=e},storeFormList:function(t,e){t.storeForm=e},isShowNotificationSettings:function(t,e){t.isShowNotification=e},updateVariantId:function(t,e){t.variantId=e},callShowBtnViewQuote:function(t,e){t.callShowBtnViewQuote=e},isShowBtnViewQuoteCart:function(t,e){t.isShowBtnViewQuoteCart=e},isHideClassBtnQuotes:function(t,e){t.isHideClassBtnQuotes=e},getAllProducts:function(t,e){t.products=e}},f={},h={getPagesShopify:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.commit,r.next=3,l.apiResponseGet({},e._vm.$appUrl+"/quote-list.php","getPagesShopify",e._vm);case 3:return a=r.sent,r.abrupt("return",a.data);case 5:case"end":return r.stop()}}),r)})))()},getListQuoteTimeLine:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,a.next=4,l.apiResponseGet(n,r._vm.$appUrl+"/quote-list.php","getListQuoteTimeLine",r._vm);case 4:return o=a.sent,a.abrupt("return",o.data);case 6:case"end":return a.stop()}}),a)})))()},getQuoteTimelineById:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,a.next=4,l.apiResponseGet(n,r._vm.$appUrl+"/quote-list.php","getQuoteTimelineById",r._vm);case 4:return o=a.sent,a.abrupt("return",o.data);case 6:case"end":return a.stop()}}),a)})))()},getProductById:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,a.next=4,l.apiResponseGet(n,r._vm.$appUrl+"/quote-list.php","getProduct",r._vm);case 4:return o=a.sent,a.abrupt("return",o.data);case 6:case"end":return a.stop()}}),a)})))()},createPdfInvoice:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,a.next=4,l.apiResponse(n,r._vm.$appUrl+"/quote-list.php","createPdfInvoice",r._vm);case 4:return o=a.sent,a.abrupt("return",o.data);case 6:case"end":return a.stop()}}),a)})))()},addCommentToTimeline:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,a.next=4,l.apiResponse(n,r._vm.$appUrl+"/quote-list.php","addCommentToTimeline",r._vm);case 4:return o=a.sent,a.abrupt("return",o.data);case 6:case"end":return a.stop()}}),a)})))()},createShopifyPages:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,a.next=4,l.apiResponse(n,r._vm.$appUrl+"/quote-list.php","createShopifyPages",r._vm);case 4:return o=a.sent,a.abrupt("return",o.data);case 6:case"end":return a.stop()}}),a)})))()},callToSendEmailAction:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,o="sendMailQuotes",1==r._vm.$appSettings.user_confirm_email&&(o="userConfirmBeforeProgress"),a.next=6,l.apiResponse(n,r._vm.$appUrl+"/quote-list.php",o,r._vm);case 6:return i=a.sent,a.abrupt("return",i.data);case 8:case"end":return a.stop()}}),a)})))()},submitQuoteListForm:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,a.next=4,l.apiResponse(n,r._vm.$appUrl+"/quote-list.php","submitQuoteListForm",r._vm);case 4:return o=a.sent,a.abrupt("return",o.data);case 6:case"end":return a.stop()}}),a)})))()},checkInstallApp:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.commit,r.next=3,l.apiResponseGet({},e._vm.$appUrl+"/quote-list.php","checkInstallApp",e._vm);case 3:return a=r.sent,r.abrupt("return",a.data);case 5:case"end":return r.stop()}}),r)})))()},getCustomerInfo:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t.commit,o=e.params,a.next=4,l.apiResponseGet(o,r._vm.$appUrl+"/quote-list.php","getCustomerInfo",r._vm);case 4:return i=a.sent,n("customerData",i.data),a.abrupt("return",i.data);case 7:case"end":return a.stop()}}),a)})))()},getCartProducts:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.commit,r.next=3,l.apiResponseGet({},"/cart.js","",e._vm);case 3:return a=r.sent,r.abrupt("return",a.data);case 5:case"end":return r.stop()}}),r)})))()},cartChanges:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,a.next=4,l.apiResponse(n,"/cart/change.js","",r._vm,!0);case 4:return o=a.sent,a.abrupt("return",o.data);case 6:case"end":return a.stop()}}),a)})))()},cartAdd:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,a.next=4,l.apiResponse(n,"/cart/add.js","",r._vm,!0);case 4:return o=a.sent,a.abrupt("return",o.data);case 6:case"end":return a.stop()}}),a)})))()},getVariantsOfProduct:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.commit,n=e.params,a.next=4,l.apiResponseGet(n,r._vm.$appUrl+"/quote-list.php","otGetVariantsOfProduct",r._vm);case 4:return o=a.sent,a.abrupt("return",o.data);case 6:case"end":return a.stop()}}),a)})))()},activeSendMailQuotes:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t.commit,o=e.params,a.next=4,l.apiResponseGet(o,r._vm.$appUrl+"/confirm_user_email.php","activeSendMailQuotes",r._vm);case 4:if(i=a.sent,!i.data){a.next=10;break}return n("isShowFormSendEmail",!0),n("textEmailSend",i.data),n("isShowForm",!0),a.abrupt("return",i.data);case 10:case"end":return a.stop()}}),a)})))()},getAllProducts:function(t,e){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n,o,i,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t.commit,o=e.params,a.next=4,l.apiResponse(o,r._vm.$appUrl+"/quote-list.php",o.isFindDb?"findProductInDb":"getAllProducts",r._vm);case 4:if(i=a.sent,!i.data){a.next=9;break}return s=i.data.map((function(t){return Array.isArray(t.product_variants)||(t.product_variants=[]),t.message="",t.product_variants.forEach((function(t){t.price=Number(t.price),t.compare_at_price=Number(t.compare_at_price)})),t})),n("getAllProducts",s),a.abrupt("return",!0);case 9:return a.abrupt("return",!1);case 10:case"end":return a.stop()}}),a)})))()}},g={namespaced:!0,state:d,mutations:m,getters:f,actions:h};a["a"].use(u["a"]);var _=new u["a"].Store({modules:{apiDataStore:g}}),v=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:[t.isQuotesPage?"omgrfq-quotes-page":"omgrfq-overlay"]},[t.isQuotesPage?t._e():r("div",{staticClass:"omgrfq-bg",on:{click:t.closePopup}}),r("div",{class:[t.isQuotesPage?"omgrfq-quotes-page-content":"omgrfq-popup"]},[t.isQuotesPage?t._e():r("span",{attrs:{id:"close_omgrfq_popup"},on:{click:t.closePopup}}),t.isShowFormSendEmail?r("div",{staticClass:"omgrfq-alert text-center"},[r("div",{staticClass:"omgrfq-message",staticStyle:{"margin-bottom":"72px"}},[t._v(t._s(t.textEmailSend))])]):r("div",{staticClass:"omgrfq-quote-list"},[r("transition",{attrs:{name:"fade"}},[t.isSubmitSuccess?r("div",{staticClass:"omgrfq-submit-success text-center"},[1==t.$appSettings.user_confirm_email?r("div",{staticClass:"omgrfq-message",staticStyle:{"margin-bottom":"8px"},domProps:{innerHTML:t._s(t.$appSettings.user_confirm_email_text)}}):t._e(),r("div",{staticClass:"omgrfq-message",staticStyle:{"margin-bottom":"16px"},domProps:{innerHTML:t._s(t.$appSettings.success_submit_mess)}}),t.isQuotesPage?t._e():[t.$appSettings.redirect_link?[r("a",{staticClass:"btn btn_c button button--primary",attrs:{href:t.$appSettings.redirect_link},domProps:{innerHTML:t._s(t.$appSettings.popup_shopping_mess)}})]:[r("a",{staticClass:"btn btn_c button button--primary Button Button--primary",domProps:{innerHTML:t._s(t.$appSettings.popup_shopping_mess)},on:{click:t.closePopup}})]]],2):t._e()]),r("div",{staticClass:"omgrfq-submit-error text-center"},[r("div",{staticClass:"omgrfq-message",staticStyle:{"margin-bottom":"16px"},domProps:{innerHTML:t._s(t.$appSettings.success_submit_mess)}}),t.$appSettings.redirect_link?[r("a",{staticClass:"btn btn_c button button--primary",attrs:{href:t.$appSettings.redirect_link},domProps:{innerHTML:t._s(t.$appSettings.unsuccess_submit_mess)}})]:[r("a",{staticClass:"btn btn_c button button--primary",domProps:{innerHTML:t._s(t.$appSettings.unsuccess_submit_mess)},on:{click:t.closePopup}})]],2),r("transition",{attrs:{name:"fade"}},[t.isSubmitSuccess?t._e():r("div",{staticClass:"omgrfq-quote-list-content"},[t.isShowNotification?r("div",{staticClass:"notification-quote-form"},[r("div",{staticClass:"omgrfq-alert text-center"},[r("div",{staticClass:"omgrfq-message",domProps:{innerHTML:t._s(t.$appSettings.add_quote_success_mess)}},[t._v(" "+t._s(t.$appSettings.add_quote_success_mess?"":"Add product to quote successfully!")+" ")]),t.isQuotesPage?t._e():r("a",{staticClass:"btn button button--primary omgrfq_continue_shopping Button Button--primary",domProps:{innerHTML:t._s(t.$appSettings.popup_shopping_mess)},on:{click:t.closePopup}}),r("a",{staticClass:"btn button button--primary notification-dialog-view",domProps:{innerHTML:t._s(t.$appSettings.view_quote_mess)},on:{click:t.viewQuoteForm}})])]):r("div",{attrs:{id:"omgrfq-submit-quote-form"}},[t.productList.length?r("form",{attrs:{role:"form",enctype:"multipart/form-data",id:"omgrfq-quote-list-form",method:"post",name:"omgrfq-quote-list-form"},on:{submit:function(e){return t.submitQuoteForm(e)}}},[!t.abtestChoosenPage||t.abtestChoosenPage&&0==t.$appSettings.choosen_page?[r("table",{staticClass:"table omgrfq-table"},[r("thead",[r("tr",[r("th",{staticClass:"omgrfq_product_image"}),r("th",{domProps:{innerHTML:t._s(t.$appSettings.product_text)}}),1!=t.$appSettings.hide_option_table?r("th",{staticClass:"omgrfq_product_option",domProps:{innerHTML:t._s(t.$appSettings.option_text)}}):t._e(),1!=t.$appSettings.hide_quantity_table?r("th",{staticClass:"text-center omgrfq_product_qty",domProps:{innerHTML:t._s(t.$appSettings.quantity_text)}}):t._e(),1==t.$appSettings.show_product_price?r("th",{staticClass:"text-center omgrfq_product_price",domProps:{innerHTML:t._s(t.$appSettings.price_text)}}):t._e(),1==t.$appSettings.show_total_price?r("th",{staticClass:"text-center omgrfq_total_price",domProps:{innerHTML:t._s(t.$appSettings.total_price_text)}}):t._e(),1==t.$appSettings.show_product_message?r("th",{staticClass:"text-center omgrfq_product_message",domProps:{innerHTML:t._s(t.$appSettings.message_text)}},[1==t.$appSettings.required_products_message?r("span",{staticClass:"star"},[t._v(" *")]):t._e()]):t._e()])]),r("transition-group",{attrs:{name:"fade",tag:"tbody"}},t._l(t.productList,(function(e,a){return r("tr",{key:a,staticClass:"omgrfq_product_row border-bottom",attrs:{id:"omgrfq_product_row_"+e.variant.id}},[r("td",{staticClass:"omgrfq_product_image"},[e.image?r("a",{attrs:{href:"https://"+t.$shop+"/products/"+e.handle+"?variant="+e.variant.id,target:"_blank"}},[r("img",{attrs:{src:""+e.image}})]):t._e()]),r("td",{staticClass:"omgrfq_product_title"},[r("a",{attrs:{href:"https://"+t.$shop+"/products/"+e.handle+"?variant="+e.variant.id,target:"_blank"}},[t._v(" "+t._s(e.title)+" ")]),1==t.$appSettings.show_product_sku&&e.variant.sku?r("p",{domProps:{innerHTML:t._s(t.htmlShowProductSku(e))}}):t._e(),1!=t.$appSettings.hide_remove_table?r("p",[r("a",{staticClass:"omgrfq_remove_product btn",domProps:{innerHTML:t._s(t.$appSettings.remove_text)},on:{click:function(r){return t.removeProductQuotes(e.variant.id)}}})]):t._e()]),1!=t.$appSettings.hide_option_table?r("td",[t._v(" "+t._s(e.variant.title)+" ")]):t._e(),1!=t.$appSettings.hide_quantity_table?r("td",{staticClass:"text-center omgrfq_product_qty"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.quantity,expression:"product.quantity"}],staticClass:"item_qty form-control",attrs:{type:"number",min:"1",id:"updates_"+e.variant.id,pattern:"[0-9]*"},domProps:{value:e.quantity},on:{change:function(r){return t.changeQuantity(e.quantity,e.id,e.variant.id,e.variant.price)},input:function(r){r.target.composing||t.$set(e,"quantity",r.target.value)}}})]):t._e(),1==t.$appSettings.show_product_price?r("td",{staticClass:"text-center omgrfq_product_price"},[r("span",[t._v(t._s(e.variant.priceText))])]):t._e(),1==t.$appSettings.show_total_price?r("td",{staticClass:"text-center omgrfq_total_price"},[r("span",[t._v(t._s(e.totalPrice))])]):t._e(),1==t.$appSettings.show_product_message?r("td",{staticClass:"text-center omgrfq_product_message"},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.message,expression:"product.message"}],staticClass:"omgrfq_message_form form-control",attrs:{"data-variant":e.variant.id,id:"omgrfq-product_"+e.variant.id,placeholder:"undefined"!=typeof t.$appSettings.message_placeholder?t.$appSettings.message_placeholder:"",name:"omgrfq-product_"+e.variant.id,required:1==t.$appSettings.required_products_message},domProps:{value:e.message},on:{input:function(r){r.target.composing||t.$set(e,"message",r.target.value)}}})]):t._e()])})),0)],1),1==t.$appSettings.show_total_price_products?r("div",{staticClass:"ot-total-price"},[r("div",{staticClass:"ot-label-total"},[t._v("Total")]),r("div",{staticClass:"ot-total"},[t._v(t._s(t.quoteListFormatMoney(100*t.totalListProduct,this.$OMGRFQConfigs.currency)))])]):t._e()]:t._e(),t.storeForm.length?r("div",{staticClass:"omgrfq-form"},t._l(t.storeForm,(function(e,a){return r("div",{key:a,class:["form-group","form-group-"+e.width],style:{marginTop:(e.margin_top||0)+"px"}},["simple"!==e.input?r("label",{staticClass:"control-label",domProps:{innerHTML:t._s(t.formLabel(e))}}):t._e(),"simple"===e.input?r("p",{staticClass:"form-field-simple",domProps:{innerHTML:t._s(e.content)}}):t._e(),"select"===e.input&&e.choices.length?r("select-component",{ref:"form_select_"+a,refInFor:!0,attrs:{position:a,"form-input":e}}):t._e(),"radio"===e.input&&e.choices.length?r("radio-component",{ref:"form_radio_"+a,refInFor:!0,attrs:{position:a,"form-input":e}}):t._e(),"checkbox"===e.input&&e.choices.length?r("checkbox-component",{ref:"form_checkbox_"+a,refInFor:!0,attrs:{position:a,"form-input":e}}):t._e(),"text"===e.input?r("input-component",{ref:"form_input_"+a,refInFor:!0,attrs:{position:a,"form-input":e}}):t._e(),"date"===e.input?r("datetime-component",{ref:"form_date_"+a,refInFor:!0,attrs:{position:a,"form-input":e}}):t._e(),"file"===e.input?r("input-component",{ref:"form_file_"+a,refInFor:!0,attrs:{position:a,"form-input":e}}):t._e()],1)})),0):t._e(),r("div",{staticClass:"form-group text-center"},[r("div",{attrs:{id:"form-recaptcha"}})]),r("div",{staticClass:"form-group text-center"},[r("p",{staticClass:"notice_submit_form text-center color-red"},[t._v(" "+t._s(t.submitErrorText)+" ")])]),r("div",{staticClass:"form-group text-center"},[r("div",{staticStyle:{position:"relative"}},[t.isQuotesPage?t._e():r("a",{staticClass:"btn button omgrfq_continue_shopping",domProps:{innerHTML:t._s(t.$appSettings.popup_shopping_mess)},on:{click:t.closePopup}}),r("button",{class:[t.classButton],attrs:{type:"submit",id:"submitOMGRFQForm",name:"submitOMGRFQForm",disabled:t.isDisabledBtnSubmit},domProps:{innerHTML:t._s(t.htmlSubmitMess)}})])])],2):r("div",{staticClass:"omgrfq-alert text-center"},[r("div",{staticClass:"omgrfq-message mb-15",domProps:{innerHTML:t._s(t.$appSettings.empty_quote_mess)}}),t.isQuotesPage?t._e():[t.$appSettings.redirect_link?[r("a",{staticClass:"btn btn_c button button--primary",attrs:{href:t.$appSettings.redirect_link},domProps:{innerHTML:t._s(t.$appSettings.popup_shopping_mess)}})]:[r("a",{staticClass:"btn btn_c button button--primary Button Button--primary",domProps:{innerHTML:t._s(t.$appSettings.popup_shopping_mess)},on:{click:t.closePopup}})]]],2)])])])],1)])])},b=[],y=(r("a434"),r("5319"),r("99af"),r("7db0"),r("a15b"),"btn button product-form--atc-button button--primary Button Button--primary"),S='form[action*="/cart/add"]:not(.ssw-hide)',w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=["".concat(t,' button[name="checkout"]'),"".concat(t,' input[name="checkout"]'),"".concat(t,' a[href|="/checkout"]'),"".concat(t,' input[type="submit"][value="Checkout"]')];return e.join(",")},$=function(){var t=['header a[href$="/cart"]','header a[href$="/cart/"]','.header a[href="#cart"]','.header a[href$="/cart"]','.header a[href$="/cart/"]','.site-header__inner a[href="/cart"]','.site-header__inner a[href="/cart/"]','.cart-summary a[href="/cart"]','.cart-summary a[href="/cart/"]','.toolbar-cart a[href="/cart"]','.toolbar-cart a[href="/cart/"]','#header a[href$="/cart"]','#header a[href$="/cart/"]','#header a[href$="#cart"]','#navbar-top a[href$="/cart"]','#navbar-top a[href$="/cart/"]','#nav-cart-text a[href$="/cart"]','#nav-cart-text a[href$="/cart/"]','#shopify-section-header a[href$="/cart"]','#shopify-section-header a[href$="/cart/"]','.header-bar a[href$="/cart"]','.header-bar a[href$="/cart/"]',".cart-icon .count",".total_count_ajax",".mini-cart-wrap",".cartToggle","#cartCount",'.site-header-cart a[href$="/cart"]',".menu-icon .header_cart",".site-wrapper .icon-cart"];return t.join(",")},C=function(){var t=[".cart-drawer__close-button",".js-drawer-close"];return t.join(",")},q=function(t){var e,r,a,n,o,i=t,s=["#buy_it_now","#AddToCart","#add-to-cart",".btn-cart",".btn-addCart","#add",".add","#add_product","#product-add-to-cart"],c=["#addToCartCopy"],u=["Buy","Purchase","Add","Order","Comprar"],p=["button","a","div","span"];for(r=0,a=c.length;r<a;r++)if(e=i.find(c[r]),e.length)break;if(!e.length)for(r=0,a=s.length;r<a;r++)if(e=i.find("".concat(s[r],'[type="submit"]')),e.length)break;if(e.length||(e=i.find('input[type="submit"], button[type="submit"]')),!e.length)for(r=0,a=s.length;r<a;r++)if(e=i.find(s[r]),e.length)break;if(!e.length)t:for(n=0,o=p.length;n<o;n++)for(r=0,a=u.length;r<a;r++)if(e=i.find("".concat(p[n],':contains("').concat(u[r],'")')).not(':contains("login")'),e.length||(e=i.find("".concat(p[n],':contains("').concat(u[r].toUpperCase(),'")')).not(':contains("login")'),e.length||(e=i.find("".concat(p[n],':contains("').concat(u[r].toLowerCase(),'")')).not(':contains("login")'))),e.length)break t;return e},j=".omgrfq-collection-button",k=".omgrfq-product-button",O=".omgrfq-hide-price-special",x=".omgrfq-hide-btn-cart-special";function P(){return location.href="/cart"}function Q(){location.href="/checkout"}var I=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"omg-radio"},t._l(t.formInput.choices,(function(e,a){return r("div",{key:a},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.select,expression:"select"}],ref:t.select==e.label?"formValue":"formValueNotCheck",refInFor:!0,attrs:{type:"radio",name:"omgrfq-radio_"+t.position,required:1==t.formInput.req},domProps:{value:e.label,checked:t._q(t.select,e.label)},on:{change:function(r){t.select=e.label}}}),t._v(" "),r("div",{staticClass:"d-inline",domProps:{innerHTML:t._s(e.label)}})])})),0)},L=[],F={props:{position:{type:String,default:""},formInput:{type:Array,default:function(){return[]}}},data:function(){return{select:""}},mounted:function(){var t,e=Object(i["a"])(this.formInput.choices);try{for(e.s();!(t=e.n()).done;){var r=t.value;1==r.sel&&(this.select=r.label)}}catch(a){e.e(a)}finally{e.f()}}},R=F,T=r("2877"),B=Object(T["a"])(R,I,L,!1,null,null,null),M=B.exports,D=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("select",{directives:[{name:"model",rawName:"v-model",value:t.select,expression:"select"}],staticClass:"form-control",attrs:{id:"omgrfq-form_"+t.position,name:"omgrfq-form_"+t.position,required:1==t.formInput.req},on:{change:function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.select=e.target.multiple?r:r[0]}}},t._l(t.formInput.choices,(function(e,a){return r("option",{key:a,ref:t.select==e.label?"formValue":"formValueNotCheck",refInFor:!0,domProps:{value:e.label,innerHTML:t._s(e.label)}})})),0)},A=[],N={props:{position:{type:String,default:""},formInput:{type:Array,default:function(){return[]}}},data:function(){return{select:""}},mounted:function(){var t,e=Object(i["a"])(this.formInput.choices);try{for(e.s();!(t=e.n()).done;){var r=t.value;1==r.sel&&(this.select=r.label)}}catch(a){e.e(a)}finally{e.f()}}},G=N,V=Object(T["a"])(G,D,A,!1,null,null,null),E=V.exports,H=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"omg-checkbox"},t._l(t.formInput.choices,(function(e,a){return r("div",{key:a},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.select,expression:"select"}],ref:t.select.indexOf(e.label)>-1?"formValue":"formValueNotCheck",refInFor:!0,class:"omgrfq-checkbox_"+t.position,attrs:{type:"checkbox",name:"omgrfq-checkbox_"+t.position},domProps:{value:e.label,checked:1==e.sel,checked:Array.isArray(t.select)?t._i(t.select,e.label)>-1:t.select},on:{change:function(r){var a=t.select,n=r.target,o=!!n.checked;if(Array.isArray(a)){var i=e.label,s=t._i(a,i);n.checked?s<0&&(t.select=a.concat([i])):s>-1&&(t.select=a.slice(0,s).concat(a.slice(s+1)))}else t.select=o}}}),t._v(" "),r("div",{staticClass:"d-inline",domProps:{innerHTML:t._s(e.label)}})])})),0)},J=[],U={props:{position:{type:String,default:""},formInput:{type:Array,default:function(){return[]}}},data:function(){return{select:[]}},mounted:function(){var t,e=Object(i["a"])(this.formInput.choices);try{for(e.s();!(t=e.n()).done;){var r=t.value;1==r.sel&&this.select.push(r.label)}}catch(a){e.e(a)}finally{e.f()}}},z=U,W=Object(T["a"])(z,H,J,!1,null,null,null),Y=W.exports,Z=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"omgrfq-input"},["file"===t.formInput.input?[r("input",{ref:"formValue",staticClass:"form-control input-md",attrs:{type:"file",name:"omgrfq-file_"+t.position,id:"omgrfq-file_"+t.position,multiple:1==t.formInput.multi,accept:"file_extension|image/*"}})]:["number"===t.formInput.type?r("input",{directives:[{name:"model",rawName:"v-model",value:t.formInput.value,expression:"formInput.value"}],ref:"formValue",staticClass:"form-control input-md omgrfq-form-info",attrs:{"data-key":t.position,type:"number",min:t.formInput.min,max:t.formInput.max,id:"omgrfq-form_"+t.position,name:"omgrfq-form_"+t.position,placeholder:t.formInput.placeholder,required:1==t.formInput.req},domProps:{value:t.formInput.value},on:{input:function(e){e.target.composing||t.$set(t.formInput,"value",e.target.value)}}}):"email"===t.formInput.type?r("input",{directives:[{name:"model",rawName:"v-model",value:t.formInput.value,expression:"formInput.value"}],ref:"formValue",staticClass:"form-control input-md omgrfq-form-info",attrs:{"data-key":t.position,type:"email",id:"omgrfq-form_"+t.position,name:"omgrfq-form_"+t.position,placeholder:t.formInput.placeholder,required:1==t.formInput.req,pattern:"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{1,63}$"},domProps:{value:t.formInput.value},on:{input:function(e){e.target.composing||t.$set(t.formInput,"value",e.target.value)}}}):"textarea"===t.formInput.type?r("textarea",{directives:[{name:"model",rawName:"v-model",value:t.formInput.value,expression:"formInput.value"}],ref:"formValue",staticClass:"form-control omgrfq-form-info",attrs:{"data-key":t.position,id:"omgrfq-form_"+t.position,name:"omgrfq-form_"+t.position,placeholder:t.formInput.placeholder,required:1==t.formInput.req},domProps:{value:t.formInput.value},on:{input:function(e){e.target.composing||t.$set(t.formInput,"value",e.target.value)}}}):r("input",{directives:[{name:"model",rawName:"v-model",value:t.formInput.value,expression:"formInput.value"}],ref:"formValue",staticClass:"form-control input-md omgrfq-form-info",attrs:{"data-key":t.position,type:"text",id:"omgrfq-form_"+t.position,name:"omgrfq-form_"+t.position,placeholder:t.formInput.placeholder,required:1==t.formInput.req},domProps:{value:t.formInput.value},on:{input:function(e){e.target.composing||t.$set(t.formInput,"value",e.target.value)}}})]],2)},X=[],K={props:{position:{type:String,default:""},formInput:{type:Array,default:function(){return[]}}}},tt=K,et=Object(T["a"])(tt,Z,X,!1,null,null,null),rt=et.exports,at=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"omgrfq-datime"},[r("flat-pickr",{ref:"formValue",staticClass:"form-control input-md",attrs:{id:"omgrfq-date_"+t.position,placeholder:t.formInput.placeholder,config:t.config},model:{value:t.formInput.value,callback:function(e){t.$set(t.formInput,"value",e)},expression:"formInput.value"}})],1)},nt=[],ot=r("c38f"),it=r.n(ot),st={components:{flatPickr:it.a},props:{position:{type:String,default:""},formInput:{type:Array,default:function(){return[]}}},data:function(){return{config:{enableTime:1==this.formInput.time,dateFormat:1==this.formInput.time?"F j, Y H:i":"F j, Y",monthSelectorType:"static",locale:null}}},mounted:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=document.getElementsByTagName("head")[0],n=document.createElement("link"),n.href=t.$appUrl+"/assets/css/themes/"+t.$appSettings.calendar_theme+".css?v="+Math.floor(Date.now()/1e3),n.type="text/css",n.rel="stylesheet",a.append(n),"en"!=t.$appSettings.calendar_lang&&(o=r("5aa6")("./"+t.$appSettings.calendar_lang+".js").default[t.$appSettings.calendar_lang],t.config.locale=o);case 7:case"end":return e.stop()}}),e)})))()}},ct=st,ut=Object(T["a"])(ct,at,nt,!1,null,null,null),pt=ut.exports,lt=(r("b680"),r("466d"),{methods:{quoteListFormatMoney:function(t,e){"string"==typeof t&&(t=t.replace(".",""));var r="",a=/\{\{\s*(\w+)\s*\}\}/,n=e||this.money_format;function o(t,e){return"undefined"==typeof t?e:t}function i(t,e,r,a){if(e=o(e,2),r=o(r,","),a=o(a,"."),isNaN(t)||null==t)return 0;t=(t/100).toFixed(e);var n=t.split("."),i=n[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+r),s=n[1]?a+n[1]:"";return i+s}switch(n.match(a)[1]){case"amount":r=i(t,2);break;case"amount_no_decimals":r=i(t,0);break;case"amount_with_comma_separator":r=i(t,2,".",",");break;case"amount_no_decimals_with_comma_separator":r=i(t,0,".",",");break}return n.replace(a,r)}}}),dt="choosen_page_quote_nov_2020",mt="log_history_quote_nov_2020",ft="request_a_quotes_page_jan_2021",ht={name:"FormQuotes",props:{isQuotesPage:{type:Boolean,default:!1}},mixins:[lt],components:{radioComponent:M,selectComponent:E,checkboxComponent:Y,inputComponent:rt,datetimeComponent:pt},data:function(){return{classButton:y,productList:[],productViewedList:[],totalListProduct:0,isDisabledBtnSubmit:!1,submitErrorText:"",isSubmitSuccess:!1}},computed:Object(c["a"])(Object(c["a"])({},Object(u["c"])({storeForm:function(t){return t.apiDataStore.storeForm},isShowFormSendEmail:function(t){return t.apiDataStore.isShowFormSendEmail},textEmailSend:function(t){return t.apiDataStore.textEmailSend},isShowNotification:function(t){return t.apiDataStore.isShowNotification}})),{},{abtestChoosenPage:function(){return this.$ABtestFeature[dt]},htmlSubmitMess:function(){return this.isDisabledBtnSubmit?this.$appSettings.submitting_quote_mess:this.$appSettings.submit_quote_button}}),mounted:function(){var t=this,e=localStorage.getItem(this.$shop+"_productIdViewedList");if(this.productViewedList=e&&e.length?JSON.parse(e):[],this.getProductListForm(),1==this.$appSettings.use_google_recaptcha&&this.$appSettings.ggsite_key){if(!document.getElementById("omgrfq-recaptcha")){var r=document.getElementsByTagName("BODY")[0],a=document.createElement("script");a.id="omgrfq-recaptcha",a.src="https://www.google.com/recaptcha/api.js?render=explicit",a.type="text/javascript",r.append(a)}setTimeout((function(){t.formCaptchaCallback()}),550)}},methods:Object(c["a"])(Object(c["a"])({},Object(u["b"])({submitQuoteListForm:"apiDataStore/submitQuoteListForm",callToSendEmailAction:"apiDataStore/callToSendEmailAction",cartChanges:"apiDataStore/cartChanges"})),{},{getProductListForm:function(){var t=localStorage.getItem(this.$shop+"_productIdAddQuoteList");this.productList=t&&t.length?JSON.parse(t):[],this.totalListProduct=0;var e,r=Object(i["a"])(this.productList);try{for(r.s();!(e=r.n()).done;){var a=e.value;this.totalListProduct+=Number(a.total)}}catch(n){r.e(n)}finally{r.f()}},formLabel:function(t){return 1==t.req?"".concat(t.label,"<span class='star'> *</span>"):"".concat(t.label)},htmlShowProductSku:function(t){return this.$appSettings.sku_text.replace("{sku_value}",t.variant.sku)},formCaptchaCallback:function(){window.grecaptcha.render("form-recaptcha",{sitekey:this.$appSettings.ggsite_key})},viewQuoteForm:function(){this.$store.commit("apiDataStore/isShowNotificationSettings",!1)},closePopup:function(){this.$store.commit("apiDataStore/isShowForm",!1),this.$store.commit("apiDataStore/isShowFormSendEmail",!1)},changeQuantity:function(t,e,r,a){var n=Number(t);n>0?this.productList=this.updateQuantityProduct(this.productList,e,r,a,n):(t=1,this.productList=this.updateQuantityProduct(this.productList,e,r,a,1)),localStorage.setItem(this.$shop+"_productIdAddQuoteList",JSON.stringify(this.productList)),this.totalListProduct=0;var o,s=Object(i["a"])(this.productList);try{for(s.s();!(o=s.n()).done;){var c=o.value;this.totalListProduct+=Number(c.total)}}catch(u){s.e(u)}finally{s.f()}},updateQuantityProduct:function(t,e,r,a,n){var o=n*Number(a);return t=this.updateProductQuantityInQuoteList(t,n,r,o),t},updateProductQuantityInQuoteList:function(t,e,r,a){for(var n=0;n<t.length;n++)if(t[n].variant.id==r){t[n].quantity=e,t[n].total=a,t[n].totalPrice=this.quoteListFormatMoney(100*Number(t[n].total),this.$OMGRFQConfigs.currency);break}return t},removeProductQuotes:function(t){for(var e in this.totalListProduct=0,this.productList)this.productList[e].variant.id!==t?this.totalListProduct+=Number(this.productList[e].total):this.productList.splice(e,1);this.productList.length?localStorage.setItem(this.$shop+"_productIdAddQuoteList",JSON.stringify(this.productList)):(localStorage.setItem(this.$shop+"_productIdAddQuoteList","[]"),localStorage.setItem(this.$shop+"_omgrfq_formInfo","[]")),this.$store.commit("apiDataStore/callShowBtnViewQuote",!0)},submitQuoteForm:function(t){if(t.preventDefault(),1==this.$appSettings.use_google_recaptcha){var e=window.grecaptcha.getResponse();e.length?this.sendQuoteForm(e):alert("You need to fill the captcha")}else this.sendQuoteForm("")},sendQuoteForm:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var a,n,o,s,u,l,d,m,f,h,g,_,v,b,y,S,w,$,C,q,j,k,O,x,P,I,L,F;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n={},o={},s={infor:[],email:"",recaptcha:t,list:e.productList,fileCount:0,totalPrice:0,totalPriceText:"",totalVat:0,totalVatText:"",totalPriceLast:0,totalPriceLastText:"",viewedProducts:e.productViewedList},e.productList.length){u=Object(i["a"])(e.productList);try{for(u.s();!(l=u.n()).done;)d=l.value,s.totalPrice+=Number(d.total)}catch(R){u.e(R)}finally{u.f()}}for(s.totalVat=e.$appSettings.email_vat*s.totalPrice/100,s.totalPriceLast=s.totalPrice+s.totalVat,s.totalPriceText=e.quoteListFormatMoney(100*s.totalPrice,e.$OMGRFQConfigs.currency),s.totalVatText=e.quoteListFormatMoney(100*s.totalVat,e.$OMGRFQConfigs.currency),s.totalPriceLastText=e.quoteListFormatMoney(100*s.totalPriceLast,e.$OMGRFQConfigs.currency),m=0,f=Object.entries(e.storeForm);m<f.length;m++){if(h=Object(p["a"])(f[m],2),g=h[0],_=h[1],e.$refs["form_input_".concat(g)]&&e.$refs["form_input_".concat(g)][0]&&(v=e.$refs["form_input_".concat(g)][0].$refs.formValue?e.$refs["form_input_".concat(g)][0].$refs.formValue.value:"",s.infor.push({label:_.label,value:v,send:1==_.send?1:0}),"email"==_.type&&(s.email=v)),e.$refs["form_select_".concat(g)]&&e.$refs["form_select_".concat(g)][0]&&(b=e.$refs["form_select_".concat(g)][0].$refs.formValue?e.$refs["form_select_".concat(g)][0].$refs.formValue[0].value:"",s.infor.push({label:_.label,value:b,send:1==_.send?1:0})),e.$refs["form_date_".concat(g)]&&e.$refs["form_date_".concat(g)][0]&&(y=e.$refs["form_date_".concat(g)][0].$refs.formValue?e.$refs["form_date_".concat(g)][0].$refs.formValue.value:"",0==_.req||1==_.req&&y?(a=!1,s.infor.push({label:_.label,value:y,send:1==_.send?1:0})):a=!0),e.$refs["form_radio_".concat(g)]&&e.$refs["form_radio_".concat(g)][0]&&(S=e.$refs["form_radio_".concat(g)][0].$refs.formValue?e.$refs["form_radio_".concat(g)][0].$refs.formValue[0].value:"",s.infor.push({label:_.label,value:S,send:1==_.send?1:0})),e.$refs["form_checkbox_".concat(g)]&&e.$refs["form_checkbox_".concat(g)][0]){if(w=[],e.$refs["form_checkbox_".concat(g)][0].$refs.formValue){$=Object(i["a"])(e.$refs["form_checkbox_".concat(g)][0].$refs.formValue);try{for($.s();!(C=$.n()).done;)q=C.value,w.push(q.value)}catch(R){$.e(R)}finally{$.f()}}w.length>0&&s.infor.push({label:_.label,value:w,isArray:!0,send:1==_.send?1:0})}if(e.$refs["form_file_".concat(g)]&&e.$refs["form_file_".concat(g)][0]&&(j=e.$refs["form_file_".concat(g)][0].$refs.formValue.files,j.length>0)){for(k=0;k<j.length;k++)s.fileCount++,o["file-"+s.fileCount]=j[k];s.infor.push({label:_.label,value:[],isFile:!0,send:1==_.send?1:0})}}if(!a){r.next=12;break}e.submitErrorText="Please select required date!",r.next=51;break;case 12:return e.submitErrorText="",e.isDisabledBtnSubmit=!0,n={data:JSON.stringify(s)},r.next=17,e.submitQuoteListForm({params:n});case 17:if(O=r.sent,!O){r.next=49;break}if(e.isSubmitSuccess=!0,localStorage.setItem(e.$shop+"_productIdAddQuoteList","[]"),localStorage.setItem(e.$shop+"_productIdViewedList","[]"),localStorage.setItem(e.$shop+"_omgrfq_formInfo","[]"),e.$store.commit("apiDataStore/callShowBtnViewQuote",!0),x=Object(c["a"])({idQuote:O,data:JSON.stringify(s),idTheme:e.$OMGRFQConfigs.theme_id},o),e.callToSendEmailAction({params:x}),!(e.abtestChoosenPage&&1==e.$appSettings.choosen_page&&e.productList.length>0)){r.next=46;break}P=Object(i["a"])(e.productList),r.prev=28,P.s();case 30:if((I=P.n()).done){r.next=37;break}return L=I.value,F={id:"".concat(L.key),quantity:0},r.next=35,e.cartChanges({params:F});case 35:r.next=30;break;case 37:r.next=42;break;case 39:r.prev=39,r.t0=r["catch"](28),P.e(r.t0);case 42:return r.prev=42,P.f(),r.finish(42);case 45:Q();case 46:e.isQuotesPage&&setTimeout((function(){e.getProductListForm(),e.isSubmitSuccess=!1}),5e3),r.next=50;break;case 49:e.submitErrorText="Submit Quote Is Error!";case 50:e.isDisabledBtnSubmit=!1;case 51:case"end":return r.stop()}}),r,null,[[28,39,42,45]])})))()}})},gt=ht,_t=Object(T["a"])(gt,v,b,!1,null,null,null),vt=_t.exports,bt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"omgrfq_button_action"}},[t.conditionShowHistoryQuotesButton?r("a",{class:["omgrfq_view_history_quote",t.classButton],attrs:{href:"/pages/history-quotes"},domProps:{innerHTML:t._s(t.$appSettings.view_history_quotes_mess)}}):t._e(),t.isShowBtnViewQuote?r("view-quotes-button"):t._e()],1)},yt=[],St=(r("c740"),function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"conten-history"},[t.isShowLoading?r("div",{staticClass:"loading-content"}):[r("div",{staticClass:"quotes-list"},[t._m(0),t._l(t.quoteListTimeline,(function(t,e){return r("timeline-history-quotes",{key:e,attrs:{item:t}})}))],2),r("div",{staticClass:"customer-detail"},[r("h4",[t._v("Customer Details")]),t._l(t.fristCustomerObj,(function(e,a){return r("div",{key:a,staticClass:"customer-info"},[r("p",[r("strong",[t._v(t._s(e.label))])]),r("p",[t._v(t._s(e.value))])])}))],2)]],2)}),wt=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"quote-item quote-list-headers"},[r("div",{staticClass:"header-quote"},[r("p",{staticClass:"link-id"},[r("strong",[t._v("Id")])]),r("p",{staticClass:"quote-name",staticStyle:{margin:"0 auto 0 0"}},[r("strong",[t._v("Name")])]),r("div",{staticClass:"product-info"},[r("strong",[t._v("Products")])]),r("div",{staticClass:"total-price-quote"},[r("strong",[t._v("Total Prices")])])])])}],$t=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:["quote-item","quote-item-"+t.item.id]},[r("div",{staticClass:"header-quote",on:{click:function(e){return t.getTimelineId()}}},[r("p",{staticClass:"link-id"},[t._v(t._s(t.item.id))]),r("p",{staticClass:"quote-name",staticStyle:{margin:"0 auto 0 0"}},[t._v(" "+t._s(t.item.customer_info[0].value)+" ")]),t.item.list&&t.item.list.length?r("div",{staticClass:"product-info"},t._l(t.item.list,(function(e,a){return r("div",{key:a,staticClass:"item-product"},[e.image?r("img",{attrs:{src:e.image.indexOf("https://")>-1?""+e.image:"https:"+e.image}}):t._e(),r("a",{attrs:{href:"https://"+t.$shop+"/products/"+e.handle,target:"_blank"}},[t._v(" "+t._s(e.title)+" ")])])})),0):t._e(),r("div",{staticClass:"total-price-quote"},[t._v(" "+t._s(t.quoteListFormatMoney(100*t.getTotalPrice(),t.$OMGRFQConfigs.currency))+" ")])]),r("div",{staticClass:"content-quote"},[r("transition",{attrs:{name:"slide"}},[t.isClickGetId?[t.isShowLoadingContentTimeline?r("div",{staticClass:"loading-content"}):[t.listTimeline&&t.listTimeline.length?r("div",{staticClass:"content-quote-detail"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.comment,expression:"comment"}],staticClass:"form-control input-md omgrfq-form-info",attrs:{type:"text",placeholder:"Enter Comment"},domProps:{value:t.comment},on:{input:function(e){e.target.composing||(t.comment=e.target.value)}}}),r("a",{staticClass:"btn omgrfq_button",on:{click:t.addComment}},[t._v("Add comment")]),t.isShowPDFInvoice?r("a",{staticClass:"btn omgrfq_button omgrfq_button_create_pdf",on:{click:t.createPdfInvoice}},[t._v(" Create Pdf Invoice ")]):t._e(),t.errorCreatePdf?r("div",{staticClass:"error-pdf text-danger"},[t._v("Create PDF file fail!")]):t._e(),r("div",{staticClass:"timeline"},t._l(t.listTimeline,(function(e,a){return r("div",{key:a,staticClass:"timeline-container"},[r("div",{staticClass:"timeline-content"},[r("h4",{staticClass:"create-timeline"},[t._v(t._s(e.created_at))]),"comment"===e.status?r("p",[t._v(t._s(t.getRoleComment(e.title)))]):r("p",[t._v(t._s(e.title))])])])})),0)]):r("div",{staticClass:"content-quote-detail"},[t._v("Not Found Timeline Quote")])]]:t._e()],2)],1)])},Ct=[],qt={mixins:[lt],props:{item:{type:Object,default:function(){}}},data:function(){return{isClickGetId:!1,isShowTimeline:!1,isShowLoadingContentTimeline:!1,isShowPDFInvoice:!1,listTimeline:[],errorCreatePdf:!1,comment:""}},methods:Object(c["a"])(Object(c["a"])({},Object(u["b"])({getQuoteTimelineById:"apiDataStore/getQuoteTimelineById",createPdfInvoiceAction:"apiDataStore/createPdfInvoice",addCommentToTimeline:"apiDataStore/addCommentToTimeline"})),{},{getTotalPrice:function(){var t=0;if(this.item.list&&this.item.list.length){var e,r=Object(i["a"])(this.item.list);try{for(r.s();!(e=r.n()).done;){var a=e.value;t+=Number(a.total)}}catch(n){r.e(n)}finally{r.f()}}return t},getRoleComment:function(t){var e="";try{return e=JSON.parse(t),e.role+" said: "+e.comment}catch(r){return t}},getTimelineId:function(){var t=arguments,e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var a,n,o,s,c,u;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],e.isClickGetId=a||!e.isClickGetId,!e.isClickGetId&&!e.isCallApi){r.next=8;break}return n={id:e.item.id},r.next=6,e.getQuoteTimelineById({params:n});case 6:if(o=r.sent,o&&o.length){e.listTimeline=o,s=Object(i["a"])(o);try{for(s.s();!(c=s.n()).done;)u=c.value,"created_draft_order"===u.status&&(e.isShowPDFInvoice=!0)}catch(p){s.e(p)}finally{s.f()}}case 8:case"end":return r.stop()}}),r)})))()},createPdfInvoice:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var r,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r={quote:JSON.stringify(t.item)},e.next=3,t.createPdfInvoiceAction({params:r});case 3:a=e.sent,"error"==a?(t.errorCreatePdf=!0,setTimeout((function(){t.errorCreatePdf=!1}),3e3)):(n=t.$appUrl+"/download/"+a,window.open(n,"_blank"),window.focus());case 5:case"end":return e.stop()}}),e)})))()},addComment:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.comment){e.next=2;break}return e.abrupt("return");case 2:return r={quote:JSON.stringify(t.item),comment:t.comment},e.next=5,t.addCommentToTimeline({params:r});case 5:a=e.sent,a&&t.getTimelineId(!0);case 7:case"end":return e.stop()}}),e)})))()}})},jt=qt,kt=Object(T["a"])(jt,$t,Ct,!1,null,null,null),Ot=kt.exports,xt={components:{timelineHistoryQuotes:Ot},data:function(){return{quoteListTimeline:[],isShowLoading:!0,fristCustomerObj:{}}},computed:Object(c["a"])({},Object(u["c"])({customer:function(t){return t.apiDataStore.customer}})),mounted:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r={email:t.customer.email},e.next=3,t.getListQuoteTimeLine({params:r});case 3:a=e.sent,t.quoteListTimeline=a,t.fristCustomerObj=Object.keys(t.fristCustomerObj).length?"":a.find((function(t){return t.customer_info&&Object.keys(t.customer_info).length})).customer_info,t.isShowLoading=!1;case 7:case"end":return e.stop()}}),e)})))()},methods:Object(c["a"])({},Object(u["b"])({getListQuoteTimeLine:"apiDataStore/getListQuoteTimeLine"}))},Pt=xt,Qt=Object(T["a"])(Pt,St,wt,!1,null,null,null),It=Qt.exports,Lt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a",{directives:[{name:"show",rawName:"v-show",value:t.isShowBtnViewQuoteCart,expression:"isShowBtnViewQuoteCart"}],class:["omgrfq_view_quote omgrfq_view_quote_btn",t.classButton],domProps:{innerHTML:t._s(t.$appSettings.view_quote_mess)},on:{click:t.viewQuoteClick}})},Ft=[],Rt={data:function(){return{classButton:y}},computed:Object(c["a"])(Object(c["a"])({},Object(u["c"])({isShowForm:function(t){return t.apiDataStore.isShowForm},isShowBtnViewQuoteCart:function(t){return t.apiDataStore.isShowBtnViewQuoteCart}})),{},{abtestChoosenPage:function(){return this.$ABtestFeature[dt]}}),methods:{viewQuoteClick:function(){this.abtestChoosenPage&&1==this.$appSettings.choosen_page?P():this.isShowForm||(this.$store.commit("apiDataStore/isShowNotificationSettings",!1),this.$store.commit("apiDataStore/isShowForm",!0))}}},Tt=Rt,Bt=Object(T["a"])(Tt,Lt,Ft,!1,null,null,null),Mt=Bt.exports,Dt={components:{viewQuotesButton:Mt},data:function(){return{classButton:y,isShowBtnViewQuote:!1}},computed:Object(c["a"])(Object(c["a"])({},Object(u["c"])({customer:function(t){return t.apiDataStore.customer},callShowBtnViewQuote:function(t){return t.apiDataStore.callShowBtnViewQuote}})),{},{abtestLogHistoryQuotes:function(){return this.$ABtestFeature[mt]},conditionShowHistoryQuotesButton:function(){return Object.keys(this.customer).length&&this.abtestLogHistoryQuotes&&1==this.$appSettings.show_history_quotes_button}}),watch:{callShowBtnViewQuote:function(t){t&&this.prepareShowViewQuoteBtn()}},mounted:function(){this.prepareShowViewQuoteBtn(),this.conditionShowHistoryQuotesButton&&this.createHistoryPagesInShopify()},methods:Object(c["a"])(Object(c["a"])({},Object(u["b"])({getPagesShopify:"apiDataStore/getPagesShopify",createShopifyPages:"apiDataStore/createShopifyPages"})),{},{prepareShowViewQuoteBtn:function(){var t=!1;if(1==this.$appSettings.show_view_button){var e=localStorage.getItem(this.$shop+"_productIdAddQuoteList");e=e?JSON.parse(e):[],(1==this.$appSettings.view_button_manual||e.length>0||1==this.$appSettings.show_view_button_empty)&&(t=!0)}this.$store.commit("apiDataStore/isShowBtnViewQuoteCart",t),1==this.$appSettings.show_next_cart?!this.$jQueryLib(".omgrfq_view_quote_btn").length&&t&&(this.$jQueryLib($()).after("<div id='button-view-quotes'></div>"),new a["a"]({store:_,render:function(t){return t(Mt)}}).$mount("#button-view-quotes")):this.isShowBtnViewQuote=t,this.$store.commit("apiDataStore/callShowBtnViewQuote",!1)},createHistoryPagesInShopify:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var r,n,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(window.__st&&window.__st.pageurl.indexOf("/history-quotes")>-1)){e.next=5;break}return t.$jQueryLib("body").attr("id","omgrfq-history-page"),t.$jQueryLib("#omgrfq-history-quote-form").append('<div id="history-quote"></div>'),new a["a"]({store:_,render:function(t){return t(It)}}).$mount("#history-quote"),e.abrupt("return");case 5:return e.next=7,t.getPagesShopify();case 7:r=e.sent,n=!1,r&&r.length&&(n=r.findIndex((function(t){return"history-quotes"===t.handle}))>-1),n||(o='<div id="omgrfq-history-quote-form"></div>',i={content:o},t.createShopifyPages({params:i}));case 11:case"end":return e.stop()}}),e)})))()}})},At=Dt,Nt=Object(T["a"])(At,bt,yt,!1,null,null,null),Gt=Nt.exports,Vt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"request-quote-page"}},[r("multiselect",{attrs:{options:t.products,"close-on-select":!0,"options-limit":20,multiple:!1,label:"product_title","track-by":"product_id",placeholder:"Search product","select-label":"Select","deselect-label":"Remove"},on:{"search-change":t.findProductInDb},scopedSlots:t._u([{key:"singleLabel",fn:function(e){var a=e.option;return[r("img",{staticClass:"option__image mr-15",attrs:{width:"19",src:a.product_image,alt:a.product_handle}}),r("span",{staticClass:"option__desc"},[r("span",{staticClass:"option__title"},[t._v(t._s(a.product_title))])])]}},{key:"option",fn:function(e){var a=e.option;return[r("img",{staticClass:"option__image mr-15",attrs:{width:"60",src:a.product_image,alt:a.product_handle}}),r("span",{staticClass:"option__desc"},[r("span",{staticClass:"option__title"},[t._v(t._s(a.product_title))])])]}}]),model:{value:t.chosenProduct,callback:function(e){t.chosenProduct=e},expression:"chosenProduct"}}),t.chosenProduct.product_variants?r("multiselect",{staticClass:"mt-15",attrs:{options:t.chosenProduct.product_variants,"close-on-select":!0,"options-limit":20,multiple:!1,label:"title","track-by":"id",placeholder:"Select a variant","select-label":"Select","deselect-label":"Remove"},on:{input:t.addNewProductInQuoteList},model:{value:t.chosenVariants,callback:function(e){t.chosenVariants=e},expression:"chosenVariants"}}):t._e(),r("form-quotes",{ref:"formQuotesAction",staticClass:"mt-15",attrs:{"is-quotes-page":!0}})],1)},Et=[],Ht=r("8e5f"),Jt=r.n(Ht),Ut=(r("07ac"),{methods:{checkExistProductInQuoteList:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!1,n="";if("undefined"!=typeof otFBPixelATC&&otFBPixelATC(t),1==this.$appSettings.tracking_source)if(window.location.href.indexOf("utm_source")>-1){var o=window.location.search,i=new URLSearchParams(o);n=i.get("utm_source")}else n=t.trackingSource?t.trackingSource:"";if(e.length>0)for(var s=0,c=Object.values(e);s<c.length;s++){var u=c[s];if(u.id===t.id&&u.variant.id===t.variant.id){u.quantity=r?t.quantity:u.quantity+t.quantity,u.total=u.quantity*Number(u.variant.price),u.totalPrice=this.quoteListFormatMoney(100*u.total,this.$OMGRFQConfigs.currency),u.trackingSource=n,a=!0;break}}return a||(t.trackingSource=n,e.push(t)),e}}}),zt={mixins:[lt,Ut],components:{Multiselect:Jt.a,formQuotes:vt},data:function(){return{chosenProduct:[],chosenVariants:[]}},created:function(){var t={limit:20};this.getAllProducts({params:t})},computed:Object(c["a"])({},Object(u["c"])({products:function(t){return t.apiDataStore.products},isShowForm:function(t){return t.apiDataStore.isShowForm}})),watch:{isShowForm:function(t){t||this.$refs.formQuotesAction.getProductListForm()}},methods:Object(c["a"])(Object(c["a"])({},Object(u["b"])({getAllProducts:"apiDataStore/getAllProducts"})),{},{addNewProductInQuoteList:function(t){var e=localStorage.getItem(this.$shop+"_productIdAddQuoteList"),r=e&&e.length?JSON.parse(e):[],a={id:this.chosenProduct.product_id,title:this.chosenProduct.product_title,image:this.chosenProduct.product_image,vendor:this.chosenProduct.product_vendor,handle:this.chosenProduct.product_handle,quantity:1,message:"",variant:{id:t.id,title:t.title,price:Number(t.price),basePrice:Number(t.price),sku:t.sku,priceText:this.quoteListFormatMoney(100*Number(t.price),this.$OMGRFQConfigs.currency)},trackingSource:""};a.total=Number(t.price)*a.quantity,a.totalPrice=this.quoteListFormatMoney(100*a.total,this.$OMGRFQConfigs.currency),r=this.checkExistProductInQuoteList(a,r),localStorage.setItem(this.$shop+"_productIdAddQuoteList",JSON.stringify(r)),this.$refs.formQuotesAction.getProductListForm(),this.chosenProduct=[],this.chosenVariants=[]},findProductInDb:function(t){var e={title_product:t,isFindDb:!0};this.getAllProducts({params:e})}})},Wt=zt,Yt=Object(T["a"])(Wt,Vt,Et,!1,null,null,null),Zt=Yt.exports,Xt={computed:Object(c["a"])({},Object(u["c"])({customer:function(t){return t.apiDataStore.customer}})),methods:{getDataFormDesign:function(){var t=localStorage.getItem(this.$shop+"_omgrfq_formInfo"),e=[];if(t)if(e=JSON.parse(t),e.length!=this.$appSettings.form_data.length)e=this.$appSettings.form_data;else{for(var r=!1,a=0,n=Object.entries(e);a<n.length;a++){var o=Object(p["a"])(n[a],2),i=o[0],s=o[1];if(s.input!=this.$appSettings.form_data[i].input||s.type!=this.$appSettings.form_data[i].type||s.label!=this.$appSettings.form_data[i].label){r=!0;break}}r&&(e=this.$appSettings.form_data)}else e=Array.isArray(this.$appSettings.form_data)?this.$appSettings.form_data:JSON.parse(this.$appSettings.form_data);for(var c=0,u=Object.values(e);c<u.length;c++){var l=u[c];if("date"==l.input&&"undefined"==typeof l.req&&(l.req=0),"undefined"==typeof l.value||""==l.value)if(Object.keys(this.customer).length){if("undefined"!=typeof l.defaultValue&&""!=l.defaultValue&&null!=l.defaultValue){var d=l.defaultValue.split(".");2==d.length?"name"==d[1]?l.value=this.customer.first_name+" "+this.customer.last_name:l.value=null!=this.customer[d[1]]&&"null"!=this.customer[d[1]]?this.customer[d[1]]:"":3==d.length&&(l.value="undefined"!=typeof this.customer[d[1]]&&"null"!=this.customer[d[1]][d[2]]&&null!=this.customer[d[1]][d[2]]?this.customer[d[1]][d[2]]:"")}else l.value="";1==this.$appSettings.customer_data_sync&&"email"===l.type&&this.customer.email&&(l.value=this.customer.email)}else l.value=""}localStorage.setItem(this.$shop+"_omgrfq_formInfo",JSON.stringify(e)),this.$store.commit("apiDataStore/storeFormList",e)}}},Kt=(r("caad"),r("b0c0"),r("2532"),function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.classBtnAddQuotes},[r("button",{class:["omgrfq-btn-quotes omgrfq-btn",t.classButton,{"loading-button":t.isLoadingButton}],attrs:{id:t.productId?"omgrfq_colletion_"+t.productId:"",type:"button",disabled:t.isDisabledButton},domProps:{innerHTML:t._s(t.$appSettings.button_text)},on:{click:t.addProductToQuoteList}}),t.isShowSuccessText?r("p",{staticClass:"alert-success",attrs:{id:"omgrfq_alert_success_"+t.productId}},[t._v(" Add product quote to cart successfully ")]):t._e()])}),te=[],ee={name:"OMGButtonQuotes",mixins:[Xt,lt,Ut],props:{product:{type:Object,default:function(){}},productId:{type:Number,default:0},typeButton:{type:String,default:""}},data:function(){return{classButton:y,isDisabledButton:!1,isShowSuccessText:!1,isLoadingButton:!1}},computed:Object(c["a"])(Object(c["a"])({},Object(u["c"])({variantIdGlobal:function(t){return t.apiDataStore.variantId},isHideClassBtnQuotes:function(t){return t.apiDataStore.isHideClassBtnQuotes}})),{},{abtestChoosenPage:function(){return this.$ABtestFeature[dt]},classBtnAddQuotes:function(){return"special"===this.typeButton?"omgrfq-special-button-quote":this.isHideClassBtnQuotes?"omgrfq-btn-add-quotes":"omgrfq-product-button omgrfq-btn-add-quotes"}}),mounted:function(){"special"!==this.typeButton&&this.disableButtonAddQuoteList()},watch:{variantIdGlobal:function(){"special"!==this.typeButton&&this.disableButtonAddQuoteList()}},methods:Object(c["a"])(Object(c["a"])({},Object(u["b"])({cartAdd:"apiDataStore/cartAdd"})),{},{addProductToQuoteList:function(){var t=arguments,e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var a,n,o,i,s,c,u,p,l,d;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t.length>0&&void 0!==t[0]?t[0]:null,t.length>1&&void 0!==t[1]?t[1]:{},e.isDisabledButton=!0,a=localStorage.getItem(e.$shop+"_productIdAddQuoteList"),n=a&&a.length?JSON.parse(a):[],o="special"===e.typeButton?e.product:e.$OMGRFQConfigs.product,!e.abtestChoosenPage||1!=e.$appSettings.choosen_page||"special"!==e.typeButton){r.next=18;break}if(i=o.product_variants.find((function(t){return!("shopify"===t.inventory_management&&"deny"===t.inventory_policy&&t.inventory_quantity<=0)})).id,!e.isLoadingButton){r.next=10;break}return r.abrupt("return");case 10:return e.isLoadingButton=!0,s={id:i,quantity:1,properties:{"Product In Quote":"This product will be add to quote app and not list in checkout page"}},r.next=14,e.cartAdd({params:s});case 14:return e.isLoadingButton=!1,e.isShowSuccessText=!0,setTimeout((function(){e.isShowSuccessText=!1}),3e3),r.abrupt("return");case 18:if(!o||!Object.keys(o).length){r.next=43;break}if(c=e.$jQueryLib('input[name="quantity"]').length>0?Number(e.$jQueryLib('input[name="quantity"]').val()):1,u={id:"special"===e.typeButton?e.productId:e.$OMGRFQConfigs.productId,title:o.product_title,image:o.product_image,vendor:o.product_vendor,handle:o.product_handle,quantity:"special"===e.typeButton?1:c,message:"",variant:"special"===e.typeButton?{id:o.product_variants[0].id,title:o.product_variants[0].title,price:Number(o.product_variants[0].price)/100,basePrice:Number(o.product_variants[0].price)/100,sku:o.product_variants[0].sku,priceText:e.quoteListFormatMoney(o.product_variants[0].price,e.$OMGRFQConfigs.currency)}:{},trackingSource:""},"special"===e.typeButton){r.next=35;break}p=0,l=Object.values(o.product_variants);case 23:if(!(p<l.length)){r.next=33;break}if(d=l[p],d.id!=e.variantIdGlobal){r.next=30;break}return u.variant={id:d.id,title:d.title,price:d.price,basePrice:d.price,sku:d.sku,priceText:e.quoteListFormatMoney(100*d.price,e.$OMGRFQConfigs.currency)},u.total=Number(d.price)*u.quantity,u.totalPrice=e.quoteListFormatMoney(100*u.total,e.$OMGRFQConfigs.currency),r.abrupt("break",33);case 30:p++,r.next=23;break;case 33:r.next=37;break;case 35:u.total=Number(u.variant.price)*u.quantity,u.totalPrice=e.quoteListFormatMoney(100*u.total,e.$OMGRFQConfigs.currency);case 37:n=e.checkExistProductInQuoteList(u,n),localStorage.setItem(e.$shop+"_productIdAddQuoteList",JSON.stringify(n)),e.isDisabledButton=!1,2==e.$appSettings.typeof_dialog&&e.$store.commit("apiDataStore/isShowNotificationSettings",!0),e.$store.commit("apiDataStore/isShowForm",!0),e.$store.commit("apiDataStore/callShowBtnViewQuote",!0);case 43:case"end":return r.stop()}}),r)})))()},disableButtonAddQuoteList:function(){if(this.variantIdGlobal){for(var t,e=0,r=Object.values(this.$OMGRFQConfigs.product.product_variants);e<r.length;e++){var a=r[e];if(a.id==this.variantIdGlobal){t=a;break}}"shopify"===t.inventory_management&&"deny"===t.inventory_policy&&t.inventory_quantity<=0&&1!=this.$appSettings.allow_out_stock?this.isDisabledButton=!0:this.isDisabledButton=!1}else this.isDisabledButton=1!=this.$appSettings.allow_out_stock}})},re=ee,ae=Object(T["a"])(re,Kt,te,!1,null,null,null),ne=ae.exports,oe={mixins:[Ut,lt],computed:Object(c["a"])(Object(c["a"])({},Object(u["c"])({variantIdGlobal:function(t){return t.apiDataStore.variantId}})),{},{abtestChoosenPage:function(){return this.$ABtestFeature[dt]}}),methods:Object(c["a"])(Object(c["a"])({},Object(u["b"])({getProductById:"apiDataStore/getProductById",getCartProducts:"apiDataStore/getCartProducts"})),{},{initButtonToElment:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;new a["a"]({store:_,render:function(t){var a={};return e&&(a={props:{product:r,productId:Number(n),typeButton:"special"}}),t(ne,a)}}).$mount(t)},productPageDisplay:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.checkConditionDisplay(Object.keys(e).length>0?e:this.$OMGRFQConfigs.product),n=this.$jQueryLib(S);if(this.abtestChoosenPage&&1==this.$appSettings.choosen_page){if(a||r){if(Object.keys(e).length>0&&this.addProductToQuoteListInCartPage(null,e),r)return;var o=this.$jQueryLib("#omgrfqExistQuote");return void(this.$OMGRFQConfigs.productId&&!o.length&&n.prepend('<input type="hidden" class="omgrfqExistQuote" name="properties[Product In Quote]" value="This product will be add to quote app and not list in checkout page">'))}}else{var i=1==this.$appSettings.hide_add_cart&&a?"none":"block";q(n).not(".omgrfq-btn-quotes").css("display",i),this.$jQueryLib(".product-item-quick-shop").css("display",i),this.$jQueryLib(".shopify-payment-button").css("display",i);var s=1==this.$appSettings.hide_price&&a?"none":"block";if(this.$jQueryLib(this.$appSettings.price_class).css("display",s),a){var c=function(){if(t.$appSettings.custom_element_position)t.$jQueryLib(t.$appSettings.custom_element_position).after("<div id='omgrfq-button'></div>");else if("auto"==t.$appSettings.position_button){var e=t.$jQueryLib(S);q(e).length?q(e).first().after("<div id='omgrfq-button'></div>"):q(e).first().append("<div id='omgrfq-button'></div>")}else"title"==t.$appSettings.position_button?t.$jQueryLib(t.$OMGRFQConfigs.theme.title_class).after("<div id='omgrfq-button'></div>"):"price"==t.$appSettings.position_button?t.$jQueryLib(t.$OMGRFQConfigs.theme.price_class).after("<div id='omgrfq-button'></div>"):"description"==t.$appSettings.position_button&&t.$jQueryLib(t.$OMGRFQConfigs.theme.description_class).after("<div id='omgrfq-button'></div>");!t.$jQueryLib("#omgrfq-button").length&&t.$jQueryLib(".omgrfq-product-button").length&&(t.$store.commit("apiDataStore/isHideClassBtnQuotes",!0),t.$jQueryLib(".omgrfq-product-button").append("<div id='omgrfq-button'></div>")),t.initButtonToElment("#omgrfq-button")};this.$jQueryLib(".omgrfq-btn-add-quotes").length||c(),setTimeout((function(){t.$jQueryLib(".omgrfq-btn-add-quotes").length||c()}),500)}}},checkConditionDisplay:function(t){if(1==this.$appSettings.enable_all_products)return!0;if(1==this.$appSettings.enable_manual_products&&this.$appSettings.manual_products.length>0){for(var e=0,r=Object.values(this.$appSettings.manual_products);e<r.length;e++){var a=r[e];if(a.id==t.product_id)return!0}return!1}if(1==this.$appSettings.enable_automate_products){for(var n=JSON.parse(this.$appSettings.addConditions),o=!1,i=0,s=Object.values(n);i<s.length;i++){var c=s[i];if(o=this.isSatisfyWith(t,c),!o&&"AND"==this.$appSettings.automate_kind_condition||o&&"OR"==this.$appSettings.automate_kind_condition)return"OR"==this.$appSettings.automate_kind_condition}return"AND"==this.$appSettings.automate_kind_condition}},isSatisfyWith:function(t,e){var r=this.getValueProduct(t,e);return this.checkIsCondition(e,r)},getValueProduct:function(t,e){switch(e.selectedType){case"title":return t.product_title;case"type":return t.product_type;case"vendor":return t.product_vendor;case"tag":return"undefined"!=typeof t.product_tags?t.product_tags.join(", "):"";case"customer":return this.$OMGRFQConfigs.customerTags?this.$OMGRFQConfigs.customerTags:"";case"time":return-1!=e.isChoosen.indexOf("create")?this.getFormatDate(t.created_at):-1!=e.isChoosen.indexOf("publish")?this.getFormatDate(t.published_at):"";case"collection":return"undefined"!=typeof t.collection?t.collection.join(", "):"";case"price":if(!this.variantIdGlobal)return t.product_variants[0].price;for(var r=0,a=Object.values(t.product_variants);r<a.length;r++){var n=a[r];if(n.id==this.variantIdGlobal)return n.price}break;case"inventory":if(!this.variantIdGlobal)return t.product_variants[0].inventory_quantity;for(var o=0,i=Object.values(t.product_variants);o<i.length;o++){var s=i[o];if(s.id==this.variantIdGlobal&&"undefined"!=typeof s.inventory_quantity)return s.inventory_quantity}break;default:return""}},checkIsCondition:function(t,e){var r="";switch(-1==t.isChoosen.indexOf("create")&&-1==t.isChoosen.indexOf("publish")||(t.valueCondition=this.getFormatDate(t.valueCondition)),t.isChoosen){case"contain":r="isContain";break;case"not_contain":r="notContain";break;case"startwith":r="startWith";break;case"endwith":r="endWith";break;case"equal":case"create_equal":r="isEqual";break;case"notequal":r="isNotEqual";break;case"greater":case"publish_after":case"create_after":r="isGreaterThan";break;case"smaller":case"publish_before":case"create_before":r="isSmallerThan";break;case"tag_equal":r="isTagEqual";break;case"tag_not_equal":r="isTagNotEqual";break;case"only_logged":r="isOnlyLogged";break;case"only_guest":r="isOnlyGuest";break;default:break}return this.eachRuleCondition(r,e,t.valueCondition)},getFormatDate:function(t){var e=new Date(t);return e.getTime()},isBoolean:function(t){return"boolean"==typeof t?!0===t:t},eachRuleCondition:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if("isContain"===t||"notContain"===t||"startWith"===t||"endWith"===t){e=this.isBoolean(e),e=String(e),r=String(r),e=e.toLowerCase(),r=r.toLowerCase();var a="";if(!r)return"notContain"!==t;if("endWith"===t)return a=e.split(" ").reverse().join(" "),0===a.indexOf(r);if("isContain"===t)return e.indexOf(r)>-1;if("notContain"===t)return-1===e.indexOf(r);if("startWith"===t)return 0===e.indexOf(r)}if("isEqual"===t||"isNotEqual"===t||"isGreaterThan"===t||"isSmallerThan"===t){if(e=Number(e),r=Number(r),"isEqual"===t)return r===e;if("isNotEqual"===t)return r!==e;if("isGreaterThan"===t)return e>r;if("isSmallerThan"===t)return e<r}return"isTagEqual"===t||"isTagNotEqual"===t?"isTagEqual"===t?e.indexOf(r)>-1:-1!==e.indexOf(r):"isOnlyLogged"===t||"isOnlyGuest"===t?"isOnlyGuest"===t?"undefined"==typeof this.$customerId||!this.$customerId:!("undefined"==typeof this.$customerId||!this.$customerId):void 0},showButtonInSpecialPosition:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$jQueryLib(e).length>0&&this.$jQueryLib(e).each(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(r,a){var n,o,i,s,c,u,p,l,d,m,f,h,g;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.$jQueryLib(a),o=n.attr("data-product-id")||n.attr("data-product"),o){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,t.checkProductDisplayInSpecialPosition(o);case 5:i=e.sent,s=t.checkConditionDisplay(i),c=n.parent(),s&&!t.$jQueryLib(n.find(".omgrfq-button-special-exists-".concat(o))).length&&(n.append("<div class='omgrfq-button-special-exists-".concat(o,"'></div>")),n.append("<div class='omgrfq-button-special-".concat(o,"'></div>")),t.initButtonToElment(".omgrfq-button-special-".concat(o),!0,i,o)),1==t.$appSettings.allow_collection_button&&(t.$OMGRFQConfigs.theme&&t.$OMGRFQConfigs.theme.collection_addcart&&(u=1==t.$appSettings.hide_add_cart_collection&&s?"none":"block",p=c.find(t.$jQueryLib(t.$OMGRFQConfigs.theme.collection_addcart)),p.css("display",u)),t.$OMGRFQConfigs.theme&&t.$OMGRFQConfigs.theme.collection_item_price&&(l=1==t.$appSettings.hide_price_collection&&s?"none":"block",d=c.find(t.$jQueryLib(t.$OMGRFQConfigs.theme.collection_item_price[0])),d.css("display",l))),t.$isOnSpecialHideOption&&(m=1==t.$appSettings.hide_price&&s?"none":"block",f=c.find(t.$jQueryLib(O)),f.css("display",m),h=1==t.$appSettings.hide_add_cart&&s?"none":"block",g=c.find(t.$jQueryLib(x)),g.css("display",h));case 11:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}())},checkProductDisplayInSpecialPosition:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var a,n,o,i,s,c,u;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a="",n=!1,"undefined"==typeof e.$productCollection){r.next=12;break}o=0,i=Object.entries(e.$productCollection);case 3:if(!(o<i.length)){r.next=12;break}if(s=Object(p["a"])(i[o],2),c=s[0],u=s[1],c!=t){r.next=9;break}return a=u,n=!0,r.abrupt("break",12);case 9:o++,r.next=3;break;case 12:if(n){r.next=17;break}return r.next=15,e.callGetProductById(t);case 15:a=r.sent,"string"==typeof a.product_tags&&(a.product_tags=a.product_tags.split(", "));case 17:return r.abrupt("return",a);case 18:case"end":return r.stop()}}),r)})))()},callGetProductById:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return a={id:t},r.next=3,e.getProductById({params:a});case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()},addProductToQuoteListInCartPage:function(){var t=arguments.length>1?arguments[1]:void 0,e=localStorage.getItem(this.$shop+"_productIdAddQuoteList"),r=e&&e.length?JSON.parse(e):[],a={id:t.product_id,title:t.product_title,image:t.image,vendor:t.vendor,handle:t.handle,quantity:t.quantity,message:"",variant:{},trackingSource:"",key:t.key,properties:t.properties},n=this.quoteListFormatMoney(t.price,this.$OMGRFQConfigs.currency),o=Number(t.price)*t.quantity;a.variant={id:t.id,title:t.variant_title,price:Number(n.replace(/[^0-9]/g,"")),basePrice:Number(n.replace(/[^0-9]/g,"")),sku:t.sku,priceText:n},a.totalPrice=this.quoteListFormatMoney(o,this.$OMGRFQConfigs.currency),a.total=Number(a.totalPrice.replace(/[^0-9]/g,"")),r=this.checkExistProductInQuoteList(a,r,!0),localStorage.setItem(this.$shop+"_productIdAddQuoteList",JSON.stringify(r)),this.$store.commit("apiDataStore/callShowBtnViewQuote",!0)},initAjaxCart:function(){var t=this,e=function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(r,a){var n,o,i,s=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=s.length>2&&void 0!==s[2]&&s[2],["".concat(window.location.origin,"/cart.js"),"/cart.js"].includes(r)&&("Supply"===Shopify.theme.name&&(o=0,i=setInterval((function(){var e=t.$jQueryLib("#ajaxifyCart .ajaxifyCart--is-loading").length;if(e)return o+=1,void(o>10&&clearInterval(i));t.processButtonCheckout(!0),clearInterval(i)}),100)),t.processButtonCheckout(!0)),!["".concat(window.location.origin,"/cart/add.js"),"".concat(window.location.origin,"/cart/update.js"),"".concat(window.location.origin,"/cart/change.js"),"".concat(window.location.origin,"/cart/clear.js"),"/cart/add.js","/cart/update.js","/cart/change.js","/cart/clear.js"].includes(r)){e.next=8;break}if(!n){e.next=7;break}return e.next=6,a.clone().json();case 6:a=e.sent;case 7:-1===r.indexOf("/cart/clear.js")?t.processInitAjaxCart(a):localStorage.setItem(t.$shop+"_productIdAddQuoteList","[]");case 8:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();(function(t,r){"function"===typeof r&&(t.fetch=function(){var t=r.apply(this,arguments);return t.then((function(t){e(t.url,t,!0)})),t})})(window,window.fetch);var r=window.XMLHttpRequest.prototype.open;function a(){return this.addEventListener("load",(function(){try{e(this._url,JSON.parse(this.response))}catch(t){return!1}})),r.apply(this,arguments)}window.XMLHttpRequest.prototype.open=a},processInitAjaxCart:function(t){var e=this,r=t;r&&r.items?r.items.length&&function(){var t=localStorage.getItem(e.$shop+"_productIdAddQuoteList"),a=t&&t.length?JSON.parse(t):[],n=function(t){var n=-1===r.items.findIndex((function(e){return e.product_id===a[t].id}));n&&(a.splice(t,1),localStorage.setItem(e.$shop+"_productIdAddQuoteList",JSON.stringify(a)))};for(var o in a)n(o);var s,c=Object(i["a"])(r.items);try{for(c.s();!(s=c.n()).done;){var u=s.value;e.productPageDisplay(u)}}catch(p){c.e(p)}finally{c.f()}}():this.productPageDisplay(r)},processButtonCheckout:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=0,a=setInterval((function(){var n=t.$jQueryLib(w()),o=t.$jQueryLib("#CartDrawer").length,c=o?t.$jQueryLib(w("#CartDrawer")):t.$jQueryLib(w("#ajaxifyCart"));if(!n.length||e&&!c.length)return r+=1,void(r>10&&clearInterval(a));var u=c.addClass("ajax_checkout"),p=n.not(".ajax_checkout"),l="omgrfq_checkout",d="omgrfq_checkout_ajax";t.$jQueryLib("#".concat(d)).length||(u.clone().attr("id",d).insertAfter(u),u.not("#".concat(d)).css("display","none")),t.$jQueryLib("#".concat(l)).length||(p.clone().attr("id",l).insertAfter(p),p.not("#".concat(l)).css("display","none"));var m=localStorage.getItem(t.$shop+"_productIdAddQuoteList"),f=m&&m.length?JSON.parse(m):[];t.$jQueryLib("#".concat(l,", #").concat(d)).click(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(r){var a,n,o,s,c,u,p,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r.preventDefault(),e.next=3,t.getCartProducts();case 3:if(a=e.sent,a&&a.items.length){for(c in n=a.items.findIndex((function(t){return t.properties&&t.properties["Product In Quote"]}))>-1,o=!!n&&1==t.$appSettings.submit_all_cart,s=function(e){n=-1===a.items.findIndex((function(t){return t.product_id===f[e].id})),n&&(f.splice(e,1),localStorage.setItem(t.$shop+"_productIdAddQuoteList",JSON.stringify(f)))},f)s(c);u=Object(i["a"])(a.items);try{for(u.s();!(p=u.n()).done;)h=p.value,t.productPageDisplay(h,o)}catch(g){u.e(g)}finally{u.f()}m=localStorage.getItem(t.$shop+"_productIdAddQuoteList"),f=m&&m.length?JSON.parse(m):[]}if(t.$store.commit("apiDataStore/isShowForm",!0),t.$jQueryLib("#".concat(l,", #").concat(d)).removeClass("btn--loading"),setTimeout((function(){t.$jQueryLib("#CartDrawer").length&&t.$jQueryLib(C()).trigger("click")}),300),f.length){e.next=11;break}return Q(),e.abrupt("return");case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),clearInterval(a)}),100)}})},ie={name:"AppQuotes",mixins:[Xt,oe],components:{formQuotes:vt,buttonAction:Gt},data:function(){return{appStatus:!1,isShowButtonAction:!1,isMountRFQPage:!1}},computed:Object(c["a"])(Object(c["a"])({},Object(u["c"])({isShowForm:function(t){return t.apiDataStore.isShowForm}})),{},{abtestChoosenPage:function(){return this.$ABtestFeature[dt]},abtestPageRequestAQuotes:function(){return this.$ABtestFeature[ft]}}),mounted:function(){var t="undefined"!==typeof this.$OMGRFQConfigs.variant_selected_or_first&&this.$OMGRFQConfigs.variant_selected_or_first?this.$OMGRFQConfigs.variant_selected_or_first.id:"";this.$store.commit("apiDataStore/updateVariantId",t),this.initApp()},methods:Object(c["a"])(Object(c["a"])({},Object(u["b"])({getVariantsOfProduct:"apiDataStore/getVariantsOfProduct",activeSendMailQuotes:"apiDataStore/activeSendMailQuotes",cartChanges:"apiDataStore/cartChanges",getCustomerInfo:"apiDataStore/getCustomerInfo",checkInstallApp:"apiDataStore/checkInstallApp"})),{},{processRequestAQuotesPage:function(){this.abtestPageRequestAQuotes&&1==this.$appSettings.show_app_in_page&&(this.isMountRFQPage=!0,new a["a"]({store:_,render:function(t){return t(Zt)}}).$mount("#requestQuotePage"))},activeEmail:function(){var t=new URLSearchParams(window.location.search),e={id:t.get("id")};this.activeSendMailQuotes({params:e})},initApp:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.$createElement,e.next=3,t.checkInstallApp();case 3:if(t.appStatus=e.sent,1!=t.$appSettings.enable_app||!t.appStatus){e.next=13;break}if(t.processRequestAQuotesPage(),t.$OMGRFQConfigs.product=t.$OMGRFQConfigs.productInTheme&&Object.keys(t.$OMGRFQConfigs.productInTheme).length?t.convertDataThemeToDB(t.$OMGRFQConfigs.productInTheme):null,n={productId:t.$OMGRFQConfigs.productId},!t.$OMGRFQConfigs.productId){e.next=12;break}return e.next=11,t.getVariantsOfProduct({params:n});case 11:t.$OMGRFQConfigs.product.product_variants=e.sent;case 12:t.getStart();case 13:t.isMountRFQPage||new a["a"]({render:function(){return r("div",{class:"grid__item"},[r("h1",["404 Page Not Found"]),r("p",["The page you requested does not exist. Click ",r("a",{attrs:{href:"/collections/all"}},["here"])," to continue shopping."])])}}).$mount("#requestQuotePage");case 14:case"end":return e.stop()}}),e)})))()},getStart:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.abtestChoosenPage&&1==t.$appSettings.choosen_page&&t.initAjaxCart(),e.next=3,t.$nextTick((function(){t.$jQueryLib("body").append("<style>"+t.$appSettings.customcss+"</style>"),window.location.href.indexOf("activeSendMailQuotes")>-1&&t.activeEmail();var e=localStorage.getItem(t.$shop+"_productIdAddQuoteList"),r=e&&e.length?JSON.parse(e):[];if(t.$OMGRFQConfigs.productId){if(t.abtestChoosenPage&&0==t.$appSettings.choosen_page||!t.abtestChoosenPage){var a,n=Object(i["a"])(r);try{for(n.s();!(a=n.n()).done;){var o=a.value;if(o&&o.key){var s={id:"".concat(o.key),quantity:0};t.cartChanges({params:s})}}}catch(c){n.e(c)}finally{n.f()}}t.productPageDisplay(),setInterval((function(){t.checkOnChangeVariant()}),1e3),1==t.$appSettings.viewed_products&&t.checkEnableViewedProductsQuote()}t.showButtonInSpecialPosition(k),t.abtestChoosenPage&&1==t.$appSettings.choosen_page&&(t.$jQueryLib($()).click((function(){t.processButtonCheckout(!0),setTimeout((function(){t.processButtonCheckout(!0)}),500)})),t.processButtonCheckout()),1==t.$appSettings.allow_collection_button&&t.showButtonInSpecialPosition(j)}));case 3:if(!t.$OMGRFQConfigs.customerId){e.next=7;break}return r={customerId:t.$OMGRFQConfigs.customerId},e.next=7,t.getCustomerInfo({params:r});case 7:t.isShowButtonAction=!0,t.getDataFormDesign();case 9:case"end":return e.stop()}}),e)})))()},checkEnableViewedProductsQuote:function(){var t=JSON.parse(localStorage.getItem(this.$shop+"_productIdViewedList")),e=t||[],r=this.$OMGRFQConfigs.product,a=this.$OMGRFQConfigs.productId,n=new Date,o=n.getFullYear()+"-"+(n.getMonth()+1)+"-"+n.getDate(),i=n.getHours()+":"+n.getMinutes()+":"+n.getSeconds().toString().padStart(2,"0"),s=o+" "+i,c={id:a,title:r.product_title,image:r.product_image,vendor:r.product_vendor,handle:r.product_handle,viewed:1,time_visit:s},u=!1,p=0;for(var l in e)e[l].id==a&&(u=!0,p=l);u?e[p].viewed+=1:e.push(c),localStorage.setItem(this.$shop+"_productIdViewedList",JSON.stringify(e))},checkOnChangeVariant:function(){var t=window.location.href,e=null;t!=this.$currentUrl&&(e=this.getUrlParameter("variant"),e&&(this.$store.commit("apiDataStore/updateVariantId",e),this.$currentUrl=t,this.productPageDisplay()))},getUrlParameter:function(t){var e,r,a=decodeURIComponent(window.location.search.substring(1)),n=a.split("&");for(r=0;r<n.length;r++)if(e=n[r].split("="),e[0]===t)return void 0===e[1]||e[1];return null},convertDataThemeToDB:function(t){var e={};return e.product_id=t.id,e.product_created_at=t.created_at,e.product_handle=t.handle,e.product_image=t.featured_image,e.product_published_at=t.published_at,e.product_tags=t.tags,e.product_title=t.title,e.product_type=t.type,e.product_variants=t.variants,e.product_vendor=t.vendor,e.collection=t.collection,e}})},se=ie,ce=(r("5c0b"),Object(T["a"])(se,n,o,!1,null,null,null)),ue=ce.exports,pe=r("bc3a"),le=r.n(pe),de=window,me=de.OMGRFQConfigs,fe=de.omgrfq_productCollection;function he(t){"undefined"===typeof window.jQuery?ge({source:"//ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js",callback:function(){var e=window.jQuery.noConflict(!0);t(e)}}):t(window.jQuery)}function ge(t){var e=t.source,r=t.callback,a=document.createElement("script"),n=document.getElementsByTagName("script")[0];a.async=1,a.onload=a.onreadystatechange=function(t,e){(e||!a.readyState||/loaded|complete/.test(a.readyState))&&(a.onload=a.onreadystatechange=null,a=void 0,e||r&&r())},a.src=e,n.parentNode.insertBefore(a,n)}a["a"].config.productionTip=!1,a["a"].config.silent=!0,"undefined"==typeof window.omg_quote_list_checkJS&&(window.omg_quote_list_checkJS=1,he((function(t){a["a"].prototype.$jQueryLib=t,a["a"].prototype.$http=le.a,a["a"].prototype.$OMGRFQConfigs=me,a["a"].prototype.$shop=me.store,a["a"].prototype.$appSettings=me.settings,a["a"].prototype.$appUrl=me.app_url,a["a"].prototype.$currentUrl=window.location.href,a["a"].prototype.$customerId=me.customerId,a["a"].prototype.$productCollection=fe,le.a.get(me.app_url+"/quote-list.php",{params:{action:"getAbtest",shop:me.store}}).then((function(t){a["a"].prototype.$ABtestFeature=t.data})).catch((function(t){console.log(t)})).then((function(){window.OMGRFQGlobalVariables=new a["a"]({store:_,render:function(t){return t(ue)}}).$mount("#app-quotes"),le.a.get(me.app_url+"/quote-list.php",{params:{action:"getCustomScript",shop:me.store}}).then((function(t){document.head.appendChild(document.createRange().createContextualFragment("<script>"+t.data+"<\/script>")),a["a"].prototype.$isOnSpecialHideOption=window.omgrfq_isOnSpecialHideOption})).catch((function(t){console.log(t)}))}))})))},"5aa6":function(t,e,r){var a={"./ar.js":"f8e5","./at.js":"1adf","./az.js":"8a5e","./be.js":"a003","./bg.js":"f437","./bn.js":"e82a","./bs.js":"b9ec","./cat.js":"fe2a","./cs.js":"1014","./cy.js":"4e89","./da.js":"fbe1","./de.js":"26df","./default.js":"40ce","./eo.js":"57b6","./es.js":"4984","./et.js":"8115","./fa.js":"787b","./fi.js":"7b0b9","./fo.js":"dc9b","./fr.js":"0227","./ga.js":"01d7","./gr.js":"5bcb","./he.js":"4211","./hi.js":"feff","./hr.js":"8fe8","./hu.js":"295f","./id.js":"022c","./index.js":"cbfa","./is.js":"252b","./it.js":"ae60","./ja.js":"50ca","./ka.js":"a74d","./km.js":"e50d","./ko.js":"5445","./kz.js":"d24c","./lt.js":"60bc","./lv.js":"d7c8","./mk.js":"df51","./mn.js":"e69d","./ms.js":"7ef0","./my.js":"4844","./nl.js":"dee5","./no.js":"b874","./pa.js":"c066","./pl.js":"b579","./pt.js":"228d","./ro.js":"655e","./ru.js":"6ffc","./si.js":"7d5e","./sk.js":"727b","./sl.js":"92cd","./sq.js":"26b4","./sr-cyr.js":"cfec","./sr.js":"0e21","./sv.js":"98d4","./th.js":"8521","./tr.js":"f80c","./uk.js":"fb33","./uz.js":"9c83","./uz_latn.js":"cec9","./vn.js":"c80b","./zh-tw.js":"3a66","./zh.js":"dc1c"};function n(t){var e=o(t);return r(e)}function o(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}n.keys=function(){return Object.keys(a)},n.resolve=o,t.exports=n,n.id="5aa6"},"5c0b":function(t,e,r){"use strict";r("9c0c")},"9c0c":function(t,e,r){}});
clearInterval(checkAppAppend);
}
}, 50);
</script>
<meta property="og:image" content="https://cdn.shopify.com/s/files/1/1765/5181/files/logo.png?height=628&pad_color=ecedee&v=1613663152&width=1200" />
<meta property="og:image:secure_url" content="https://cdn.shopify.com/s/files/1/1765/5181/files/logo.png?height=628&pad_color=ecedee&v=1613663152&width=1200" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="628" />
<link href="https://monorail-edge.shopifysvc.com" rel="dns-prefetch">
<script>(function(){if ("sendBeacon" in navigator && "performance" in window) {var session_token = document.cookie.match(/_shopify_s=([^;]*)/);function handle_abandonment_event(e) {var entries = performance.getEntries().filter(function(entry) {return /monorail-edge.shopifysvc.com/.test(entry.name);});if (!window.abandonment_tracked && entries.length === 0) {window.abandonment_tracked = true;var currentMs = Date.now();var navigation_start = performance.timing.navigationStart;var payload = {shop_id: 17655181,url: window.location.href,navigation_start,duration: currentMs - navigation_start,session_token: session_token && session_token.length === 2 ? session_token[1] : "",page_type: "index"};window.navigator.sendBeacon("https://monorail-edge.shopifysvc.com/v1/produce", JSON.stringify({schema_id: "online_store_buyer_site_abandonment/1.1",payload: payload,metadata: {event_created_at_ms: currentMs,event_sent_at_ms: currentMs}}));}}window.addEventListener('pagehide', handle_abandonment_event);}}());</script>
<script id="web-pixels-manager-setup">(function d(d,e,r,a,n){var o,i,t,s,l=(i=(o={modern:/Edge?\/(1{2}[4-9]|1[2-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Firefox\/(1{2}[4-9]|1[2-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Chrom(ium|e)\/(9{2}|\d{3,})\.\d+(\.\d+|)|(Maci|X1{2}).+ Version\/(15\.\d+|(1[6-9]|[2-9]\d|\d{3,})\.\d+)([,.]\d+|)( \(\w+\)|)( Mobile\/\w+|) Safari\/|Chrome.+OPR\/(9{2}|\d{3,})\.\d+\.\d+|(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(15[._]\d+|(1[6-9]|[2-9]\d|\d{3,})[._]\d+)([._]\d+|)|Android:?[ /-](12[89]|1[3-9]\d|[2-9]\d{2}|\d{4,})(\.\d+|)(\.\d+|)|Android.+Firefox\/(12[7-9]|1[3-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Android.+Chrom(ium|e)\/(12[89]|1[3-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|SamsungBrowser\/([2-9]\d|\d{3,})\.\d+/,legacy:/Edge?\/(1[6-9]|[2-9]\d|\d{3,})\.\d+(\.\d+|)|Firefox\/(5[4-9]|[6-9]\d|\d{3,})\.\d+(\.\d+|)|Chrom(ium|e)\/(5[1-9]|[6-9]\d|\d{3,})\.\d+(\.\d+|)([\d.]+$|.*Safari\/(?![\d.]+ Edge\/[\d.]+$))|(Maci|X1{2}).+ Version\/(10\.\d+|(1[1-9]|[2-9]\d|\d{3,})\.\d+)([,.]\d+|)( \(\w+\)|)( Mobile\/\w+|) Safari\/|Chrome.+OPR\/(3[89]|[4-9]\d|\d{3,})\.\d+\.\d+|(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(10[._]\d+|(1[1-9]|[2-9]\d|\d{3,})[._]\d+)([._]\d+|)|Android:?[ /-](12[89]|1[3-9]\d|[2-9]\d{2}|\d{4,})(\.\d+|)(\.\d+|)|Mobile Safari.+OPR\/([89]\d|\d{3,})\.\d+\.\d+|Android.+Firefox\/(12[7-9]|1[3-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Android.+Chrom(ium|e)\/(12[89]|1[3-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Android.+(UC? ?Browser|UCWEB|U3)[ /]?(15\.([5-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+)\.\d+|SamsungBrowser\/(5\.\d+|([6-9]|\d{2,})\.\d+)|Android.+MQ{2}Browser\/(14(\.(9|\d{2,})|)|(1[5-9]|[2-9]\d|\d{3,})(\.\d+|))(\.\d+|)|K[Aa][Ii]OS\/(3\.\d+|([4-9]|\d{2,})\.\d+)(\.\d+|)/}).modern,t=o.legacy,s=navigator.userAgent,i.test(s)?"modern":(t.test(s),"legacy"));window.Shopify=window.Shopify||{};var c=window.Shopify;c.analytics=c.analytics||{};var u=c.analytics;u.replayQueue=[],u.publish=function(d,e,r){return u.replayQueue.push([d,e,r]),!0};try{self.performance.mark("wpm:start")}catch(d){}var h=[r,"/wpm","/b",n,l.substring(0,1),".js"].join("");!function(d){var e=d.src,r=d.async,a=void 0===r||r,n=d.onload,o=d.onerror,i=document.createElement("script"),t=document.head,s=document.body;i.async=a,i.src=e,n&&i.addEventListener("load",n),o&&i.addEventListener("error",o),t?t.appendChild(i):s?s.appendChild(i):console.error("Did not find a head or body element to append the script")}({src:h,async:!0,onload:function(){var r=window.webPixelsManager.init(d);e(r);var a=window.Shopify.analytics;a.replayQueue.forEach((function(d){var e=d[0],a=d[1],n=d[2];r.publishCustomEvent(e,a,n)})),a.replayQueue=[],a.publish=r.publishCustomEvent,a.visitor=r.visitor},onerror:function(){var e=d.storefrontBaseUrl.replace(/\/$/,""),r="".concat(e,"/.well-known/shopify/monorail/unstable/produce_batch"),n=JSON.stringify({metadata:{event_sent_at_ms:(new Date).getTime()},events:[{schema_id:"web_pixels_manager_load/3.1",payload:{version:a||"latest",bundle_target:l,page_url:self.location.href,status:"failed",surface:d.surface,error_msg:"".concat(h," has failed to load")},metadata:{event_created_at_ms:(new Date).getTime()}}]});try{if(self.navigator.sendBeacon.bind(self.navigator)(r,n))return!0}catch(d){}var o=new XMLHttpRequest;try{return o.open("POST",r,!0),o.setRequestHeader("Content-Type","text/plain"),o.send(n),!0}catch(d){console&&console.warn&&console.warn("[Web Pixels Manager] Got an unhandled error while logging a load error.")}return!1}})})({shopId: 17655181,storefrontBaseUrl: "https://legalbooks.ie",extensionsBaseUrl: "https://extensions.shopifycdn.com/cdn/shopifycloud/web-pixels-manager",surface: "storefront-renderer",enabledBetaFlags: [],webPixelsConfigList: [{"id":"1121157444","configuration":"{\"config\":\"{\\\"pixel_id\\\":\\\"GT-MJJDP8PS\\\",\\\"target_country\\\":\\\"IE\\\",\\\"gtag_events\\\":[{\\\"type\\\":\\\"purchase\\\",\\\"action_label\\\":\\\"MC-TND3Z6TSYL\\\"},{\\\"type\\\":\\\"page_view\\\",\\\"action_label\\\":\\\"MC-TND3Z6TSYL\\\"},{\\\"type\\\":\\\"view_item\\\",\\\"action_label\\\":\\\"MC-TND3Z6TSYL\\\"}],\\\"enable_monitoring_mode\\\":false}\"}","eventPayloadVersion":"v1","runtimeContext":"OPEN","scriptVersion":"a46b87f88a4ff97a9490f9aa4799ba7b","type":"APP","apiClientId":1780363,"privacyPurposes":[]},{"id":"102662468","eventPayloadVersion":"1","runtimeContext":"LAX","scriptVersion":"2","type":"CUSTOM","privacyPurposes":[],"name":"AP Google Ecom Events Tracking"},{"id":"shopify-app-pixel","configuration":"{}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"0220","apiClientId":"shopify-pixel","type":"APP","privacyPurposes":["ANALYTICS","MARKETING"]},{"id":"shopify-custom-pixel","eventPayloadVersion":"v1","runtimeContext":"LAX","scriptVersion":"0220","apiClientId":"shopify-pixel","type":"CUSTOM","privacyPurposes":["ANALYTICS","MARKETING"]}],isMerchantRequest: false,initData: {"shop":{"name":"Legal \u0026 General \/ Legalbooks.ie","paymentSettings":{"currencyCode":"EUR"},"myshopifyDomain":"legalbooks-2.myshopify.com","countryCode":"IE","storefrontUrl":"https:\/\/legalbooks.ie"},"customer":null,"cart":null,"checkout":null,"productVariants":[],"purchasingCompany":null},},function pageEvents(webPixelsManagerAPI) {webPixelsManagerAPI.publish("page_viewed", {});},"https://legalbooks.ie/cdn","197cd42ad7ab868de58b6bcb07f9e270c5ea6f17","d9f539ffw0e1474c4pae8b6d69m179c86ad",);</script> <script>window.ShopifyAnalytics = window.ShopifyAnalytics || {};
window.ShopifyAnalytics.meta = window.ShopifyAnalytics.meta || {};
window.ShopifyAnalytics.meta.currency = 'EUR';
var meta = {"page":{"pageType":"home"}};
for (var attr in meta) {
window.ShopifyAnalytics.meta[attr] = meta[attr];
}</script>
<script>window.ShopifyAnalytics.merchantGoogleAnalytics = function() {
};
</script>
<script class="analytics">(window.gaDevIds=window.gaDevIds||[]).push('BwiEti');
(function () {
var customDocumentWrite = function(content) {
var jquery = null;
if (window.jQuery) {
jquery = window.jQuery;
} else if (window.Checkout && window.Checkout.$) {
jquery = window.Checkout.$;
}
if (jquery) {
jquery('body').append(content);
}
};
var hasLoggedConversion = function(token) {
if (token) {
return document.cookie.indexOf('loggedConversion=' + token) !== -1;
}
return false;
}
var setCookieIfConversion = function(token) {
if (token) {
var twoMonthsFromNow = new Date(Date.now());
twoMonthsFromNow.setMonth(twoMonthsFromNow.getMonth() + 2);
document.cookie = 'loggedConversion=' + token + '; expires=' + twoMonthsFromNow;
}
}
var trekkie = window.ShopifyAnalytics.lib = window.trekkie = window.trekkie || [];
if (trekkie.integrations) {
return;
}
trekkie.methods = [
'identify',
'page',
'ready',
'track',
'trackForm',
'trackLink'
];
trekkie.factory = function(method) {
return function() {
var args = Array.prototype.slice.call(arguments);
args.unshift(method);
trekkie.push(args);
return trekkie;
};
};
for (var i = 0; i < trekkie.methods.length; i++) {
var key = trekkie.methods[i];
trekkie[key] = trekkie.factory(key);
}
trekkie.load = function(config) {
trekkie.config = config || {};
trekkie.config.initialDocumentCookie = document.cookie;
var first = document.getElementsByTagName('script')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.onerror = function(e) {
var scriptFallback = document.createElement('script');
scriptFallback.type = 'text/javascript';
scriptFallback.onerror = function(error) {
var Monorail = {
produce: function produce(monorailDomain, schemaId, payload) {
var currentMs = new Date().getTime();
var event = {
schema_id: schemaId,
payload: payload,
metadata: {
event_created_at_ms: currentMs,
event_sent_at_ms: currentMs
}
};
return Monorail.sendRequest("https://" + monorailDomain + "/v1/produce", JSON.stringify(event));
},
sendRequest: function sendRequest(endpointUrl, payload) {
// Try the sendBeacon API
if (window && window.navigator && typeof window.navigator.sendBeacon === 'function' && typeof window.Blob === 'function' && !Monorail.isIos12()) {
var blobData = new window.Blob([payload], {
type: 'text/plain'
});
if (window.navigator.sendBeacon(endpointUrl, blobData)) {
return true;
} // sendBeacon was not successful
} // XHR beacon
var xhr = new XMLHttpRequest();
try {
xhr.open('POST', endpointUrl);
xhr.setRequestHeader('Content-Type', 'text/plain');
xhr.send(payload);
} catch (e) {
console.log(e);
}
return false;
},
isIos12: function isIos12() {
return window.navigator.userAgent.lastIndexOf('iPhone; CPU iPhone OS 12_') !== -1 || window.navigator.userAgent.lastIndexOf('iPad; CPU OS 12_') !== -1;
}
};
Monorail.produce('monorail-edge.shopifysvc.com',
'trekkie_storefront_load_errors/1.1',
{shop_id: 17655181,
theme_id: 78688157779,
app_name: "storefront",
context_url: window.location.href,
source_url: "//legalbooks.ie/cdn/s/trekkie.storefront.a8ef5c2c4f1c6e0839c6b8857d0a2edb7d22d961.min.js"});
};
scriptFallback.async = true;
scriptFallback.src = '//legalbooks.ie/cdn/s/trekkie.storefront.a8ef5c2c4f1c6e0839c6b8857d0a2edb7d22d961.min.js';
first.parentNode.insertBefore(scriptFallback, first);
};
script.async = true;
script.src = '//legalbooks.ie/cdn/s/trekkie.storefront.a8ef5c2c4f1c6e0839c6b8857d0a2edb7d22d961.min.js';
first.parentNode.insertBefore(script, first);
};
trekkie.load(
{"Trekkie":{"appName":"storefront","development":false,"defaultAttributes":{"shopId":17655181,"isMerchantRequest":null,"themeId":78688157779,"themeCityHash":"16739938258121570605","contentLanguage":"en","currency":"EUR"},"isServerSideCookieWritingEnabled":true,"monorailRegion":"shop_domain"},"Google Analytics":{"trackingId":"UA-93802917-1","domain":"auto","siteSpeedSampleRate":"10","enhancedEcommerce":true,"doubleClick":true,"includeSearch":true},"Session Attribution":{},"S2S":{"facebookCapiEnabled":false,"source":"trekkie-storefront-renderer","apiClientId":580111}}
);
var loaded = false;
trekkie.ready(function() {
if (loaded) return;
loaded = true;
window.ShopifyAnalytics.lib = window.trekkie;
ga('require', 'linker');
function addListener(element, type, callback) {
if (element.addEventListener) {
element.addEventListener(type, callback);
}
else if (element.attachEvent) {
element.attachEvent('on' + type, callback);
}
}
function decorate(event) {
event = event || window.event;
var target = event.target || event.srcElement;
if (target && (target.getAttribute('action') || target.getAttribute('href'))) {
ga(function (tracker) {
var linkerParam = tracker.get('linkerParam');
document.cookie = '_shopify_ga=' + linkerParam + '; ' + 'path=/';
});
}
}
addListener(window, 'load', function(){
for (var i=0; i < document.forms.length; i++) {
var action = document.forms[i].getAttribute('action');
if(action && action.indexOf('/cart') >= 0) {
addListener(document.forms[i], 'submit', decorate);
}
}
for (var i=0; i < document.links.length; i++) {
var href = document.links[i].getAttribute('href');
if(href && href.indexOf('/checkout') >= 0) {
addListener(document.links[i], 'click', decorate);
}
}
});
var originalDocumentWrite = document.write;
document.write = customDocumentWrite;
try { window.ShopifyAnalytics.merchantGoogleAnalytics.call(this); } catch(error) {};
document.write = originalDocumentWrite;
window.ShopifyAnalytics.lib.page(null,{"pageType":"home"});
var match = window.location.pathname.match(/checkouts\/(.+)\/(thank_you|post_purchase)/)
var token = match? match[1]: undefined;
if (!hasLoggedConversion(token)) {
setCookieIfConversion(token);
}
});
var eventsListenerScript = document.createElement('script');
eventsListenerScript.async = true;
eventsListenerScript.src = "//legalbooks.ie/cdn/shopifycloud/shopify/assets/shop_events_listener-61fa9e0a912c675e178777d2b27f6cbd482f8912a6b0aa31fa3515985a8cd626.js";
document.getElementsByTagName('head')[0].appendChild(eventsListenerScript);
})();</script>
<script class="boomerang">
(function () {
window.BOOMR = window.BOOMR || {};
window.BOOMR.themeName = "Warehouse";
window.BOOMR.themeVersion = "1.6.4";
window.BOOMR.shopId = 17655181;
window.BOOMR.themeId = 78688157779;
})();</script>
<script
defer
src="https://legalbooks.ie/cdn/shopifycloud/perf-kit/shopify-perf-kit-1.0.1.min.js"
data-application="storefront-renderer"
data-shop-id="17655181"
data-render-region="gcp-europe-west4"
data-page-type="index"
data-theme-instance-id="78688157779"
data-monorail-region="shop_domain"
data-resource-timing-sampling-rate="10"
></script>
</head>
LegalBooks.ie – Legal & General / Legalbooks.ie
Recherche META Description de la page
Legal and General is the Shop in the Four Courts Dublin We sell Legal or law books, stationery, Attire or Clothes, and professional gifts
Recherche META Keywords de la page
UPDATE DOMAINES SET server='cloudflare',redirection='https://legalbooks.ie/',Status='200',err='',[TITRE]=N'LegalBooks.ie – Legal & General / Legalbooks.ie
',[DESCRIPTION]=N'Legal and General is the Shop in the Four Courts Dublin We sell Legal or law books, stationery, Attire or Clothes, and professional gifts',[KEYWORDS]=N'' WHERE id=36657762
0 LegalBooks.ie – Legal & General / Legalbooks.ie
Legal and General is the Shop in the Four Courts Dublin We sell Legal or law books stationery Attire or Clothes and professional gifts
0. LegalBooks.ie (13)--------->0
1. – (7)--------->0
2. Legal (5)--------->0
3. & (5)--------->0
4. General (7)--------->0
5. / (1)--------->0
6. Legalbooks.ie
(14)--------->0
8. and (3)--------->0
10. is (2)--------->0
11. the (3)--------->0
12. Shop (4)--------->0
13. in (2)--------->0
15. Four (4)--------->0
16. Courts (6)--------->0
17. Dublin (6)--------->0
18. We (2)--------->0
19. sell (4)--------->0
21. or (2)--------->0
22. law (3)--------->0
23. books (5)--------->0
25. stationery (10)--------->0
27. Attire (6)--------->0
29. Clothes (7)--------->0
32. professional (12)--------->0
33. gifts (5)--------->0
INSERT INTO KEYWORDS (keyword,id_domaine) VALUES (N'LegalBooks.ie',36657762),(N'–',36657762),(N'Legal',36657762),(N'&',36657762),(N'General',36657762),(N'/',36657762),(N'Legalbooks.ie
',36657762),(N'and',36657762),(N'is',36657762),(N'the',36657762),(N'Shop',36657762),(N'in',36657762),(N'Four',36657762),(N'Courts',36657762),(N'Dublin',36657762),(N'We',36657762),(N'sell',36657762),(N'or',36657762),(N'law',36657762),(N'books',36657762),(N'stationery',36657762),(N'Attire',36657762),(N'Clothes',36657762),(N'professional',36657762),(N'gifts',36657762)