qumra-engine 1.0.87 → 1.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see bundle.cjs.js.LICENSE.txt */
2
- (()=>{var t={863:(t,e,r)=>{var n=r(93).getGlobal;r(38),t.exports={upperCase:function(t){return t.toUpperCase()},reverse:function(t){return t.split("").reverse().join("")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},formatCurrency:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$")+parseFloat(t).toFixed(2)},money:function(t){if(t){var e=n("app").currency;return"".concat(t.toFixed(2)," ").concat(e.currencySymbol)}return"يجب ان يكون رقم"},date:function(t){return new Date(t).toISOString().split("T")[0]},applyDiscount:function(t,e){return t-t*(e/100)},addVAT:function(t){return t+t*((arguments.length>1&&void 0!==arguments[1]?arguments[1]:15)/100)},pluralize:function(t,e,r){return 1===t?e:r},truncate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return t.length>e?t.slice(0,e)+"...":t},trimSpaces:function(t){return t.trim()},isEmpty:function(t){return!t||0===t.trim().length},slugify:function(t){return t.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"")},formatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},assets:function(t){return n("assets")+t},cdn:function(t){return n("cdn")},seo:function(){return'<title>متجر تجريبي</title>\n<meta name="description" content="متجر تجريبي - Demo Store">\n<meta name="keywords" content="متجر,تجريبي,-,Demo,Store">\n<meta property="store:published_time" content="2024-08-09T06:03:33+03:00">\n<meta property="og:description" content="متجر تجريبي - Demo Store">\n<meta property="og:title" content="متجر تجريبي">\n<meta property="og:type" content="store">\n<meta property="og:locale" content="ar_AR">\n<meta property=":locale:alternate" content="ar_AR">\n<meta property=":locale:alternate" content="en_US">\n<meta property="og:url" content="https://salla.design/dev-ruj4uvkrq9hz389z">\n<meta property="og:image" content="https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg">\n<meta property="og:image:width" content="600">\n<meta property="og:image:height" content="300">\n<meta name="twitter:description" content="متجر تجريبي - Demo Store">\n<meta name="twitter:image" content="https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg">\n<meta name="twitter:card" content="summary_large_image">\n<meta name="twitter:title" content="متجر تجريبي">\n<meta name="twitter:url" content="https://salla.design/dev-ruj4uvkrq9hz389z">\n<meta name="twitter:site" content="@SallaApp">\n<meta name="twitter:creator" content="@SallaApp">\n<script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","name":"متجر تجريبي","description":"متجر تجريبي - Demo Store","url":"https://salla.design/dev-ruj4uvkrq9hz389z","logo":"https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg"}<\/script>'}}},908:(t,e,r)=>{var n=r(93),o=n.getGlobal,i=n.setGlobal,a=r(985).getLocales,c=r(413);t.exports={set:function(t,e){i(t,e)},get:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o(t)||e},t:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=o("lang")||"ar",n=a(r);return n&&c(n,t)||e}}},99:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){"use strict";o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),c=new D(n||[]);return a(i,"_invoke",{value:P(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",d="suspendedYield",y="executing",g="completed",v={};function b(){}function w(){}function j(){}var x={};p(x,u,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(z([])));S&&S!==r&&i.call(S,u)&&(x=S);var _=j.prototype=b.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,a,c,u){var l=h(t[o],t,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==n(p)&&i.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(p).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function P(e,r,n){var o=m;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=h(e,r,n);if("normal"===l.type){if(o=n.done?g:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(q,this),this.reset(!0)}function z(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=j,a(_,"constructor",{value:j,configurable:!0}),a(j,"constructor",{value:w,configurable:!0}),w.displayName=p(j,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,p(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},E(L.prototype),p(L.prototype,l,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(_),p(_,s,"Generator"),p(_,u,(function(){return this})),p(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=z,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:z(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var l=r(271),s=r(928),p=r(168),f=r(915),h=r(896),m=r(863),d=r(908),y=r(926),g=r(985).setLocales,v=r(93).setGlobal,b=r(91),w=r(426),j=r(898),x=r(525).createHooks,O=(r(355),r(174)),S=r(285);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"production";return t.set("view engine","njk"),t.use(j()),t.use(b),t.use(O()),t.use(S({override:!0,htmlMinifier:{collapseWhitespace:!0,minifyCSS:!0,minifyJS:!0,removeComments:!0}})),function(){var n,i=(n=o().mark((function n(i,c,u){var b,j,O,S,_,E,L,P,k,q,A,D,z,C,T,G,N,U,F,I,R,H,X,$,J,W,K,M,Y,B,V,Z,Q,tt,et,rt,nt,ot,it,at,ct;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(_=i.originalUrl,E=i.protocol,!f(_)){n.next=4;break}return u(),n.abrupt("return");case 4:for(A in L=e.viewsDirectory,P=s.join(null!=L?L:null==c||null===(b=c.locals)||void 0===b||null===(b=b.app)||void 0===b?void 0:b.themePath,"views"),k=s.join(null!=L?L:null==c||null===(j=c.locals)||void 0===j||null===(j=j.app)||void 0===j?void 0:j.themePath,"locales"),q=l.configure(P,{autoescape:!0,express:t,watch:e.watch||!1,noCache:e.noCache||!1}),m)q.addFilter(A,m[A]);for(D in h.existsSync(k)&&h.statSync(k).isDirectory()?h.readdirSync(k).forEach((function(t){if(t.endsWith(".json")){var e=s.basename(t,".json"),r=s.join(k,t);if(h.existsSync(r)){var n=h.readFileSync(r,"utf-8");g(e,JSON.parse(n))}}})):console.log("المجلد غير موجود أو أنه ليس مجلدًا."),d)q.addGlobal(D,d[D]);return z=y(_),v("lang",z.language),C="".concat(i.get("host")),T="".concat(E,"://").concat(i.get("host")).concat(z.path),console.log("🚀 ~ return ~ domainUrl:",C),G=i.headers["x-forwarded-for"]||i.ip,N=i.get("User-Agent")||"",U=i.get("Referer")||"",F=i.get("Accept-Language")||"",I=Intl.DateTimeFormat().resolvedOptions().timeZone||"",R=new w(N),H=R.getDevice(),X=R.getOS(),$=H.type||"desktop",J="".concat(X.name," ").concat(X.version),W="https://api.qumra.cloud/templateEngine/v1/render?path=".concat(encodeURIComponent(T)),K={"Content-Type":"application/json","secret-key":null!==(O=null==c||null===(S=c.locals)||void 0===S||null===(S=S.app)||void 0===S?void 0:S.secretKey)&&void 0!==O?O:e.secretKey,fingerprint:i.fingerprint.hash,"User-Agent":N,Referer:U,"X-Forwarded-For":G,"Accept-Language":F,"X-Device-Type":$,"X-OS":J,"X-Timezone":I},M=i.cookies,Y=M.token,B=M.qvid,V=M.qaid,Y&&(K.Authorization=Y),B&&(K.qvid=B),V&&(K.qaid=V),Z={headers:K},n.next=35,fetch(W,Z);case 35:return Q=n.sent,(tt=Q.headers.getSetCookie())&&tt.forEach((function(t){var e=p(t);Object.keys(e).forEach((function(t){var n=e[t],o=n.value,i=n.attributes;c.cookie(t,o,a(a({},i),{},{domain:"production"===r?C:"localhost",sameSite:"None",secure:r})),c.cookie(t,o,a(a({},i),{},{domain:"production"===r?".qumra.cloud":"localhost",sameSite:"None",secure:r}))}))})),n.next=40,Q.json();case 40:for(it in et=n.sent,rt=et.global,nt=et.context,ot=et.engine,rt)Object.hasOwnProperty.call(rt,it)&&v(it,rt[it]);null!=nt&&nt.page?(at=a({},rt),ct=x({global:rt,engine:ot,fullUrl:T,env:q,data:at,mode:r,context:nt}),c.render(nt.page.fileName,{global:rt,context:nt,hooks:ct})):c.render("404",{global:rt,context:nt});case 44:case"end":return n.stop()}}),n)})),function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function a(t){u(i,r,o,a,c,"next",t)}function c(t){u(i,r,o,a,c,"throw",t)}a(void 0)}))});return function(t,e,r){return i.apply(this,arguments)}}()}},91:(t,e,r)=>{var n=r(757),o=n({parameters:[n.acceptHeaders,n.geoip]});t.exports=function(t,e,r){o(t,e,(function(){r()}))}},93:t=>{var e={};t.exports={getGlobal:function(t,r){var n;return null!==(n=e[t])&&void 0!==n?n:r},setGlobal:function(t,r){e[t]=r}}},985:t=>{var e={};t.exports={getLocales:function(t){return e[t]},setLocales:function(t,r){e[t]=r}}},168:t=>{function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){var r={};return t.split(/,(?![^\(\)]+\))/).forEach((function(t){var n=t.split(";"),o=e(n,1),i=e(o[0].split("="),2),a=i[0],c=i[1];if(a&&c){var u=a.trim(),l=c.trim();r[u]||(r[u]={value:l,attributes:{}});for(var s=1;s<n.length;s++){var p=e(n[s].split("="),2),f=p[0],h=p[1];f&&(r[u].attributes[f.trim()]=!h||h.trim())}}})),r}},552:t=>{t.exports=function(t,e){return{content:t,priority:e}}},389:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=r(552),u=r(852);t.exports=function(t){var e,r,n,o,a,l,s,p=t.global,f=t.fullUrl,h=t.engine,m=t.env,d=t.data,y=t.mode,g=t.context,v=null===(e=h.widgets)||void 0===e?void 0:e.map((function(t){return m.renderString(t.view,i(i({global:p,context:g},null==t?void 0:t.data),{},{_id:t._id}))})).join(""),b={widgets:[c(v,15)],seo:[c("<title>".concat(p.app.name," - ").concat(g.page.title,"</title>")),c('<meta name="description" content="'.concat(p.app.description,'">')),c('<meta property="og:title" content="'.concat(p.app.name," - ").concat(g.page.title,'">')),c('<meta property="og:description" content="'.concat(p.app.description,'">')),c('<meta property="og:type" content="website">'),c('<meta property="og:locale" content="ar_AR">'),c('<meta property="og:url" content="'.concat(f,'">')),c('<meta property="og:image" content="'.concat(p.app.logoUrl,'">')),c('<meta property="og:image:width" content="600">'),c('<meta property="og:image:height" content="300">'),c('<meta name="twitter:card" content="summary_large_image">'),c('<meta name="twitter:title" content="'.concat(p.app.name," - ").concat(g.page.title,'">')),c('<meta name="twitter:description" content="'.concat(p.app.description,'">')),c('<meta name="twitter:image" content="'.concat(p.app.logoUrl,'">')),c('<meta name="twitter:site" content="@qumracloud">'),c('<meta name="twitter:creator" content="@qumracloud">'),c('<link rel="canonical" href="'.concat(f,'">')),c('<script type="application/ld+json">{"@context": "https://schema.org","@type": "Organization","name": "'.concat(p.app.name," - ").concat(g.page.title,'","description": "').concat(p.app.description,'","url": "').concat(f,'","logo": "').concat(p.app.logoUrl,'"}<\/script>'))],head:[c("<script>window.__qumra__ = window.__qumra__ || {}; window.__qumra__.data = ".concat(u(JSON.stringify(i(i({},d),{},{mode:y}))),";<\/script>"),15)],body:[]};return null!=h&&null!==(r=h.injectionCode)&&void 0!==r&&r.head&&b.head.push(c(null!==(o=null===(a=h.injectionCode)||void 0===a?void 0:a.head)&&void 0!==o?o:null,16)),null!=h&&null!==(n=h.injectionCode)&&void 0!==n&&n.body&&b.body.push(c(null!==(l=null===(s=h.injectionCode)||void 0===s?void 0:s.body)&&void 0!==l?l:null,16)),Object.keys(b).forEach((function(t){b[t]=b[t].sort((function(t,e){return e.priority-t.priority})).map((function(t){return m.renderString(t.content)})).join("")})),b}},926:t=>{t.exports=function(t){var e={language:"ar",path:null},r=t.match(/^\/([a-z]{2})\/(.*)$/);return r?(e.language=r[1],e.path="/".concat(r[2])):(r=t.match(/^\/([a-z]{2})$/))?(e.language=r[1],e.path="/"):e.path=t,e}},413:t=>{t.exports=function(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)}},525:(t,e,r)=>{var n=r(552),o=r(389),i=r(852);t.exports={addToHook:n,sanitizeInput:i,createHooks:o}},915:t=>{t.exports=function(t){return[".jpg",".jpeg",".png",".webp",".gif",".svg",".js",".css",".woff",".woff2",".ttf",".ico"].some((function(e){return t.endsWith(e)}))}},852:t=>{t.exports=function(t){return t.replace(/<script.*?>.*?<\/script>/gi,"")}},355:t=>{"use strict";t.exports=require("cache-express")},174:t=>{"use strict";t.exports=require("compression")},898:t=>{"use strict";t.exports=require("cookie-parser")},38:t=>{"use strict";t.exports=require("dinero.js")},757:t=>{"use strict";t.exports=require("express-fingerprint")},285:t=>{"use strict";t.exports=require("express-minify-html")},271:t=>{"use strict";t.exports=require("nunjucks")},426:t=>{"use strict";t.exports=require("ua-parser-js")},896:t=>{"use strict";t.exports=require("fs")},928:t=>{"use strict";t.exports=require("path")}},e={},r=function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}(99);module.exports=r})();
2
+ (()=>{var t={516:(t,e,r)=>{"use strict";r.r(e),r.d(e,{targets:()=>n});var n={theme:"theme",widget:"widget"}},432:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){"use strict";o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),c=new D(n||[]);return a(i,"_invoke",{value:L(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",d="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function j(){}var x={};p(x,u,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(T([])));S&&S!==r&&i.call(S,u)&&(x=S);var _=j.prototype=b.prototype=Object.create(x);function P(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,a,c,u){var l=h(t[o],t,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==n(p)&&i.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(p).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function L(e,r,n){var o=m;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var l=h(e,r,n);if("normal"===l.type){if(o=n.done?y:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(q,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=j,a(_,"constructor",{value:j,configurable:!0}),a(j,"constructor",{value:w,configurable:!0}),w.displayName=p(j,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,p(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},P(E.prototype),p(E.prototype,l,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(_),p(_,s,"Generator"),p(_,u,(function(){return this})),p(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var l=r(271),s=r(928),p=r(168),f=r(915),h=r(896),m=r(863),d=r(908),g=r(926),y=r(985).setLocales,v=r(93).setGlobal,b=r(426),w=r(525).createHooks;t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"production";return function(){var n,i=(n=o().mark((function n(i,c,u){var j,x,O,S,_,P,E,L,k,q,A,D,T,z,C,G,N,U,F,I,R,H,M,X,$,J,W,K,Y,B,V,Z,Q,tt,et,rt,nt,ot,it,at,ct;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(_=i.originalUrl,P=i.protocol,!f(_)){n.next=4;break}return u(),n.abrupt("return");case 4:for(A in E=e.viewsDirectory,L=s.join(null!=E?E:null==c||null===(j=c.locals)||void 0===j||null===(j=j.app)||void 0===j?void 0:j.themePath,"views"),k=s.join(null!=E?E:null==c||null===(x=c.locals)||void 0===x||null===(x=x.app)||void 0===x?void 0:x.themePath,"locales"),q=l.configure(L,{autoescape:!0,express:t,watch:e.watch||!1,noCache:e.noCache||!1}),m)q.addFilter(A,m[A]);for(D in h.existsSync(k)&&h.statSync(k).isDirectory()?h.readdirSync(k).forEach((function(t){if(t.endsWith(".json")){var e=s.basename(t,".json"),r=s.join(k,t);if(h.existsSync(r)){var n=h.readFileSync(r,"utf-8");y(e,JSON.parse(n))}}})):console.log("المجلد غير موجود أو أنه ليس مجلدًا."),d)q.addGlobal(D,d[D]);return T=g(_),v("lang",T.language),z="".concat(i.get("host")),C="".concat(P,"://").concat(i.get("host")).concat(T.path),console.log("🚀 ~ return ~ domainUrl:",z),G=i.headers["x-forwarded-for"]||i.ip,N=i.get("User-Agent")||"",U=i.get("Referer")||"",F=i.get("Accept-Language")||"",I=Intl.DateTimeFormat().resolvedOptions().timeZone||"",R=new b(N),H=R.getDevice(),M=R.getOS(),X=H.type||"desktop",$="".concat(M.name," ").concat(M.version),J="https://api.qumra.cloud/templateEngine/v1/render?path=".concat(encodeURIComponent(C)),W={"Content-Type":"application/json","secret-key":null!==(O=null==c||null===(S=c.locals)||void 0===S||null===(S=S.app)||void 0===S?void 0:S.secretKey)&&void 0!==O?O:e.secretKey,fingerprint:i.fingerprint.hash,"User-Agent":N,Referer:U,"X-Forwarded-For":G,"Accept-Language":F,"X-Device-Type":X,"X-OS":$,"X-Timezone":I},K=i.cookies,Y=K.token,B=K.qvid,V=K.qaid,Y&&(W.Authorization=Y),B&&(W.qvid=B),V&&(W.qaid=V),Z={headers:W},n.next=35,fetch(J,Z);case 35:return Q=n.sent,(tt=Q.headers.getSetCookie())&&tt.forEach((function(t){var e=p(t);Object.keys(e).forEach((function(t){var n=e[t],o=n.value,i=n.attributes;c.cookie(t,o,a(a({},i),{},{domain:"production"===r?z:"localhost",sameSite:"None",secure:r})),c.cookie(t,o,a(a({},i),{},{domain:"production"===r?".qumra.cloud":"localhost",sameSite:"None",secure:r}))}))})),n.next=40,Q.json();case 40:for(it in et=n.sent,rt=et.global,nt=et.context,ot=et.engine,rt)Object.hasOwnProperty.call(rt,it)&&v(it,rt[it]);null!=nt&&nt.page?(at=a({},rt),ct=w({global:rt,engine:ot,fullUrl:C,env:q,data:at,mode:r,context:nt}),c.render(nt.page.fileName,{global:rt,context:nt,hooks:ct})):c.render("404",{global:rt,context:nt});case 44:case"end":return n.stop()}}),n)})),function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function a(t){u(i,r,o,a,c,"next",t)}function c(t){u(i,r,o,a,c,"throw",t)}a(void 0)}))});return function(t,e,r){return i.apply(this,arguments)}}()}},863:(t,e,r)=>{var n=r(93).getGlobal;r(38),t.exports={upperCase:function(t){return t.toUpperCase()},reverse:function(t){return t.split("").reverse().join("")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},formatCurrency:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$")+parseFloat(t).toFixed(2)},money:function(t){if(t){var e=n("app").currency;return"".concat(t.toFixed(2)," ").concat(e.currencySymbol)}return"يجب ان يكون رقم"},date:function(t){return new Date(t).toISOString().split("T")[0]},applyDiscount:function(t,e){return t-t*(e/100)},addVAT:function(t){return t+t*((arguments.length>1&&void 0!==arguments[1]?arguments[1]:15)/100)},pluralize:function(t,e,r){return 1===t?e:r},truncate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return t.length>e?t.slice(0,e)+"...":t},trimSpaces:function(t){return t.trim()},isEmpty:function(t){return!t||0===t.trim().length},slugify:function(t){return t.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"")},formatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},assets:function(t){return n("assets")+t},cdn:function(t){return n("cdn")},seo:function(){return'<title>متجر تجريبي</title>\n<meta name="description" content="متجر تجريبي - Demo Store">\n<meta name="keywords" content="متجر,تجريبي,-,Demo,Store">\n<meta property="store:published_time" content="2024-08-09T06:03:33+03:00">\n<meta property="og:description" content="متجر تجريبي - Demo Store">\n<meta property="og:title" content="متجر تجريبي">\n<meta property="og:type" content="store">\n<meta property="og:locale" content="ar_AR">\n<meta property=":locale:alternate" content="ar_AR">\n<meta property=":locale:alternate" content="en_US">\n<meta property="og:url" content="https://salla.design/dev-ruj4uvkrq9hz389z">\n<meta property="og:image" content="https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg">\n<meta property="og:image:width" content="600">\n<meta property="og:image:height" content="300">\n<meta name="twitter:description" content="متجر تجريبي - Demo Store">\n<meta name="twitter:image" content="https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg">\n<meta name="twitter:card" content="summary_large_image">\n<meta name="twitter:title" content="متجر تجريبي">\n<meta name="twitter:url" content="https://salla.design/dev-ruj4uvkrq9hz389z">\n<meta name="twitter:site" content="@SallaApp">\n<meta name="twitter:creator" content="@SallaApp">\n<script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","name":"متجر تجريبي","description":"متجر تجريبي - Demo Store","url":"https://salla.design/dev-ruj4uvkrq9hz389z","logo":"https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg"}<\/script>'}}},908:(t,e,r)=>{var n=r(93),o=n.getGlobal,i=n.setGlobal,a=r(985).getLocales,c=r(413);t.exports={set:function(t,e){i(t,e)},get:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o(t)||e},t:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=o("lang")||"ar",n=a(r);return n&&c(n,t)||e}}},99:(t,e,r)=>{var n=r(516).targets,o=r(432),i=r(961);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"production",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.theme;i(t),a===n.theme&&o(t,e,r)}},91:(t,e,r)=>{var n=r(757),o=n({parameters:[n.acceptHeaders,n.geoip]});t.exports=function(t,e,r){o(t,e,(function(){r()}))}},93:t=>{var e={};t.exports={getGlobal:function(t,r){var n;return null!==(n=e[t])&&void 0!==n?n:r},setGlobal:function(t,r){e[t]=r}}},985:t=>{var e={};t.exports={getLocales:function(t){return e[t]},setLocales:function(t,r){e[t]=r}}},168:t=>{function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){var r={};return t.split(/,(?![^\(\)]+\))/).forEach((function(t){var n=t.split(";"),o=e(n,1),i=e(o[0].split("="),2),a=i[0],c=i[1];if(a&&c){var u=a.trim(),l=c.trim();r[u]||(r[u]={value:l,attributes:{}});for(var s=1;s<n.length;s++){var p=e(n[s].split("="),2),f=p[0],h=p[1];f&&(r[u].attributes[f.trim()]=!h||h.trim())}}})),r}},552:t=>{t.exports=function(t,e){return{content:t,priority:e}}},389:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=r(552),u=r(852);t.exports=function(t){var e,r,n,o,a,l,s,p=t.global,f=t.fullUrl,h=t.engine,m=t.env,d=t.data,g=t.mode,y=t.context,v=null===(e=h.widgets)||void 0===e?void 0:e.map((function(t){return m.renderString(t.view,i(i({global:p,context:y},null==t?void 0:t.data),{},{_id:t._id}))})).join(""),b={widgets:[c(v,15)],seo:[c("<title>".concat(p.app.name," - ").concat(y.page.title,"</title>")),c('<meta name="description" content="'.concat(p.app.description,'">')),c('<meta property="og:title" content="'.concat(p.app.name," - ").concat(y.page.title,'">')),c('<meta property="og:description" content="'.concat(p.app.description,'">')),c('<meta property="og:type" content="website">'),c('<meta property="og:locale" content="ar_AR">'),c('<meta property="og:url" content="'.concat(f,'">')),c('<meta property="og:image" content="'.concat(p.app.logoUrl,'">')),c('<meta property="og:image:width" content="600">'),c('<meta property="og:image:height" content="300">'),c('<meta name="twitter:card" content="summary_large_image">'),c('<meta name="twitter:title" content="'.concat(p.app.name," - ").concat(y.page.title,'">')),c('<meta name="twitter:description" content="'.concat(p.app.description,'">')),c('<meta name="twitter:image" content="'.concat(p.app.logoUrl,'">')),c('<meta name="twitter:site" content="@qumracloud">'),c('<meta name="twitter:creator" content="@qumracloud">'),c('<link rel="canonical" href="'.concat(f,'">')),c('<script type="application/ld+json">{"@context": "https://schema.org","@type": "Organization","name": "'.concat(p.app.name," - ").concat(y.page.title,'","description": "').concat(p.app.description,'","url": "').concat(f,'","logo": "').concat(p.app.logoUrl,'"}<\/script>'))],head:[c("<script>window.__qumra__ = window.__qumra__ || {}; window.__qumra__.data = ".concat(u(JSON.stringify(i(i({},d),{},{mode:g}))),";<\/script>"),15)],body:[]};return null!=h&&null!==(r=h.injectionCode)&&void 0!==r&&r.head&&b.head.push(c(null!==(o=null===(a=h.injectionCode)||void 0===a?void 0:a.head)&&void 0!==o?o:null,16)),null!=h&&null!==(n=h.injectionCode)&&void 0!==n&&n.body&&b.body.push(c(null!==(l=null===(s=h.injectionCode)||void 0===s?void 0:s.body)&&void 0!==l?l:null,16)),Object.keys(b).forEach((function(t){b[t]=b[t].sort((function(t,e){return e.priority-t.priority})).map((function(t){return m.renderString(t.content)})).join("")})),b}},961:(t,e,r)=>{r(355);var n=r(174),o=r(285),i=r(898),a=r(91);t.exports=function(t){t.set("view engine","njk"),t.use(i()),t.use(a),t.use(n()),t.use(o({override:!0,htmlMinifier:{collapseWhitespace:!0,minifyCSS:!0,minifyJS:!0,removeComments:!0}}))}},926:t=>{t.exports=function(t){var e={language:"ar",path:null},r=t.match(/^\/([a-z]{2})\/(.*)$/);return r?(e.language=r[1],e.path="/".concat(r[2])):(r=t.match(/^\/([a-z]{2})$/))?(e.language=r[1],e.path="/"):e.path=t,e}},413:t=>{t.exports=function(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)}},525:(t,e,r)=>{var n=r(552),o=r(389),i=r(852);t.exports={addToHook:n,sanitizeInput:i,createHooks:o}},915:t=>{t.exports=function(t){return[".jpg",".jpeg",".png",".webp",".gif",".svg",".js",".css",".woff",".woff2",".ttf",".ico"].some((function(e){return t.endsWith(e)}))}},852:t=>{t.exports=function(t){return t.replace(/<script.*?>.*?<\/script>/gi,"")}},355:t=>{"use strict";t.exports=require("cache-express")},174:t=>{"use strict";t.exports=require("compression")},898:t=>{"use strict";t.exports=require("cookie-parser")},38:t=>{"use strict";t.exports=require("dinero.js")},757:t=>{"use strict";t.exports=require("express-fingerprint")},285:t=>{"use strict";t.exports=require("express-minify-html")},271:t=>{"use strict";t.exports=require("nunjucks")},426:t=>{"use strict";t.exports=require("ua-parser-js")},896:t=>{"use strict";t.exports=require("fs")},928:t=>{"use strict";t.exports=require("path")}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n=r(99);module.exports=n})();
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see bundle.esm.js.LICENSE.txt */
2
- import{createRequire as t}from"node:module";var e={863:(t,e,r)=>{var n=r(93).getGlobal;r(38),t.exports={upperCase:function(t){return t.toUpperCase()},reverse:function(t){return t.split("").reverse().join("")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},formatCurrency:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$")+parseFloat(t).toFixed(2)},money:function(t){if(t){var e=n("app").currency;return"".concat(t.toFixed(2)," ").concat(e.currencySymbol)}return"يجب ان يكون رقم"},date:function(t){return new Date(t).toISOString().split("T")[0]},applyDiscount:function(t,e){return t-t*(e/100)},addVAT:function(t){return t+t*((arguments.length>1&&void 0!==arguments[1]?arguments[1]:15)/100)},pluralize:function(t,e,r){return 1===t?e:r},truncate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return t.length>e?t.slice(0,e)+"...":t},trimSpaces:function(t){return t.trim()},isEmpty:function(t){return!t||0===t.trim().length},slugify:function(t){return t.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"")},formatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},assets:function(t){return n("assets")+t},cdn:function(t){return n("cdn")},seo:function(){return'<title>متجر تجريبي</title>\n<meta name="description" content="متجر تجريبي - Demo Store">\n<meta name="keywords" content="متجر,تجريبي,-,Demo,Store">\n<meta property="store:published_time" content="2024-08-09T06:03:33+03:00">\n<meta property="og:description" content="متجر تجريبي - Demo Store">\n<meta property="og:title" content="متجر تجريبي">\n<meta property="og:type" content="store">\n<meta property="og:locale" content="ar_AR">\n<meta property=":locale:alternate" content="ar_AR">\n<meta property=":locale:alternate" content="en_US">\n<meta property="og:url" content="https://salla.design/dev-ruj4uvkrq9hz389z">\n<meta property="og:image" content="https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg">\n<meta property="og:image:width" content="600">\n<meta property="og:image:height" content="300">\n<meta name="twitter:description" content="متجر تجريبي - Demo Store">\n<meta name="twitter:image" content="https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg">\n<meta name="twitter:card" content="summary_large_image">\n<meta name="twitter:title" content="متجر تجريبي">\n<meta name="twitter:url" content="https://salla.design/dev-ruj4uvkrq9hz389z">\n<meta name="twitter:site" content="@SallaApp">\n<meta name="twitter:creator" content="@SallaApp">\n<script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","name":"متجر تجريبي","description":"متجر تجريبي - Demo Store","url":"https://salla.design/dev-ruj4uvkrq9hz389z","logo":"https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg"}<\/script>'}}},908:(t,e,r)=>{var n=r(93),o=n.getGlobal,i=n.setGlobal,a=r(985).getLocales,c=r(413);t.exports={set:function(t,e){i(t,e)},get:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o(t)||e},t:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=o("lang")||"ar",n=a(r);return n&&c(n,t)||e}}},99:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),c=new D(n||[]);return a(i,"_invoke",{value:P(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",d="suspendedYield",y="executing",g="completed",v={};function b(){}function w(){}function j(){}var x={};p(x,u,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(z([])));S&&S!==r&&i.call(S,u)&&(x=S);var _=j.prototype=b.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,a,c,u){var l=h(t[o],t,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==n(p)&&i.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(p).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function P(e,r,n){var o=m;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=h(e,r,n);if("normal"===l.type){if(o=n.done?g:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(q,this),this.reset(!0)}function z(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=j,a(_,"constructor",{value:j,configurable:!0}),a(j,"constructor",{value:w,configurable:!0}),w.displayName=p(j,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,p(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},E(L.prototype),p(L.prototype,l,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(_),p(_,s,"Generator"),p(_,u,(function(){return this})),p(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=z,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:z(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var l=r(271),s=r(928),p=r(168),f=r(915),h=r(896),m=r(863),d=r(908),y=r(926),g=r(985).setLocales,v=r(93).setGlobal,b=r(91),w=r(426),j=r(898),x=r(525).createHooks,O=(r(355),r(174)),S=r(285);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"production";return t.set("view engine","njk"),t.use(j()),t.use(b),t.use(O()),t.use(S({override:!0,htmlMinifier:{collapseWhitespace:!0,minifyCSS:!0,minifyJS:!0,removeComments:!0}})),function(){var n,i=(n=o().mark((function n(i,c,u){var b,j,O,S,_,E,L,P,k,q,A,D,z,C,T,G,N,U,F,I,R,H,X,$,J,W,K,M,Y,B,V,Z,Q,tt,et,rt,nt,ot,it,at,ct;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(_=i.originalUrl,E=i.protocol,!f(_)){n.next=4;break}return u(),n.abrupt("return");case 4:for(A in L=e.viewsDirectory,P=s.join(null!=L?L:null==c||null===(b=c.locals)||void 0===b||null===(b=b.app)||void 0===b?void 0:b.themePath,"views"),k=s.join(null!=L?L:null==c||null===(j=c.locals)||void 0===j||null===(j=j.app)||void 0===j?void 0:j.themePath,"locales"),q=l.configure(P,{autoescape:!0,express:t,watch:e.watch||!1,noCache:e.noCache||!1}),m)q.addFilter(A,m[A]);for(D in h.existsSync(k)&&h.statSync(k).isDirectory()?h.readdirSync(k).forEach((function(t){if(t.endsWith(".json")){var e=s.basename(t,".json"),r=s.join(k,t);if(h.existsSync(r)){var n=h.readFileSync(r,"utf-8");g(e,JSON.parse(n))}}})):console.log("المجلد غير موجود أو أنه ليس مجلدًا."),d)q.addGlobal(D,d[D]);return z=y(_),v("lang",z.language),C="".concat(i.get("host")),T="".concat(E,"://").concat(i.get("host")).concat(z.path),console.log("🚀 ~ return ~ domainUrl:",C),G=i.headers["x-forwarded-for"]||i.ip,N=i.get("User-Agent")||"",U=i.get("Referer")||"",F=i.get("Accept-Language")||"",I=Intl.DateTimeFormat().resolvedOptions().timeZone||"",R=new w(N),H=R.getDevice(),X=R.getOS(),$=H.type||"desktop",J="".concat(X.name," ").concat(X.version),W="https://api.qumra.cloud/templateEngine/v1/render?path=".concat(encodeURIComponent(T)),K={"Content-Type":"application/json","secret-key":null!==(O=null==c||null===(S=c.locals)||void 0===S||null===(S=S.app)||void 0===S?void 0:S.secretKey)&&void 0!==O?O:e.secretKey,fingerprint:i.fingerprint.hash,"User-Agent":N,Referer:U,"X-Forwarded-For":G,"Accept-Language":F,"X-Device-Type":$,"X-OS":J,"X-Timezone":I},M=i.cookies,Y=M.token,B=M.qvid,V=M.qaid,Y&&(K.Authorization=Y),B&&(K.qvid=B),V&&(K.qaid=V),Z={headers:K},n.next=35,fetch(W,Z);case 35:return Q=n.sent,(tt=Q.headers.getSetCookie())&&tt.forEach((function(t){var e=p(t);Object.keys(e).forEach((function(t){var n=e[t],o=n.value,i=n.attributes;c.cookie(t,o,a(a({},i),{},{domain:"production"===r?C:"localhost",sameSite:"None",secure:r})),c.cookie(t,o,a(a({},i),{},{domain:"production"===r?".qumra.cloud":"localhost",sameSite:"None",secure:r}))}))})),n.next=40,Q.json();case 40:for(it in et=n.sent,rt=et.global,nt=et.context,ot=et.engine,rt)Object.hasOwnProperty.call(rt,it)&&v(it,rt[it]);null!=nt&&nt.page?(at=a({},rt),ct=x({global:rt,engine:ot,fullUrl:T,env:q,data:at,mode:r,context:nt}),c.render(nt.page.fileName,{global:rt,context:nt,hooks:ct})):c.render("404",{global:rt,context:nt});case 44:case"end":return n.stop()}}),n)})),function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function a(t){u(i,r,o,a,c,"next",t)}function c(t){u(i,r,o,a,c,"throw",t)}a(void 0)}))});return function(t,e,r){return i.apply(this,arguments)}}()}},91:(t,e,r)=>{var n=r(757),o=n({parameters:[n.acceptHeaders,n.geoip]});t.exports=function(t,e,r){o(t,e,(function(){r()}))}},93:t=>{var e={};t.exports={getGlobal:function(t,r){var n;return null!==(n=e[t])&&void 0!==n?n:r},setGlobal:function(t,r){e[t]=r}}},985:t=>{var e={};t.exports={getLocales:function(t){return e[t]},setLocales:function(t,r){e[t]=r}}},168:t=>{function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){var r={};return t.split(/,(?![^\(\)]+\))/).forEach((function(t){var n=t.split(";"),o=e(n,1),i=e(o[0].split("="),2),a=i[0],c=i[1];if(a&&c){var u=a.trim(),l=c.trim();r[u]||(r[u]={value:l,attributes:{}});for(var s=1;s<n.length;s++){var p=e(n[s].split("="),2),f=p[0],h=p[1];f&&(r[u].attributes[f.trim()]=!h||h.trim())}}})),r}},552:t=>{t.exports=function(t,e){return{content:t,priority:e}}},389:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=r(552),u=r(852);t.exports=function(t){var e,r,n,o,a,l,s,p=t.global,f=t.fullUrl,h=t.engine,m=t.env,d=t.data,y=t.mode,g=t.context,v=null===(e=h.widgets)||void 0===e?void 0:e.map((function(t){return m.renderString(t.view,i(i({global:p,context:g},null==t?void 0:t.data),{},{_id:t._id}))})).join(""),b={widgets:[c(v,15)],seo:[c("<title>".concat(p.app.name," - ").concat(g.page.title,"</title>")),c('<meta name="description" content="'.concat(p.app.description,'">')),c('<meta property="og:title" content="'.concat(p.app.name," - ").concat(g.page.title,'">')),c('<meta property="og:description" content="'.concat(p.app.description,'">')),c('<meta property="og:type" content="website">'),c('<meta property="og:locale" content="ar_AR">'),c('<meta property="og:url" content="'.concat(f,'">')),c('<meta property="og:image" content="'.concat(p.app.logoUrl,'">')),c('<meta property="og:image:width" content="600">'),c('<meta property="og:image:height" content="300">'),c('<meta name="twitter:card" content="summary_large_image">'),c('<meta name="twitter:title" content="'.concat(p.app.name," - ").concat(g.page.title,'">')),c('<meta name="twitter:description" content="'.concat(p.app.description,'">')),c('<meta name="twitter:image" content="'.concat(p.app.logoUrl,'">')),c('<meta name="twitter:site" content="@qumracloud">'),c('<meta name="twitter:creator" content="@qumracloud">'),c('<link rel="canonical" href="'.concat(f,'">')),c('<script type="application/ld+json">{"@context": "https://schema.org","@type": "Organization","name": "'.concat(p.app.name," - ").concat(g.page.title,'","description": "').concat(p.app.description,'","url": "').concat(f,'","logo": "').concat(p.app.logoUrl,'"}<\/script>'))],head:[c("<script>window.__qumra__ = window.__qumra__ || {}; window.__qumra__.data = ".concat(u(JSON.stringify(i(i({},d),{},{mode:y}))),";<\/script>"),15)],body:[]};return null!=h&&null!==(r=h.injectionCode)&&void 0!==r&&r.head&&b.head.push(c(null!==(o=null===(a=h.injectionCode)||void 0===a?void 0:a.head)&&void 0!==o?o:null,16)),null!=h&&null!==(n=h.injectionCode)&&void 0!==n&&n.body&&b.body.push(c(null!==(l=null===(s=h.injectionCode)||void 0===s?void 0:s.body)&&void 0!==l?l:null,16)),Object.keys(b).forEach((function(t){b[t]=b[t].sort((function(t,e){return e.priority-t.priority})).map((function(t){return m.renderString(t.content)})).join("")})),b}},926:t=>{t.exports=function(t){var e={language:"ar",path:null},r=t.match(/^\/([a-z]{2})\/(.*)$/);return r?(e.language=r[1],e.path="/".concat(r[2])):(r=t.match(/^\/([a-z]{2})$/))?(e.language=r[1],e.path="/"):e.path=t,e}},413:t=>{t.exports=function(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)}},525:(t,e,r)=>{var n=r(552),o=r(389),i=r(852);t.exports={addToHook:n,sanitizeInput:i,createHooks:o}},915:t=>{t.exports=function(t){return[".jpg",".jpeg",".png",".webp",".gif",".svg",".js",".css",".woff",".woff2",".ttf",".ico"].some((function(e){return t.endsWith(e)}))}},852:t=>{t.exports=function(t){return t.replace(/<script.*?>.*?<\/script>/gi,"")}},355:t=>{t.exports=require("cache-express")},174:t=>{t.exports=require("compression")},898:t=>{t.exports=require("cookie-parser")},38:t=>{t.exports=require("dinero.js")},757:t=>{t.exports=require("express-fingerprint")},285:t=>{t.exports=require("express-minify-html")},271:t=>{t.exports=require("nunjucks")},426:t=>{t.exports=require("ua-parser-js")},896:e=>{e.exports=t(import.meta.url)("fs")},928:e=>{e.exports=t(import.meta.url)("path")}},r={};!function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return e[n](i,i.exports,t),i.exports}(99);
2
+ import{createRequire as t}from"node:module";var e={516:(t,e,r)=>{r.r(e),r.d(e,{targets:()=>n});var n={theme:"theme",widget:"widget"}},432:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),c=new D(n||[]);return a(i,"_invoke",{value:L(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",d="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function j(){}var x={};p(x,u,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(T([])));S&&S!==r&&i.call(S,u)&&(x=S);var _=j.prototype=b.prototype=Object.create(x);function P(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,a,c,u){var l=h(t[o],t,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==n(p)&&i.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(p).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function L(e,r,n){var o=m;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var l=h(e,r,n);if("normal"===l.type){if(o=n.done?y:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(q,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=j,a(_,"constructor",{value:j,configurable:!0}),a(j,"constructor",{value:w,configurable:!0}),w.displayName=p(j,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,p(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},P(E.prototype),p(E.prototype,l,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(_),p(_,s,"Generator"),p(_,u,(function(){return this})),p(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var l=r(271),s=r(928),p=r(168),f=r(915),h=r(896),m=r(863),d=r(908),g=r(926),y=r(985).setLocales,v=r(93).setGlobal,b=r(426),w=r(525).createHooks;t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"production";return function(){var n,i=(n=o().mark((function n(i,c,u){var j,x,O,S,_,P,E,L,k,q,A,D,T,z,C,G,N,U,F,I,R,H,M,X,$,J,W,K,Y,B,V,Z,Q,tt,et,rt,nt,ot,it,at,ct;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(_=i.originalUrl,P=i.protocol,!f(_)){n.next=4;break}return u(),n.abrupt("return");case 4:for(A in E=e.viewsDirectory,L=s.join(null!=E?E:null==c||null===(j=c.locals)||void 0===j||null===(j=j.app)||void 0===j?void 0:j.themePath,"views"),k=s.join(null!=E?E:null==c||null===(x=c.locals)||void 0===x||null===(x=x.app)||void 0===x?void 0:x.themePath,"locales"),q=l.configure(L,{autoescape:!0,express:t,watch:e.watch||!1,noCache:e.noCache||!1}),m)q.addFilter(A,m[A]);for(D in h.existsSync(k)&&h.statSync(k).isDirectory()?h.readdirSync(k).forEach((function(t){if(t.endsWith(".json")){var e=s.basename(t,".json"),r=s.join(k,t);if(h.existsSync(r)){var n=h.readFileSync(r,"utf-8");y(e,JSON.parse(n))}}})):console.log("المجلد غير موجود أو أنه ليس مجلدًا."),d)q.addGlobal(D,d[D]);return T=g(_),v("lang",T.language),z="".concat(i.get("host")),C="".concat(P,"://").concat(i.get("host")).concat(T.path),console.log("🚀 ~ return ~ domainUrl:",z),G=i.headers["x-forwarded-for"]||i.ip,N=i.get("User-Agent")||"",U=i.get("Referer")||"",F=i.get("Accept-Language")||"",I=Intl.DateTimeFormat().resolvedOptions().timeZone||"",R=new b(N),H=R.getDevice(),M=R.getOS(),X=H.type||"desktop",$="".concat(M.name," ").concat(M.version),J="https://api.qumra.cloud/templateEngine/v1/render?path=".concat(encodeURIComponent(C)),W={"Content-Type":"application/json","secret-key":null!==(O=null==c||null===(S=c.locals)||void 0===S||null===(S=S.app)||void 0===S?void 0:S.secretKey)&&void 0!==O?O:e.secretKey,fingerprint:i.fingerprint.hash,"User-Agent":N,Referer:U,"X-Forwarded-For":G,"Accept-Language":F,"X-Device-Type":X,"X-OS":$,"X-Timezone":I},K=i.cookies,Y=K.token,B=K.qvid,V=K.qaid,Y&&(W.Authorization=Y),B&&(W.qvid=B),V&&(W.qaid=V),Z={headers:W},n.next=35,fetch(J,Z);case 35:return Q=n.sent,(tt=Q.headers.getSetCookie())&&tt.forEach((function(t){var e=p(t);Object.keys(e).forEach((function(t){var n=e[t],o=n.value,i=n.attributes;c.cookie(t,o,a(a({},i),{},{domain:"production"===r?z:"localhost",sameSite:"None",secure:r})),c.cookie(t,o,a(a({},i),{},{domain:"production"===r?".qumra.cloud":"localhost",sameSite:"None",secure:r}))}))})),n.next=40,Q.json();case 40:for(it in et=n.sent,rt=et.global,nt=et.context,ot=et.engine,rt)Object.hasOwnProperty.call(rt,it)&&v(it,rt[it]);null!=nt&&nt.page?(at=a({},rt),ct=w({global:rt,engine:ot,fullUrl:C,env:q,data:at,mode:r,context:nt}),c.render(nt.page.fileName,{global:rt,context:nt,hooks:ct})):c.render("404",{global:rt,context:nt});case 44:case"end":return n.stop()}}),n)})),function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function a(t){u(i,r,o,a,c,"next",t)}function c(t){u(i,r,o,a,c,"throw",t)}a(void 0)}))});return function(t,e,r){return i.apply(this,arguments)}}()}},863:(t,e,r)=>{var n=r(93).getGlobal;r(38),t.exports={upperCase:function(t){return t.toUpperCase()},reverse:function(t){return t.split("").reverse().join("")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},formatCurrency:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$")+parseFloat(t).toFixed(2)},money:function(t){if(t){var e=n("app").currency;return"".concat(t.toFixed(2)," ").concat(e.currencySymbol)}return"يجب ان يكون رقم"},date:function(t){return new Date(t).toISOString().split("T")[0]},applyDiscount:function(t,e){return t-t*(e/100)},addVAT:function(t){return t+t*((arguments.length>1&&void 0!==arguments[1]?arguments[1]:15)/100)},pluralize:function(t,e,r){return 1===t?e:r},truncate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return t.length>e?t.slice(0,e)+"...":t},trimSpaces:function(t){return t.trim()},isEmpty:function(t){return!t||0===t.trim().length},slugify:function(t){return t.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"")},formatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},assets:function(t){return n("assets")+t},cdn:function(t){return n("cdn")},seo:function(){return'<title>متجر تجريبي</title>\n<meta name="description" content="متجر تجريبي - Demo Store">\n<meta name="keywords" content="متجر,تجريبي,-,Demo,Store">\n<meta property="store:published_time" content="2024-08-09T06:03:33+03:00">\n<meta property="og:description" content="متجر تجريبي - Demo Store">\n<meta property="og:title" content="متجر تجريبي">\n<meta property="og:type" content="store">\n<meta property="og:locale" content="ar_AR">\n<meta property=":locale:alternate" content="ar_AR">\n<meta property=":locale:alternate" content="en_US">\n<meta property="og:url" content="https://salla.design/dev-ruj4uvkrq9hz389z">\n<meta property="og:image" content="https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg">\n<meta property="og:image:width" content="600">\n<meta property="og:image:height" content="300">\n<meta name="twitter:description" content="متجر تجريبي - Demo Store">\n<meta name="twitter:image" content="https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg">\n<meta name="twitter:card" content="summary_large_image">\n<meta name="twitter:title" content="متجر تجريبي">\n<meta name="twitter:url" content="https://salla.design/dev-ruj4uvkrq9hz389z">\n<meta name="twitter:site" content="@SallaApp">\n<meta name="twitter:creator" content="@SallaApp">\n<script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","name":"متجر تجريبي","description":"متجر تجريبي - Demo Store","url":"https://salla.design/dev-ruj4uvkrq9hz389z","logo":"https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg"}<\/script>'}}},908:(t,e,r)=>{var n=r(93),o=n.getGlobal,i=n.setGlobal,a=r(985).getLocales,c=r(413);t.exports={set:function(t,e){i(t,e)},get:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o(t)||e},t:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=o("lang")||"ar",n=a(r);return n&&c(n,t)||e}}},99:(t,e,r)=>{var n=r(516).targets,o=r(432),i=r(961);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"production",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.theme;i(t),a===n.theme&&o(t,e,r)}},91:(t,e,r)=>{var n=r(757),o=n({parameters:[n.acceptHeaders,n.geoip]});t.exports=function(t,e,r){o(t,e,(function(){r()}))}},93:t=>{var e={};t.exports={getGlobal:function(t,r){var n;return null!==(n=e[t])&&void 0!==n?n:r},setGlobal:function(t,r){e[t]=r}}},985:t=>{var e={};t.exports={getLocales:function(t){return e[t]},setLocales:function(t,r){e[t]=r}}},168:t=>{function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){var r={};return t.split(/,(?![^\(\)]+\))/).forEach((function(t){var n=t.split(";"),o=e(n,1),i=e(o[0].split("="),2),a=i[0],c=i[1];if(a&&c){var u=a.trim(),l=c.trim();r[u]||(r[u]={value:l,attributes:{}});for(var s=1;s<n.length;s++){var p=e(n[s].split("="),2),f=p[0],h=p[1];f&&(r[u].attributes[f.trim()]=!h||h.trim())}}})),r}},552:t=>{t.exports=function(t,e){return{content:t,priority:e}}},389:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=r(552),u=r(852);t.exports=function(t){var e,r,n,o,a,l,s,p=t.global,f=t.fullUrl,h=t.engine,m=t.env,d=t.data,g=t.mode,y=t.context,v=null===(e=h.widgets)||void 0===e?void 0:e.map((function(t){return m.renderString(t.view,i(i({global:p,context:y},null==t?void 0:t.data),{},{_id:t._id}))})).join(""),b={widgets:[c(v,15)],seo:[c("<title>".concat(p.app.name," - ").concat(y.page.title,"</title>")),c('<meta name="description" content="'.concat(p.app.description,'">')),c('<meta property="og:title" content="'.concat(p.app.name," - ").concat(y.page.title,'">')),c('<meta property="og:description" content="'.concat(p.app.description,'">')),c('<meta property="og:type" content="website">'),c('<meta property="og:locale" content="ar_AR">'),c('<meta property="og:url" content="'.concat(f,'">')),c('<meta property="og:image" content="'.concat(p.app.logoUrl,'">')),c('<meta property="og:image:width" content="600">'),c('<meta property="og:image:height" content="300">'),c('<meta name="twitter:card" content="summary_large_image">'),c('<meta name="twitter:title" content="'.concat(p.app.name," - ").concat(y.page.title,'">')),c('<meta name="twitter:description" content="'.concat(p.app.description,'">')),c('<meta name="twitter:image" content="'.concat(p.app.logoUrl,'">')),c('<meta name="twitter:site" content="@qumracloud">'),c('<meta name="twitter:creator" content="@qumracloud">'),c('<link rel="canonical" href="'.concat(f,'">')),c('<script type="application/ld+json">{"@context": "https://schema.org","@type": "Organization","name": "'.concat(p.app.name," - ").concat(y.page.title,'","description": "').concat(p.app.description,'","url": "').concat(f,'","logo": "').concat(p.app.logoUrl,'"}<\/script>'))],head:[c("<script>window.__qumra__ = window.__qumra__ || {}; window.__qumra__.data = ".concat(u(JSON.stringify(i(i({},d),{},{mode:g}))),";<\/script>"),15)],body:[]};return null!=h&&null!==(r=h.injectionCode)&&void 0!==r&&r.head&&b.head.push(c(null!==(o=null===(a=h.injectionCode)||void 0===a?void 0:a.head)&&void 0!==o?o:null,16)),null!=h&&null!==(n=h.injectionCode)&&void 0!==n&&n.body&&b.body.push(c(null!==(l=null===(s=h.injectionCode)||void 0===s?void 0:s.body)&&void 0!==l?l:null,16)),Object.keys(b).forEach((function(t){b[t]=b[t].sort((function(t,e){return e.priority-t.priority})).map((function(t){return m.renderString(t.content)})).join("")})),b}},961:(t,e,r)=>{r(355);var n=r(174),o=r(285),i=r(898),a=r(91);t.exports=function(t){t.set("view engine","njk"),t.use(i()),t.use(a),t.use(n()),t.use(o({override:!0,htmlMinifier:{collapseWhitespace:!0,minifyCSS:!0,minifyJS:!0,removeComments:!0}}))}},926:t=>{t.exports=function(t){var e={language:"ar",path:null},r=t.match(/^\/([a-z]{2})\/(.*)$/);return r?(e.language=r[1],e.path="/".concat(r[2])):(r=t.match(/^\/([a-z]{2})$/))?(e.language=r[1],e.path="/"):e.path=t,e}},413:t=>{t.exports=function(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)}},525:(t,e,r)=>{var n=r(552),o=r(389),i=r(852);t.exports={addToHook:n,sanitizeInput:i,createHooks:o}},915:t=>{t.exports=function(t){return[".jpg",".jpeg",".png",".webp",".gif",".svg",".js",".css",".woff",".woff2",".ttf",".ico"].some((function(e){return t.endsWith(e)}))}},852:t=>{t.exports=function(t){return t.replace(/<script.*?>.*?<\/script>/gi,"")}},355:t=>{t.exports=require("cache-express")},174:t=>{t.exports=require("compression")},898:t=>{t.exports=require("cookie-parser")},38:t=>{t.exports=require("dinero.js")},757:t=>{t.exports=require("express-fingerprint")},285:t=>{t.exports=require("express-minify-html")},271:t=>{t.exports=require("nunjucks")},426:t=>{t.exports=require("ua-parser-js")},896:e=>{e.exports=t(import.meta.url)("fs")},928:e=>{e.exports=t(import.meta.url)("path")}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(99);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qumra-engine",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
4
4
  "main": "dist/bundle.cjs.js",
5
5
  "module": "dist/bundle.esm.js",
6
6
  "scripts": {