HEX
Server: Apache/2.4.59 (Debian)
System: Linux keymana 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64
User: lijunjie (1003)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/dk/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/product-title.js
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[39],{105:function(e,t,r){"use strict";var n=r(6),c=r.n(n),s=r(0),a=r(18),o=r(4),i=r.n(o);r(157),t.a=e=>{let{className:t="",disabled:r=!1,name:n,permalink:o="",target:l,rel:d,style:u,onClick:p,...b}=e;const _=i()("wc-block-components-product-name",t);if(r){const e=b;return Object(s.createElement)("span",c()({className:_},e,{dangerouslySetInnerHTML:{__html:Object(a.decodeEntities)(n)}}))}return Object(s.createElement)("a",c()({className:_,href:o,target:l},b,{dangerouslySetInnerHTML:{__html:Object(a.decodeEntities)(n)},style:u}))}},157:function(e,t){},186:function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var n=r(0),c=r(4),s=r.n(c),a=r(22),o=r(56),i=r(44),l=r(105),d=r(81),u=r(99),p=r(131),b=r(88);r(250);const _=e=>{let{children:t,headingLevel:r,elementType:c="h"+r,...s}=e;return Object(n.createElement)(c,s,t)},m=e=>{const{className:t,headingLevel:r=2,showProductLink:c=!0,linkTarget:i,align:m}=e,{parentClassName:g}=Object(a.useInnerBlockLayoutContext)(),{product:E}=Object(a.useProductDataContext)(),{dispatchStoreEvent:h}=Object(d.a)(),O=Object(u.a)(e),w=Object(p.a)(e),f=Object(b.a)(e);return E.id?Object(n.createElement)(_,{headingLevel:r,className:s()(t,O.className,"wc-block-components-product-title",{[g+"__product-title"]:g,["wc-block-components-product-title--align-"+m]:m&&Object(o.b)()}),style:Object(o.b)()?{...w.style,...f.style,...O.style}:{}},Object(n.createElement)(l.a,{disabled:!c,name:E.name,permalink:E.permalink,target:i,onClick:()=>{h("product-view-link",{product:E})}})):Object(n.createElement)(_,{headingLevel:r,className:s()(t,O.className,"wc-block-components-product-title",{[g+"__product-title"]:g,["wc-block-components-product-title--align-"+m]:m&&Object(o.b)()}),style:Object(o.b)()?{...w.style,...f.style,...O.style}:{}})};t.b=Object(i.withProductDataContext)(m)},247:function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return a}));const n=window.CustomEvent||null,c=(e,t)=>{let{bubbles:r=!1,cancelable:c=!1,element:s,detail:a={}}=t;if(!n)return;s||(s=document.body);const o=new n(e,{bubbles:r,cancelable:c,detail:a});s.dispatchEvent(o)},s=e=>{let{preserveCartData:t=!1}=e;c("wc-blocks_added_to_cart",{bubbles:!0,cancelable:!0,detail:{preserveCartData:t}})},a=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"!=typeof jQuery)return()=>{};const s=()=>{c(t,{bubbles:r,cancelable:n})};return jQuery(document).on(e,s),()=>jQuery(document).off(e,s)}},248:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(92),c=(r(16),r(2));const s=e=>{const t=Object.keys(c.defaultAddressFields),r=Object(n.a)(t,{},e.country),s=Object.assign({},e);return r.forEach(t=>{let{key:r="",hidden:n=!1}=t;n&&((e,t)=>e in t)(r,e)&&(s[r]="")}),s}},250:function(e,t){},301:function(e,t,r){"use strict";var n=r(56);let c={headingLevel:{type:"number",default:2},showProductLink:{type:"boolean",default:!0},linkTarget:{type:"string"},productId:{type:"number",default:0}};Object(n.b)()&&(c={...c,align:{type:"string"}}),t.a=c},42:function(e,t,r){"use strict";r.d(t,"a",(function(){return O}));var n=r(8),c=r(0),s=r(10),a=r(7),o=r(18),i=r(248),l=r(80),d=r(247);const u=e=>{const t=e.detail;t&&t.preserveCartData||Object(a.dispatch)(s.CART_STORE_KEY).invalidateResolutionForStore()},p=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},b=()=>{Object(c.useEffect)(()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),0===window.wcBlocksStoreCartListeners.count){const e=Object(d.a)("added_to_cart","wc-blocks_added_to_cart"),t=Object(d.a)("removed_from_cart","wc-blocks_removed_from_cart");document.body.addEventListener("wc-blocks_added_to_cart",u),document.body.addEventListener("wc-blocks_removed_from_cart",u),window.wcBlocksStoreCartListeners.count=0,window.wcBlocksStoreCartListeners.remove=()=>{e(),t(),document.body.removeEventListener("wc-blocks_added_to_cart",u),document.body.removeEventListener("wc-blocks_removed_from_cart",u)}}window.wcBlocksStoreCartListeners.count++})(),p),[])},_={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},m={..._,email:""},g={total_items:"",total_items_tax:"",total_fees:"",total_fees_tax:"",total_discount:"",total_discount_tax:"",total_shipping:"",total_shipping_tax:"",total_price:"",total_tax:"",tax_lines:s.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},E=e=>Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e;return[t,Object(o.decodeEntities)(r)]})),h={cartCoupons:s.EMPTY_CART_COUPONS,cartItems:s.EMPTY_CART_ITEMS,cartFees:s.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,crossSellsProducts:s.EMPTY_CART_CROSS_SELLS,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:s.EMPTY_CART_ITEM_ERRORS,cartTotals:g,cartIsLoading:!0,cartErrors:s.EMPTY_CART_ERRORS,billingAddress:m,shippingAddress:_,shippingRates:s.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentRequirements:s.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},extensions:s.EMPTY_EXTENSIONS},O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0};const{isEditor:t,previewData:r}=Object(l.b)(),o=null==r?void 0:r.previewCart,{shouldSelect:d}=e,u=Object(c.useRef)();b();const p=Object(a.useSelect)((e,r)=>{let{dispatch:n}=r;if(!d)return h;if(t)return{cartCoupons:o.coupons,cartItems:o.items,crossSellsProducts:o.cross_sells,cartFees:o.fees,cartItemsCount:o.items_count,cartItemsWeight:o.items_weight,cartNeedsPayment:o.needs_payment,cartNeedsShipping:o.needs_shipping,cartItemErrors:s.EMPTY_CART_ITEM_ERRORS,cartTotals:o.totals,cartIsLoading:!1,cartErrors:s.EMPTY_CART_ERRORS,billingData:m,billingAddress:m,shippingAddress:_,extensions:s.EMPTY_EXTENSIONS,shippingRates:o.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:o.has_calculated_shipping,paymentRequirements:o.paymentRequirements,receiveCart:"function"==typeof(null==o?void 0:o.receiveCart)?o.receiveCart:()=>{}};const c=e(s.CART_STORE_KEY),a=c.getCartData(),l=c.getCartErrors(),u=c.getCartTotals(),p=!c.hasFinishedResolution("getCartData"),b=c.isCustomerDataUpdating(),{receiveCart:g}=n(s.CART_STORE_KEY),O=E(a.billingAddress),w=a.needsShipping?E(a.shippingAddress):O,f=a.fees.length>0?a.fees.map(e=>E(e)):s.EMPTY_CART_FEES;return{cartCoupons:a.coupons.length>0?a.coupons.map(e=>({...e,label:e.code})):s.EMPTY_CART_COUPONS,cartItems:a.items,crossSellsProducts:a.crossSells,cartFees:f,cartItemsCount:a.itemsCount,cartItemsWeight:a.itemsWeight,cartNeedsPayment:a.needsPayment,cartNeedsShipping:a.needsShipping,cartItemErrors:a.errors,cartTotals:u,cartIsLoading:p,cartErrors:l,billingData:Object(i.a)(O),billingAddress:Object(i.a)(O),shippingAddress:Object(i.a)(w),extensions:a.extensions,shippingRates:a.shippingRates,isLoadingRates:b,cartHasCalculatedShipping:a.hasCalculatedShipping,paymentRequirements:a.paymentRequirements,receiveCart:g}},[d]);return u.current&&Object(n.isEqual)(u.current,p)||(u.current=p),u.current}},558:function(e,t,r){"use strict";r.r(t);var n=r(44),c=r(186),s=r(301);t.default=Object(n.withFilteredAttributes)(s.a)(c.b)},80:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return o}));var n=r(0),c=r(7);const s=Object(n.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})}),a=()=>Object(n.useContext)(s),o=e=>{let{children:t,currentPostId:r=0,previewData:a={},currentView:o=""}=e;const i=Object(c.useSelect)(e=>r||e("core/editor").getCurrentPostId(),[r]),l=Object(n.useCallback)(e=>a&&e in a?a[e]:{},[a]),d={isEditor:!0,currentPostId:i,currentView:o,previewData:a,getPreviewData:l};return Object(n.createElement)(s.Provider,{value:d},t)}},81:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(43),c=r(0),s=r(42);const a=()=>{const e=Object(s.a)(),t=Object(c.useRef)(e);return Object(c.useEffect)(()=>{t.current=e},[e]),{dispatchStoreEvent:Object(c.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Object(n.doAction)("experimental__woocommerce_blocks-"+e,t)}catch(e){console.error(e)}}),[]),dispatchCheckoutEvent:Object(c.useCallback)((function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Object(n.doAction)("experimental__woocommerce_blocks-checkout-"+e,{...r,storeCart:t.current})}catch(e){console.error(e)}}),[])}}},92:function(e,t,r){"use strict";var n=r(2),c=r(1),s=r(145),a=r(84);const o=Object(n.getSetting)("countryLocale",{}),i=e=>{const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.required&&(t.required=e.required),void 0!==e.hidden&&(t.hidden=e.hidden),void 0===e.label||e.optionalLabel||(t.optionalLabel=Object(c.sprintf)(
/* translators: %s Field label. */
Object(c.__)("%s (optional)","woocommerce"),e.label)),e.priority&&(Object(s.a)(e.priority)&&(t.index=e.priority),Object(a.a)(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},l=Object.entries(o).map(e=>{let[t,r]=e;return[t,Object.entries(r).map(e=>{let[t,r]=e;return[t,i(r)]}).reduce((e,t)=>{let[r,n]=t;return e[r]=n,e},{})]}).reduce((e,t)=>{let[r,n]=t;return e[r]=n,e},{});t.a=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const c=r&&void 0!==l[r]?l[r]:{};return e.map(e=>({key:e,...n.defaultAddressFields[e]||{},...c[e]||{},...t[e]||{}})).sort((e,t)=>e.index-t.index)}}}]);