Skip to content

Instantly share code, notes, and snippets.

var ZiadahPlugin=function(t){"use strict";function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function n(t,e,n,a,r,o,i){try{var c=t[o](i),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(a,r)}function a(t){return function(){var e=this,a=arguments;return new Promise((function(r,o){var i=t.apply(e,a);function c(t){n(i,r,o,c,s,"next",t)}function s(t){n(i,r,o,c,s,"throw",t)}c(void 0)}))}}function r(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enume
> next build
Next.js 14.2.1
Creating an optimized production build ...
Compiled successfully
Linting and checking validity of types
Collecting page data
Generating static pages (0/5) [= ]react-i18next:: You will need to pass in an i18next instance by using initReactI18next
TypeError: n.dir is not a function
<script>
window.purchaseEvent = function purchaseEvent(transactionItems) {
campaign(6, 'purchase', transactionItems);
}
window.productDetailsEvent = function productDetailsEvent(productViewd) {
window.setTimeout(function() {
productDetailsInfo(productViewd);
}, 5000);
<script>
window.purchaseEvent = function purchaseEvent(transactionItems) {
campaign(6, 'purchase', transactionItems);
}
window.productDetailsEvent = function productDetailsEvent(productViewd) {
window.setTimeout(function() {
productDetailsInfo(productViewd);
}, 5000);
<?php
namespace App\Foundation\Services\StorefrontTheme;
use Twig\Environment;
use Twig\Loader\ArrayLoader;
use Twig\Extension\SandboxExtension;
use Twig\Sandbox\SecurityPolicy;
{% schema %}
{
"name": {
"ar": "قائمة المنتجات",
"en": "Products"
},
"icon": "fal fa-box",
"display": true,
"settings": {
"title": {
@mininaim
mininaim / code.js
Last active November 2, 2023 09:27
(window.NREUM || (NREUM = {})).init = {
privacy: {
cookies_enabled: true
},
ajax: {
deny_list: ["bam.eu01.nr-data.net"]
},
distributed_tracing: {
enabled: true
}
function hasMetaTag(name) {
return document.querySelector(`meta[name="${name}"]`) !== null;
}
const metaExists = hasMetaTag('LABLEB_SEARCH_PROJECT');
if (metaExists) {
//
} else {
//
}
<script defer>
const hmtlEntitiesDecode = (encodedStr) => $("<div/>").html(encodedStr).text();
const sortProductsResult = (event) => {
try {
event.preventDefault();
const sort = event.target.value;
const urlMap = {
oldest: "sort_by=created_at&order=asc",
latest: "sort_by=created_at&order=desc",
let getColor = '{{ store.colors.primary }}';
let getTextColor = '{{ store.colors.text_of_primary_bg }}';
if (getColor != '' && getColor != '#ffffff' && getColor != '#fff' && getColor != '#FFFFFF' && getColor != '#FFF') {
getColor;
}
else {
getColor = '#8661a3';