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,GAAS,CAAC;yDACf,EAAEA,EAAK,EAAD,EAAQ,CAAC;2DACb,EAAEA,EAAK,EAAD,OAAa,CAAC;oEACX,EAAEA,EAAK,EAAD,eAAqB,CAAC;0DACtC,EAAEA,EAAK,EAAD,MAAY,CAAC;6CAChC,CAAC,EACpB;;iBAET,CAAC,CAAG,GAAG;;;;;;;;kCAQU,EAAEJ,EAAWG,GAAG,CAACP,GAAM,CAAC,CAAC,EAAEA,EAAG,CAAC,CAAC,EAAE;;;;;;;;;;;QAW5D,EAAES,EAAAA,CAAOA,CAAC;IACd,CAAC,EG2Q6B,SAAEV,eAASG,EAAcW,MAAK,GAE5DH,EAAa3B,IAAI,CAAC+B,GAAQtB,IAAI,CAACC,IAE3BmB,EAASnB,GAAUL,MAAM4B,eAAeC,OAAO4C,gBACnD,EACJ,oCCjUO,IAAMpD,EAAU,CAAC;;;;;;;;AAQxB,CAAC","sources":["webpack://_N_E/./thirdparty/Nosto/Graphql.service.js","webpack://_N_E/./thirdparty/Nosto/mutations/SearchedFor.js","webpack://_N_E/./thirdparty/Nosto/mutations/ViewedCart.js","webpack://_N_E/./thirdparty/Nosto/mutations/ViewedCategory.js","webpack://_N_E/./thirdparty/Nosto/mutations/ViewedFrontPage.js","webpack://_N_E/./thirdparty/Nosto/mutations/ViewedProduct.js","webpack://_N_E/./thirdparty/Nosto/mutations/SetCustomerData.js","webpack://_N_E/./thirdparty/Nosto/mutations/ViewedPage.js","webpack://_N_E/./thirdparty/Nosto/mutations/ViewedNotFound.js","webpack://_N_E/./thirdparty/Nosto/mutations/ViewedBlog.js","webpack://_N_E/./thirdparty/Nosto/mutations/ViewedOther.js","webpack://_N_E/./thirdparty/Nosto/NostoEvents.js","webpack://_N_E/./thirdparty/Nosto/fragments/product.js"],"sourcesContent":["/**\n * Nosto Graphql Service\n * Playground: https://my.nosto.com/bigcommerce-r14v4z7cjw/graphql\n * Docs: https://docs.nosto.com/techdocs/apis/graphql-an-introduction/graphql-using-queries\n * \n * Using the header X-Nosto-Ignore: True will cause any traffic from being recorded. Queries and Mutations will work normally but any API calls containing this header will not be archived or accrue towards the statistics.\n */\n\nimport axios from \"axios\";\n\n\nexport default class NostoGraphql{\n constructor(){}\n\n async post(queryData){\n return await axios({\n url: \"https://api.nosto.com/v1/graphql\",\n method: \"POST\",\n data: queryData,\n headers: {\n 'Content-Type': 'application/graphql',\n 'Authorization': \"Basic \" + btoa(\":\"+process.env.NEXT_PUBLIC_nosto_app_token)\n }\n })\n .then(response => response?.data)\n .catch(err => console.log(err)) \n }\n\n\n}","import { product } from \"../fragments/product\";\n\n\nexport default function SearchedFor({ session, query, id, placementIds = [], cart }){\n const placements = typeof placementIds === \"string\" ? placementIds.split(\",\") : placementIds\n\n return`\n mutation {\n updateSession(by: BY_CID, id: \"${session}\",\n params: {\n event: {\n type: SEARCHED_FOR\n target: \"${query}\"\n ${id ? `ref: \"${id}\"` : \"\"}\n }\n ${(cart?.id) ? `cart: {\n items: [\n ${(cart.items).map(item => `{\n productId: \"${item['productId']}\",\n skuId: \"${item['skuId']}\",\n name: \"\"\"${item['name']}\"\"\",\n unitPrice: ${item['unitPrice']},\n priceCurrencyCode: \"${item['priceCurrencyCode']}\",\n quantity: ${item['quantity']}\n }`\n )}\n ]\n }` : \"\"}\n }\n ) {\n pages {\n forSearchPage(\n params: {\n isPreview: false, \n imageVersion: VERSION_8_400_400,\n slotIds: [${placements.map(id => `\"${id}\"`)}]\n },\n term: \"${query}\") {\n resultId\n primary {\n ...product\n }\n }\n }\n }\n }\n\n ${product}\n `\n}","import { product } from \"../fragments/product\";\n\n\nexport default function ViewedCart({ session, id, cartValue, placementIds = [], items }){\n const placements = typeof placementIds === \"string\" ? placementIds.split(\",\") : placementIds\n\n return`\n mutation {\n updateSession(by: BY_CID, id: \"${session}\",\n params: {\n event: {\n type: VIEWED_PAGE\n target: \"${process.env.NEXT_PUBLIC_siteUrl}/cart\"\n ${id ? `ref: \"${id}\"` : \"\"}\n }\n ${items.length ? `cart: {\n items: [\n ${items.map(item => `{\n productId: \"${item['productId']}\",\n skuId: \"${item['skuId']}\",\n name: \"\"\"${item['name']}\"\"\",\n unitPrice: ${item['unitPrice']},\n priceCurrencyCode: \"${item['priceCurrencyCode']}\",\n quantity: ${item['quantity']}\n }`\n )}\n ]\n }` : \"\"}\n }\n ) {\n pages {\n forCartPage(\n params: {\n isPreview: false, \n imageVersion: VERSION_8_400_400\n slotIds: [${placements.map(id => `\"${id}\"`)}]\n },\n value: ${cartValue}) {\n resultId\n primary {\n ...product\n }\n }\n }\n }\n }\n\n ${product}\n `\n}","import { product } from \"../fragments/product\";\n\n\nexport default function ViewedCategory({ \n session, \n taxonomy, \n target,\n placementIds = [],\n categoryNameTaxonomy,\n categoryTarget = null,\n cart\n}){\n const categoryPath = (taxonomy.length === taxonomy.lastIndexOf(\"/\") + 1) ? taxonomy.slice(0, -1) : \"/\" + taxonomy;\n const slotIds = Array.isArray(placementIds) ? placementIds : placementIds.split(\",\").map(id => `\"${id.trim()}\"`);\n\n return`\n mutation {\n updateSession(by: BY_CID, id: \"${session}\",\n params: {\n event: {\n type: VIEWED_CATEGORY\n target: \"${categoryTarget ?? target ?? categoryPath}\"\n }\n ${(cart?.id) ? `cart: {\n items: [\n ${(cart.items).map(item => `{\n productId: \"${item['productId']}\",\n skuId: \"${item['skuId']}\",\n name: \"\"\"${item['name']}\"\"\",\n unitPrice: ${item['unitPrice']},\n priceCurrencyCode: \"${item['priceCurrencyCode']}\",\n quantity: ${item['quantity']}\n }`\n )}\n ]\n }` : \"\"}\n }\n ) {\n pages {\n forCategoryPage (\n params: {\n isPreview: false, \n imageVersion: VERSION_8_400_400\n slotIds: [${slotIds}]\n },\n category: \"${categoryNameTaxonomy ?? taxonomy}\") {\n resultId\n primary {\n ...product\n }\n }\n }\n }\n }\n\n ${product}\n `\n}\n\n","import { product } from \"../fragments/product\";\n\n\nexport default function ViewedFrontPage({ session = \"\", placementIds = [], cart }){\n const placements = typeof placementIds === \"string\" ? placementIds.split(\",\") : placementIds\n\n return`\n mutation {\n updateSession(by: BY_CID, id: \"${session}\",\n params: {\n event: {\n type: VIEWED_PAGE\n target: \"${process.env.NEXT_PUBLIC_siteUrl}\"\n }\n ${(cart?.id) ? `cart: {\n items: [\n ${(cart.items).map(item => `{\n productId: \"${item['productId']}\",\n skuId: \"${item['skuId']}\",\n name: \"\"\"${item['name']}\"\"\",\n unitPrice: ${item['unitPrice']},\n priceCurrencyCode: \"${item['priceCurrencyCode']}\",\n quantity: ${item['quantity']}\n }`\n )}\n ]\n }` : \"\"}\n }\n ) {\n pages {\n forFrontPage(\n params: {\n isPreview: false, \n imageVersion: VERSION_8_400_400\n slotIds: [${placements.map(id => `\"${id}\"`)}]\n }) {\n resultId\n primary {\n ...product\n }\n }\n }\n }\n }\n\n ${product}\n `\n}","import { product } from \"../fragments/product\";\n\n\nexport default function ViewedProduct({ session, productId, resultId, cart }){\n return`\n mutation {\n updateSession(by: BY_CID, id: \"${session}\",\n params: {\n event: {\n type: VIEWED_PRODUCT\n target: \"${productId}\"\n ${resultId ? `ref: \"${resultId}\"` : \"\"}\n }\n ${(cart?.id) ? `cart: {\n items: [\n ${(cart.items).map(item => `{\n productId: \"${item['productId']}\",\n skuId: \"${item['skuId']}\",\n name: \"\"\"${item['name']}\"\"\",\n unitPrice: ${item['unitPrice']},\n priceCurrencyCode: \"${item['priceCurrencyCode']}\",\n quantity: ${item['quantity']}\n }`\n )}\n ]\n }` : \"\"}\n }\n ) {\n pages {\n forProductPage(\n params: {\n isPreview: false, \n imageVersion: VERSION_8_400_400\n },\n product: \"${productId}\") {\n resultId\n primary {\n ...product\n }\n }\n }\n }\n }\n\n ${product}\n `\n}","\n\nexport default function SetCustomerData({ session, customer, placementIds = [] }){\n const placements = typeof placementIds === \"string\" ? placementIds.split(\",\") : placementIds;\n\n return `\n mutation {\n updateCustomer(\n by: BY_CID, \n id: \"${session}\",\n ${Object.keys(customer).length ? ` customer: {\n firstName: \"${customer['first_name']}\",\n lastName: \"${customer['last_name']}\",\n customerReference: \"${customer['customer_reference']}\",\n marketingPermission: false\n }` \n : \"\" }\n ) \n }\n\n `\n}","import { product } from \"../fragments/product\";\n\n\nexport default function ViewedPage({ session = \"\", url = \"\", placementIds = [], cart }){\n const placements = typeof placementIds === \"string\" ? placementIds.split(\",\") : placementIds\n\n return`\n mutation {\n updateSession(\n by: BY_CID, \n id: \"${session}\",\n params: {\n event: {\n type: VIEWED_PAGE\n target: \"${process.env.NEXT_PUBLIC_siteUrl + url}\"\n }\n ${(cart?.id) ? `cart: {\n items: [\n ${(cart.items).map(item => `{\n productId: \"${item['productId']}\",\n skuId: \"${item['skuId']}\",\n name: \"\"\"${item['name']}\"\"\",\n unitPrice: ${item['unitPrice']},\n priceCurrencyCode: \"${item['priceCurrencyCode']}\",\n quantity: ${item['quantity']}\n }`\n )}\n ]\n }` : \"\"}\n }\n ) {\n pages {\n forGeneralLayoutPage(\n params: {\n isPreview: false, \n imageVersion: VERSION_8_400_400,\n slotIds: [${placements.map(id => `\"${id}\"`)}]\n }) {\n resultId\n primary {\n ...product\n }\n }\n }\n }\n }\n\n ${product}\n `\n}","import { product } from \"../fragments/product\";\n\n\nexport default function ViewedNotFound({ session = \"\", url, placementIds = [], cart }){\n const placements = typeof placementIds === \"string\" ? placementIds.split(\",\") : placementIds\n\n return`\n mutation {\n updateSession(\n by: BY_CID, \n id: \"${session}\",\n params: {\n event: {\n type: VIEWED_PAGE\n target: \"${process.env.NEXT_PUBLIC_siteUrl + url}\"\n }\n ${(cart?.id) ? `cart: {\n items: [\n ${(cart.items).map(item => `{\n productId: \"${item['productId']}\",\n skuId: \"${item['skuId']}\",\n name: \"\"\"${item['name']}\"\"\",\n unitPrice: ${item['unitPrice']},\n priceCurrencyCode: \"${item['priceCurrencyCode']}\",\n quantity: ${item['quantity']}\n }`\n )}\n ]\n }` : \"\"}\n }\n ) {\n pages {\n forNotFoundPage(\n params: {\n isPreview: false, \n imageVersion: VERSION_8_400_400,\n slotIds: [${placements.map(id => `\"${id}\"`)}]\n }) {\n resultId\n primary {\n ...product\n }\n }\n }\n }\n }\n\n ${product}\n `\n}","import { product } from \"../fragments/product\";\n\n\nexport default function ViewedBlog({ session = \"\", url = \"\", placementIds =[], cart }){\n const placements = typeof placementIds === \"string\" ? placementIds.split(\",\") : placementIds\n\n return`\n mutation {\n updateSession(\n by: BY_CID, \n id: \"${session}\",\n params: {\n event: {\n type: VIEWED_PAGE\n target: \"${process.env.NEXT_PUBLIC_siteUrl + url}\"\n }\n ${(cart?.id) ? `cart: {\n items: [\n ${(cart.items).map(item => `{\n productId: \"${item['productId']}\",\n skuId: \"${item['skuId']}\",\n name: \"\"\"${item['name']}\"\"\",\n unitPrice: ${item['unitPrice']},\n priceCurrencyCode: \"${item['priceCurrencyCode']}\",\n quantity: ${item['quantity']}\n }`\n )}\n ]\n }` : \"\"}\n }\n ) {\n pages {\n forLandingPage(\n params: {\n isPreview: false, \n imageVersion: VERSION_8_400_400,\n slotIds: [${placements.map(id => `\"${id}\"`)}]\n }) {\n resultId\n primary {\n ...product\n }\n }\n }\n }\n }\n\n ${product}\n `\n}","import { product } from \"../fragments/product\";\n\n\nexport default function ViewedOther({ session = \"\", url = \"\", placementIds = [], cart }){\n const placements = typeof placementIds === \"string\" ? placementIds.split(\",\") : placementIds\n\n return`\n mutation {\n updateSession(\n by: BY_CID, \n id: \"${session}\",\n params: {\n event: {\n type: VIEWED_PAGE\n target: \"${process.env.NEXT_PUBLIC_siteUrl + url}\"\n }\n ${(cart?.id) ? `cart: {\n items: [\n ${(cart.items).map(item => `{\n productId: \"${item['productId']}\",\n skuId: \"${item['skuId']}\",\n name: \"\"\"${item['name']}\"\"\",\n unitPrice: ${item['unitPrice']},\n priceCurrencyCode: \"${item['priceCurrencyCode']}\",\n quantity: ${item['quantity']}\n }`\n )}\n ]\n }` : \"\"}\n }\n ) {\n pages {\n forOtherPage(\n params: {\n isPreview: false, \n imageVersion: VERSION_8_400_400,\n slotIds: [${placements.map(id => `\"${id}\"`)}]\n }) {\n resultId\n primary {\n ...product\n }\n }\n }\n }\n }\n\n ${product}\n `\n}","import NostoGraphql from \"./Graphql.service\";\nimport SearchedFor from \"./mutations/SearchedFor\";\nimport ViewedCart from \"./mutations/ViewedCart\";\nimport ViewedCategory from \"./mutations/ViewedCategory\";\nimport ViewedFrontPage from \"./mutations/ViewedFrontPage\";\nimport ViewedProduct from \"./mutations/ViewedProduct\";\nimport SetCustomerData from \"./mutations/SetCustomerData\";\nimport ViewedPage from \"./mutations/ViewedPage\";\nimport ViewedNotFound from \"./mutations/ViewedNotFound\";\nimport ViewedBlog from \"./mutations/ViewedBlog\";\nimport ViewedOther from \"./mutations/ViewedOther\";\n\n\nconst nostoGraphql = new NostoGraphql()\n\n\n\n/**\n * When viewing a home-page\n * @param {string} session \n * @param {function} callback\n * @param {array} placementIds\n * @param {object} cart\n */\n\nexport async function ViewFrontPage({ \n session, \n callback = () => null, \n placementIds = [],\n cart = cart?.items ?? [] \n}){\n const schema = ViewedFrontPage({ session, placementIds, cart })\n\n await nostoGraphql.post(schema).then(response => {\n callback(response?.data?.updateSession?.pages?.forFrontPage)\n })\n}\n\n\n\n\n/**\n * When a visitor logs in customer information \n * @param {string} session \n * @param {object} customer\n */\n\nexport function SetCustomer({ \n customer = {}, \n session, \n placementIds = [],\n // callback = () => null, \n // cart\n}) { \n \n const schema = SetCustomerData({ session, customer, placementIds})\n\n nostoGraphql.post(schema).then(response => {\n // callback(response?.data?.updateSession?.pages?.forOtherPage)\n })\n}\n\n\n\n\n\n/**\n * When viewing a product\n * @param {string} session \n * @param {object} customer\n * @param {function} callback\n * @param {array} placementIds\n * @param {string} productId\n * @param {object} cart\n */\n\nexport async function ViewProduct({ \n session, \n productId = null, \n resultId = \"\", \n callback = () => null, \n placementIds = [],\n cart = cart?.items ?? []\n}){ \n const schema = ViewedProduct({ session, productId, resultId, placementIds, cart })\n \n return await nostoGraphql.post(schema).then(response => {\n callback(response?.data?.updateSession?.pages?.forProductPage)\n })\n}\n\n\n\n\n/**\n * When viewing a general page\n * @param {string} session \n * @param {function} callback\n * @param {array} placementIds\n * @param {string} url\n * @param {object} cart\n */\n\nexport function ViewPage({ \n session, \n url, \n callback = () => null, \n placementIds = [],\n cart = cart?.items ?? []\n}){\n const schema = ViewedPage({ session, placementIds, url, cart })\n\n nostoGraphql.post(schema).then(response => {\n // console.log(response?.data?.updateSession?.pages?.forGeneralLayoutPage)\n callback(response?.data?.updateSession?.pages?.forGeneralLayoutPage)\n })\n}\n\n\n\n/**\n * When viewing a general page\n * @param {string} session \n * @param {function} callback\n * @param {array} placementIds\n * @param {string} url\n * @param {object} cart\n */\n\nexport function ViewOther({ \n session, \n url, \n callback = () => null, \n placementIds = [],\n cart = cart?.items ?? []\n}){\n const schema = ViewedOther({ session, placementIds, url, cart })\n\n nostoGraphql.post(schema).then(response => {\n // console.log(response?.data?.updateSession?.pages?.forGeneralLayoutPage)\n callback(response?.data?.updateSession?.pages?.forGeneralLayoutPage)\n })\n}\n\n\n\n\n\n\n/**\n * All Blogs \n * @param {string} session \n * @param {function} callback\n * @param {array} placementIds\n * @param {string} url\n * @param {object} cart\n */\n\nexport function ViewBlog({ \n session, \n url, \n callback = () => null, \n placementIds = [],\n cart = cart?.items ?? []\n}){\n const schema = ViewedBlog({ session, placementIds, url, cart })\n\n nostoGraphql.post(schema).then(response => {\n // console.log(response?.data?.updateSession?.pages?.forLandingPage)\n callback(response?.data?.updateSession?.pages?.forLandingPage)\n })\n}\n\n\n\n\n\n/**\n * When viewing a category or collection,\n * @param {string} session \n * @param {function} callback\n * @param {array} placementIds\n * @param {string} taxonomy\n * @param {string} categoryTarget\n * @param {object} cart\n */\n\nexport function ViewCategory({ \n session, \n taxonomy = \"\", \n callback = () => null, \n placementIds = [],\n categoryTarget,\n target,\n categoryNameTaxonomy,\n cart = cart?.items ?? []\n}){\n const schema = ViewedCategory({ session, taxonomy, placementIds, categoryTarget, target, categoryNameTaxonomy, cart })\n\n nostoGraphql.post(schema).then(response => {\n // console.log(response?.data?.updateSession?.pages?.forCategoryPage)\n callback(response?.data?.updateSession?.pages?.forCategoryPage)\n })\n}\n\n\n\n\n\n/**\n * When viewing the results of a search\n * @param {string} session \n * @param {function} callback\n * @param {array} placementIds\n * @param {string} query\n * @param {object} cart\n */\n\nexport function ViewSearch({ \n session, \n query = \"\", \n callback = () => null, \n placementIds = [],\n categoryTarget,\n cart = cart?.items ?? []\n}){\n const schema = SearchedFor({ session, query, placementIds, categoryTarget, cart })\n\n nostoGraphql.post(schema).then(response => {\n // console.log(response?.data?.updateSession?.pages?.forSearchPage)\n callback(response?.data?.updateSession?.pages?.forSearchPage)\n })\n}\n\n\n\n\n\n/**\n *When viewing a checkout page\n * @param {string} session \n * @param {function} callback\n * @param {array} placementIds\n * @param {object} cart\n */\n\nexport function ViewCart({ \n session, \n callback = () => null, \n placementIds = [],\n cart\n}){\n\n if( cart?.id ){\n const schema = ViewedCart({ \n session, \n placementIds, \n id: cart?.id, \n cartValue: cart?.cart_amount,\n items:cart?.items\n })\n \n nostoGraphql.post(schema).then(response => {\n callback(response?.data?.updateSession?.pages?.forCartPage)\n })\n }\n}\n\n\n\n\n/**\n * Set nosto cart for recommendations\n * @param {string} session \n * @param {function} callback\n * @param {array} placementIds\n * @param {array} items\n * @param {object} cart\n */\n\nexport function SetCart({ \n session, \n id,\n items = [], \n callback = () => null, \n cartValue,\n placementIds = []\n}){\n if( session ){\n const schema = ViewedCart({ session, placementIds, items, id, cartValue })\n\n nostoGraphql.post(schema).then(response => {\n // callback(response?.data?.updateSession?.pages?.forCartPage)\n })\n }\n}\n\n\n\n\n\n/**\n * When viewing a 404\n * @param {string} session \n * @param {function} callback\n * @param {array} placementIds\n * @param {object} cart\n */\n\nexport function View404({ \n session, \n callback = () => null, \n placementIds = [],\n cart = cart?.items ?? []\n}){\n const schema = ViewedNotFound({ session, placementIds, cart })\n\n nostoGraphql.post(schema).then(response => {\n // console.log(response?.data?.updateSession?.pages?.forNotFoundPage)\n callback(response?.data?.updateSession?.pages?.forNotFoundPage)\n })\n}","export const product = `\n fragment product on RecommendedProduct{\n productId\n url\n imageUrl\n name\n price\n }\n`"],"names":["NostoGraphql","constructor","post","queryData","axios","url","method","data","headers","btoa","process","then","response","catch","err","console","log","ViewedCart","session","id","cartValue","placementIds","items","placements","split","length","map","item","product","nostoGraphql","ViewFrontPage","callback","cart","schema","ViewedFrontPage","updateSession","pages","forFrontPage","SetCustomer","customer","SetCustomerData","Object","keys","ViewProduct","productId","resultId","ViewedProduct","forProductPage","ViewPage","ViewedPage","forGeneralLayoutPage","ViewOther","ViewedOther","ViewBlog","ViewedBlog","forLandingPage","ViewCategory","taxonomy","categoryTarget","target","categoryNameTaxonomy","ViewedCategory","categoryPath","lastIndexOf","slice","slotIds","Array","isArray","trim","forCategoryPage","ViewSearch","query","SearchedFor","forSearchPage","ViewCart","cart_amount","forCartPage","SetCart","View404","ViewedNotFound","forNotFoundPage"],"sourceRoot":"","ignoreList":[]}