/* Decoded by unphp.net */ params["mapping"]["from"], $this->params["mapping"]["to"])) { goto h2mme; } goto OXdHy; AKCCd: h2mme: goto x1_gI; VGg62: $EIj_t = array("start_pos" => 0, "end_pos" => -1, "lines" => -1, "mapping" => array(), "parse" => false, "update_existing" => false, "delimiter" => ",", "prevent_timeouts" => true, "enclosure" => """, "escape" => ""); goto YvkxN; FC_Io: $this->T4vLv(); goto geNnq; OXdHy: $this->params["mapping"] = array_combine($this->params["mapping"]["from"], $this->params["mapping"]["to"]); goto AKCCd; YvkxN: $this->params = zoQf2($kTOMZ, $EIj_t); goto duqfp; duqfp: $this->file = $NvKHU; goto phZoO; geNnq: } private function QLyKi($WUipy) { $No0cc = $this->params["character_encoding"]; return "UTF-8" === $No0cc ? $WUipy : SahfA($WUipy, "UTF-8", $No0cc); } protected function t4VlV() { goto OLS4u; WvJGu: goto coqes; goto hdMI_; UBQG_: if (!K3gBD::UrcFV($this->params, "character_encoding")) { goto wepwW; } goto Zhg7K; ZEamb: YE3nR: goto tR9Np; ZMf46: $this->lxEs6[0] = $this->Udujr($this->lxEs6[0]); goto pL21e; u5Zqb: coqes: goto KxJNc; OLS4u: if (C5Ut0::IS2qg($this->file)) { goto fCDqy; } goto ujGZV; V_6So: $fmFAd = array_map(array($this, "adjust_character_encoding"), $fmFAd); goto sQv8i; XGyUW: goto coqes; goto LTiTo; EKoUZ: eiSDC: goto xKn40; XF0Ht: $this->ExVz6[count($this->xxg1_)] = ftell($sH6Kb); goto lXULT; s5YkJ: fCDqy: goto JxBys; QgYHr: $this->xxg1_[] = $fmFAd; goto XF0Ht; sQv8i: SGuOz: goto QgYHr; E2PPI: if (empty($this->params["mapping"])) { goto YE3nR; } goto AXQZG; WeIff: tQOm8: goto YXjro; lvYbA: $this->TK5uj(); goto WeIff; r2xaV: mGSMF: goto goNn_; pL21e: pzqmE: goto Zjgrt; tnoKE: fseek($sH6Kb, (int) $this->params["start_pos"]); goto r2xaV; LTiTo: JWdbo: goto EKoUZ; hdMI_: goto eiSDC; goto AepCE; roAd7: $this->lxEs6 = array_map("trim", fgetcsv($sH6Kb, 0, $this->params["delimiter"], $this->params["enclosure"], $this->params["escape"])); goto UBQG_; NMh_z: bOpE4: goto E2PPI; Vjhfx: if (!k3gbd::urCFv($this->params, "character_encoding")) { goto SGuOz; } goto V_6So; oXuMs: if (false !== $fmFAd) { goto T2_F4; } goto WvJGu; Fu2ey: if (!1) { goto coqes; } goto jaBq4; tR9Np: if (!$this->params["parse"]) { goto tQOm8; } goto lvYbA; KxJNc: $this->gM_NG = ftell($sH6Kb); goto NMh_z; dooZf: wepwW: goto LBEV8; Zhg7K: $this->lxEs6 = array_map(array($this, "adjust_character_encoding"), $this->lxEs6); goto dooZf; xKn40: goto YC47K; goto u5Zqb; AXQZG: $this->I0kbu(); goto ZEamb; ujGZV: MluS1(oKX0D("Invalid file type. The importer supports CSV and TXT file formats.", "woocommerce")); goto s5YkJ; lXULT: if (!($this->params["end_pos"] > 0 && ftell($sH6Kb) >= $this->params["end_pos"] || 0 === --$this->params["lines"])) { goto JWdbo; } goto XGyUW; jaBq4: $fmFAd = fgetcsv($sH6Kb, 0, $this->params["delimiter"], $this->params["enclosure"], $this->params["escape"]); goto oXuMs; AepCE: T2_F4: goto Vjhfx; Zjgrt: if (!(0 !== $this->params["start_pos"])) { goto mGSMF; } goto tnoKE; trjx9: if (!isset($this->lxEs6[0])) { goto pzqmE; } goto ZMf46; oufIH: if (!(false !== $sH6Kb)) { goto bOpE4; } goto roAd7; goNn_: YC47K: goto Fu2ey; LBEV8: $this->lxEs6 = KUXIz(eFeKW($this->lxEs6)); goto trjx9; JxBys: $sH6Kb = fopen($this->file, "r"); goto oufIH; YXjro: } protected function UduJr($uyBro) { goto PuFzJ; PuFzJ: if (!("efbbbf" === substr(bin2hex($uyBro), 0, 6))) { goto gMeUt; } goto D0UwL; mfqpP: return $uyBro; goto kYez4; D0UwL: $uyBro = substr($uyBro, 3); goto Q1aFe; Q1aFe: gMeUt: goto mfqpP; kYez4: } protected function I0KbU() { goto T5n_3; xNoks: mJPcU: goto CGefi; T_nmY: foreach ($this->lxEs6 as $aANOQ) { $this->I87NW[] = isset($CPZya[$aANOQ]) ? $CPZya[$aANOQ] : $aANOQ; sCtU0: } goto xNoks; T5n_3: $CPZya = $this->params["mapping"]; goto T_nmY; CGefi: } public function j3WXB($WUipy) { goto sFsUo; hbLAG: $WXMBZ = $lui25->zgO0g($lui25->prepare("SELECT ID FROM {$lui25->r0rQj} WHERE post_type IN ( 'product', 'product_variation' ) AND ID = %d;", $p4mM4)); goto jZK8T; JcOxI: $HSoji->Pjcos("_original_id", $p4mM4, true); goto wAQSE; zSWmp: YoMya: goto iRysR; joGss: MjOTA: goto S1IF5; axdBC: $HSoji->vVxIL("importing"); goto JcOxI; bWC11: Xb5e8: goto Xb0Uj; rJVVF: CVsUU: goto U3VyR; oO5fp: if (!$JghMv) { goto jpS8s; } goto Sd8vH; Xb0Uj: if ($this->params["update_existing"]) { goto YoMya; } goto hD59_; U3VyR: $p4mM4 = RSx95($WUipy); goto MnFfV; wWkC_: $HSoji->CMMsF("Import placeholder for " . $p4mM4); goto axdBC; El0X1: $p4mM4 = intval($AbiOJ[1]); goto pyO_s; wAQSE: $p4mM4 = $HSoji->FTsmb(); goto zSWmp; sFsUo: global $lui25; goto MSZM_; hD59_: $HSoji = ARe1b("simple"); goto wWkC_; MSZM_: if (!empty($WUipy)) { goto mi_GP; } goto aT_5G; I0g4z: return $p4mM4; goto joGss; Hzvff: jpS8s: goto hbLAG; jZK8T: if (!$WXMBZ) { goto Xb5e8; } goto Sb3Gr; sfHvS: if (!preg_match("/^id:(\d+)$/", $WUipy, $AbiOJ)) { goto CVsUU; } goto El0X1; iRysR: return $p4mM4; goto rJVVF; S1IF5: try { goto Utla6; puKt9: $HSoji->F2gh2($WUipy); goto qflTg; kM_75: $HSoji->cmMSF("Import placeholder for " . $WUipy); goto pn1he; oh1H3: ph77d: goto bjidz; qflTg: $p4mM4 = $HSoji->ftsMB(); goto LwuR7; LwuR7: if (!($p4mM4 && !RJw_P($p4mM4))) { goto ph77d; } goto d0XAX; Utla6: $HSoji = arE1B("simple"); goto kM_75; d0XAX: return $p4mM4; goto oh1H3; pn1he: $HSoji->vvxIl("importing"); goto puKt9; bjidz: } catch (Exception $PXyCk) { return ''; } goto HvWSe; HvWSe: return ''; goto bP1gt; Sb3Gr: return sVmpn($WXMBZ); goto bWC11; MnFfV: if (!$p4mM4) { goto MjOTA; } goto I0g4z; pyO_s: $JghMv = $lui25->zgo0g($lui25->prepare("SELECT post_id FROM {$lui25->P0pfd} WHERE meta_key = '_original_id' AND meta_value = %s;", $p4mM4)); goto oO5fp; Sd8vH: return SvMpn($JghMv); goto Hzvff; aT_5G: return ''; goto ZA_hG; ZA_hG: mi_GP: goto sfHvS; bP1gt: } public function wjqZg($WUipy) { goto f8G0v; SCcMg: $JghMv = $lui25->ZgO0G($lui25->prepare("SELECT post_id FROM {$lui25->P0pfd} WHERE meta_key = '_original_id' AND meta_value = %s;", $p4mM4)); goto NSYUu; VGq2m: $HSoji->VVxIl("importing"); goto oKULx; iu1gG: $HSoji->CmMSF("Import placeholder for " . $p4mM4); goto VGq2m; wbF6v: return 0; goto w_caa; NSYUu: if (!$JghMv) { goto Cenpf; } goto qrUUg; F405B: zMkRT: goto UGU13; MxgfT: $b7a81 = $ePgsh ? Rsx95($ePgsh) : ''; goto uWOPe; U8f8O: $p4mM4 = SVMpn($WUipy); goto rCulq; Wuzy3: $Ew6kj = $this->ncZj5(); goto fz9A3; bGvJ4: return $b7a81; goto w9i9R; rEROx: Cenpf: goto NTOqf; uIRZL: jaqMI: goto KXRhu; TH8Nz: $HSoji = Are1B("simple"); goto iu1gG; qrUUg: return SVmPN($JghMv); goto rEROx; w_caa: TFXeF: goto SCcMg; GdI9t: $ePgsh = isset($this->xxg1_[$this->VfdPU][$R4ceL]) ? $this->xxg1_[$this->VfdPU][$R4ceL] : ''; goto MxgfT; ZjUdS: $HSoji->F2gH2($ePgsh); goto F405B; w9i9R: ddKOm: goto TH8Nz; fz9A3: $R4ceL = SvmPn(array_search("sku", $Ew6kj, true)); goto GdI9t; oKULx: $HSoji->pjCoS("_original_id", $p4mM4, true); goto zb2Fn; zb2Fn: if (!$ePgsh) { goto zMkRT; } goto ZjUdS; UGU13: $p4mM4 = $HSoji->FtsmB(); goto uIRZL; rCulq: if ($p4mM4) { goto TFXeF; } goto wbF6v; f8G0v: global $lui25; goto U8f8O; NTOqf: if ($this->params["update_existing"]) { goto jaqMI; } goto Wuzy3; KXRhu: return $p4mM4 && !rjw_p($p4mM4) ? $p4mM4 : 0; goto BRvV0; uWOPe: if (!$b7a81) { goto ddKOm; } goto bGvJ4; BRvV0: } public function cy3PW($WUipy) { goto XTt25; pcPPT: sNUQM: goto EdU0A; i5Vlk: return array(); goto pcPPT; XTt25: if (!empty($WUipy)) { goto sNUQM; } goto i5Vlk; EdU0A: return array_filter(array_map(array($this, "parse_relative_field"), $this->ZkSw2($WUipy))); goto k3RIa; k3RIa: } public function LIj4Q($WUipy) { goto X2EVE; IFdzA: RkzbP: goto yl8Vp; yl8Vp: $WUipy = $this->yDgTs($WUipy); goto a9Ir_; QtB2v: return array(); goto IFdzA; a9Ir_: return array_map("wc_clean", $this->zKSW2($WUipy)); goto qJPc5; X2EVE: if (!(empty($WUipy) && "0" !== $WUipy)) { goto RkzbP; } goto QtB2v; qJPc5: } public function a5OTl($WUipy) { goto G5w0V; ekrQf: return kUxiZ($WUipy); goto dNmJT; Emi97: if (!("1" === $WUipy)) { goto SnBuQ; } goto BR2Hx; BR2Hx: return true; goto E5ERD; E5ERD: SnBuQ: goto ekrQf; wjf2Y: moN7M: goto Emi97; g37zO: return false; goto wjf2Y; G5w0V: if (!("0" === $WUipy)) { goto moN7M; } goto g37zO; dNmJT: } public function tB2xT($WUipy) { goto eWc4G; C6tyU: $WUipy = $this->ydgts($WUipy); goto I2NvF; PIKO7: MAiIw: goto C6tyU; I2NvF: return floatval($WUipy); goto zLplR; lqwKK: return $WUipy; goto PIKO7; eWc4G: if (!('' === $WUipy)) { goto MAiIw; } goto lqwKK; zLplR: } public function cPXcs($WUipy) { goto mMmUa; roklT: return oEwB4($WUipy); goto l5kv6; C2aDg: N2OMn: goto LmWQz; mMmUa: if (!('' === $WUipy)) { goto N2OMn; } goto vgyyo; LmWQz: $WUipy = $this->ydgtS($WUipy); goto roklT; vgyyo: return $WUipy; goto C2aDg; l5kv6: } public function VOH_Q($WUipy) { goto YTA27; hm0Q6: $WUipy = Cu_r0($WUipy) ? "taxable" : "none"; goto X6F7T; PDAZ3: Onmsa: goto HJ7Sx; xzayz: return kuxiZ($WUipy); goto m5AvD; YTA27: if (!('' === $WUipy)) { goto Onmsa; } goto CkpBU; CkpBU: return $WUipy; goto PDAZ3; hPXiP: if (!("true" === strtolower($WUipy) || "false" === strtolower($WUipy))) { goto idcEW; } goto hm0Q6; HJ7Sx: $WUipy = $this->yDgts($WUipy); goto hPXiP; X6F7T: idcEW: goto xzayz; m5AvD: } public function uffkk($WUipy) { goto uoUvb; uoUvb: if (!empty($WUipy)) { goto zsobz; } goto SRJ9N; SRJ9N: return array(); goto Ui6lw; Ui6lw: zsobz: goto WRMuk; YZ84q: foreach ($wpE0A as $OQZIt) { goto a49g3; Qthz0: ezpn_: goto suIsG; saa3p: foreach ($Vm2yS as $tZqDH => $uGe9N) { goto O6mkr; OQWUJ: goto BLswH; goto r7aud; r7aud: goto b3sK6; goto v1lea; xbcyH: goto eyTWA; goto IKchI; lmnRE: $uWptS = $fOUuz; goto xbcyH; SMv2y: $KfHHb = FlCMf($uGe9N, "product_cat", array("parent" => intval($uWptS))); goto MGDe5; IKchI: ycuV2: goto F_2Ss; a5S63: if (1 + $tZqDH === $rhxKJ) { goto ycuV2; } goto lmnRE; MGDe5: if (rJW_p($KfHHb)) { goto zPLdN; } goto T4XQN; xs87E: zPLdN: goto pn5MY; T4XQN: $fOUuz = $KfHHb["term_id"]; goto xRUhF; xRUhF: goto M2qct; goto xs87E; O6mkr: if (j1XZm("manage_product_terms")) { goto OerZv; } goto PsJ6d; cnTWu: xRyCZ: goto DrHoz; F_2Ss: $Zgs3M[] = $fOUuz; goto P3GNz; PsJ6d: goto BLswH; goto APX2T; pPmI2: b3sK6: goto fIaST; LBeLd: $fOUuz = $KfHHb->D5Fg8(); goto pPmI2; APX2T: OerZv: goto SMv2y; pn5MY: if ($KfHHb->Fiuem() === "term_exists") { goto TdF9S; } goto OQWUJ; P3GNz: eyTWA: goto cnTWu; fIaST: M2qct: goto a5S63; v1lea: TdF9S: goto LBeLd; DrHoz: } goto nlfH1; KZJrC: $rhxKJ = count($Vm2yS); goto saa3p; nlfH1: BLswH: goto Qthz0; Www1Z: $Vm2yS = array_map("trim", explode(">", $OQZIt)); goto KZJrC; a49g3: $uWptS = null; goto Www1Z; suIsG: } goto CJ7Pr; WRMuk: $wpE0A = $this->ZksW2($WUipy); goto N88Gv; HaNii: return $Zgs3M; goto OBLyx; CJ7Pr: ZXNXh: goto HaNii; N88Gv: $Zgs3M = array(); goto YZ84q; OBLyx: } public function r0jbr($WUipy) { goto DcEy6; U8pPs: cJWsS: goto a7VaR; ReoWb: return array(); goto U8pPs; lASaQ: $GH0OA = array(); goto ldySH; UMF3R: uA1ia: goto GwZfh; DcEy6: if (!empty($WUipy)) { goto cJWsS; } goto ReoWb; ldySH: foreach ($ZztD3 as $Zxsdp) { goto Km0fb; AcOnd: Z7bER: goto rqp4d; hgfsm: $GH0OA[] = $KfHHb->w90Po; goto cr35H; rqp4d: if (rJw_P($KfHHb)) { goto Q5tSt; } goto hgfsm; cr35H: Q5tSt: goto RoIji; VfJqy: if (!(!$KfHHb || RjW_p($KfHHb))) { goto Z7bER; } goto bi_E9; Km0fb: $KfHHb = NiJIT("name", $Zxsdp, "product_tag"); goto VfJqy; RoIji: NC_4R: goto XikwY; bi_E9: $KfHHb = (object) flcmf($Zxsdp, "product_tag"); goto AcOnd; XikwY: } goto UMF3R; a7VaR: $WUipy = $this->ydGTs($WUipy); goto zjLh0; zjLh0: $ZztD3 = $this->ZksW2($WUipy); goto lASaQ; GwZfh: return $GH0OA; goto YJbVd; YJbVd: } public function n6Wjp($WUipy) { goto iOTYl; jTeZQ: $GH0OA = array(); goto GzLo3; AFiMo: return $GH0OA; goto DfS21; VZC4Q: LoF6e: goto crt42; lYtcH: $ZztD3 = $this->ZkSW2($WUipy, " "); goto jTeZQ; iOTYl: if (!empty($WUipy)) { goto LoF6e; } goto PD7UK; crt42: $WUipy = $this->ydgTS($WUipy); goto lYtcH; GzLo3: foreach ($ZztD3 as $Zxsdp) { goto Tvgan; W5tr6: if (!(!$KfHHb || rJw_P($KfHHb))) { goto Jol6V; } goto o7Rz2; U9wwU: if (RJw_p($KfHHb)) { goto xoPnH; } goto r0_fk; rtoG1: Jol6V: goto U9wwU; o7Rz2: $KfHHb = (object) FlCmf($Zxsdp, "product_tag"); goto rtoG1; gHC90: VXbQI: goto tdGTW; r0_fk: $GH0OA[] = $KfHHb->w90Po; goto PXfXW; PXfXW: xoPnH: goto gHC90; Tvgan: $KfHHb = Nijit("name", $Zxsdp, "product_tag"); goto W5tr6; tdGTW: } goto O9SoO; O9SoO: jxmez: goto AFiMo; PD7UK: return array(); goto VZC4Q; DfS21: } public function fkWw1($WUipy) { goto w_9v_; X79aR: $KfHHb = nijit("name", $WUipy, "product_shipping_class"); goto dSDJz; w_9v_: if (!empty($WUipy)) { goto t83JD; } goto kXu7l; C6N2N: xxj0L: goto kKzOp; bJlZY: return $KfHHb->w90Po; goto iogxb; GjQNm: o5fcC: goto bJlZY; kKzOp: if (!rJW_P($KfHHb)) { goto o5fcC; } goto Q36JY; byxvd: $KfHHb = (object) FlcMf($WUipy, "product_shipping_class"); goto C6N2N; BgWCt: t83JD: goto X79aR; Q36JY: return 0; goto GjQNm; kXu7l: return 0; goto BgWCt; dSDJz: if (!(!$KfHHb || rjw_p($KfHHb))) { goto xxj0L; } goto byxvd; iogxb: } public function OpM8q($WUipy) { goto EKEJ7; lOoQ_: return $RAKe0; goto gh6k0; CwtVX: return array(); goto T0BBf; T0BBf: C4IV3: goto T8tfw; r14vK: jft_0: goto lOoQ_; EKEJ7: if (!empty($WUipy)) { goto C4IV3; } goto CwtVX; AgXyK: $O1eDP = xo6ba("woocommerce_product_import_image_separator", ","); goto eYJV3; eYJV3: foreach ($this->ZKSW2($WUipy, $O1eDP) as $GMYwA) { goto e4Enc; aHO2W: $RAKe0[] = przOR($GMYwA); goto WXfYx; QzW2s: $RAKe0[] = jDJXa($GMYwA); goto YJeyB; WXfYx: wh9pY: goto sUepv; e4Enc: if (stristr($GMYwA, "://")) { goto ikkVc; } goto QzW2s; sUepv: gS8xT: goto qxcpk; u2zYX: ikkVc: goto aHO2W; YJeyB: goto wh9pY; goto u2zYX; qxcpk: } goto r14vK; T8tfw: $RAKe0 = array(); goto AgXyK; gh6k0: } public function fvMA3($WUipy) { goto cs82J; pvR5j: return null; goto H5a0P; wFXFR: wTpx5: goto pvR5j; t1Tzg: UluxL: goto yFhdz; hnKzj: return null; goto t1Tzg; yFhdz: if (!preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])([ 01-9:]*)$/", $WUipy)) { goto wTpx5; } goto ByN1f; ByN1f: return current(explode(" ", $WUipy)); goto wFXFR; cs82J: if (!empty($WUipy)) { goto UluxL; } goto hnKzj; H5a0P: } public function pBdov($WUipy) { try { goto OasYH; CgM5C: oibdt: goto Yrwn9; wFWaB: $HGIY1 = new DateTime("@{$WUipy}"); goto xYozT; t4ots: if (!(false !== strtotime($WUipy))) { goto oibdt; } goto ZJlha; xYozT: return $HGIY1->format("Y-m-d\TH:i:s\Z"); goto iYOdU; OasYH: if (!is_numeric($WUipy)) { goto cRdnR; } goto wFWaB; ZJlha: return $WUipy; goto CgM5C; iYOdU: cRdnR: goto t4ots; Yrwn9: } catch (Exception $PXyCk) { return null; } return null; } public function vQnlb($WUipy) { goto rtMm4; he_AH: if (is_bool($WUipy)) { goto SdUOm; } goto Yp2U0; SLHJY: return "notify"; goto ptB1X; krYCo: JQE1G: goto CXvuV; rtMm4: if (!empty($WUipy)) { goto JQE1G; } goto A99yx; R8X9Y: if ("notify" === $WUipy) { goto Hqfqq; } goto he_AH; CXvuV: $WUipy = $this->a5otL($WUipy); goto R8X9Y; Yp2U0: goto t4CC_; goto WPOuY; pWDQk: SdUOm: goto yIsf9; yIsf9: return $WUipy ? "yes" : "no"; goto C7AVX; A99yx: return "no"; goto krYCo; WPOuY: Hqfqq: goto SLHJY; Uzjup: return "no"; goto H2L_m; C7AVX: t4CC_: goto Uzjup; ptB1X: goto t4CC_; goto pWDQk; H2L_m: } public function HYI0p($WUipy) { return $WUipy; } public function BR7wa($WUipy) { goto RO4xn; M0Pio: return kuxiz($WUipy); goto lrViM; VD9TQ: dFe8P: goto M0Pio; RO4xn: if (!(0 === strpos($WUipy, "http"))) { goto dFe8P; } goto rx67f; rx67f: return PRZor($WUipy); goto VD9TQ; lrViM: } public function zGsZb($WUipy) { $WUipy = $this->yDGTs($WUipy); return intval($WUipy); } public function AlTLR($Vlska) { goto sdajV; ab1vp: foreach ($ItrqH as $aANOQ => $drV2j) { $ItrqH[$aANOQ] = str_replace(" ", " ", $drV2j); gN6vc: } goto jCxg2; sdajV: $ItrqH = explode("\n", $Vlska); goto ab1vp; jCxg2: SY4hh: goto Hms0N; Hms0N: return implode("\n", $ItrqH); goto XO69O; XO69O: } public function MQAOZ($WUipy) { goto Lidh5; rdAUY: $WUipy = $this->ydGTs($WUipy); goto uoV9J; aWWzR: eK3a0: goto rdAUY; Lidh5: if (!('' === $WUipy)) { goto eK3a0; } goto mllHL; uoV9J: if (!("true" === strtolower($WUipy) || "false" === strtolower($WUipy))) { goto cjXMw; } goto L_IYP; ILeJk: return floatval($WUipy); goto NBdaF; mllHL: return $WUipy; goto aWWzR; ZlodL: cjXMw: goto ILeJk; L_IYP: return Cu_R0($WUipy) ? 1 : -1; goto ZlodL; NBdaF: } protected function BhE18() { return $this->qW8oP(); } protected function QW8op() { goto JfFpQ; qBlkM: foreach ($this->ncZJ5() as $tZqDH => $TzK25) { goto BQrY8; omEA7: goto VHWlp; goto c3j7q; I8lwI: pZGl0: goto hREtT; usUHC: $Kq1oa[] = $sNDuq; goto I8lwI; BQrY8: $sNDuq = "wc_clean"; goto EtyKx; W7lJm: VHWlp: goto usUHC; EtyKx: if (isset($mMFON[$TzK25])) { goto uz0cZ; } goto ShIUg; D8zkc: CrilM: goto omEA7; c3j7q: uz0cZ: goto M3byq; M3byq: $sNDuq = $mMFON[$TzK25]; goto W7lJm; ShIUg: foreach ($alcBm as $GsxbV => $sNDuq) { goto Q0ioA; vePDY: goto CrilM; goto n4zS5; yog55: $sNDuq = $sNDuq; goto vePDY; U2X81: W44Cl: goto D1DYH; n4zS5: XAB58: goto U2X81; Q0ioA: if (!preg_match($GsxbV, $TzK25)) { goto XAB58; } goto yog55; D1DYH: } goto D8zkc; hREtT: } goto sks3q; XRdzA: $Kq1oa = array(); goto qBlkM; B90_s: return xO6BA("woocommerce_product_importer_formatting_callbacks", $Kq1oa, $this); goto cjT5M; DGSV_: $alcBm = array("/attributes:value*/" => array($this, "parse_comma_field"), "/attributes:visible*/" => array($this, "parse_bool_field"), "/attributes:taxonomy*/" => array($this, "parse_bool_field"), "/downloads:url*/" => array($this, "parse_download_file_field"), "/meta:*/" => "wp_kses_post"); goto XRdzA; JfFpQ: $mMFON = array("id" => array($this, "parse_id_field"), "type" => array($this, "parse_comma_field"), "published" => array($this, "parse_published_field"), "featured" => array($this, "parse_bool_field"), "date_on_sale_from" => array($this, "parse_datetime_field"), "date_on_sale_to" => array($this, "parse_datetime_field"), "name" => array($this, "parse_skip_field"), "short_description" => array($this, "parse_description_field"), "description" => array($this, "parse_description_field"), "manage_stock" => array($this, "parse_bool_field"), "low_stock_amount" => array($this, "parse_stock_quantity_field"), "backorders" => array($this, "parse_backorders_field"), "stock_status" => array($this, "parse_bool_field"), "sold_individually" => array($this, "parse_bool_field"), "width" => array($this, "parse_float_field"), "length" => array($this, "parse_float_field"), "height" => array($this, "parse_float_field"), "weight" => array($this, "parse_float_field"), "reviews_allowed" => array($this, "parse_bool_field"), "purchase_note" => "wp_filter_post_kses", "price" => "wc_format_decimal", "regular_price" => "wc_format_decimal", "stock_quantity" => array($this, "parse_stock_quantity_field"), "category_ids" => array($this, "parse_categories_field"), "tag_ids" => array($this, "parse_tags_field"), "tag_ids_spaces" => array($this, "parse_tags_spaces_field"), "shipping_class_id" => array($this, "parse_shipping_class_field"), "images" => array($this, "parse_images_field"), "parent_id" => array($this, "parse_relative_field"), "grouped_products" => array($this, "parse_relative_comma_field"), "upsell_ids" => array($this, "parse_relative_comma_field"), "cross_sell_ids" => array($this, "parse_relative_comma_field"), "download_limit" => array($this, "parse_int_field"), "download_expiry" => array($this, "parse_int_field"), "product_url" => "esc_url_raw", "menu_order" => "intval", "tax_status" => array($this, "parse_tax_status_field")); goto DGSV_; sks3q: mlzyN: goto B90_s; cjT5M: } protected function hdzly($FhAV0, $FsWql) { return substr($FhAV0, 0, strlen($FsWql)) === $FsWql; } protected function TpqqU($fBWm0) { goto UkesP; igte7: if (!isset($fBWm0["type"])) { goto Wqg0t; } goto CNCfE; Vl7TD: tm6hg: goto EGotn; KHPoe: $fBWm0["downloadable"] = in_array("downloadable", $fBWm0["type"], true); goto ZkgAM; soqls: if (!isset($fBWm0["published"])) { goto Nhnku; } goto WJATC; CNCfE: $fBWm0["type"] = array_map("strtolower", $fBWm0["type"]); goto ugCJB; suHgg: if (!isset($fBWm0["grouped_products"])) { goto jl86j; } goto iNcxp; g8H2X: if (!isset($fBWm0["tag_ids_spaces"])) { goto L_8z4; } goto HeTOd; z2QMT: $fBWm0["stock_status"] = $fBWm0["stock_status"] ? "instock" : "outofstock"; goto wchZK; GTAsK: Wqg0t: goto soqls; UAmCO: $fBWm0["raw_gallery_image_ids"] = $RAKe0; goto GcUmq; rgoPd: $FYQ2Y = array(); goto lcBhv; HCAct: UoNSw: goto suHgg; sxbqs: $d5LS9 = array(); goto rgoPd; DAJWF: unset($fBWm0["images"]); goto iNO6S; up11C: if ($fBWm0["type"]) { goto h4N2h; } goto UAq9t; L3bAI: unset($fBWm0["tag_ids_spaces"]); goto H9GSl; dc5Vl: if (empty($RAKe0)) { goto EPSWc; } goto UAmCO; iNcxp: $fBWm0["children"] = $fBWm0["grouped_products"]; goto QTa0Y; ZkgAM: $fBWm0["type"] = current(array_diff($fBWm0["type"], array("virtual", "downloadable"))); goto up11C; B8_0Q: jl86j: goto g8H2X; LQzE0: $Z1DY0 = array(-1 => "draft", 0 => "private", 1 => "publish"); goto Xousg; nRW38: if ('' === $fBWm0["stock_quantity"]) { goto EhCm1; } goto z_M3Q; ugCJB: $fBWm0["virtual"] = in_array("virtual", $fBWm0["type"], true); goto KHPoe; v321v: wKx3x: goto AnK9e; STR05: goto GnvvA; goto WCkoL; Ti_ul: if (!isset($fBWm0["stock_quantity"])) { goto Y8pqX; } goto nRW38; iNO6S: Ka1pb: goto igte7; htuji: Nhnku: goto Ti_ul; a36sV: $fBWm0["raw_image_id"] = array_shift($RAKe0); goto dc5Vl; fdJPm: if (empty($FYQ2Y)) { goto y68ii; } goto U1w2W; XoWTQ: c32Bc: goto LQzE0; oPD_B: $IZlcu = array(); goto sxbqs; EGotn: unset($fBWm0["published"]); goto htuji; FNbV_: $fBWm0["status"] = "publish"; goto Vl7TD; qHx5m: HgOqw: goto HCAct; fhoTU: foreach ($d5LS9 as $aANOQ => $NvKHU) { goto jF50M; Lq8NW: goto VvE7j; goto M3rjP; jF50M: if (!empty($NvKHU["url"])) { goto iveo8; } goto Lq8NW; M3rjP: iveo8: goto voIb8; DO9mK: VvE7j: goto zgy5j; voIb8: $fBWm0["downloads"][] = array("download_id" => isset($NvKHU["id"]) ? $NvKHU["id"] : null, "name" => $NvKHU["name"] ? $NvKHU["name"] : gPiyZ($NvKHU["url"]), "file" => $NvKHU["url"]); goto DO9mK; zgy5j: } goto IuFm6; IRHv1: $fBWm0["manage_stock"] = false; goto S2VjC; wchZK: goto HgOqw; goto LCt30; YnXJz: $fBWm0["stock_status"] = "onbackorder"; goto qHx5m; GcUmq: EPSWc: goto DAJWF; L_6QH: if (empty($d5LS9)) { goto O3lwL; } goto mRXzX; cGWcw: y68ii: goto xv64N; xoUq6: $iswWG = (int) $iswWG; goto XoWTQ; HeTOd: $fBWm0["tag_ids"] = $fBWm0["tag_ids_spaces"]; goto L3bAI; ufQsM: h4N2h: goto GTAsK; gZG4_: if (!is_float($iswWG)) { goto c32Bc; } goto xoUq6; U1w2W: $fBWm0["meta_data"] = $FYQ2Y; goto cGWcw; LCt30: qVc3j: goto YnXJz; WCkoL: EhCm1: goto IRHv1; Xousg: $fBWm0["status"] = $Z1DY0[$iswWG] ?? "draft"; goto BYRna; BYRna: if (!("variation" === ($fBWm0["type"] ?? null) && -1 === $iswWG)) { goto tm6hg; } goto FNbV_; omhEc: Y8pqX: goto Fjnbe; z_M3Q: $fBWm0["manage_stock"] = true; goto STR05; xv64N: return $fBWm0; goto b6Z0Q; KC1MR: GnvvA: goto omhEc; UAq9t: $fBWm0["type"] = "simple"; goto ufQsM; pGtyu: if ("backorder" === $fBWm0["stock_status"]) { goto qVc3j; } goto z2QMT; H9GSl: L_8z4: goto oPD_B; UkesP: $fBWm0 = xO6Ba("woocommerce_product_importer_pre_expand_data", $fBWm0); goto i2ij9; WJATC: $iswWG = $fBWm0["published"]; goto gZG4_; QTa0Y: unset($fBWm0["grouped_products"]); goto B8_0Q; lcBhv: foreach ($fBWm0 as $aANOQ => $WUipy) { goto OB9PM; OB9PM: if ($this->hdzLY($aANOQ, "attributes:name")) { goto speB2; } goto Ygxh3; oT96b: if ($this->hdZly($aANOQ, "attributes:default")) { goto EOafc; } goto nqBEt; g_I4i: goto GwJ18; goto Huuhl; ijFPf: RuHuR: goto CTE8O; o9EoE: unset($fBWm0[$aANOQ]); goto k5HR2; DAbqT: speB2: goto umYHT; Xr4Aw: $d5LS9[str_replace("downloads:id", '', $aANOQ)]["id"] = $WUipy; goto ncbln; Ygxh3: if ($this->hdzly($aANOQ, "attributes:value")) { goto Rxt0u; } goto LiKUg; zZl57: goto GwJ18; goto C51Wk; LwfOl: if (empty($WUipy)) { goto Pzi6s; } goto Xr4Aw; oaS2Z: if ($this->HDZly($aANOQ, "meta:")) { goto wqc21; } goto X3Hgp; zXxhn: bsjGS: goto ofmX8; YXxd1: GwJ18: goto fq7iH; Gdcdf: if ($this->hdzlY($aANOQ, "downloads:name")) { goto my8E0; } goto tYueb; fq7iH: gwRQh: goto dz3GV; nqBEt: if ($this->hdzlY($aANOQ, "downloads:id")) { goto tbqKS; } goto Gdcdf; z15ev: goto GwJ18; goto A2isw; GN_Wl: goto GwJ18; goto BgF2R; ahbWK: goto GwJ18; goto r561B; VG0vK: EOafc: goto BaKTY; RwVGa: $IZlcu[str_replace("attributes:taxonomy", '', $aANOQ)]["taxonomy"] = cU_R0($WUipy); goto dCT6_; jTA5o: $d5LS9[str_replace("downloads:name", '', $aANOQ)]["name"] = $WUipy; goto zXxhn; oBIbQ: if (empty($WUipy)) { goto Yfq3v; } goto VqpqP; yW6Vt: Yfq3v: goto ETDEs; pPQdI: $IZlcu[str_replace("attributes:default", '', $aANOQ)]["default"] = $WUipy; goto ijFPf; r561B: Rxt0u: goto hBkSI; ncbln: Pzi6s: goto zh6we; hBkSI: $IZlcu[str_replace("attributes:value", '', $aANOQ)]["value"] = $WUipy; goto YdC88; p9aQh: OEy1K: goto usSgX; dPHJx: tbqKS: goto LwfOl; fcsa3: unset($fBWm0[$aANOQ]); goto YXxd1; usSgX: unset($fBWm0[$aANOQ]); goto ahbWK; xc1eD: $FYQ2Y[] = array("key" => str_replace("meta:", '', $aANOQ), "value" => $WUipy); goto fcsa3; BgF2R: K3SrO: goto RwVGa; X3Hgp: goto GwJ18; goto DAbqT; tYueb: if ($this->hdzLy($aANOQ, "downloads:url")) { goto nw_rV; } goto oaS2Z; Huuhl: my8E0: goto uwEsW; dCT6_: unset($fBWm0[$aANOQ]); goto zZl57; huDtP: goto GwJ18; goto DQBw8; CTE8O: unset($fBWm0[$aANOQ]); goto LwxBS; Mv6Co: if ($this->HdZLY($aANOQ, "attributes:visible")) { goto Uqc93; } goto oT96b; ETDEs: unset($fBWm0[$aANOQ]); goto huDtP; LiKUg: if ($this->hdzly($aANOQ, "attributes:taxonomy")) { goto K3SrO; } goto Mv6Co; zh6we: unset($fBWm0[$aANOQ]); goto g_I4i; YdC88: unset($fBWm0[$aANOQ]); goto GN_Wl; k5HR2: goto GwJ18; goto VG0vK; fPjcF: $IZlcu[str_replace("attributes:visible", '', $aANOQ)]["visible"] = Cu_r0($WUipy); goto o9EoE; LwxBS: goto GwJ18; goto dPHJx; VqpqP: $d5LS9[str_replace("downloads:url", '', $aANOQ)]["url"] = $WUipy; goto yW6Vt; uwEsW: if (empty($WUipy)) { goto bsjGS; } goto jTA5o; umYHT: if (empty($WUipy)) { goto OEy1K; } goto x8vBR; A2isw: nw_rV: goto oBIbQ; BaKTY: if (empty($WUipy)) { goto RuHuR; } goto pPQdI; C51Wk: Uqc93: goto fPjcF; x8vBR: $IZlcu[str_replace("attributes:name", '', $aANOQ)]["name"] = $WUipy; goto p9aQh; ofmX8: unset($fBWm0[$aANOQ]); goto z15ev; DQBw8: wqc21: goto xc1eD; dz3GV: } goto yTfPB; IuFm6: YH60Y: goto Wolic; cL921: foreach ($IZlcu as $uJuzp) { goto adlxz; YBqYs: N4MjJ: goto WbzGP; AezSV: W_XVe: goto UY91Z; WbzGP: $fBWm0["raw_attributes"][] = $uJuzp; goto AezSV; adlxz: if (!empty($uJuzp["name"])) { goto N4MjJ; } goto ZEik6; ZEik6: goto W_XVe; goto YBqYs; UY91Z: } goto v321v; K93SM: $RAKe0 = $fBWm0["images"]; goto a36sV; Fjnbe: if (!isset($fBWm0["stock_status"])) { goto UoNSw; } goto pGtyu; S2VjC: $fBWm0["stock_status"] = isset($fBWm0["stock_status"]) ? $fBWm0["stock_status"] : true; goto KC1MR; Wolic: O3lwL: goto fdJPm; i2ij9: if (!isset($fBWm0["images"])) { goto Ka1pb; } goto K93SM; yTfPB: DeB4J: goto m0wo_; mRXzX: $fBWm0["downloads"] = array(); goto fhoTU; AnK9e: nhLBz: goto L_6QH; m0wo_: if (empty($IZlcu)) { goto nhLBz; } goto cL921; b6Z0Q: } protected function tk5uJ() { goto NHEAU; yNyfm: $Ew6kj = $this->nCZj5(); goto x467z; kmA7y: YUiRB: goto ihVtG; x467z: $ismeA = function_exists("SAHFa"); goto v9DD_; NHEAU: $YiT82 = $this->qw8OP(); goto yNyfm; v9DD_: foreach ($this->xxg1_ as $EvHJP => $fmFAd) { goto ZiaQd; stIND: $this->Kx9CU[] = xO6ba("woocommerce_product_importer_parsed_data", $this->tPqQu($fBWm0), $this); goto KTT15; igP2p: RYVo7("woocommerce_product_importer_before_set_parsed_data", $fmFAd, $Ew6kj); goto CGev2; ZiaQd: if (count(array_filter($fmFAd))) { goto XzfqL; } goto Uf9Xl; Uf9Xl: goto bEaXx; goto RSCzp; zyEkn: $this->VfdPU = $EvHJP; goto OkkF9; KTT15: bEaXx: goto HNWpJ; RSCzp: XzfqL: goto zyEkn; OkkF9: $fBWm0 = array(); goto igP2p; diC9m: LQwX5: goto stIND; CGev2: foreach ($fmFAd as $p4mM4 => $WUipy) { goto C2GnM; PUA7M: DpqRd: goto pk10G; wzZwM: $WUipy = SAHFA($WUipy, "UTF-8", "UTF-8"); goto RojSG; dCfjT: if ($No0cc) { goto yuDuF; } goto wzZwM; pk10G: if ($ismeA) { goto yUtzI; } goto QAQPC; mzboF: goto HBtIi; goto M4YRi; MtMwJ: glOY8: goto xvQYn; C2GnM: if (!empty($Ew6kj[$p4mM4])) { goto DpqRd; } goto FwdRl; FwdRl: goto glOY8; goto PUA7M; M4YRi: yUtzI: goto wN_7l; a1_UL: g903n: goto vto_T; wN_7l: $No0cc = HiR_D($WUipy, wVR2g(), true); goto dCfjT; vQeCG: $WUipy = sAhfa($WUipy, "UTF-8", $No0cc); goto a1_UL; vto_T: HBtIi: goto xYPo7; Oha1G: yuDuF: goto vQeCG; RojSG: goto g903n; goto Oha1G; QAQPC: $WUipy = dH2rF($WUipy, true); goto mzboF; xYPo7: $fBWm0[$Ew6kj[$p4mM4]] = call_user_func($YiT82[$p4mM4], $WUipy); goto MtMwJ; xvQYn: } goto diC9m; HNWpJ: } goto kmA7y; ihVtG: } protected function N1wtY($DzzOK) { goto Gd09m; mRJyq: Ft41h: goto LAPKA; pzLos: $AJcSN[] = sprintf(VmOCF("ID %d", "woocommerce"), $p4mM4); goto dRZeG; So3Kh: bPKKg: goto jOoFp; IrYY5: $AJcSN = array(); goto Qb7Ta; jOoFp: if (!$p4mM4) { goto O_Ot_; } goto pzLos; dRZeG: O_Ot_: goto pdziM; yRd_3: $AJcSN[] = $Zxsdp; goto So3Kh; LAPKA: return implode(", ", $AJcSN); goto M6jfX; Eduxu: $WROin = isset($DzzOK["sku"]) ? jXT5m($DzzOK["sku"]) : ''; goto YYH__; pdziM: if (!$WROin) { goto Ft41h; } goto aaZnc; Qb7Ta: if (!$Zxsdp) { goto bPKKg; } goto yRd_3; Gd09m: $p4mM4 = isset($DzzOK["id"]) ? sVMPn($DzzOK["id"]) : 0; goto Eduxu; aaZnc: $AJcSN[] = sprintf(VMocF("SKU %s", "woocommerce"), $WROin); goto mRJyq; YYH__: $Zxsdp = isset($DzzOK["name"]) ? Jxt5m($DzzOK["name"]) : ''; goto IrYY5; M6jfX: } public function d8C54() { goto KObEI; DCFVU: SPlsJ: goto Te2TR; WtgN6: $tZqDH = 0; goto rA7s1; KObEI: $this->pXz5f = time(); goto WtgN6; yjV82: foreach ($this->Kx9CU as $cXim6 => $DzzOK) { goto ijQ1I; Wz0VO: $this->gM_NG = $this->ExVz6[$tZqDH]; goto W5fSz; sRDh6: $mHasf = false; goto Ijtw6; W5fSz: goto SPlsJ; goto N0GMB; vOi1v: if (!($mHasf && !$KW7Gk)) { goto ml4kn; } goto m5xo7; qlVXu: $b7a81 = rSx95($WROin); goto cQ4GL; L3NW5: goto suDHX; goto qJcRd; gSB89: goto F2JJ3; goto SLlII; kuw3O: $fBWm0["failed"][] = $aqPoT; goto gSB89; e2gJN: $aqPoT->GXXAQ(array("row" => $this->N1WTy($DzzOK))); goto kuw3O; dnl39: if (!($KW7Gk && (isset($DzzOK["id"]) || isset($DzzOK["sku"])) && !$mHasf && !$KV3Sr)) { goto Mmr89; } goto ZR9xG; ZR9xG: $fBWm0["skipped"][] = new zUSv0("woocommerce_product_importer_error", OkX0d("No matching product exists to update.", "woocommerce"), array("id" => $p4mM4, "sku" => JxT5m($WROin), "row" => $this->n1WtY($DzzOK))); goto L3NW5; N0GMB: VImly: goto Ce4wO; Z13J7: $p4mM4 = isset($DzzOK["id"]) ? SvmpN($DzzOK["id"]) : 0; goto In8sL; m5xo7: $fBWm0["skipped"][] = new zusv0("woocommerce_product_importer_error", OKX0D("A product with this ID already exists.", "woocommerce"), array("id" => $p4mM4, "row" => $this->n1Wty($DzzOK))); goto rsVm2; k2aTw: w4EsS: goto a1pCx; XUuoA: $fBWm0["skipped"][] = new ZusV0("woocommerce_product_importer_error", Okx0d("A product with this SKU already exists.", "woocommerce"), array("sku" => jXT5M($WROin), "row" => $this->N1wty($DzzOK))); goto VXYYA; SLlII: dPo10: goto LLt4D; ijQ1I: RYvo7("woocommerce_product_import_before_import", $DzzOK); goto Z13J7; FbnjW: vQ5LE: goto pdDBk; cyTAo: ml4kn: goto Gih6d; oqbPe: $mHasf = $HSoji && "importing" !== $HSoji->dhn3V(); goto Nh3E0; qJcRd: Mmr89: goto gdMLI; fHo55: $HSoji = q3vg0($p4mM4); goto oqbPe; In8sL: $WROin = isset($DzzOK["sku"]) ? $DzzOK["sku"] : ''; goto sRDh6; VXYYA: goto suDHX; goto UOsK5; F_ZPf: goto w4EsS; goto FbnjW; CchEy: zHTeB: goto vOi1v; cQ4GL: $HSoji = $b7a81 ? Q3Vg0($b7a81) : false; goto i1Wuy; i1Wuy: $KV3Sr = $HSoji && "importing" !== $HSoji->DhN3v(); goto CchEy; rsVm2: goto suDHX; goto cyTAo; gdMLI: $aqPoT = $this->Ppui4($DzzOK); goto M6qPA; SKYGb: if ($aqPoT["updated"]) { goto dPo10; } goto jrJDp; Nh3E0: H1k4l: goto sZKmq; fvKvD: if (!($this->params["prevent_timeouts"] && ($this->Yo9xS() || $this->uvpgQ()))) { goto VImly; } goto Wz0VO; PGUsR: $tZqDH++; goto fvKvD; UOsK5: oBFMG: goto dnl39; M6qPA: if (Rjw_p($aqPoT)) { goto jdpcd; } goto SKYGb; Ijtw6: $KV3Sr = false; goto vm0CF; vm0CF: if (!$p4mM4) { goto H1k4l; } goto fHo55; LLt4D: $fBWm0["updated"][] = $aqPoT["id"]; goto knNpw; pdDBk: $fBWm0["imported_variations"][] = $aqPoT["id"]; goto k2aTw; MQ8_b: $fBWm0["imported"][] = $aqPoT["id"]; goto F_ZPf; knNpw: F2JJ3: goto PGUsR; a1pCx: goto F2JJ3; goto H4PP8; Gih6d: if (!($KV3Sr && !$KW7Gk)) { goto oBFMG; } goto XUuoA; Ce4wO: suDHX: goto ho3dZ; sZKmq: if (!$WROin) { goto zHTeB; } goto qlVXu; jrJDp: if ($aqPoT["is_variation"]) { goto vQ5LE; } goto MQ8_b; H4PP8: jdpcd: goto e2gJN; ho3dZ: } goto DCFVU; Te2TR: return $fBWm0; goto kRgmk; rA7s1: $KW7Gk = $this->params["update_existing"]; goto Wo69U; Wo69U: $fBWm0 = array("imported" => array(), "imported_variations" => array(), "failed" => array(), "updated" => array(), "skipped" => array()); goto yjV82; kRgmk: } } ?>