/* Decoded by unphp.net */ order = $order; $this->logger = wc_get_logger(); } public function get_comments() { goto SmcjJ; PfQAU: OUMEs: goto KcoYR; KcoYR: return $this->order->get_customer_note(); goto mYZWt; NcRUy: return false; goto PfQAU; SmcjJ: if ($this->order) { goto OUMEs; } goto NcRUy; mYZWt: } public function get_customer() { goto WPVZY; xNLV1: r3pQP: goto bqnzD; WPVZY: if ($this->order) { goto r3pQP; } goto mD1Nh; bqnzD: return array("name" => $this->order->has_shipping_address() ? $this->order->get_shipping_first_name() : $this->order->get_billing_first_name(), "last_name" => $this->order->has_shipping_address() ? $this->order->get_shipping_last_name() : $this->order->get_billing_last_name(), "email" => $this->order->get_billing_email(), "phone" => $this->order->get_billing_phone()); goto HCTgv; mD1Nh: return false; goto xNLV1; HCTgv: } public static function get_state_name($state_id = '') { goto GyypP; tLoGP: if (!isset($states[$state_id])) { goto StEET; } goto ontfq; ontfq: return $states[$state_id]; goto PGnOo; PGnOo: StEET: goto vebIB; vebIB: return null; goto NeXjB; GyypP: $states = ["C" => "Capital Federal", "B" => "Buenos Aires", "K" => "Catamarca", "H" => "Chaco", "U" => "Chubut", "X" => "Cordoba", "W" => "Corrientes", "E" => "Entre Rios", "P" => "Formosa", "Y" => "Jujuy", "L" => "La Pampa", "F" => "La Rioja", "M" => "Mendoza", "N" => "Misiones", "Q" => "Neuquen", "R" => "Rio Negro", "A" => "Salta", "J" => "San Juan", "D" => "San Luis", "Z" => "Santa Cruz", "S" => "Santa Fe", "G" => "Santiago del Estero", "V" => "Tierra del Fuego", "T" => "Tucuman"]; goto tLoGP; NeXjB: } public static function get_shipping_zone_regions() { goto JdeAq; LwOxI: $regions[] = array("code" => "AR:V", "type" => "state"); goto a5IW1; agqZX: $regions[] = array("code" => "AR:D", "type" => "state"); goto Apz3e; zPMDF: $regions[] = array("code" => "AR:P", "type" => "state"); goto gxlGN; FU2oC: $regions[] = array("code" => "AR:E", "type" => "state"); goto zPMDF; JdeAq: $regions = array(); goto FHE3P; T_5F0: $regions[] = array("code" => "AR:S", "type" => "state"); goto qkn7M; Sf1He: $regions[] = array("code" => "AR:B", "type" => "state"); goto DfIq7; DfIq7: $regions[] = array("code" => "AR:K", "type" => "state"); goto z49hr; qkn7M: $regions[] = array("code" => "AR:G", "type" => "state"); goto LwOxI; z49hr: $regions[] = array("code" => "AR:H", "type" => "state"); goto sygIG; u65mD: $regions[] = array("code" => "AR:M", "type" => "state"); goto yOw1K; sygIG: $regions[] = array("code" => "AR:U", "type" => "state"); goto fTLA2; yOw1K: $regions[] = array("code" => "AR:N", "type" => "state"); goto KKpyA; Apz3e: $regions[] = array("code" => "AR:Z", "type" => "state"); goto T_5F0; exWnU: $regions[] = array("code" => "AR:W", "type" => "state"); goto FU2oC; OSFxx: return $regions; goto BY4Vf; nDFF2: $regions[] = array("code" => "AR:L", "type" => "state"); goto dzZUe; gxlGN: $regions[] = array("code" => "AR:Y", "type" => "state"); goto nDFF2; FHE3P: $regions[] = array("code" => "AR:C", "type" => "state"); goto Sf1He; dzZUe: $regions[] = array("code" => "AR:F", "type" => "state"); goto u65mD; a5IW1: $regions[] = array("code" => "AR:T", "type" => "state"); goto OSFxx; fTLA2: $regions[] = array("code" => "AR:X", "type" => "state"); goto exWnU; SUQ5Z: $regions[] = array("code" => "AR:R", "type" => "state"); goto KOrIS; KKpyA: $regions[] = array("code" => "AR:Q", "type" => "state"); goto SUQ5Z; h0yme: $regions[] = array("code" => "AR:J", "type" => "state"); goto agqZX; KOrIS: $regions[] = array("code" => "AR:A", "type" => "state"); goto h0yme; BY4Vf: } public function get_street() { goto RXId1; slMCA: if ($this->order->has_shipping_address()) { goto yheOz; } goto AAaO5; RXId1: if ($this->order) { goto Fp0In; } goto Cx_cG; x4suu: foreach ($address_array as $key => $value_of_array) { goto mZ2Es; VKtX6: goto goGlN; goto vA15P; mkm0Q: goGlN: goto HDk3a; vA15P: KJcC0: goto UIziD; UIziD: $address .= $value_of_array; goto mkm0Q; QddtR: if (!is_numeric($value_of_array)) { goto T81cR; } goto rdZJH; kIS05: $address .= " " . $value_of_array; goto VKtX6; rdZJH: goto yOKDr; goto WPtw2; WPtw2: T81cR: goto kIS05; mZ2Es: if ($key === 0) { goto KJcC0; } goto QddtR; HDk3a: YqyjT: goto syJCN; syJCN: } goto b539x; hDz9u: $address = $this->order->get_shipping_address_1(); goto PLDwf; Xtaaz: goto wIWul; goto zmi6B; AAaO5: $address = $this->order->get_billing_address_1(); goto Xtaaz; b539x: yOKDr: goto Fjbe0; O_BzP: $address_array = explode(" ", $address); goto RU6KD; Cx_cG: return false; goto GqF4s; zmi6B: yheOz: goto hDz9u; RU6KD: $address = ''; goto x4suu; GqF4s: Fp0In: goto slMCA; PLDwf: wIWul: goto O_BzP; Fjbe0: return $address; goto Ulf6l; Ulf6l: } public function get_province_id() { goto WhOKo; QfirU: $province = $this->order->get_billing_state(); goto X3hnX; ekK6k: A2ANg: goto Oiy1Z; WhOKo: if ($this->order) { goto A2ANg; } goto EwnJI; EwnJI: return false; goto ekK6k; jGTRW: st11Y: goto hf_o3; X3hnX: goto q2EsS; goto jGTRW; hf_o3: $province = $this->order->get_shipping_state(); goto Nbu6v; iTq4U: return $province; goto aYWme; Nbu6v: q2EsS: goto iTq4U; Oiy1Z: if ($this->order->has_shipping_address()) { goto st11Y; } goto QfirU; aYWme: } public function get_postal_code() { goto MPQ5f; NZbps: return $this->order->get_billing_postcode(); goto Nd8iC; N13Ar: return false; goto reNo3; uzgfH: if (!$this->order->has_shipping_address()) { goto rgUsA; } goto UeVkK; UeVkK: return $this->order->get_shipping_postcode(); goto wG0DV; wG0DV: rgUsA: goto NZbps; reNo3: t958: goto uzgfH; MPQ5f: if ($this->order) { goto t958_; } goto N13Ar; Nd8iC: } private function get_packages_from_products($products) { goto HM5bU; Fs3h2: $side = intval(ceil(pow($products["shipping_info"]["total_volume"], 1 / 3))); goto rQFw_; mAtLM: $products["items"] = array(); goto ZsO19; L64v0: VkknT: goto R07y4; mlF4b: t3y89: goto AXMRc; HM5bU: $products["shipping_info"]["total_weight"] = 0; goto dGm3U; TRK7c: $skus = array(); goto IY3Ka; IY3Ka: foreach ($products["products"] as $index => $product) { goto D_11r; uVtaT: $products["shipping_info"]["total_weight"] += $product["weight"]; goto SazhM; NwY1l: mdDJ3: goto h0JGv; h0JGv: AeVjW: goto Iw_Ze; SazhM: $products["shipping_info"]["total_volume"] += $product["height"] * $product["width"] * $product["length"]; goto VZFxi; KVlin: bNG2E: goto uVtaT; VZFxi: $skus[] = $sku; goto AHToK; pdYlE: $products["packages"][] = array("classification_id" => 1, "weight" => intval(ceil($product["weight"])), "height" => intval(ceil($product["height"])), "width" => intval(ceil($product["width"])), "length" => intval(ceil($product["length"])), "description_1" => substr($sku, 0, 60), "description_2" => substr($product["name"], 0, 60)); goto NwY1l; D_11r: $sku = $product["sku"]; goto S5WTt; AHToK: $products["items"][] = array("weight" => intval(ceil($product["weight"])), "height" => intval(ceil($product["height"])), "width" => intval(ceil($product["width"])), "length" => intval(ceil($product["length"])), "sku" => substr($sku, 0, 60)); goto qvHVi; kobv0: $sku = "wc" . $product["id"]; goto KVlin; qvHVi: if (!(get_option("wcca_packaging_mode") != "grouped")) { goto mdDJ3; } goto pdYlE; S5WTt: if (!empty($sku)) { goto bNG2E; } goto kobv0; Iw_Ze: } goto mlF4b; R07y4: return $products; goto CmqU_; ZsO19: $products["packages"] = array(); goto TRK7c; rQFw_: $products["packages"][] = array("classification_id" => 1, "weight" => intval(ceil($products["shipping_info"]["total_weight"])), "height" => $side, "width" => $side, "length" => $side, "description_1" => substr(implode("_", $skus), 0, 60)); goto L64v0; dGm3U: $products["shipping_info"]["total_volume"] = 0; goto mAtLM; AXMRc: if (!(get_option("wcca_packaging_mode") == "grouped")) { goto VkknT; } goto Fs3h2; CmqU_: } private function get_new_dimensions($order_id) { goto hF5Yo; LAWNz: return $new_product; goto FUEIx; QxKur: $new_product = array("id" => 00, "name" => "Envio Correo Argentino", "sku" => 00, "height" => ceil($product[0]->height), "width" => ceil($product[0]->width), "length" => ceil($product[0]->length), "weight" => ceil($peso * 1000)); goto LAWNz; qidWC: $product_dim = get_post_meta($order_id, "_packed_bags", true); goto VHXhk; VHXhk: $product = json_decode($product_dim); goto QxKur; hF5Yo: $peso = get_post_meta($order_id, "_packed_total_weight", true); goto qidWC; FUEIx: } private function get_product_dimensions($product_id) { goto a5uCZ; DrwEm: return false; goto dVi_7; IS6Rb: return $new_product; goto OpIbH; yPq_Q: $new_product = array("id" => $product_id, "name" => $product->get_name(), "sku" => $product->get_sku(), "height" => ceil($product->get_height() ? wc_get_dimension($product->get_height(), "cm") : "0"), "width" => ceil($product->get_width() ? wc_get_dimension($product->get_width(), "cm") : "0"), "length" => ceil($product->get_length() ? wc_get_dimension($product->get_length(), "cm") : "0"), "weight" => ceil($product->has_weight() ? wc_get_weight($product->get_weight(), "kg") * 1000 : "0")); goto N5Mpu; wKSSS: LgbnZ: goto EsD3M; ls_z5: if ($product) { goto Ins1E; } goto fFLVT; Bq_rT: bBli0: goto IS6Rb; N5Mpu: goto bBli0; goto r_aFj; s7mBJ: Ins1E: goto Xv15I; E9onD: return null; goto wKSSS; a5uCZ: $product = wc_get_product($product_id); goto ls_z5; Xv15I: if ($product->needs_shipping()) { goto LgbnZ; } goto E9onD; dVi_7: $new_product = array("id" => $product_id, "name" => $product->get_name(), "sku" => $product->get_sku(), "height" => ceil(25), "width" => ceil(25), "length" => ceil(25), "weight" => ceil(1000)); goto Bq_rT; fFLVT: return false; goto s7mBJ; EsD3M: if (empty($product->get_height()) || empty($product->get_length()) || empty($product->get_width()) || !$product->has_weight()) { goto HQtWr; } goto yPq_Q; r_aFj: HQtWr: goto DrwEm; OpIbH: } public function get_items_from_cart() { goto AwkU4; xjjJF: D1avj: goto qpNa1; GwAl8: $packages = $this->get_packages_from_products($products); goto pBbiY; pBbiY: if ($packages) { goto QQOV2; } goto x8UOE; qpNa1: goto VL1LE; goto TmYaS; AwkU4: $products = array("products" => array(), "shipping_info" => array()); goto ulyJs; jEhI7: QQOV2: goto ekq_3; x8UOE: $this->logger->error("WCCA Helper: Error obteniendo productos del carrito, productos con malas dimensiones/peso", unserialize(WCCA_LOGGER_CONTEXT)); goto e6X6R; ulyJs: $items = WC()->cart->get_cart(); goto EN9Dl; HIxbU: foreach ($items as $item) { goto TXfoB; S2l6S: l2SSY: goto bxWrM; eUwiG: lD_3_: goto B0apT; ePssj: x8JpP: goto IfnHw; g22zb: $i = 0; goto ePssj; U1ZKq: return false; goto HLq1T; aSObJ: $this->logger->error("WCCA Helper: Error obteniendo productos del carrito, producto con malas dimensiones - ID: " . $product_id, unserialize(WCCA_LOGGER_CONTEXT)); goto U1ZKq; KTdHK: if ($product) { goto RgsuK; } goto aSObJ; IfnHw: if (!($i < $item["quantity"])) { goto l2SSY; } goto Lopwy; HLq1T: RgsuK: goto g22zb; TXfoB: $product_id = $item["data"]->get_id(); goto cnkD3; Q4qpN: goto Udewk; goto LNtww; Lopwy: array_push($products["products"], $product); goto eUwiG; cnkD3: $product = $this->get_product_dimensions($product_id); goto H3DQX; LNtww: kOciA: goto KTdHK; H3DQX: if (!is_null($product)) { goto kOciA; } goto Q4qpN; B0apT: $i++; goto RuEKs; bxWrM: Udewk: goto bbBC3; RuEKs: goto x8JpP; goto S2l6S; bbBC3: } goto xjjJF; e6X6R: return false; goto jEhI7; TmYaS: ms44T: goto T_TAk; T_TAk: $new_product = array("id" => 00, "name" => "envios", "sku" => 00, "height" => ceil(25), "width" => ceil(25), "length" => ceil(25), "weight" => ceil(10000)); goto kI8ml; DcZ36: if ($mix == "manual") { goto ms44T; } goto HIxbU; ekq_3: return $packages; goto QhNuP; kI8ml: array_push($products["products"], $new_product); goto RTzOi; EN9Dl: $mix = get_option("wcca_options_mix"); goto DcZ36; RTzOi: VL1LE: goto GwAl8; QhNuP: } public function get_items_from_order($order) { goto FzKqO; f7LcY: $product = $this->get_new_dimensions($order->get_id()); goto Bm2N0; UKdKZ: $packages = $this->get_packages_from_products($products); goto KGu7j; f9y2k: return $packages; goto rxJPE; Ozz71: return false; goto eiITm; KGu7j: if ($packages) { goto lzr2K; } goto DizzH; eiITm: lzr2K: goto f9y2k; Bm2N0: array_push($products["products"], $product); goto UKdKZ; FzKqO: $products = array("products" => array(), "shipping_info" => array()); goto f7LcY; DizzH: $this->logger->error("WCCA Helper: Error obteniendo productos de la orden, productos con malas dimensiones/peso", unserialize(WCCA_LOGGER_CONTEXT)); goto Ozz71; rxJPE: } public function get_street_number() { goto cTxUM; mMbxZ: $number = ''; goto iQ72t; zl0LI: goto afNIj; goto iLkUj; MDzI0: $number = $address; goto CcAkT; L9zjR: if ($this->order->has_shipping_address()) { goto FRU51; } goto dMjeJ; r9upO: goto sVTiA; goto wnH57; x8YN2: if ($this->order->has_shipping_address()) { goto O4P4v; } goto IMssU; YZZVz: n6d9I: goto L9zjR; b78x2: foreach ($address_array as $value_of_array) { goto TaH6x; LJpWj: $number = $value_of_array; goto KWwi8; F8wXy: x7mnV: goto nUrbH; PF3zr: Dgrrl: goto F8wXy; TaH6x: if (!is_numeric($value_of_array)) { goto Dgrrl; } goto LJpWj; KWwi8: goto IPGyH; goto PF3zr; nUrbH: } goto CeqPb; xNMHb: umpa9: goto B5th1; UH6fV: $address = $this->order->get_shipping_address_2(); goto TxsAJ; vwrJY: afNIj: goto mMbxZ; wnH57: O4P4v: goto UH6fV; u8Md4: if ($number) { goto umpa9; } goto x8YN2; B5th1: return $number; goto uEuvF; TxsAJ: sVTiA: goto eifvq; jLXFa: return false; goto YZZVz; IMssU: $address = $this->order->get_billing_address_2(); goto r9upO; iLkUj: FRU51: goto CfJt0; eifvq: if (!is_numeric($address)) { goto WWTq6; } goto MDzI0; iQ72t: $address_array = array_reverse(explode(" ", $address)); goto b78x2; cTxUM: if ($this->order) { goto n6d9I; } goto jLXFa; dMjeJ: $address = $this->order->get_billing_address_1(); goto zl0LI; CcAkT: WWTq6: goto xNMHb; CfJt0: $address = $this->order->get_shipping_address_1(); goto vwrJY; CeqPb: IPGyH: goto u8Md4; uEuvF: } public function get_destination_from_order($order) { goto ORIgV; nf6jV: if ($order->has_shipping_address()) { goto AqwKd; } goto s_CRD; RflVA: $customer_document = get_post_meta($orderid, "_billing_company", true); goto nf6jV; cywjL: goto HMfvv; goto YG4j1; YG4j1: AqwKd: goto MF1Wu; iNVTr: return $destination; goto Rab9o; gVo0P: $customer_document = $order->billing_dni_facturante; goto FzhZS; UKIFR: $customer_document = "11111111"; goto HzSxn; HzSxn: if (!$order->billing_dni_facturante) { goto WoE8X; } goto gVo0P; MF1Wu: $destination = array("name" => $order->get_shipping_first_name() . " " . $order->get_shipping_last_name(), "document" => $customer_document, "street" => $address["street"], "street_number" => $address["number"], "street_extras" => $address["floor"] . " " . $address["apartment"], "city" => $order->get_shipping_city(), "state" => Helper::get_state_name($order->get_shipping_state()), "zipcode" => $order->get_shipping_postcode(), "phone" => $order->get_billing_phone(), "email" => $order->get_billing_email()); goto Oq6H6; KCb12: $orderid = $order->get_id(); goto RflVA; s_CRD: $destination = array("name" => $order->get_billing_first_name() . " " . $order->get_billing_last_name(), "document" => $customer_document, "street" => $address["street"], "street_number" => $address["number"], "street_extras" => $address["floor"] . " " . $address["apartment"], "city" => $order->get_billing_city(), "state" => Helper::get_state_name($order->get_billing_state()), "zipcode" => $order->get_billing_postcode(), "phone" => $order->get_billing_phone(), "email" => $order->get_billing_email()); goto cywjL; ORIgV: $address = Helper::get_address($order); goto UKIFR; FzhZS: WoE8X: goto KCb12; Oq6H6: HMfvv: goto iNVTr; Rab9o: } public static function get_address($order) { goto xB7XU; nYzzO: goto rBIUL; goto B1HAJ; xB7XU: if ($order->get_shipping_address_1()) { goto xFI9g; } goto qcPsj; onZZa: preg_match("/(^\d*[\D]*)(\d+)(.*)/i", $shipping_line_1, $res); goto MWp2z; FRpWH: $shipping_line_2 = $order->get_shipping_address_2(); goto syxnQ; P1NF3: goto eNLsJ; goto qzymP; eu189: z3RRC: goto iJ8H2; I7siq: goto eNLsJ; goto CnYE8; VPZri: $floor = trim($line1[3]); goto P1NF3; RDoe3: $floor = ''; goto nYzzO; YtHbM: PkP05: goto nGXEO; SuGRM: goto jaO62; goto TAbKB; WsOEu: $floor = $fl_apt_array[0]; goto TR6sh; l7FWX: GFsu5: goto lQ4xS; aifAw: goto JJ34d; goto l7FWX; SCnSy: JJ34d: goto qK_c9; qv6jI: $floor = $fl_apt_array[0]; goto YmAPo; f4EF5: $fl_apt_array = self::get_floor_and_apt($shipping_line_2); goto WsOEu; nGXEO: return array("street" => $street_name, "number" => $street_number, "floor" => $floor, "apartment" => $apartment); goto KBn62; QyYk0: eNLsJ: goto XNcVr; MWp2z: $line1 = $res; goto FEclv; p5f91: $shipping_line_1 = $order->get_shipping_address_1(); goto FRpWH; qcPsj: $shipping_line_1 = $order->get_billing_address_1(); goto tYARv; R8TXE: $shipping_line_2 = trim($line1[3]); goto Td8YD; eQe_E: $street_name = trim($line1[1]); goto Bdd5j; HGXCU: goto rBIUL; goto asCkc; FEclv: if (isset($line1[1]) && !empty($line1[1]) && $line1[1] !== " " && !empty($line1)) { goto GFsu5; } goto aX1zz; d721v: if (!empty($floor) && !empty($apartment)) { goto z3RRC; } goto NcI_Q; DTb1L: $apartment = ''; goto kjJrq; qK_c9: if (preg_match("/^ ?\d+ ?$/", $street_number, $res)) { goto PkP05; } goto yd_xT; PTL9W: if (empty($shipping_line_2)) { goto Gv2zQ; } goto ET7Ol; tPRkE: $street_number = $floor; goto RDoe3; aX1zz: $street_name = $shipping_line_1; goto d721v; B1HAJ: syspn: goto XkMer; yIstM: unset($line1[3]); goto mh6qQ; XkMer: $street_number = $apartment; goto DTb1L; WVa8T: $street_name = trim($line1[1]); goto JZk1t; JZk1t: $street_number = trim($line1[2]); goto yIstM; WanVs: if (empty($apartment)) { goto Js_i6; } goto VPZri; papDz: goto rBIUL; goto eu189; mh6qQ: xzQFM: goto SCnSy; qzymP: FKUNQ: goto f4EF5; yd_xT: $street_name .= " " . $street_number; goto Rjsot; SUYF7: hMNsl: goto WVa8T; tYARv: $shipping_line_2 = $order->get_billing_address_2(); goto SuGRM; lQ4xS: if (empty($line1[3]) || $line1[3] === " ") { goto hMNsl; } goto eQe_E; TAbKB: xFI9g: goto p5f91; YmAPo: $apartment = $fl_apt_array[1]; goto lmgXk; TR6sh: $apartment = $fl_apt_array[1]; goto I7siq; Td8YD: if (empty($floor) && empty($apartment)) { goto FKUNQ; } goto WanVs; CnYE8: Js_i6: goto wEyO1; wEyO1: $apartment = trim($line1[3]); goto QyYk0; NcI_Q: if (!empty($floor) && empty($apartment)) { goto eSUfu; } goto L2Lx8; Rjsot: $street_number = "S/N"; goto YtHbM; ET7Ol: $fl_apt_array = self::get_floor_and_apt($shipping_line_2); goto qv6jI; iJ8H2: $street_number = $floor; goto QGjYq; asCkc: eSUfu: goto tPRkE; bGO6u: $street_name = $street_number = $floor = $apartment = ''; goto PTL9W; L2Lx8: if (empty($floor) && !empty($apartment)) { goto syspn; } goto papDz; syxnQ: jaO62: goto bGO6u; Bdd5j: $street_number = trim($line1[2]); goto R8TXE; kjJrq: rBIUL: goto aifAw; VGP2n: $apartment = ''; goto HGXCU; XNcVr: goto xzQFM; goto SUYF7; QGjYq: $floor = $apartment; goto VGP2n; lmgXk: Gv2zQ: goto onZZa; KBn62: } public static function get_floor_and_apt($fl_apt) { goto CKpnb; xFHdB: $line2 = $res; goto O7T6O; tNLPM: $apartment = trim($line2[2]); goto lU5c6; QwdAx: goto E3y13; goto ts2hx; m54sH: $line2 = $res; goto wp3gz; Ulpoe: preg_match("/^(piso|p|p.) ?(\w+)$/i", $fl_apt, $res); goto enVvm; XESEL: goto wAIwN; goto WNLO7; ttQSp: $floor = trim($line2[2]); goto kFWwT; PLKPy: $floor = trim($line2[1]); goto tNLPM; kA2gr: if (empty($floor) && empty($apartment)) { goto Ane9m; } goto XESEL; r__Z: goto Vv9Cu; goto Kypjl; nT5Wg: preg_match("/(departamento|depto|dept|dpto|dpt|dpt.º|depto.|dept.|dpto.|dpt.|apartamento|apto|apt|apto.|apt.) ?(\w+),? ?(piso|p|p.) ?(\w+)/i", $fl_apt, $res); goto st1d2; F5q2D: ezHQq: goto D7Xaw; ts2hx: NKMhb: goto SXgkg; st1d2: $line2 = $res; goto QwdAx; WNHw2: if (!empty($line2) && empty($apartment) && empty($floor)) { goto Iw3E8; } goto IP0vY; fcecn: $floor = trim($line2[1]); goto P8yt9; U7b4K: goto y76BX; goto sSVhf; sPHKx: Iw3E8: goto rPmVJ; JPcnx: goto wAIwN; goto OTTuS; on_Cb: vNwGv: goto PLKPy; wY9Ly: $line2 = $res; goto r__Z; kFWwT: Vv9Cu: goto WNHw2; WXiZA: $floor = $fl_apt; goto C855G; rPmVJ: $apartment = trim($line2[2]); goto F5q2D; Wya8b: goto ezHQq; goto sPHKx; xS3A8: y76BX: goto TPXeS; LM22d: preg_match("/(piso|p|p.) ?(\w+),? ?(departamento|depto|dept|dpto|dpt|dpt.º|depto.|dept.|dpto.|dpt.|apartamento|apto|apt|apto.|apt.) ?(\w+)/i", $fl_apt, $res); goto xFHdB; TPXeS: if (!empty($line2) && empty($floor)) { goto ntAFI; } goto sbBGD; O7T6O: if (!empty($line2)) { goto NKMhb; } goto nT5Wg; sbBGD: preg_match("/^(departamento|depto|dept|dpto|dpt|dpt.º|depto.|dept.|dpto.|dpt.|apartamento|apto|apt|apto.|apt.) ?(\w+)$/i", $fl_apt, $res); goto wY9Ly; gAiIk: if (!empty($line2) && empty($floor) && empty($apartment)) { goto TXwF9; } goto kA2gr; C855G: wAIwN: goto zyZ8v; enVvm: $line2 = $res; goto U7b4K; IP0vY: preg_match("/(\d+),? [a-zA-Z.,!*]* ?([a-zA-Z0-9 ]+)/i", $fl_apt, $res); goto R_5HM; SXgkg: $floor = trim($line2[2]); goto zBP2S; wp3gz: goto V8_z7; goto on_Cb; sSVhf: waCDS: goto k4BhD; PGcuM: if (!empty($line2) && empty($apartment) && empty($floor)) { goto waCDS; } goto Ulpoe; Kypjl: ntAFI: goto ttQSp; OTTuS: Ane9m: goto WXiZA; WNLO7: TXwF9: goto fcecn; lU5c6: V8_z7: goto gAiIk; k4BhD: $floor = trim($line2[4]); goto qUoeY; P8yt9: $apartment = trim($line2[2]); goto JPcnx; CKpnb: $street_name = $street_number = $floor = $apartment = ''; goto LM22d; hXHaW: E3y13: goto PGcuM; itrLS: preg_match("/(\d+)(\D*)/i", $fl_apt, $res); goto m54sH; zyZ8v: return array($floor, $apartment); goto NF1WT; qUoeY: $apartment = trim($line2[2]); goto xS3A8; zBP2S: $apartment = trim($line2[4]); goto hXHaW; R_5HM: $line2 = $res; goto Wya8b; D7Xaw: if (!empty($line2) && empty($floor) && empty($apartment)) { goto vNwGv; } goto itrLS; NF1WT: } } ?>