관리-도구
편집 파일: kkart-settings.js
this.kkart=this.kkart||{},this.kkart.wcSettings=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=33)}({1:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},20:function(e,t,r){var n,o,i;o=[],void 0===(i="function"==typeof(n=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,r,n=e.replace(/^v/,"").replace(/\+.*$/,""),o=(r="-",-1===(t=n).indexOf(r)?t.length:t.indexOf(r)),i=n.substring(0,o).split(".");return i.push(n.substring(o+1)),i}function r(e){return isNaN(Number(e))?e:Number(e)}function n(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function o(e,o){[e,o].forEach(n);for(var i=t(e),u=t(o),c=0;c<Math.max(i.length-1,u.length-1);c++){var a=parseInt(i[c]||0,10),f=parseInt(u[c]||0,10);if(a>f)return 1;if(f>a)return-1}var s=i[i.length-1],l=u[u.length-1];if(s&&l){var p=s.split(".").map(r),d=l.split(".").map(r);for(c=0;c<Math.max(p.length,d.length);c++){if(void 0===p[c]||"string"==typeof d[c]&&"number"==typeof p[c])return-1;if(void 0===d[c]||"string"==typeof p[c]&&"number"==typeof d[c])return 1;if(p[c]>d[c])return 1;if(d[c]>p[c])return-1}}else if(s||l)return s?-1:1;return 0}var i=[">",">=","=","<","<="],u={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return o.validate=function(t){return"string"==typeof t&&e.test(t)},o.compare=function(e,t,r){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===i.indexOf(e))throw new TypeError("Invalid operator, expected one of "+i.join("|"))}(r);var n=o(e,t);return u[r].indexOf(n)>-1},o})?n.apply(t,o):n)||(e.exports=i)},33:function(e,t,r){"use strict";r.r(t),r.d(t,"ADMIN_URL",(function(){return y})),r.d(t,"COUNTRIES",(function(){return g})),r.d(t,"CURRENCY",(function(){return b})),r.d(t,"LOCALE",(function(){return v})),r.d(t,"ORDER_STATUSES",(function(){return m})),r.d(t,"SITE_TITLE",(function(){return h})),r.d(t,"KKART_ASSET_URL",(function(){return S})),r.d(t,"DEFAULT_DATE_RANGE",(function(){return O})),r.d(t,"setSetting",(function(){return j})),r.d(t,"compareWithWpVersion",(function(){return T})),r.d(t,"compareWithWooVersion",(function(){return P})),r.d(t,"compareVersions",(function(){return o.a})),r.d(t,"getSetting",(function(){return d})),r.d(t,"getAdminLink",(function(){return _}));var n=r(20),o=r.n(n),i=r(1),u=r.n(i),c=r(8);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={adminUrl:"",countries:[],currency:{code:"USD",precision:2,symbol:"$",symbolPosition:"left",decimalSeparator:".",priceFormat:"%1$s%2$s",thousandSeparator:","},defaultDateRange:"period=month&compare=previous_year",locale:{siteLocale:"en_US",userLocale:"en_US",weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},orderStatuses:[],siteTitle:"",wcAssetUrl:""},l="object"===("undefined"==typeof wcSettings?"undefined":r.n(c)()(wcSettings))?wcSettings:{},p=f(f({},s),l);function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},n=p.hasOwnProperty(e)?p[e]:t;return r(n,t)}p.currency=f(f({},s.currency),p.currency),p.locale=f(f({},s.locale),p.locale);var y=p.adminUrl,g=p.countries,b=p.currency,v=p.locale,m=p.orderStatuses,h=p.siteTitle,S=p.wcAssetUrl,O=p.defaultDateRange,w=r(9),x=r.n(w);function j(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};x()("setSetting",{version:"3.8.0",alternative:'a locally scoped value for "'.concat(e,'"'),plugin:"Kkart Blocks",hint:"kkart.wcSettings is a global settings configuration object that should not be mutated during a session. Hence the removal of this function."}),p[e]=r(t)}var E=function(e,t,r){var n=d(t,"").replace(/-[a-zA-Z0-9]*[\-]*/,".0-rc.");return n=n.endsWith(".")?n.substring(0,n.length-1):n,o.a.compare(e,n,r)},T=function(e,t){return E(e,"wpVersion",t)},P=function(e,t){return E(e,"wcVersion",t)},_=function(e){return d("adminUrl")+e}},8:function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},9:function(e,t){!function(){e.exports=this.wp.deprecated}()}});