;ELC   
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(byte-code "\300\301!\210\300\302\303\304#\210\300\305\303\304#\210\300\306!\207" [require eudc bbdb nil t bbdb-com seq] 4)
(defvar eudc-bbdb-current-query nil)
(defvar eudc-bbdb-current-return-attributes nil)
#@139 Convert FIELD-SYMBOL so that it is recognized by the current BBDB version.
BBDB < 3 used `net'; BBDB >= 3 uses `mail'.

(fn FIELD-SYMBOL)
(defalias 'eudc-bbdb-field #[257 "\211\300=\203 \301 \203 \302\207\211\303=\203 \301 \203 \304\207\207" [net eudc--using-bbdb-3-or-newer-p mail company organization] 3 (#$ . 295)])
#@51 Alist mapping EUDC attribute names to BBDB names.
(defvar eudc-bbdb-attributes-translation-alist '((name . lastname) (email . net) (phone . phones)) (#$ . 624))
(byte-code "\300\301\302\303#\210\300\304\305\303#\210\300\306\307\303#\210\300\310\305\303#\210\300\311\305\303#\207" [eudc-protocol-set eudc-query-function eudc-bbdb-query-internal bbdb eudc-list-attributes-function nil eudc-protocol-attributes-translation-alist eudc-bbdb-attributes-translation-alist eudc-bbdb-conversion-alist eudc-protocol-has-default-query-attributes] 4)
#@78 Format a EUDC query alist into a list suitable to `bbdb-search'.

(fn QUERY)
(defalias 'eudc-bbdb-format-query #[257 "\300\236A\301\236A\203 \211\203 \302Q\206 \206 \211\303\236A\304\236A\305\236A\306\236A\257\207" [firstname lastname " " company net notes phone] 13 (#$ . 1169)])
#@84 Return RECORD if it matches `eudc-bbdb-current-query', nil otherwise.

(fn RECORD)
(defalias 'eudc-bbdb-filter-non-matching-record #[257 "\303\304!\210\3052j \211\203g \211@\211@A\306\307>\203X \310\311\312\313!!P!!\211<\203C \n\2039 \314\315\316\"\"\202S \227\317\320\"\235\202S \n\203N \321\"\202S \227\227\230\262\204] \322\305\323\"\210)\266A\266\202\202	 \210\2110\207" [eudc-bbdb-current-query case-fold-search eudc-bbdb-enable-substring-matches require bbdb unmatch t (firstname lastname aka company phones addresses net) intern "bbdb-record-" symbol-name eudc-bbdb-field seq-some make-closure #[257 "\301\300\"\207" [V0 string-match] 4 "\n\n(fn SUBVAL)"] mapcar downcase string-match throw nil] 10 (#$ . 1478)])
#@15 

(fn RECORD)
(defalias 'eudc-bbdb-extract-phones #[257 "\300\301!\210\302\303\304 \203 \305!\202 \306!\"\207" [require bbdb mapcar #[257 "\203 \301\302 \203 \303!\202 \304!!\305!B\207\306\307\310\302 \203' \303!\202* \304!\305!#B\207" [eudc-bbdb-use-locations-as-attribute-names intern eudc--using-bbdb-3-or-newer-p bbdb-phone-label bbdb-phone-location bbdb-phone-string phones format "%s: %s"] 7 "\n\n(fn PHONE)"] eudc--using-bbdb-3-or-newer-p bbdb-record-phone bbdb-record-phones] 5 (#$ . 2222)])
#@15 

(fn RECORD)
(defalias 'eudc-bbdb-extract-addresses #[257 "\300\301!\210\302C\302C\302C\303\304\305$\306 \203 \307!\202! \310!\"\207" [require bbdb nil mapcar make-closure #[257 "\301\304!\240\210\305\211\306W\203) \300\301\2428\240G\305U\204\" \302\211\242\300\242\307Q\240\210\211T\262\202 \210\301\310!\240\210\300\311!\240\210\302\211\242\301\242G\305V\203R \300\242G\305V\203R \301\242\312\300\242Q\202T \301\242\313\314!R\240\210\203h \315\316!!\302\242B\207\317\316!\307\302\242QB\207" [V0 V1 V2 eudc-bbdb-use-locations-as-attribute-names bbdb-address-streets 0 3 "\n" bbdb-address-city bbdb-address-state ", " " " bbdb-address-zip intern bbdb-address-location addresses] 7 "\n\n(fn ADDRESS)"] eudc--using-bbdb-3-or-newer-p bbdb-record-address bbdb-record-addresses] 10 (#$ . 2742)])
#@143 Format the BBDB RECORD as a EUDC query result record.
The record is filtered according to `eudc-bbdb-current-return-attributes'.

(fn RECORD)
(defalias 'eudc-bbdb-format-record-as-result #[257 "\301\302!\210\206	 \303\304\211\203\226 \211@\211\305\267\202C \306!\202F \307!\202F \310 \203/ \311\312\"\202F \313!\202F \314\315\316\317!!P!!\202F \320\321!\211\203\216 \211\322\232\204\216 \323>\203` \324\"\262\210\202\217 \211<\203x \211G\325U\203x @BB\262\210\202\217 \211G\326V\203\212 BB\262\210\202\217 \320\327!\210\210A\266\202\202 \210\211\237\207" [eudc-bbdb-current-return-attributes require bbdb (firstname lastname aka company phones addresses net notes) nil #s(hash-table size 8 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (phones 23 addresses 29 notes 35 net 53 company 53 aka 53 lastname 53 firstname 53)) eudc-bbdb-extract-phones eudc-bbdb-extract-addresses eudc--using-bbdb-3-or-newer-p bbdb-record-xfield notes bbdb-record-notes intern "bbdb-record-" symbol-name eudc-bbdb-field error "Unknown BBDB attribute" "" (phones addresses) append 1 0 "Unexpected attribute value"] 10 (#$ . 3559)])
#@251 Query BBDB  with QUERY.
QUERY is a list of cons cells (ATTR . VALUE) where ATTRs should be valid
BBDB attribute names.
RETURN-ATTRS is a list of attributes to return, defaulting to
`eudc-default-return-attributes'.

(fn QUERY &optional RETURN-ATTRS)
(defalias 'eudc-bbdb-query-internal #[513 "\302\303!\210\304!\305\306 \305C\305C\203B G\307V\203B \310@C\"\262@\203; \311\312\313DBB\314\"\262A\262\202 \315\316\317#\320\305\321\322\320\305\321\323\f\"\"\"\"\"\210\242*\207" [eudc-bbdb-current-return-attributes eudc-bbdb-current-query require bbdb eudc-bbdb-format-query nil bbdb-records 0 append eval bbdb-search quote t mapc make-closure #[257 "\301\302!\240\210\301\242G\303V\203 \301\304\305\301\242\"\240\210\300\306\300\242\301\242\"\240\207" [V0 V1 eudc-filter-duplicate-attributes 1 mapcar reverse append] 5 "\n\n(fn RECORD)"] delq mapcar eudc-bbdb-format-record-as-result eudc-bbdb-filter-non-matching-record] 20 (#$ . 4714)])
#@42 Set the EUDC server to BBDB.

(fn DUMMY)
(defalias 'eudc-bbdb-set-server #[257 "\300\301\"\210\302\303!\207" [eudc-set-server bbdb message "BBDB server selected"] 4 (#$ . 5684) nil])
(byte-code "\300\301!\210\302\303!\207" [eudc-register-protocol bbdb provide eudcb-bbdb] 2)
